Did the fix for recycled thread ids uncover another bug?

Paul Gilliam pgilliam@us.ibm.com
Tue Jun 15 18:01:00 GMT 2004


On Monday 14 June 2004 16:22, Daniel Jacobowitz wrote:
> On Mon, Jun 14, 2004 at 04:17:47PM -0700, Paul Gilliam wrote:
> > I will post a follow-up with the details if someone tells me this is the
> > right mail-list.
>
> I already did...

I have done some more homework and found that the problem is with 6.1 and 
seems to be fixed in 6.1.0.90_2004-06-15-cvs (I just tried it).  This is all 
on the PowerPC.

So now I need to find a patch for 6.1 that will fix this.

I have attached four files: the first is the test case, tbug.c; two are 
transcripts from gdb 6.1 (with some back-porting) for ppc-32 and for ppc-64; 
the last is a transcript from gdb 6.1.0.90_2004-06-15-cvs for ppc-32..

'tbug' starts two threads, each using the same thread function which just 
waits a few seconds and returns.  Set a break-point in 'tf' (the thread 
function) and run.  In the 64-bit case, everything works as expected.  In the 
32 bit case, we get a message 'reading register pc (#64): No such process' 
and then we're hosed.

Thanks for any help,

-=# Paul Gilliam #=-
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gdb-6.1-ppc32-tbug.log
Type: text/x-log
Size: 1659 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/gdb/attachments/20040615/97d8e816/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gdb-6.1-ppc64-tbug.log
Type: text/x-log
Size: 1952 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/gdb/attachments/20040615/97d8e816/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gdb-cvs-top-ppc32-tbug.log
Type: text/x-log
Size: 1177 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/gdb/attachments/20040615/97d8e816/attachment-0002.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tbug.c
Type: text/x-csrc
Size: 1000 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/gdb/attachments/20040615/97d8e816/attachment-0003.bin>


More information about the Gdb mailing list