bug-glibc
[Top][All Lists]
Advanced

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

Re: glibc-2.2.3: ld-linux.so.2 error msg


From: Andreas Jaeger
Subject: Re: glibc-2.2.3: ld-linux.so.2 error msg
Date: Tue, 07 Aug 2001 09:09:52 +0200
User-agent: Gnus/5.090004 (Oort Gnus v0.04) XEmacs/21.1 (Cuyahoga Valley)

John Reiser <address@hidden> writes:

> Andreas Jaeger wrote:
> > 
>> "Scott McPeak" <address@hidden> writes:
>> 
>> > When I run 'ld-linux.so.2 --list <program>', and one of the shared
>> > libraries can't be found, the error message doesn't tell me which one:
>> >
>> >   $ /usr/local/lib/ld-linux.so.2 --list ./delphi
>> >   ./delphi: error while loading shared libraries: cannot open shared
>> >   object file: cannot load shared object file: No such file or
>> >   directory
>> 
>> Why are you not using ldd directly?  This works fine.
>
> No, there is a bug in Linux 2.4.5 (x<=5 or so) and 2.2.y (y<=18)
> where the kernel supplies a bad value for AT_PHDR in some cases,
> causing SIGSEGV from "ldd".  I reported this (and the patch to fix)
> to linux-kernel on Sat, 02 Jun 2001 17:10:36 -0700.
> I don't know whether the bug affects the original poster, 
> but it bit me, so I used the --list workaround.
>
>> 
>> > (In the above example, ./delphi works fine normally; I commented-out a
>> > critical line in /etc/ld.so.conf to cause this.)
>> >
>> > When this happens, I have to resort to 'strace' to find out which
>> > library is the problem.
>> 
>> You don't have to, use ldd or LD_DEBUG=libs ./delphi,
>
> LD_DEBUG is a workaround, but surely the error message should
> give the name of the module.   I reported this as libc/2297 on: 
>    Mon May 28 12:16:36 2001
>    To: address@hidden
>    Subject: rtld: filename lost in message from _dl_map_object_deps

That's fixed already, with the current glibc I get:

gee:~/tmp:[128]$ /lib/ld-linux.so.2 --list ./main
./main: error while loading shared libraries: foo.so: cannot load shared object 
file: No such file or directory

Andreas
-- 
 Andreas Jaeger
  SuSE Labs address@hidden
   private address@hidden
    http://www.suse.de/~aj



reply via email to

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