]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson/common: let's dump the core on fatal signal.
authorRadoslaw Zarzynski <rzarzyns@redhat.com>
Mon, 19 Apr 2021 13:59:25 +0000 (13:59 +0000)
committerRadoslaw Zarzynski <rzarzyns@redhat.com>
Mon, 19 Apr 2021 15:24:04 +0000 (15:24 +0000)
Removing the call to engine's `exit()` should allow the singnal
handler to exit. In the case of `SIGSEGV` this would return back
to the problematic instruction, and thus retrigger the fault.
As our handler already restores `SIG_DFL`, it's expected to get
a core dump.

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
src/crimson/common/fatal_signal.cc

index 324bbb6786bbeec2e489daf8376aa0b8755ba71f..55988d903fe3603a19933a52913f723ef14b962f 100644 (file)
@@ -58,5 +58,4 @@ void FatalSignal::signaled(int signum)
     break;
   }
   signal(signum, SIG_DFL);
-  seastar::engine().exit(1);
 }