bug-glibc
[Top][All Lists]
Advanced

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

Re: bug in useldt.h


From: Felipe Contreras
Subject: Re: bug in useldt.h
Date: Wed, 5 Dec 2001 20:37:01 -0600
User-agent: Mutt/1.3.24i

I debuged the 'ls' that segfaults

The message:
============
0x4015954a in __pthread_alt_lock () from /lib/libpthread.so.0

The segfault comes here:
========================
0x4015954a <__pthread_alt_lock+26>:     mov    %gs:0x0,%eax

The gs register:
================
gs             0x0      0

The backtrace:
==============
#0  0x4015954a in __pthread_alt_lock () from /lib/libpthread.so.0
#1  0x401568d5 in pthread_mutex_lock () from /lib/libpthread.so.0
#2  0x4012ae23 in __register_frame_info (begin=0x40014c94, ob=0x0)
    at ../../gcc-2.95.3/gcc/frame.c:627
#3  0x400466c2 in init () from /lib/libc.so.6
#4  0x4000b797 in call_init () from /lib/ld-linux.so.2
#5  0x4000b8ee in _dl_init () from /lib/ld-linux.so.2

After that I remember I saw programs segfaulting only when they were linked to
'rt' and 'pthread', so I did a simple test program and compiled against those
libraries and it segfaulted.

After some tries linking with some libraries I found that the problem comes
when compiling against 'pthread'.

The program that failed: int main() { return 0; }

Compiled with: gcc tmp.c -o tmp -lpthread

Debugging it I found the same results. It runs on my normal system, but with
the new glibc it segfaults.

When runing the testsuite some tests failed, and all of the tests in
libpthreads failed.



reply via email to

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