Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* Program terminated by SIGTRAP in gdb
@ 2009-01-15  0:37 Albert Fu
  2009-01-15  2:08 ` teawater
  2009-01-16  2:06 ` Paul Pluzhnikov
  0 siblings, 2 replies; 6+ messages in thread
From: Albert Fu @ 2009-01-15  0:37 UTC (permalink / raw)
  To: gdb

Hi,

I am new to debug a multi-thread program in gdb on my target.

The program is terminated when it calls sem_wait().
I browsed the gdb mailing list and didn't find an answer to my problem.

######################
Program received signal SIGTRAP, Trace/breakpoint trap.
0x0fe2ba28 in sigsuspend () from /lib/libc.so.6
(gdb) bt
#0  0x0fe2ba28 in sigsuspend () from /lib/libc.so.6
#1  0x0fd91094 in pthread_getconcurrency () from /lib/libpthread.so.0
#2  0x0fd920f0 in sem_wait () from /lib/libpthread.so.0
#3  0x10016428 in main (argc=2, argv=0x7ffffdf4) at main.c:7361
(gdb) info threads
(gdb) info sharedlibrary
From        To          Syms Read   Shared Object Library
0x0fe15aa0  0x0ff1dd20  Yes         /lib/libc.so.6
0x0fd8d0c0  0x0fd95d2c  Yes         /lib/libpthread.so.0
0x30001f60  0x30013980  Yes         /lib/ld.so.1
0x0fd6006c  0x0fd67a6c  No          /lib/libnss_files.so.2
(gdb)
######################

Could you tell me why the program is supspended? Is the problem
in the C library?

I would really appreciate it if anyone could give me some advices.

Thanks.

Best regards,

Albert


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2009-01-16 23:34 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-01-15  0:37 Program terminated by SIGTRAP in gdb Albert Fu
2009-01-15  2:08 ` teawater
2009-01-16  2:06 ` Paul Pluzhnikov
2009-01-16 19:05   ` Albert Fu
2009-01-16 20:13     ` Paul Pluzhnikov
     [not found]       ` <966c7c700901161513o6bca18dbx5ad35a1924b41130@mail.gmail.com>
2009-01-16 23:34         ` Paul Pluzhnikov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox