diff options
author | Josh Gao | 2017-01-22 19:41:15 -0600 |
---|---|---|
committer | Josh Gao | 2017-01-23 13:34:49 -0600 |
commit | 575941115e46a60d4e41dfa5336572c603917a29 (patch) | |
tree | 0b1be6fcd5223fe7044276442e3f809260a5c57d /debuggerd/handler | |
parent | d20d687de57b989495f4826450ac79910a4686dc (diff) | |
download | platform-system-core-575941115e46a60d4e41dfa5336572c603917a29.tar.gz platform-system-core-575941115e46a60d4e41dfa5336572c603917a29.tar.xz platform-system-core-575941115e46a60d4e41dfa5336572c603917a29.zip |
crash_dump: clear the default crash handlers.
crash_dump is a dynamic executable that gets the default crash dumping
handlers set by the linker. Turn them off to prevent crash_dump from
dumping itself.
Bug: http://b/34472671
Test: inserted an abort into crash_dump
Change-Id: Ic9d708805ad47afbb2a9ff37e2ca059f23f421de
Diffstat (limited to 'debuggerd/handler')
-rw-r--r-- | debuggerd/handler/debuggerd_handler.cpp | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/debuggerd/handler/debuggerd_handler.cpp b/debuggerd/handler/debuggerd_handler.cpp index 83db3a745..c031046f2 100644 --- a/debuggerd/handler/debuggerd_handler.cpp +++ b/debuggerd/handler/debuggerd_handler.cpp | |||
@@ -367,15 +367,5 @@ void debuggerd_init(debuggerd_callbacks_t* callbacks) { | |||
367 | 367 | ||
368 | // Use the alternate signal stack if available so we can catch stack overflows. | 368 | // Use the alternate signal stack if available so we can catch stack overflows. |
369 | action.sa_flags |= SA_ONSTACK; | 369 | action.sa_flags |= SA_ONSTACK; |
370 | 370 | debuggerd_register_handlers(&action); | |
371 | sigaction(SIGABRT, &action, nullptr); | ||
372 | sigaction(SIGBUS, &action, nullptr); | ||
373 | sigaction(SIGFPE, &action, nullptr); | ||
374 | sigaction(SIGILL, &action, nullptr); | ||
375 | sigaction(SIGSEGV, &action, nullptr); | ||
376 | #if defined(SIGSTKFLT) | ||
377 | sigaction(SIGSTKFLT, &action, nullptr); | ||
378 | #endif | ||
379 | sigaction(SIGTRAP, &action, nullptr); | ||
380 | sigaction(DEBUGGER_SIGNAL, &action, nullptr); | ||
381 | } | 371 | } |