Open dimakuv opened 2 years ago
There might be two issues: 1) we lack a way of spawning processes not inside Gramine in our test suite 2) constant spam of signals might render the app unusable i.e. it would spend all of the time in signal handling - at least for Linux-SGX PAL it could be an issue - some small sleeps might solve this, but also make such a test useless; this needs some empirical testing.
Description of the problem
We periodically find data races due to subtle bugs in exception-handling flows of Gramine, especially in the Linux-SGX PAL.
An excerpt from #311:
The "signal spam" test could have an external program that constantly spams the graminized process with SIGCONTs -- they are benign and side-effect-free (more or less) but invoke the relevant exception-handling flows.