[DynInst_API:] [dyninst/dyninst] f7e262: Fix wrong handling for PTRACE_EVENT_EXIT in procco...


Date: Wed, 28 Nov 2018 14:16:50 -0800
From: Xiaozhu Meng <xmeng@xxxxxxxxxxx>
Subject: [DynInst_API:] [dyninst/dyninst] f7e262: Fix wrong handling for PTRACE_EVENT_EXIT in procco...
  Branch: refs/heads/master
  Home:   https://github.com/dyninst/dyninst
  Commit: f7e262e3788b6fcaa61f1660ad5cdfe4c1adfd00
      https://github.com/dyninst/dyninst/commit/f7e262e3788b6fcaa61f1660ad5cdfe4c1adfd00
  Author: Xiaozhu Meng <xmeng@xxxxxxxxxxx>
  Date:   2018-11-28 (Wed, 28 Nov 2018)

  Changed paths:
    M proccontrol/src/linux.C

  Log Message:
  -----------
  Fix wrong handling for PTRACE_EVENT_EXIT in proccontrol. Currently, each time we see PTRACE_EVENT_EXIT, we assume the mutatee exited normally. However, this is a wrong assumption. Based on the man page of PTRACE:

PTRACE_EVENT_EXIT will happen before actual death,  This applies to exits via
exit(2), exit_group(2), and signal deaths

PTRACE_EVENT_EXIT will also be delivered to proccontrol when the mutatee
died of crashes/signals. So, we need to check whether the waitpid status
represents a normal exit or a signal exit



      **NOTE:** This service has been marked for deprecation: https://developer.github.com/changes/2018-04-25-github-services-deprecation/

      Functionality will be removed from GitHub.com on January 31st, 2019.
[← Prev in Thread] Current Thread [Next in Thread→]
  • [DynInst_API:] [dyninst/dyninst] f7e262: Fix wrong handling for PTRACE_EVENT_EXIT in procco..., Xiaozhu Meng <=