Discussion:
[DynInst_API:] [dyninst/dyninst] f7e262: Fix wrong handling for PTRACE_EVENT_EXIT in procco...
Xiaozhu Meng
2018-11-28 22:16:50 UTC
Permalink
Branch: refs/heads/master
Home: https://github.com/dyninst/dyninst
Commit: f7e262e3788b6fcaa61f1660ad5cdfe4c1adfd00
https://github.com/dyninst/dyninst/commit/f7e262e3788b6fcaa61f1660ad5cdfe4c1adfd00
Author: Xiaozhu Meng <***@cs.wisc.edu>
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.
Loading...