From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32029 invoked by alias); 20 Jun 2006 13:42:00 -0000 Received: (qmail 32020 invoked by uid 22791); 20 Jun 2006 13:42:00 -0000 X-Spam-Check-By: sourceware.org Received: from Unknown (HELO brical.or.uni-bonn.de) (131.220.141.99) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 20 Jun 2006 13:41:58 +0000 Received: from wse04.or.uni-bonn.de (bg-1.or.uni-bonn.de [131.220.141.100]) by brical.or.uni-bonn.de (Postfix) with ESMTP id BF3F9AC9B for ; Tue, 20 Jun 2006 15:57:32 +0200 (CEST) Received: from [131.220.143.226] (unknown [131.220.143.226]) by wse04.or.uni-bonn.de (Postfix) with ESMTP id 4C0A5E95E for ; Tue, 20 Jun 2006 15:43:43 +0200 (CEST) From: Christoph Bartoschek 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 User-Agent: KMail/1.9.3 References: <200606191719.00530.bartoschek@or.uni-bonn.de> <200606201524.45099.bartoschek@or.uni-bonn.de> <20060620132737.GA21951@nevyn.them.org> In-Reply-To: <20060620132737.GA21951@nevyn.them.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200606201542.12070.bartoschek@or.uni-bonn.de> 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/msg00146.txt.bz2 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