This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
gdb / glibc querry
- To: gdb at sources dot redhat dot com
- Subject: gdb / glibc querry
- From: Ranjan Parthasarathy <Ranjan dot Parthasarathy at efi dot com>
- Date: Thu, 27 Sep 2001 05:17:58 -0700
I am working on a pthreads aware gdbserver with an implementation as done in
gdb.
I have a working release however occasionally my gdbserver causes a thread to
die reporting a SIGSEGV in __DTOR_END__ . This is somewhat random and I do
not get such an error in many programs but only in certain cases but
reproducable in all such cases.
Also I found that the __DTOR_END__ is declared in some file in glibc. What is
the purpose of that and how is it used.
Any information will be really helpful
Thanks
Ranjan
------------------ Crash dump
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 14942]
0x40037342 in __DTOR_END__ () from /lib/libpthread.so.0
(gdb) info threads
11 Thread 14951 remote_fetch: 8
0x4006597e in sigsuspend () from /lib/libc.so.6
10 Thread 14950 remote_fetch: 8
0x080484f0 in thread6 (v=0x0) at /root/test/test-glibc.c:29
9 Thread 14949 remote_fetch: 8
0x080485c0 in thread5 (v=0x0) at /root/test/test-glibc.c:49
8 Thread 14948 remote_fetch: 8
0x080484d0 in thread4 (v=0x0) at /root/test/test-glibc.c:25
7 Thread 14947 remote_fetch: 8
0x08048570 in thread9 (v=0x0) at /root/test/test-glibc.c:42
6 Thread 14946 remote_fetch: 8
thread3 (v=0x0) at /root/test/test-glibc.c:21
5 Thread 14944 remote_fetch: 8
0x08048654 in thread2 (v=0x0) at /root/test/test-glibc.c:62
4 Thread 14943 remote_fetch: 8
0x080485f0 in thread1 (v=0x0) at /root/test/test-glibc.c:55
* 3 Thread 14942 remote_fetch: 8
0x40037342 in __DTOR_END__ () from /lib/libpthread.so.0
2 Thread 14940 remote_fetch: 8
main () at /root/test/test-glibc.c:74
1 Thread 14945 remote_fetch: 8
thread8 (v=0x0) at /root/test/test-glibc.c:38
-------------------------------------------------------