From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32073 invoked by alias); 6 Mar 2007 16:58:49 -0000 Received: (qmail 32065 invoked by uid 22791); 6 Mar 2007 16:58:49 -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, 06 Mar 2007 16:58:43 +0000 Received: from dsl093-172-095.pit1.dsl.speakeasy.net ([66.93.172.95] helo=caradoc.them.org) by nevyn.them.org with esmtp (Exim 4.63) (envelope-from ) id 1HOczp-0004Mr-5N; Tue, 06 Mar 2007 11:58:41 -0500 Received: from drow by caradoc.them.org with local (Exim 4.63) (envelope-from ) id 1HOczo-0001a2-RM; Tue, 06 Mar 2007 11:58:40 -0500 Date: Tue, 06 Mar 2007 16:58:00 -0000 From: Daniel Jacobowitz To: Richard van der Hoff Cc: gdb@sourceware.org Subject: Re: Backtrace not working from within nanosleep Message-ID: <20070306165840.GA6029@caradoc.them.org> Mail-Followup-To: Richard van der Hoff , gdb@sourceware.org References: <45ED99E9.8050404@mxtelecom.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <45ED99E9.8050404@mxtelecom.com> User-Agent: Mutt/1.5.13 (2006-08-11) X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2007-03/txt/msg00089.txt.bz2 On Tue, Mar 06, 2007 at 04:42:17PM +0000, Richard van der Hoff wrote: > The stack looks fine - it just looks like gdb can't unwind it. Any ideas > what might be the problem here? > > I have: > > Linux kernel 2.4.26 > GNU gdb 6.6 > gcc (GCC) 3.3.4 > glibc-2.3.6 LinuxThreads, presumably, since this is 2.4.x. That means it is fairly likely that you do not have unwind tables for nanosleep, so GDB is unable to reason its way out. I believe this is fixed if you use glibc 2.5, but I'm not completely sure of that. -- Daniel Jacobowitz CodeSourcery