[Bug gdb/24461] detached inferior turns into zombie after exit

vries at gcc dot gnu.org sourceware-bugzilla@sourceware.org
Wed Apr 17 17:24:00 GMT 2019


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

--- Comment #2 from Tom de Vries <vries at gcc dot gnu.org> ---
This looks relevant:
...
static struct lwp_info *
linux_nat_filter_event (int lwpid, int status)
{
   ...
  /* Make sure we don't report an event for the exit of an LWP not in           
     our list, i.e. not part of the current process.  This can happen           
     if we detach from a program we originally forked and then it               
     exits.  */
  if (!WIFSTOPPED (status) && !lp)
    return NULL;
...

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


More information about the Gdb-prs mailing list