Detect and handle death by signals.#1722
Conversation
Codecov Report
@@ Coverage Diff @@
## main #1722 +/- ##
=======================================
Coverage 54.46% 54.47%
=======================================
Files 146 148 +2
Lines 18941 18967 +26
Branches 4551 4556 +5
=======================================
+ Hits 10317 10333 +16
- Misses 5871 5881 +10
Partials 2753 2753
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
|
Oops; investigating the failure. It's dying - there's a brief window on clone where both threads are allowed to run concurrently. My best guess so far is that we end up having 2 parallel |
|
Was able to confirm that we were getting a segv due to an rdtsc instruction in a newly cloned thread, and that at least on debian-10 clone is called with |
* Fix preload mode's sigsegv handler to reraise sigsegv for segv's that weren't due to rdtsc. * Fix preload mode to detect and cleanly handle death as a result of asking the managed process to execute a native syscall (such as delivering a fatal signal to itself). Fixes shadow#1715
2fb0bf2 to
9f0363b
Compare
weren't due to rdtsc.
asking the managed process to execute a native syscall (such as
delivering a fatal signal to itself).
Fixes #1715