This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: Cannot fetch general-purpose registers for thread 1342445920: generic error
On Tue, Jun 20, 2006 at 03:24:44PM +0200, Christoph Bartoschek wrote:
> Ok, here is a transcript of a session:
So: attach to a running process, continue for a while, then when it
creates threads gdb breaks.
> Program received signal SIGUSR2, User defined signal 2.
> 0x00002aaaaacd1189 in raise () from /lib64/tls/libpthread.so.0
> (gdb)
> Continuing.
> [New Thread 1342445920 (LWP 3980)]
> [Thread 1342445920 (LWP 3980) exited]
> [New Thread 1342445920 (LWP 3981)]
> [Thread 1342445920 (LWP 3981) exited]
> [New Thread 1141119328 (LWP 3982)]
> [Thread 1141119328 (LWP 3982) exited]
> Cannot fetch general-purpose registers for thread 1141119328: generic error
> (gdb)
That thread's already "exited". Hmm. Is your application continuing
to receive asynchronous signals at this point? i.e. is it possible
that we stopped while the thread was exiting, because of a SIGUSR2?
--
Daniel Jacobowitz
CodeSourcery