Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(148)

Unified Diff: components/crash/content/browser/crash_handler_host_linux.h

Issue 2169063002: Add retry logic for FindThreadIDWithSyscall() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed ASAN Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | components/crash/content/browser/crash_handler_host_linux.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/crash/content/browser/crash_handler_host_linux.h
diff --git a/components/crash/content/browser/crash_handler_host_linux.h b/components/crash/content/browser/crash_handler_host_linux.h
index 4052d639d84ba288c29981db6bdd95567cd76298..efb7520b353cb214d9ad5af6c8ceba15ba8fb9b6 100644
--- a/components/crash/content/browser/crash_handler_host_linux.h
+++ b/components/crash/content/browser/crash_handler_host_linux.h
@@ -15,6 +15,7 @@
#include "base/macros.h"
#include "base/message_loop/message_loop.h"
#include "base/threading/sequenced_worker_pool.h"
+#include "components/crash/content/app/breakpad_linux_impl.h"
namespace base {
class Thread;
@@ -71,6 +72,19 @@ class CrashHandlerHostLinux : public base::MessageLoopForIO::Watcher,
// Continue OnFileCanReadWithoutBlocking()'s work on the IO thread.
void QueueCrashDumpTask(std::unique_ptr<BreakpadInfo> info, int signal_fd);
+ // Find crashing thread (may delay and retry) and dump on IPC thread.
+ void FindCrashingThreadAndDump(pid_t crashing_pid,
+ const std::string& expected_syscall_data,
+ std::unique_ptr<char[]> crash_context,
+ std::unique_ptr<CrashKeyStorage> crash_keys,
+#if defined(ADDRESS_SANITIZER)
+ std::unique_ptr<char[]> asan_report,
+#endif
+ uint64_t uptime,
+ size_t oom_size,
+ int signal_fd,
+ int attempt);
+
std::string process_type_;
base::FilePath dumps_path_;
#if !defined(OS_ANDROID)
« no previous file with comments | « no previous file | components/crash/content/browser/crash_handler_host_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698