Bug 532629

Summary: LD_VERBOSE does not work with ld.so --list
Product: [Fedora] Fedora Reporter: Stas Sergeev <stsp2>
Component: man-pagesAssignee: Ivana Varekova <varekova>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 11CC: jakub, schwab, varekova
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-11-18 12:33:44 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Stas Sergeev 2009-11-03 07:59:14 UTC
Description of problem:
"info ld.so" says:
       LD_VERBOSE
              (glibc since 2.1) If set to a non-empty  string,  output  symbol
              versioning information about the program if querying information
              about the program (i.e., either LD_TRACE_LOADED_OBJECTS has been
              set,  or  --list  or  --verify  options  have  been given to the
              dynamic linker).
But this doesn't work as advertised.

Version-Release number of selected component (if applicable):
glibc-2.10.1-5.x86_64

How reproducible:
Always

Steps to Reproduce:
1. LD_VERBOSE=1 /lib64/ld-linux-x86-64.so.2 --list `which egrep`
2. LD_VERBOSE=1 LD_TRACE_LOADED_OBJECTS=1 /lib64/ld-linux-x86-64.so.2 `which egrep`
  
Actual results:
Only the second command gives the
verbose result

Expected results:
Identical verbose output from both
commands

Additional info:
It would be nice to have a --verbose option
for that.
Oh, and while we are on that, can someone
please hint me if there is a way to get
the list of only a direct dependancies,
instead of all recursive dependancies?

Comment 1 Andreas Schwab 2009-11-05 16:29:29 UTC
The documentation is wrong.  LD_VERBOSE is only effective in trace mode.

Comment 2 Ivana Varekova 2009-11-18 11:44:44 UTC
Andreas, please could you please attach here the correct version of LD_VERBOSE description?

Comment 3 Andreas Schwab 2009-11-18 11:52:31 UTC
See #c1.

Comment 4 Stas Sergeev 2009-11-18 12:12:05 UTC
What's the difference between
list and trace mode?
Thanks.

Comment 5 Andreas Schwab 2009-11-18 12:29:15 UTC
LD_TRACE_LOADED_OBJECTS is trace mode, as the name tells.

Comment 6 Ivana Varekova 2009-11-18 12:33:44 UTC
Thanks. Fixed in man-pages-3.23-2.fc13.

Comment 7 Stas Sergeev 2009-11-18 12:37:57 UTC
But in what way the trace mode
is different from the list mode?
OK, let's see if the doc update
have this explained...