Bug 14474

Summary: LD_DEBUG=bindings produces incorrect data
Product: glibc Reporter: law
Component: dynamic-linkAssignee: Not yet assigned to anyone <unassigned>
Status: WAITING ---    
Severity: normal CC: neleai
Priority: P2 Flags: fweimer: security-
Version: unspecified   
Target Milestone: ---   
Host: Target:
Build: Last reconfirmed:
Attachments: Uli's patch to fix this problem

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.