diff options
author | Josh Gao <jmgao@google.com> | 2016-03-25 13:22:05 -0700 |
---|---|---|
committer | Josh Gao <jmgao@google.com> | 2016-03-25 14:34:22 -0700 |
commit | dfa163df500ca71b71be315aa55e8859c946d0fb (patch) | |
tree | ca8c6ee3a6e6d7f7cd563c424a7b16f098d90614 /debuggerd/debuggerd.cpp | |
parent | 033bc9f3e7175ece714c13258c2385d503c35dc8 (diff) |
debuggerd: add SIGSYS to the list of handled signals.
Processes using seccomp will get SIGSYS when attempting to use a
disallowed syscall. We're currently not handling SIGSYS in bionic's
signal handler, but this change will let us dump a backtrace pointing at
rt_tgsigqueueinfo in our signal handler if seccomp policies block it
during a real crash.
Bug: http://b/27853687
Change-Id: I4e4aacc95eeef7249d895e19dc4ccd77a51c7a17
Diffstat (limited to 'debuggerd/debuggerd.cpp')
-rw-r--r-- | debuggerd/debuggerd.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/debuggerd/debuggerd.cpp b/debuggerd/debuggerd.cpp index 842bf0968..12f507a79 100644 --- a/debuggerd/debuggerd.cpp +++ b/debuggerd/debuggerd.cpp @@ -415,6 +415,7 @@ static bool perform_dump(const debugger_request_t& request, int fd, int tombston #ifdef SIGSTKFLT case SIGSTKFLT: #endif + case SIGSYS: case SIGTRAP: ALOGV("stopped -- fatal signal\n"); *crash_signal = signal; |