From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23154 invoked by alias); 20 Jun 2006 13:27:43 -0000 Received: (qmail 23105 invoked by uid 22791); 20 Jun 2006 13:27:43 -0000 X-Spam-Check-By: sourceware.org Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.31.1) with ESMTP; Tue, 20 Jun 2006 13:27:40 +0000 Received: from drow by nevyn.them.org with local (Exim 4.54) id 1FsgGX-0005ip-QB; Tue, 20 Jun 2006 09:27:37 -0400 Date: Tue, 20 Jun 2006 13:28:00 -0000 From: Daniel Jacobowitz To: Christoph Bartoschek Cc: gdb@sourceware.org Subject: Re: Cannot fetch general-purpose registers for thread 1342445920: generic error Message-ID: <20060620132737.GA21951@nevyn.them.org> Mail-Followup-To: Christoph Bartoschek , gdb@sourceware.org References: <200606191719.00530.bartoschek@or.uni-bonn.de> <200606201456.57681.bartoschek@or.uni-bonn.de> <20060620130932.GA21490@nevyn.them.org> <200606201524.45099.bartoschek@or.uni-bonn.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200606201524.45099.bartoschek@or.uni-bonn.de> User-Agent: Mutt/1.5.11+cvs20060403 X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2006-06/txt/msg00144.txt.bz2 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