-
-
Notifications
You must be signed in to change notification settings - Fork 33.2k
gh-128639: Don't assume one thread in subinterpreter finalization with fixed daemon thread support #134606
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
ZeroIntensity
merged 13 commits into
python:main
from
ZeroIntensity:fix-subinterp-thread-shutdown
Sep 17, 2025
Merged
gh-128639: Don't assume one thread in subinterpreter finalization with fixed daemon thread support #134606
Changes from 5 commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
b14aa73
Reapply "gh-128639: Don't assume one thread in subinterpreter finaliz…
ZeroIntensity 91d94d9
Fix daemon thread shutdown.
ZeroIntensity a569355
Stop the runtime instead of the interpreter.
ZeroIntensity 0146aec
Merge branch 'main' into fix-subinterp-thread-shutdown
ZeroIntensity f85a291
Run the daemon thread test in a subprocess.
ZeroIntensity d287d54
Update Lib/test/test_interpreters/test_api.py
ZeroIntensity fe7a342
Merge branch 'main' into fix-subinterp-thread-shutdown
ZeroIntensity 193c49a
Merge branch 'main' of https://github.com/python/cpython into fix-sub…
ZeroIntensity 62bd653
Remove broken assertion.
ZeroIntensity b029dd5
Avoid using list comprehensions in the tests.
ZeroIntensity 88b1cf6
Merge branch 'main' of https://github.com/python/cpython into fix-sub…
ZeroIntensity a8de87c
Merge branch 'main' of https://github.com/python/cpython into fix-sub…
ZeroIntensity 6acb265
Merge branch 'main' into fix-subinterp-thread-shutdown
ZeroIntensity File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
Misc/NEWS.d/next/Core_and_Builtins/2025-01-08-12-52-47.gh-issue-128640.9nbh9z.rst
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| Fix a crash when using threads inside of a subinterpreter. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.