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


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Christoph Lameter wrote:
> Ok. The segfault is in libpthread. Sorry about the ASM but I
> have no idea how to get more information off the binary. Seems that a
> pointer is out of bounds:
> 
> 0x40148020:     push   %ebp
> 0x40148021:     push   %ebx
> 0x40148022:     push   %edx
> 0x40148023:     call   0x4014818e
> 0x40148028:     add    $0x6b80,%ebx
> 0x4014802e:     mov    0x1e4(%ebx),%eax
> 0x40148034:     mov    %ebp,%edx
> 0x40148036:     cmp    (%eax),%ebp
> 0x40148038:     jb     0x4014804c
> 0x4014803a:     mov    0x230(%ebx),%eax
> 0x40148040:     mov    0x1b8(%eax),%eax    <- Segfault
> 0x40148046:     add    $0x4,%esp
> 0x40148049:     pop    %ebx
> 0x4014804a:     pop    %ebp
> 0x4014804b:     ret
> 0x4014804c:     mov    0x1d4(%ebx),%eax
> 
> eax            0x401ffbe0       1075837920

You need to do a bit more:

- - run 'readelf -s /home/christoph/t/lib/libpthread.so.0'

- - run 'cat /proc/<PID>/maps' while gdb stopped the process when it
crashed.  <PID> must be the PID of the process and not that of gdb itself.

- -- 
- --------------.                        ,-.            444 Castro Street
Ulrich Drepper \    ,-----------------'   \ Mountain View, CA 94041 USA
Red Hat         `--' drepper at redhat.com `---------------------------
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQE9nybW2ijCOnn/RHQRAsauAJ9Pyp0hV/fFaXz9byR48tjVRVmUPACgxCvE
iBDnvwWg7FRRM93KCxv1UoQ=
=Gb4N
-----END PGP SIGNATURE-----


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