This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc 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]

Re: glibc 2.3 not binary compatible with glibc-2.2.5


On Sat, Oct 05, 2002 at 01:14:13PM -0700, Christoph Lameter wrote:
> On Sat, 5 Oct 2002, Roland McGrath wrote:
> 
> > Are those outputs really from the same run?  The addresses in your
> > disassembly do not fall in the libpthread.so range shown in your
> > /proc/*/maps.  The info shared output does not jibe.
> 
> They are from different runs. Did not know that they had to be the same.
> >
> > If you start the program by running ld.so directly, then you can use
> > --library-path instead and not have the environment variable messing up
> > your gdbserver or whatever else might inherit it.  Look at the testrun.sh
> > script created in the libc build directory for how to give all the right
> > args, i.e. try sh -x .../testrun.sh /bin/tar and then try the command line
> > you see it use.
> 
> Ahh. Thanks for the library-path hint... I was able to produce the
> following error using gdb. Maybe we do not need to go through complex
> remote loopback debugging.:
> 
> k2-400:/home/christoph/t# lib/ld-2.3.so --library-path lib /bin/tar
> Segmentation fault
> k2-400:/home/christoph/t# lib/ld-2.3.so --library-path lib /usr/bin/gdb
> /bin/tar

Doesn't work.  Then when gdb runs /bin/tar it will actually get
/lib/ld-2.3.so.

The easiest way to fix this is to just make a chroot with GDB in it...

-- 
Daniel Jacobowitz
MontaVista Software                         Debian GNU/Linux Developer


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