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, 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
GNU gdb 5.2.1
Copyright 2002 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 "i486-pc-linux-gnu"...
(gdb) run
Starting program: /bin/tar
warning: Cannot initialize thread debugging library: unknown thread_db error '22'
warning: Cannot initialize thread debugging library: unknown thread_db error '22'
/bin/tar: You must specify one of the `-Acdtrux' options
Try `/bin/tar --help' for more information.

Program exited with code 02.
(gdb) info shared
Cannot access memory at address 0x40013e14
(gdb)




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