Skip to content
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

gh-117657: Fix data races reported by TSAN on interp->threads.main #118865

Merged
merged 4 commits into from
May 10, 2024

Conversation

mpage
Copy link
Contributor

@mpage mpage commented May 9, 2024

Use relaxed loads/stores when reading/writing to this field.

This fixes races like https://gist.github.com/mpage/e07497ad8dd444a789ff306cb7996acc

Use relaxed loads/stores when reading/writing to this field.

This fixes races like https://gist.github.com/mpage/e07497ad8dd444a789ff306cb7996acc
@mpage mpage requested a review from colesbury May 9, 2024 20:24
@mpage mpage marked this pull request as ready for review May 9, 2024 20:24
Copy link
Contributor

@colesbury colesbury left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good to me.

Can we remove any TSan suppressions after this change? I'm merging #118722 now, so you might want to wait a little bit and then merge main into this PR.

@colesbury colesbury added the needs backport to 3.13 bugs and security fixes label May 9, 2024
@mpage
Copy link
Contributor Author

mpage commented May 9, 2024

Sounds good. I'll wait until you merge #118722 then update this PR to remove the appropriate suppressions.

@colesbury colesbury merged commit 22d5185 into python:main May 10, 2024
36 checks passed
@miss-islington-app
Copy link

Thanks @mpage for the PR, and @colesbury for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13.
🐍🍒⛏🤖 I'm not a witch! I'm not a witch!

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request May 10, 2024
…main` (pythonGH-118865)

Use relaxed loads/stores when reading/writing to this field.
(cherry picked from commit 22d5185)

Co-authored-by: mpage <mpage@meta.com>
@bedevere-app
Copy link

bedevere-app bot commented May 10, 2024

GH-118904 is a backport of this pull request to the 3.13 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.13 bugs and security fixes label May 10, 2024
colesbury pushed a commit that referenced this pull request May 10, 2024
….main` (GH-118865) (#118904)

Use relaxed loads/stores when reading/writing to this field.
(cherry picked from commit 22d5185)

Co-authored-by: mpage <mpage@meta.com>
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.

2 participants