Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Add misc/tsan_suppressions.txt #13326

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 14, 2025
Merged

Conversation

jhawthorn
Copy link
Member

This adds a suppressions file for ThreadSanitizer. Which should help us find and reduce the number of thread safety issues.

So far I've only been testing this against btest, and it is not down to zero failures yet (there's a little bit of randomness in the results as well). However this is at the point that I think it's useful to share, start tracking, and work to reduce the size of the list (maybe eventually have a CI job 🤞).

As I describe in the file, a lot of the issues here are likely benign (the behaviour is fine) or dormant (the compiler happens to generate correct code, but isn't guaranteed to be cause we didn't use atomics). Others are showing us (possibly rare) bugs. We should aim to fix all of these. The ThreadSanitizer wiki has some helpful examples of some common data races https://github.com/google/sanitizers/wiki/ThreadSanitizerPopularDataRaces

@jhawthorn jhawthorn merged commit 86f5cec into ruby:master May 14, 2025
79 of 80 checks passed
@jhawthorn jhawthorn deleted the tsan_suppressions branch May 14, 2025 16:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant