]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
crimson/osd: handle fatal signals
authorKefu Chai <kchai@redhat.com>
Tue, 8 Sep 2020 05:44:44 +0000 (13:44 +0800)
committerRadoslaw Zarzynski <rzarzyns@redhat.com>
Mon, 19 Apr 2021 15:24:04 +0000 (15:24 +0000)
commit5a6e58e1621eae543b5f65a606c18e2dddb84a26
treecefe294f9c57e3cb66bd49b34a12112510a63d80
parente09f8d7dd027735ecc015f0497a1668e6cbcf1d2
crimson/osd: handle fatal signals

seastar sets the signal handler for SIGSEGV and SIGABRT, and its signal
handler prints the stacktrace, but the the stack frames are adresses,
which are not human readable without the help of addr2line.

since crimson is linked with -rdynamic option, we have the symbols added
to the dynamic symbol table already. let print out the symbolized
addresses instead using our own stacktrace utility.

Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit 6e26243b6db49bb9813f8b8aeade68da07dc6065)

 Conflicts:
src/crimson/osd/main.cc
src/crimson/CMakeLists.txt
src/crimson/common/fatal_signal.cc [new file with mode: 0644]
src/crimson/common/fatal_signal.h [new file with mode: 0644]
src/crimson/osd/main.cc