From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23017 invoked by alias); 27 May 2005 19:30:28 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 23000 invoked by uid 22791); 27 May 2005 19:30:23 -0000 Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Fri, 27 May 2005 19:30:23 +0000 Received: from drow by nevyn.them.org with local (Exim 4.50) id 1DbkXG-00051r-7q for gdb@sources.redhat.com; Fri, 27 May 2005 15:30:22 -0400 Date: Fri, 27 May 2005 19:30:00 -0000 From: Daniel Jacobowitz To: gdb@sources.redhat.com Subject: Re: thread apply all - not working? Message-ID: <20050527193022.GA19269@nevyn.them.org> Mail-Followup-To: gdb@sources.redhat.com References: <20050527184645.GA59006@keyslapper.net> <20050527191534.GA18636@nevyn.them.org> <20050527192506.GE59006@keyslapper.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050527192506.GE59006@keyslapper.net> User-Agent: Mutt/1.5.8i X-SW-Source: 2005-05/txt/msg00355.txt.bz2 On Fri, May 27, 2005 at 03:25:06PM -0400, Louis LeBlanc wrote: > On 05/27/05 03:15 PM, Daniel Jacobowitz sat at the `puter and typed: > > On Fri, May 27, 2005 at 02:46:46PM -0400, Louis LeBlanc wrote: > > > I'm having trouble getting stack traces on all threads from a core file. > > > > > > I was under the impression that "thread apply all bt" should get it, but > > > I only get the last thread. > > > > > > I am using GNU gdb 6.3.0.20050516-cvs on Solaris. The core was > > > generated by an app built with gcc 3.3. > > > > > > Am I missing something? > > > > Does info threads show multiple threads? If not, either the core dump > > only contains one thread, or GDB does not know how to extract threads > > from a core dump on Solaris - I think this used to work, but I don't > > know if it has been tried lately. > > > Of course, there are 104 threads in this particular core, and the app is > configured to run up to 500. The command I am trying gives me thread > 104, but no others. I am able to get stack traces if I explicity select > them one at a time, but with up to 500 threads, you can imagine how much > fun this will be . . . OK, that's progress. Please show me the entire output of 'thread apply all bt'. -- Daniel Jacobowitz CodeSourcery, LLC