GDB problems with pthread_join()

Jeff Kenton jkenton@tilera.com
Mon Oct 24 21:06:00 GMT 2011


I have gdb-7.1 mostly working on our two processors (one is 32-bit, the 
other 64-bit).  With a trivial pthread program running under GDB with no 
breakpoints set, it runs to completion on one machine (32-bit) but hangs 
on the other with:

Program received signal SIGTRAP, Trace/breakpoint trap.
[Switching to Thread 0xaaab54f200 (LWP 721)]
0x000000aaaab09e58 in pthread_join (threadid=733018911232, 
thread_return=0x0)
     at pthread_join.c:89

The SIGTRAP could be GDB's hook into the pthread library but I'm not 
sure.  Other SIGTRAPs succeed happily (traced with set debug infrun 1).

Any clues? Anyone seen this before? Thoughts besides "sounds nasty and 
you'll have to figure it out yourself"?

Thanks.

--jeff



More information about the Gdb mailing list