This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug gdb/18749] New: problems if whole process dies while (ptrace-) stopped


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]