From 219d0b15c4f71b2030fc81d8f6396b446fff4ce9 Mon Sep 17 00:00:00 2001 From: Lars Volker Date: Fri, 24 Mar 2017 19:57:23 +0100 Subject: [PATCH] Increase maximum number of threads for minidump_stackwalk. BUG= Change-Id: I361d8812df7b2977fe2630289059d31c3c9a4cc3 Reviewed-on: https://chromium-review.googlesource.com/459010 Reviewed-by: Mike Frysinger --- src/processor/minidump_stackwalk.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/processor/minidump_stackwalk.cc b/src/processor/minidump_stackwalk.cc index 8f83969f..650e1efe 100644 --- a/src/processor/minidump_stackwalk.cc +++ b/src/processor/minidump_stackwalk.cc @@ -35,6 +35,7 @@ #include #include +#include #include #include @@ -53,6 +54,7 @@ namespace { using google_breakpad::BasicSourceLineResolver; using google_breakpad::Minidump; +using google_breakpad::MinidumpThreadList; using google_breakpad::MinidumpProcessor; using google_breakpad::ProcessState; using google_breakpad::SimpleSymbolSupplier; @@ -81,6 +83,8 @@ bool PrintMinidumpProcess(const string &minidump_file, BasicSourceLineResolver resolver; MinidumpProcessor minidump_processor(symbol_supplier.get(), &resolver); + // Increase the maximum number of threads. + MinidumpThreadList::set_max_threads(std::numeric_limits::max()); // Process the minidump. Minidump dump(minidump_file); if (!dump.Read()) {