Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit dfa163df authored by Josh Gao's avatar Josh Gao
Browse files

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
parent 033bc9f3
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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;