-
-
Notifications
You must be signed in to change notification settings - Fork 32k
gh-134381: Improve thread safety in _PyThread_AfterFork by preserving not-started handles #134514
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
Conversation
Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool. If this change has little impact on Python users, wait for a maintainer to apply the |
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.
Could you add a test for this? Something like the repro in the issue is probably fine.
Misc/NEWS.d/next/Core_and_Builtins/2025-05-22-14-48-19.gh-issue-134381.2BXhth.rst
Outdated
Show resolved
Hide resolved
I did add a similar test case, but not sure if that's good enough to cover the issue similar to the issue mentioned. Please take a review. |
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.
Tests looks good. Some comments about how to structure it in the multiprocessing test suite below.
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.
Thanks for the fix, LGTM
🤖 New build scheduled with the buildbot fleet by @colesbury for commit ca06d61 🤖 Results will be shown at: https://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F134514%2Fmerge If you want to schedule another build, you need to add the 🔨 test-with-refleak-buildbots label again. |
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.
Tiny little formatting suggestion.
Thanks @zangjiucheng for the PR, and @colesbury for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13, 3.14. |
…d after fork (pythongh-134514) (cherry picked from commit 9a2346d) Co-authored-by: Jiucheng(Oliver) <[email protected]>
…d after fork (pythongh-134514) (cherry picked from commit 9a2346d) Co-authored-by: Jiucheng(Oliver) <[email protected]>
GH-134596 is a backport of this pull request to the 3.14 branch. |
GH-134597 is a backport of this pull request to the 3.13 branch. |
Uh oh!
There was an error while loading. Please reload this page.