Bug 14474 - LD_DEBUG=bindings produces incorrect data
Summary: LD_DEBUG=bindings produces incorrect data
Status: WAITING
Alias: None
Product: glibc
Classification: Unclassified
Component: dynamic-link (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-08-15 18:47 UTC by law
Modified: 2014-06-17 18:37 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:
fweimer: security-


Attachments
Uli's patch to fix this problem (717 bytes, application/octet-stream)
2012-08-15 18:47 UTC, law
Details

Note You need to log in before you can comment on or make changes to this bug.
Description law 2012-08-15 18:47:40 UTC
Created attachment 6580 [details]
Uli's patch to fix this problem

The binding information printed for LD_DEBUG=bindings is incorrect when dlopen is used.  This severely hinders people debugging problems with audit modules and other problems.

Steps to Reproduce:
1.find program which uses dlopen with a handle returned by dlopen
2.use LD_DEBUG=bindings
3.
  
Actual results:
The 'from' map is reported to be the map with the definition

Expected results:
The from 'from' map should be reported.

Uli's patch for this problem is attached.  I haven't evaluated either the problem or the patch.
Comment 1 Andreas Schwab 2013-01-15 11:22:09 UTC
I don't get any difference in the output of LD_DEBUG=bindings with or without the patch.
Comment 2 Ondrej Bilka 2013-10-11 18:20:15 UTC
Needs a reproducer.