From 4f5f558d3810348126ff651492849eaf748ccc2a Mon Sep 17 00:00:00 2001 From: Andreas Gampe <agampe@google.com> Date: Thu, 22 Jun 2017 19:45:53 -0700 Subject: [PATCH] Debuggerd: Extend crash_dump timeout to 5 seconds Some processes have lots of threads and minidebug-info. Unwinding these can take more than the original two seconds. Bug: 62828735 Test: m Test: debuggerd_test Test: adb shell kill -s 6 `pid system_server` Merged-In: I0041bd01753135ef9d86783a3c6a5cbca1c5bbad Change-Id: I0041bd01753135ef9d86783a3c6a5cbca1c5bbad (cherry picked from commit b02851a984391d25bfc5b3094f281432906b47ed) --- debuggerd/crash_dump.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/debuggerd/crash_dump.cpp b/debuggerd/crash_dump.cpp index 355cb22251..0a29844b61 100644 --- a/debuggerd/crash_dump.cpp +++ b/debuggerd/crash_dump.cpp @@ -267,7 +267,10 @@ int main(int argc, char** argv) { } // Die if we take too long. - alarm(2); + // + // Note: processes with many threads and minidebug-info can take a bit to + // unwind, do not make this too small. b/62828735 + alarm(5); std::string attach_error; -- GitLab