This is the mail archive of the gdb-prs@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

shlibs/1906: runtime LD_LIBRARY_PATH not read


>Number:         1906
>Category:       shlibs
>Synopsis:       runtime LD_LIBRARY_PATH not read
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Wed Apr 06 07:38:01 UTC 2005
>Closed-Date:
>Last-Modified:
>Originator:     gdb
>Release:        6.1post-1.20040607.52rh
>Organization:
>Environment:
Linux EL3
>Description:
The LD_LIBRARY_PATH set on the command line is not read by gdb. Instead gdb is reading the profile files like .profile, .login, .cshrc, etc. I don't know if there is a good reason for this behavior but it's troublesome with trying to debug dynamic librairies. It's undocumented and it took my months (and the help of strace) to find out why gdb could not read my .so files.
>How-To-Repeat:
- do not set your LD_LIBRARY_PATH in your login/shell conf scripts
- set it on the command line
- test your executable with ldd
- try to debug with gdb
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]