public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug breakpoints/17103] New: gdb ignores next when system() is called from pthread
@ 2014-06-30 19:52 dansmith at riseup dot net
  0 siblings, 0 replies; only message in thread
From: dansmith at riseup dot net @ 2014-06-30 19:52 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=17103

            Bug ID: 17103
           Summary: gdb ignores next when system() is called from pthread
           Product: gdb
           Version: 7.5
            Status: NEW
          Severity: normal
          Priority: P2
         Component: breakpoints
          Assignee: unassigned at sourceware dot org
          Reporter: dansmith at riseup dot net

Created attachment 7664
  --> https://sourceware.org/bugzilla/attachment.cgi?id=7664&action=edit
a minimal example which triggers the bug

A combination of system() call and pthread triggers some weird behaviour.
A minimal example is attached.
Start with a breakpoint on top of main and keep doing "next" until gdb ignores
the next and acts as if "continue" was used. 

compile with g++ -g gdbbug.cpp -lpthread -o gdbbug

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2014-06-30 19:52 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-06-30 19:52 [Bug breakpoints/17103] New: gdb ignores next when system() is called from pthread dansmith at riseup dot net

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).