summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Gampe2017-06-22 21:45:53 -0500
committerAndreas Gampe2017-06-22 22:19:11 -0500
commitb02851a984391d25bfc5b3094f281432906b47ed (patch)
treebcfb2f0fee2aa88cc7e5843cfe98ef7407f16804 /debuggerd
parent26cbafb89277415109706bdd0b0813a439c2d0dc (diff)
downloadplatform-system-core-b02851a984391d25bfc5b3094f281432906b47ed.tar.gz
platform-system-core-b02851a984391d25bfc5b3094f281432906b47ed.tar.xz
platform-system-core-b02851a984391d25bfc5b3094f281432906b47ed.zip
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` Change-Id: I0041bd01753135ef9d86783a3c6a5cbca1c5bbad
Diffstat (limited to 'debuggerd')
-rw-r--r--debuggerd/crash_dump.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/debuggerd/crash_dump.cpp b/debuggerd/crash_dump.cpp
index df7201df3..4b1e51dde 100644
--- a/debuggerd/crash_dump.cpp
+++ b/debuggerd/crash_dump.cpp
@@ -282,7 +282,10 @@ int main(int argc, char** argv) {
282 ATRACE_NAME("after reparent"); 282 ATRACE_NAME("after reparent");
283 283
284 // Die if we take too long. 284 // Die if we take too long.
285 alarm(2); 285 //
286 // Note: processes with many threads and minidebug-info can take a bit to
287 // unwind, do not make this too small. b/62828735
288 alarm(5);
286 289
287 std::string attach_error; 290 std::string attach_error;
288 291