bugThe GNU Hurd - Bugs: bug #29642, gdb: breakpoints in triggered in...

 
 

bug #29642: gdb: breakpoints in triggered in other threads result in SIGTRAP

Submitted by:  Carl Fredrik Hammar <hammy>
Submitted on:  Thu 22 Apr 2010 02:38:30 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Priority: 5 - NormalItem Group: None
Status: NonePrivacy: Public
Assigned to: NoneOriginator Name: 
Open/Closed: OpenReproducibility: None
Size (loc): NonePlanned Release: None
Effort: 0.00
Wiki-like text discussion box: 

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Fri 23 Apr 2010 09:21:05 AM UTC, comment #2:

Yes, it is reproducible with cthreads.
In fact, I encountered the bug while debugging a cthreads program.
(I knew I forgot to mention something...)

I just now also confirmed that it is reproducible with a minimal example
to make sure it wasn't something particular to that program.

Carl Fredrik Hammar <hammy>
Project Member
Fri 23 Apr 2010 07:29:34 AM UTC, comment #1:

Is this reproducable with the equivalent cthreads code? It may well be that we have to teach GDB about pthreads.

Thomas Schwinge <tschwinge>
Project Administrator
Thu 22 Apr 2010 02:38:30 PM UTC, original submission:

When debugging a multithreaded program with gdb, breakpoints triggered in
separate threads results in a SIGTRAP as if it was a regular terminating
signal. For instance, with the program:

the bug can be like this:

There are no problems when all the breakpoints are in main(). I have
only tested with gdb 7.0.1-2 from Debian.

Carl Fredrik Hammar <hammy>
Project Member

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by tschwinge (Posted a comment)
  • -unavailable- added by hammy (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    No Changes Have Been Made to This Item

    Back to the top


    Powered by Savane 3.1-cleanup