This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


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

SIGTRAP problem


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
(... snipped ...)
#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


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