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
This commit is contained in:
Josh Gao 2016-03-25 13:22:05 -07:00
parent 033bc9f3e7
commit dfa163df50
1 changed files with 1 additions and 0 deletions

View File

@ -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;