This is an archive of the discontinued LLVM Phabricator instance.

tsan: mark sigwait as blocking
ClosedPublic

Authored by dvyukov on May 7 2021, 2:18 AM.

Details

Summary

Add a test case reported in:
https://github.com/google/sanitizers/issues/1401
and fix it.
The code assumes sigwait will process other signals.

Diff Detail

Event Timeline

dvyukov created this revision.May 7 2021, 2:18 AM
dvyukov requested review of this revision.May 7 2021, 2:18 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 7 2021, 2:18 AM
Herald added a subscriber: Restricted Project. · View Herald Transcript
vitalybuka accepted this revision.May 11 2021, 5:03 PM
vitalybuka added inline comments.
compiler-rt/test/tsan/signal_block2.cpp
21

Would you like to avoid -D and just create 3 different timers and 3 different waits in single main invocation?

This revision is now accepted and ready to land.May 11 2021, 5:03 PM
dvyukov updated this revision to Diff 344656.May 11 2021, 9:54 PM

Removed defines from the test.

dvyukov marked an inline comment as done.May 11 2021, 9:55 PM
dvyukov added inline comments.
compiler-rt/test/tsan/signal_block2.cpp
21

Done. Indeed better now.

This revision was landed with ongoing or failed builds.May 11 2021, 9:56 PM
This revision was automatically updated to reflect the committed changes.
dvyukov marked an inline comment as done.
dvyukov reopened this revision.May 19 2021, 3:59 AM
This revision is now accepted and ready to land.May 19 2021, 3:59 AM
dvyukov updated this revision to Diff 346399.May 19 2021, 3:59 AM

disable the test on darwin

This revision was landed with ongoing or failed builds.May 19 2021, 4:03 AM
This revision was automatically updated to reflect the committed changes.