GeezerVison is showing github.com — gh-128002: add test_asyncio.test_free_threading to tsan tests by kumaraditya303 · Pull Request #131106 · python/cpython
Conversation
kumaraditya303
commented
Mar 11, 2025
•
edited by bedevere-app
Bot
Loading
Uh oh!
There was an error while loading. Please reload this page.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
kumaraditya303
changed the title
gh-128002: add test_asyncio.test_free_threading to tsan CI
gh-128002: add test_asyncio.test_free_threading to tsan tests
Mar 11, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you have time to look at the other TSAN reported races in test_asyncio?
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Do you have time to look at the other TSAN reported races in test_asyncio?
What are the other TSAN races?
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
If you run the test_asyncio tests under TSAN you'll see a bunch of races. Here are the ones I've seen when running it:
https://gist.github.com/colesbury/210e1e1c60d38dbfd92e5226d7848b38
There are also a few additional ones when run with the GIL enabled, because it doesn't use some of the atomic operations that we use in the free threading build.
I wouldn't worry about the frame_clear race for now, but I think the other ones, including the file descriptor races can be fixed.
|
kumaraditya303 reacted with thumbs up emoji
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
If you run the test_asyncio tests under TSAN you'll see a bunch of races. Here are the ones I've seen when running it:
https://gist.github.com/colesbury/210e1e1c60d38dbfd92e5226d7848b38
There are also a few additional ones when run with the GIL enabled, because it doesn't use some of the atomic operations that we use in the free threading build.
Thanks! I will look into it.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
To follow up on my previous comment: I think that fixing the file descriptor races might involve changing the test code to avoid concurrent close() operations with operations that use the sockets, but I'm not entirely sure.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.