struct sigaction was not initialized. As the result if SA_RESETHAND is set in sa_flags, then the handler is reset after first invocation leading to crash.
Initialize struct sigaction to zero.
Ironically, the test was run under msan all the time.
Details
Details
- Reviewers
eugenis
Diff Detail
Diff Detail
Event Timeline
Comment Actions
Just saw this test crash (SEGV) at r240965 (i.e. with this patch) in ninja check-all, but could not reproduce in an individual run.