bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: LD_DEBUG not giving anything


From: Neal H Walfield
Subject: Re: LD_DEBUG not giving anything
Date: Sun, 17 Jun 2001 09:52:56 -0500
User-agent: Mutt/1.3.18i

> I tried 
> 
> LD_DEBUG=foo LD_LIBRARY_PATH=/new-glibc /new-glibc/ld-2.2.3.so /bin/rpctrace
> 
> with foo being one of those which you get when setting foo as "help"
> (like files, libs, statistics etc).
> 
> Not a single foo prints anything. I always get:
> 
> /bin/rpctrace: error while loading shared libraries: /bin/rpctrace: cannot 
> open shared object file: No such file or directory

This is what I am getting from a build of the libc from yesterday:

        neal@desdemona:~/libc-test/lib (139)$ LD_LIBRARY_PATH=`pwd` \
        > ./ld-2.2.3.so /bin/ls
        Mcrt1.o                   libdl-2.2.3.so          libnss_compat.so.2
        crt0.o                    libdl.a                 libnss_dns-2.2.3.so
        ...

This works fine.

        neal@desdemona:~/libc-test/lib (0)$ LD_LIBRARY_PATH=`pwd` \
        > ./ld-2.2.3.so /bin/rpctrace 
        /bin/rpctrace: error while loading shared libraries:
        libhurdbugaddr.so.0.2: cannot open shared object file: No such file or
directory

This does not work as I do not have the hurd libraries installed.

        neal@desdemona:~/libc-test/lib (127)$ LD_LIBRARY_PATH=`pwd`:/lib \
        > ./ld-2.2.3.so /bin/rpctrace 
        Usage: rpctrace [OPTION...] COMMAND [ARG...]
        Try `rpctrace --help' or `rpctrace --usage' for more information.

This works.

However, compare to this:

        neal@desdemona:~/libc-test/lib (64)$ LD_DEBUG=libs \
        > LD_LIBRARY_PATH=`pwd` ./ld-2.2.3.so /bin/ls
        05189:  find library=libc.so.0.2; searching
        05189:   search path=/home/neal/libc-test/lib   (system search path)
        05189:    trying file=/home/neal/libc-test/lib/libc.so.0.2
        05189:  
        05189:  find library=libmachuser.so.1; searching
        05189:   search path=/home/neal/libc-test/lib   (system search path)
        05189:    trying file=/home/neal/libc-test/lib/libmachuser.so.1
        05189:  
        05189:  find library=libhurduser.so.0.0; searching
        05189:   search path=/home/neal/libc-test/lib   (system search path)
        05189:    trying file=/home/neal/libc-test/lib/libhurduser.so.0.0
        05189:  
        Segmentation fault

In fact, all LD_DEBUG values cause a seg fault except help and
statictics, which work as expected.

This is my tool chain:

neal@desdemona:~/libc-test/lib (0)$ dpkg -l binutils gcc 
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
||/ Name           Version        Description
+++-==============-==============-============================================
ii  binutils       2.11.90.0.1-1  The GNU assembler, linker and binary utiliti
ii  gcc            2.95.3-7       The GNU C compiler.

Attachment: pgpIkjxKSRsiP.pgp
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]