This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
SIGTRAP question
- To: gdb at sourceware dot cygnus dot com
- Subject: SIGTRAP question
- From: David Relson <relson at osagesoftware dot com>
- Date: Sat, 10 Mar 2001 14:06:53 -0500
Using gdb 5.0 on my Mandrake 7.2 system (with 2.2.19pre16 kernel on Pentium
III), while trying to debug a multithreaded program, I am encountering the
following:
Program received signal SIGTRAP, Trace/breakpoint trap.
0x4040e17e in sigsuspend () from /lib/libc.so.6
It also happens with gdb 4.18. I haven't been working on this program for
some months and, if I recall correctly, last summer I didn't have this
problem (with 2.2.17, methinks, and likely an earlier glibc).
Anybody know what to do with signal SIGTRAP?
Thanks.
David
P.S. Here's gdb's start message and a stack backtrace of the SIGTRAP signal:
Current directory is /home/relson/src/FUNL/
GNU gdb 5.0
Copyright 2000 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 "i586-mandrake-linux"...
... program running ...
Program received signal SIGTRAP, Trace/breakpoint trap.
0x4040e17e in sigsuspend () from /lib/libc.so.6
(gdb) where
#0 0x4040e17e in sigsuspend () from /lib/libc.so.6
#1 0x403c11a0 in pthread_setconcurrency () from /lib/libpthread.so.0
#2 0x403bdb20 in pthread_cond_wait () from /lib/libpthread.so.0
#3 0x402c53a8 in __objc_condition_wait ()
from /usr/GNUstep/System/Libraries/libobjc.so.0
#4 0x402c59cf in objc_condition_wait ()
from /usr/GNUstep/System/Libraries/libobjc.so.0
#5 0x401c1f8a in _i_NSConditionLock__lockWhenCondition_ (self=0x8237d90,
_cmd=0x8167ec0, value=2) at NSLock.m:272
#6 0x80a7a56 in _i_FUNL_Server__waitForExit (self=0x81bb870, _cmd=0x8167ac0)
at FUNL_Server.m:1415
#7 0x80a53db in _i_FUNL_Server__runThreaded (self=0x81bb870, _cmd=0x8167958)
at FUNL_Server.m:1130
#8 0x80a4567 in _i_FUNL_Server__doit (self=0x81bb870, _cmd=0x8167c18)
at FUNL_Server.m:952
#9 0x80a61ba in _i_FUNL_Server___runAsServer (self=0x81bb870, _cmd=0x81678b0)
at FUNL_Server.m:1217
#10 0x80a3fb0 in _i_FUNL_Server__run (self=0x81bb870, _cmd=0x81778a0)
at FUNL_Server.m:895
#11 0x80e6825 in gs_main (argc=15, argv=0x8177678) at GS_main.m:95
#12 0x80e5f50 in main (argc=3, argv=0xbffff4a4) at FUNL_main.m:95
#13 0x40407cbe in __libc_start_main () from /lib/libc.so.6
--------------------------------------------------------
David Relson Osage Software Systems, Inc.
relson@osagesoftware.com Ann Arbor, MI 48103
www.osagesoftware.com tel: 734.821.8800