This is an archive of the discontinued LLVM Phabricator instance.

[NativeProcessLinux] Avoid race in SIGSTOP processing
AbandonedPublic

Authored by labath on May 19 2015, 4:59 AM.

Details

Reviewers
chaoren
ovyalov
Summary

Processing of SIGSTOP could result in a bogus stop notification from NPL if there was a pending
notification waiting for a thread to stop. The notification would fire even though the thread
would be resumed immediately. I fix this by using a lower-level resume operation which does not
check for stop notifications. The same approach was used for other occurences of this problem
(e.g. D9696).

Diff Detail

Event Timeline

labath updated this revision to Diff 26050.May 19 2015, 4:59 AM
labath retitled this revision from to [NativeProcessLinux] Avoid race in SIGSTOP processing.
labath updated this object.
labath edited the test plan for this revision. (Show Details)
labath added reviewers: ovyalov, chaoren.
labath added a subscriber: Unknown Object (MLST).
labath abandoned this revision.May 19 2015, 5:43 AM

It seems that SIGSTOP processing was broken to begin with https://llvm.org/bugs/show_bug.cgi?id=23264 so this will not help. I will take a step back and see what is the underlying problem.