[uClibc-cvs] [uClibc 0000060]: LD_LIBRARY_PATH fails if ":<somepath>"

bugs at busybox.net bugs at busybox.net
Tue May 24 22:39:13 UTC 2005


A NOTE has been added to this issue.
======================================================================
<http://busybox.net/bugs/view.php?id=60> 
======================================================================
Reported By:                psm
Assigned To:                uClibc
======================================================================
Project:                    uClibc
Issue ID:                   60
Category:                   Architecture Specific
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     assigned
======================================================================
Date Submitted:             01-24-2005 20:09 PST
Last Modified:              05-24-2005 15:39 PDT
======================================================================
Summary:                    LD_LIBRARY_PATH fails if ":<somepath>"
Description: 
if LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:<somepath>" is used, and the
initial
LD_LIBRARY_PATH was empty, the path becomes LD_LIBRARY_PATH=":<somepath>",
and 
that is not accepted by uclibc (glibc tolerates that)
======================================================================

----------------------------------------------------------------------
 scott - 05-24-05 14:46 
----------------------------------------------------------------------
also, if LD_LIBRARY_PATH ends with ":" it will look in the CWD.  So, it
would seem then ending the path with ":" is the same as ":."

only after removing the ":" from the last character in the path does the
loader then stop looking in cwd for libs.

To reproduce this, change your LD_LIBRARY_PATH to have ":" as the last
character, then cd into a different /usr/lib (compile glibc or uclibc for
another version) and /bin/ls will break.

----------------------------------------------------------------------
 vapier - 05-24-05 15:39 
----------------------------------------------------------------------
what do you mean by 'not accepted' ?

also, glibc treats an empty path as meaning '.' ... also, i cant really
reproduce the behavior you describe ...

i exported LD_LIBRARY_PATH=: and then tried `ls` in $HOME, /lib, and
/usr/lib ... this worked fine in both uClibc-0.9.27 and glibc

Issue History
Date Modified  Username       Field                    Change              
======================================================================
01-24-05 20:09 psm            New Issue                                    
03-16-05 11:54 andersen       Assigned To              andersen => uClibc  
05-24-05 14:46 scott          Note Added: 0000209                          
05-24-05 15:39 vapier         Note Added: 0000210                          
======================================================================




More information about the uClibc-cvs mailing list