Bug 14474 - LD_DEBUG=bindings produces incorrect data
: LD_DEBUG=bindings produces incorrect data
Status: NEW
Product: glibc
Classification: Unclassified
Component: dynamic-link
: unspecified
: P2 normal
: ---
Assigned To: Not yet assigned to anyone
:
:
:
:
  Show dependency treegraph
 
Reported: 2012-08-15 18:47 UTC by law
Modified: 2013-01-15 11:22 UTC (History)
0 users

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments
Uli's patch to fix this problem (1.71 KB, 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.