[Top][All Lists]

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

Re: LD_DEBUG not giving anything

From: Marcus Brinkmann
Subject: Re: LD_DEBUG not giving anything
Date: Sun, 17 Jun 2001 01:30:04 +0200
User-agent: Mutt/1.2i

On Sat, Jun 16, 2001 at 06:59:39PM -0400, Roland McGrath wrote:
> Well, I think that is because you are getting an error in the very first
> place that one can happen.  _dl_map_object prints when it's about to load
> an object--unless it's the main program being loaded or a _dl_open call.
> I'm pretty sure that the dynamic linker is getting as far as making the
> call `__open ("/bin/rpctrace", O_RDONLY)' and that fails.
> Time for gdb.  Break on __open (in dl-sysdep.c) and step through.

The problem is that my break point is either not honoured, or never
encountered.  I tried both, gdb /new-glibc/ld-2.2.3.so with arguments
/bin/echo and /bin/rpctrace:

(note that /new-glibc is really /zzz/zzz/zzz here).

GNU gdb 5.0
Copyright 2000 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-unknown-gnu0.2"...
(gdb) break __open
Breakpoint 1 at 0xefef: file ../sysdeps/mach/hurd/dl-sysdep.c, line 506.
(gdb) set args /bin/rpctrace
(gdb) run
Starting program: /zzz/zzz/zzz/ld-2.2.3.so /bin/rpctrace
/bin/rpctrace: error while loading shared libraries: /bin/rpctrace: cannot open 
shared object file: No such file or directory

Program exited with code 0177.
(gdb) set args /bin/echo hello
(gdb) run
Starting program: /zzz/zzz/zzz/ld-2.2.3.so /bin/echo hello

Program exited normally.
(gdb) quit

reply via email to

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