Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork32k
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Conversation
python-cla-botbot commentedMay 22, 2025 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Most changes to Pythonrequire a NEWS entry. Add one using theblurb_it web app or theblurb 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 OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
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. |
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
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.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
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
bedevere-bot commentedMay 23, 2025
🤖 New build scheduled with the buildbot fleet by@colesbury for commitca06d61 🤖 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.
Uh oh!
There was an error while loading.Please reload this page.
9a2346d
intopython:mainUh oh!
There was an error while loading.Please reload this page.
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 commit9a2346d)Co-authored-by: Jiucheng(Oliver) <git.jiucheng@gmail.com>
…d after fork (pythongh-134514)(cherry picked from commit9a2346d)Co-authored-by: Jiucheng(Oliver) <git.jiucheng@gmail.com>
GH-134596 is a backport of this pull request to the3.14 branch. |
GH-134597 is a backport of this pull request to the3.13 branch. |
Uh oh!
There was an error while loading.Please reload this page.