| 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..2ce584059227056f77c106f15a16a91e6e3e0894 100644
|
| --- a/base/debug/stack_trace_posix.cc
|
| +++ b/base/debug/stack_trace_posix.cc
|
| @@ -221,10 +221,11 @@ void StackDumpSignalHandler(int signal, siginfo_t* info, void* void_context) {
|
| if (BeingDebugged())
|
| BreakDebugger();
|
|
|
| - PrintToStderr("Received signal ");
|
| + PrintToStderr("Received SSSS signal ");
|
| char buf[1024] = { 0 };
|
| internal::itoa_r(signal, buf, sizeof(buf), 10, 0);
|
| PrintToStderr(buf);
|
| + PrintToStderr("\n");
|
| if (signal == SIGBUS) {
|
| if (info->si_code == BUS_ADRALN)
|
| PrintToStderr(" BUS_ADRALN ");
|
| @@ -296,7 +297,9 @@ void StackDumpSignalHandler(int signal, siginfo_t* info, void* void_context) {
|
| }
|
| #endif
|
|
|
| + PrintToStderr("Before stacktrace print\n");
|
| debug::StackTrace().Print();
|
| + PrintToStderr("After stacktrace print\n");
|
|
|
| #if defined(OS_LINUX)
|
| #if ARCH_CPU_X86_FAMILY
|
| @@ -374,12 +377,15 @@ 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)
|
| + if (::signal(signal, SIG_DFL) == SIG_ERR) {
|
| + PrintToStderr("::signal(signal, SIG_DFL)\n");
|
| _exit(1);
|
| + }
|
| #else
|
| // Non-Mac OSes should probably reraise the signal as well, but the Linux
|
| // sandbox tests break on CrOS devices.
|
| // https://code.google.com/p/chromium/issues/detail?id=551681
|
| + PrintToStderr("Before _exit(1)\n");
|
| _exit(1);
|
| #endif // defined(OS_MACOSX) && !defined(OS_IOS)
|
| }
|
| @@ -683,6 +689,8 @@ bool EnableInProcessStackDumping() {
|
| SandboxSymbolizeHelper::GetInstance();
|
| #endif // USE_SYMBOLIZE
|
|
|
| + fprintf(stderr, "EnableInProcessStackDumping\n");
|
| +
|
| // When running in an application, our code typically expects SIGPIPE
|
| // to be ignored. Therefore, when testing that same code, it should run
|
| // with SIGPIPE ignored as well.
|
|
|