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

Unified Diff: base/debug/stack_trace_posix.cc

Issue 2315403002: Force crash on Mac10.9- in BreakDebugger() (Closed)
Patch Set: - Created 4 years, 3 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 | « base/debug/debugger_posix.cc ('k') | third_party/WebKit/LayoutTests/TestExpectations » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/debug/stack_trace_posix.cc
diff --git a/base/debug/stack_trace_posix.cc b/base/debug/stack_trace_posix.cc
index 27a656e6caffe7a3efc58fda7c4758b5d7fcdf77..99f40e986e56abf4c0cb724d18d882ca722ade57 100644
--- a/base/debug/stack_trace_posix.cc
+++ b/base/debug/stack_trace_posix.cc
@@ -374,8 +374,8 @@ void StackDumpSignalHandler(int signal, siginfo_t* info, void* void_context) {
PrintToStderr("[end of stack trace]\n");
#if defined(OS_MACOSX) && !defined(OS_IOS)
- if (::signal(signal, SIG_DFL) == SIG_ERR)
dcheng 2016/09/09 05:15:50 Why is this change necessary as well?
Xianzhu 2016/09/09 05:20:13 Without this, the forced crash will be ignored. A
- _exit(1);
+ ::signal(signal, SIG_DFL);
+ _exit(1);
#else
// Non-Mac OSes should probably reraise the signal as well, but the Linux
// sandbox tests break on CrOS devices.
« no previous file with comments | « base/debug/debugger_posix.cc ('k') | third_party/WebKit/LayoutTests/TestExpectations » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698