public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug gdb/18749] New: problems if whole process dies while (ptrace-) stopped
@ 2015-07-31 11:18 palves at redhat dot com
  2015-07-31 11:18 ` [Bug gdb/18749] " palves at redhat dot com
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: palves at redhat dot com @ 2015-07-31 11:18 UTC (permalink / raw)
  To: gdb-prs

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

            Bug ID: 18749
           Summary: problems if whole process dies while (ptrace-) stopped
           Product: gdb
           Version: HEAD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: gdb
          Assignee: unassigned at sourceware dot org
          Reporter: palves at redhat dot com
  Target Milestone: ---

Between fetching a thread stop event (on Linux, after waitpid returns a stop)
and fully handling the event (e.g., all the way evaluating a breakpoint
condition and reresuming if it evals false), some other thread that is still
running may cause the whole process to exit.  Usually in such a situation, the
lower level code that tries to access memory or registers throws an error
(usually a perror_with_name/ESRCH), and many code paths in GDB don't expect
this, resulting in a broken debug session.

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


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-01-03 14:49 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-07-31 11:18 [Bug gdb/18749] New: problems if whole process dies while (ptrace-) stopped palves at redhat dot com
2015-07-31 11:18 ` [Bug gdb/18749] " palves at redhat dot com
2015-08-21 19:13 ` cvs-commit at gcc dot gnu.org
2024-01-03 14:49 ` ssbssa at sourceware dot org

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).