public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
From: Christoph Bartoschek <bartoschek@or.uni-bonn.de>
To: gdb@sourceware.org
Subject: Re: Cannot fetch general-purpose registers for thread 1342445920: generic error
Date: Tue, 20 Jun 2006 16:21:00 -0000	[thread overview]
Message-ID: <200606201542.12070.bartoschek@or.uni-bonn.de> (raw)
In-Reply-To: <20060620132737.GA21951@nevyn.them.org>

Am Dienstag, 20. Juni 2006 15:27 schrieb Daniel Jacobowitz:
> 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?

The SIGUSR2 are only emitted when a new .dll is loaded to give the user the 
opportunity to set breakpoints. However when the new threads are starting 
loading of libraries has finished and no new SIGUSR2 are generated anymore. 
Additionally the application does not start any child here such that no 
SIGCHLD is possible.

Normally I would say that no asynchronous signals are sent to the application 
after the last SIGUSR2. 

BTW, thread 1141119328 has been finished after an exception has been caught in 
the function given to pthread_create. Normally this should be no problem.

Christoph Bartoschek

  reply	other threads:[~2006-06-20 13:42 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-06-19 17:35 Christoph Bartoschek
2006-06-20 12:33 ` Daniel Jacobowitz
2006-06-20 13:00   ` Christoph Bartoschek
2006-06-20 13:20     ` Daniel Jacobowitz
2006-06-20 13:27       ` Christoph Bartoschek
2006-06-20 13:28         ` Daniel Jacobowitz
2006-06-20 16:21           ` Christoph Bartoschek [this message]
     [not found]             ` <20060620135351.GA9853@host0.dyn.jankratochvil.net>
2006-06-20 16:27               ` [filtered] " Christoph Bartoschek
2006-09-01  0:14 Chuck Simmons
2006-09-01  0:20 ` Daniel Jacobowitz
2006-09-01 12:24   ` Alex Bligh

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200606201542.12070.bartoschek@or.uni-bonn.de \
    --to=bartoschek@or.uni-bonn.de \
    --cc=gdb@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).