threads/1938: gdb gives incorrect thread numbering and is unstable

Daniel Jacobowitz drow@false.org
Tue May 3 20:58:00 GMT 2005


The following reply was made to PR threads/1938; it has been noted by GNATS.

From: Daniel Jacobowitz <drow@false.org>
To: pje@haystack.mit.edu
Cc: gdb-gnats@sources.redhat.com
Subject: Re: threads/1938: gdb gives incorrect thread numbering and is unstable
Date: Tue, 3 May 2005 16:47:47 -0400

 On Tue, May 03, 2005 at 08:35:44PM -0000, pje@haystack.mit.edu wrote:
 > >Description:
 > When run on a multithreaded program, gdb gives impossibly large
 > negative thread IDs.
 
 No, they are correct.  Thread IDs in NPTL are pointer values.  GDB
 should display them as unsigned, that's all.
 
 >  Additionally, debugging the program often
 > results in segfaults and other stack instabilities.
 
 Your example didn't show any of these.
 
 > gdb ./test_threads
 > GNU gdb Red Hat Linux (6.1post-1.20040607.62rh)
 
 You may want to report bugs in this version of GDB to Red Hat directly.
 
 -- 
 Daniel Jacobowitz
 CodeSourcery, LLC



More information about the Gdb-prs mailing list