Repository navigation
crimson/common/fatal_signal: Rework signals - #63673
Conversation
3ace0ff to
704b214
Compare
cyx1231st
left a comment
There was a problem hiding this comment.
LGTM! I did need to comment out FatalSignal to see the backtrace sometimes.
4d4bd1d to
c61f105
Compare
To be used when prefix is not needed. Signed-off-by: Matan Breizman <[email protected]>
* Move to GENERIC_ERROR
* Remove seastar's backtrace. It was never printted anyway due to
missing "{}" when formatting. Moreover, Seastar's internal backtrace
is not relevant to Ceph crashes.
* Fix formatting printing "%s"
* No need to call std::flush as this will be called when printing
the backtrace later on.
Signed-off-by: Matan Breizman <[email protected]>
c61f105 to
c550ded
Compare
|
Out of scope:
|
|
Example from log: |
|
jenkins test api |
|
jenkins test make check arm64 |
|
jenkins test api |
1 similar comment
|
jenkins test api |
|
Note: Waiting with the merge, I might have few more improvements to add here |
36a4602 to
bc88831
Compare
There was a problem hiding this comment.
See above, sometimes it seems that parsing the stacktrace is extremely slow (it didn't stop in my env, yet). Can we also print raw stacktraces to std::cerr (and to seastar logger, perhaps) before calling boost::stacktrace::to_string() ?
(from ps, it was the command /usr/bin/addr2line -fe ./obj-x86_64-linux-gnu-debug/bin/crimson-osd 0x00000000000DF90D)
There was a problem hiding this comment.
I'm ok with printing also raw stacktraces though I'm trying to understand how was it helpful to you. Did you refer to the scenario where boost's stacktrace parsing was stuck and you would prefer having unparsed stacktrace than none?
There was a problem hiding this comment.
I suspect that in the scenario above even the unparsed stacktrack would be stuck. As following the stack backtrace is the most time consuming work.
There was a problem hiding this comment.
Seems to me the blocking part is "addr2line" referring to ps above. And the seastar way to print stacktrace as raw addrs is instantly fast.
If the OSD-native addr2line is blocking, we can translate the addresses ourselves if available from the outputs.
It is possible to only parse partial of the addresses and seems to me somehow gdb can translate them faster.
There was a problem hiding this comment.
Seastar doesn't expose print_with_backtrace which is the one you refer to above iiuc. We are able to use seastar::current_backtrace though this will not result in address output as described above.
It is possible that running addr2line from within gdb might be slow/stuck.
Are you ok with merging this PR as is - and working on printing raw addresses out of scope? Possibly with std::stacktrace.
Note: I've tried using ceph::ClibBackTrace but got the same results.
* Move to GENERIC_LOG * Print backtrace in log and in std out * Switch to fmt::format Signed-off-by: Matan Breizman <[email protected]>
Signed-off-by: Matan Breizman <[email protected]>
Signed-off-by: Matan Breizman <[email protected]>
bc88831 to
ec75b36
Compare
|
jenkins test make check arm64 |
|
|
Currently crashes caused by signals are very hard to detect, we only get a "Segmentation fault" which gets hidden in random log lines from other shards due to missing newlines:
Rework aborting from signals path to be more informative.
See segfaults trackers examples below:
https://tracker.ceph.com/issues/66818
https://tracker.ceph.com/issues/71457
Contribution Guidelines
To sign and title your commits, please refer to Submitting Patches to Ceph.
If you are submitting a fix for a stable branch (e.g. "quincy"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.
When filling out the below checklist, you may click boxes directly in the GitHub web UI. When entering or editing the entire PR message in the GitHub web UI editor, you may also select a checklist item by adding an
xbetween the brackets:[x]. Spaces and capitalization matter when checking off items this way.Checklist
Show available Jenkins commands
jenkins test classic perfJenkins Job | Jenkins Job Definitionjenkins test crimson perfJenkins Job | Jenkins Job Definitionjenkins test signedJenkins Job | Jenkins Job Definitionjenkins test make checkJenkins Job | Jenkins Job Definitionjenkins test make check arm64Jenkins Job | Jenkins Job Definitionjenkins test submodulesJenkins Job | Jenkins Job Definitionjenkins test dashboardJenkins Job | Jenkins Job Definitionjenkins test dashboard cephadmJenkins Job | Jenkins Job Definitionjenkins test apiJenkins Job | Jenkins Job Definitionjenkins test docsReadTheDocs | Github Workflow Definitionjenkins test ceph-volume allJenkins Jobs | Jenkins Jobs Definitionjenkins test windowsJenkins Job | Jenkins Job Definitionjenkins test rook e2eJenkins Job | Jenkins Job Definition