René's URL Explorer Experiment


Title: [3.13] gh-87135: Hang non-main threads that attempt to acquire the GIL during finalization (GH-105805) by gpshead · Pull Request #137827 · python/cpython · GitHub

Open Graph Title: [3.13] gh-87135: Hang non-main threads that attempt to acquire the GIL during finalization (GH-105805) by gpshead · Pull Request #137827 · python/cpython

X Title: [3.13] gh-87135: Hang non-main threads that attempt to acquire the GIL during finalization (GH-105805) by gpshead · Pull Request #137827 · python/cpython

Description: Instead of surprise crashes and memory corruption, we now hang threads that attempt to re-enter the Python interpreter after Python runtime finalization has started. These are typically daemon thre...

Open Graph Description: Instead of surprise crashes and memory corruption, we now hang threads that attempt to re-enter the Python interpreter after Python runtime finalization has started. These are typically daemon thre...

X Description: Instead of surprise crashes and memory corruption, we now hang threads that attempt to re-enter the Python interpreter after Python runtime finalization has started. These are typically daemon thre...

Opengraph URL: https://github.com/python/cpython/pull/137827

X: @github

direct link

Domain: github.com

route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:0ef3573a-f9dc-9268-4be9-4fdeb77b3624
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id8922:26A812:1925981:21435EB:696B87D0
html-safe-nonce071e97f14c61822aa6045a5811a7a235c5fec8927700858e1cffad35b2557340
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4OTIyOjI2QTgxMjoxOTI1OTgxOjIxNDM1RUI6Njk2Qjg3RDAiLCJ2aXNpdG9yX2lkIjoiNTU3OTg5ODE3NzE4OTAwNjg4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac63d3f75090973d03e7b557aa4b10e700ccd8888f83c1bb75f29e9fd02beab2c3
hovercard-subject-tagpull_request:2749045282
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/python/cpython/137827/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/7866f750518ac3cd43598920b1fb5657bf5475d0350eda9135468643c4177e03/python/cpython/pull/137827
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/7866f750518ac3cd43598920b1fb5657bf5475d0350eda9135468643c4177e03/python/cpython/pull/137827
og:image:altInstead of surprise crashes and memory corruption, we now hang threads that attempt to re-enter the Python interpreter after Python runtime finalization has started. These are typically daemon thre...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamegpshead
hostnamegithub.com
expected-hostnamegithub.com
None5f99f7c1d70f01da5b93e5ca90303359738944d8ab470e396496262c66e60b8d
turbo-cache-controlno-preview
go-importgithub.com/python/cpython git https://github.com/python/cpython.git
octolytics-dimension-user_id1525981
octolytics-dimension-user_loginpython
octolytics-dimension-repository_id81598961
octolytics-dimension-repository_nwopython/cpython
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id81598961
octolytics-dimension-repository_network_root_nwopython/cpython
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release82560a55c6b2054555076f46e683151ee28a19bc
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/137827#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F137827
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F137827
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/pull/137827
Reloadhttps://github.com/python/cpython/pull/137827
Reloadhttps://github.com/python/cpython/pull/137827
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/137827
Notifications https://github.com/login?return_to=%2Fpython%2Fcpython
Fork 33.9k https://github.com/login?return_to=%2Fpython%2Fcpython
Star 71.1k https://github.com/login?return_to=%2Fpython%2Fcpython
Code https://github.com/python/cpython
Issues 5k+ https://github.com/python/cpython/issues
Pull requests 2.1k https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects 31 https://github.com/python/cpython/projects
Security Uh oh! There was an error while loading. Please reload this page. https://github.com/python/cpython/security
Please reload this pagehttps://github.com/python/cpython/pull/137827
Insights https://github.com/python/cpython/pulse
Code https://github.com/python/cpython
Issues https://github.com/python/cpython/issues
Pull requests https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects https://github.com/python/cpython/projects
Security https://github.com/python/cpython/security
Insights https://github.com/python/cpython/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
Jump to bottomhttps://github.com/python/cpython/pull/137827#issue-comment-box
gpsheadhttps://github.com/gpshead
python:3.13https://github.com/python/cpython/tree/3.13
gpshead:backport-8cc5aa4-3.13https://github.com/gpshead/cpython/tree/backport-8cc5aa4-3.13
[3.13] gh-87135: Hang non-main threads that attempt to acquire the GIL during finalization (GH-105805) https://github.com/python/cpython/pull/137827#top
gpsheadhttps://github.com/gpshead
python:3.13https://github.com/python/cpython/tree/3.13
gpshead:backport-8cc5aa4-3.13https://github.com/gpshead/cpython/tree/backport-8cc5aa4-3.13
Conversation 3 https://github.com/python/cpython/pull/137827
Commits 4 https://github.com/python/cpython/pull/137827/commits
Checks 36 https://github.com/python/cpython/pull/137827/checks
Files changed https://github.com/python/cpython/pull/137827/files
Please reload this pagehttps://github.com/python/cpython/pull/137827
https://github.co/hiddenchars
https://github.com/python/cpython/pull/{{ revealButtonHref }}
https://github.com/gpshead
gpsheadhttps://github.com/gpshead
Aug 15, 2025https://github.com/python/cpython/pull/137827#issue-3325598268
Please reload this pagehttps://github.com/python/cpython/pull/137827
8cc5aa4https://github.com/python/cpython/commit/8cc5aa47ee464ddfd8da5461edecf4a5c72df2ff
pthread_exit & PyThread_exit_thread from PyEval_RestoreThread etc. are harmful #87135https://github.com/python/cpython/issues/87135
https://cpython-previews--137827.org.readthedocs.build/https://cpython-previews--137827.org.readthedocs.build/
Please reload this pagehttps://github.com/python/cpython/pull/137827
https://github.com/jbms
https://github.com/gpshead
[3.13]https://github.com/python/cpython/pull/137827/commits/f3e301d89696c615ee5fa74d8f8286c58d83d5db
pythongh-87135https://github.com/python/cpython/issues/87135
: Hang non-main threads that attempt to acquire …https://github.com/python/cpython/pull/137827/commits/f3e301d89696c615ee5fa74d8f8286c58d83d5db
f3e301dhttps://github.com/python/cpython/pull/137827/commits/f3e301d89696c615ee5fa74d8f8286c58d83d5db
pythonGH-105805https://github.com/python/cpython/pull/105805
8cc5aa4https://github.com/gpshead/cpython/commit/8cc5aa47ee464ddfd8da5461edecf4a5c72df2ff
pthread_exit & PyThread_exit_thread from PyEval_RestoreThread etc. are harmful #87135 https://github.com/python/cpython/issues/87135
gh-87135: Hang non-main threads that attempt to acquire the GIL during finalization #105805 https://github.com/python/cpython/pull/105805
https://github.com/gpshead
state "3.13.7 and earlier"https://github.com/python/cpython/pull/137827/commits/d946b3d4af98a06b403c4231c26fbc3b8b63b1e8
d946b3dhttps://github.com/python/cpython/pull/137827/commits/d946b3d4af98a06b403c4231c26fbc3b8b63b1e8
https://github.com/gpshead
gpsheadhttps://github.com/gpshead
force-pushedhttps://github.com/python/cpython/compare/4f773068cb7a55a06d78b6e7d0cdfedca7e198ea..977b0d4c2e656c02c21a0a76533d23f39b68f467
4f77306https://github.com/python/cpython/commit/4f773068cb7a55a06d78b6e7d0cdfedca7e198ea
977b0d4https://github.com/python/cpython/commit/977b0d4c2e656c02c21a0a76533d23f39b68f467
Compare https://github.com/python/cpython/compare/4f773068cb7a55a06d78b6e7d0cdfedca7e198ea..977b0d4c2e656c02c21a0a76533d23f39b68f467
August 15, 2025 16:28https://github.com/python/cpython/pull/137827#event-19178643306
https://github.com/gpshead
gpsheadhttps://github.com/gpshead
Yhg1shttps://github.com/Yhg1s
serhiy-storchakahttps://github.com/serhiy-storchaka
August 15, 2025 16:30https://github.com/python/cpython/pull/137827#event-19178671035
https://github.com/gpshead
gpsheadhttps://github.com/gpshead
August 15, 2025 16:30https://github.com/python/cpython/pull/137827#event-19178675442
https://github.com/gpshead
gpsheadhttps://github.com/gpshead
ericsnowcurrentlyhttps://github.com/ericsnowcurrently
code ownerhttps://github.com/python/cpython/blob/0607fdd56c7c5e7f0949f9a6ef95609e9437b1eb/.github/CODEOWNERS#L51
August 15, 2025 16:30https://github.com/python/cpython/pull/137827#event-19178675539
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
awaiting core review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20core%20review%22
Aug 15, 2025https://github.com/python/cpython/pull/137827#event-19178675935
https://github.com/gpshead
gpsheadhttps://github.com/gpshead
type-bug https://github.com/python/cpython/issues?q=state%3Aopen%20label%3Atype-bug
interpreter-core https://github.com/python/cpython/issues?q=state%3Aopen%20label%3Ainterpreter-core
3.13 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A3.13
Aug 15, 2025https://github.com/python/cpython/pull/137827#event-19178682879
https://github.com/gpshead
gpsheadhttps://github.com/gpshead
Aug 15, 2025https://github.com/python/cpython/pull/137827#event-19178710122
https://github.com/gpshead
backport: do not add the deprecated markerhttps://github.com/python/cpython/pull/137827/commits/f412737615013cfbda38934f9cb49f7d927721a0
f412737https://github.com/python/cpython/pull/137827/commits/f412737615013cfbda38934f9cb49f7d927721a0
https://github.com/gpshead
gpsheadhttps://github.com/gpshead
force-pushedhttps://github.com/python/cpython/compare/977b0d4c2e656c02c21a0a76533d23f39b68f467..f412737615013cfbda38934f9cb49f7d927721a0
977b0d4https://github.com/python/cpython/commit/977b0d4c2e656c02c21a0a76533d23f39b68f467
f412737https://github.com/python/cpython/commit/f412737615013cfbda38934f9cb49f7d927721a0
Compare https://github.com/python/cpython/compare/977b0d4c2e656c02c21a0a76533d23f39b68f467..f412737615013cfbda38934f9cb49f7d927721a0
August 15, 2025 16:34https://github.com/python/cpython/pull/137827#event-19178722711
https://github.com/gpshead
gpsheadhttps://github.com/gpshead
🔨 test-with-buildbots https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22%3Ahammer%3A%20test-with-buildbots%22
Aug 15, 2025https://github.com/python/cpython/pull/137827#event-19178728083
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
Aug 15, 2025https://github.com/python/cpython/pull/137827#issuecomment-3192106994
@gpsheadhttps://github.com/gpshead
f412737https://github.com/python/cpython/commit/f412737615013cfbda38934f9cb49f7d927721a0
https://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F137827%2Fmergehttps://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F137827%2Fmerge
Please reload this pagehttps://github.com/python/cpython/pull/137827
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
🔨 test-with-buildbots https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22%3Ahammer%3A%20test-with-buildbots%22
Aug 15, 2025https://github.com/python/cpython/pull/137827#event-19178728552
https://github.com/serhiy-storchaka
serhiy-storchakahttps://github.com/serhiy-storchaka
Aug 15, 2025 https://github.com/python/cpython/pull/137827#pullrequestreview-3124711102
View reviewed changes https://github.com/python/cpython/pull/137827/files/f412737615013cfbda38934f9cb49f7d927721a0
serhiy-storchakahttps://github.com/serhiy-storchaka
https://github.com/python/cpython/pull/137827#pullrequestreview-3124711102
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/137827
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
awaiting merge https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20merge%22
awaiting core review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20core%20review%22
Aug 15, 2025https://github.com/python/cpython/pull/137827#event-19179733232
https://github.com/gpshead
fix Py_IsFinalizing doc refhttps://github.com/python/cpython/pull/137827/commits/d24d14e48a08c54732ceeebd9f75a2accb5a8252
d24d14ehttps://github.com/python/cpython/pull/137827/commits/d24d14e48a08c54732ceeebd9f75a2accb5a8252
https://github.com/gpshead
gpsheadhttps://github.com/gpshead
9face21https://github.com/python/cpython/commit/9face218e7b640e52b83cd68cebb441d5ff0f8e2
Aug 17, 2025https://github.com/python/cpython/pull/137827#event-19191812154
Please reload this pagehttps://github.com/python/cpython/pull/137827
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
awaiting merge https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20merge%22
Aug 17, 2025https://github.com/python/cpython/pull/137827#event-19191812310
https://github.com/gpshead
gpsheadhttps://github.com/gpshead
Aug 29, 2025https://github.com/python/cpython/pull/137827#issuecomment-3238540977
#87135 (comment)https://github.com/python/cpython/issues/87135#issuecomment-2674605807
#123940 (comment)https://github.com/python/cpython/issues/123940#issuecomment-2976446309
@encukouhttps://github.com/encukou
Please reload this pagehttps://github.com/python/cpython/pull/137827
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F137827
https://github.com/serhiy-storchaka
serhiy-storchaka https://github.com/serhiy-storchaka
https://github.com/python/cpython/pull/137827/files/f412737615013cfbda38934f9cb49f7d927721a0
https://github.com/Yhg1s
Yhg1s https://github.com/Yhg1s
https://github.com/ericsnowcurrently
ericsnowcurrently https://github.com/ericsnowcurrently
https://github.com/gpshead
gpshead https://github.com/gpshead
3.13 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A3.13
interpreter-core https://github.com/python/cpython/issues?q=state%3Aopen%20label%3Ainterpreter-core
type-bug https://github.com/python/cpython/issues?q=state%3Aopen%20label%3Atype-bug
Please reload this pagehttps://github.com/python/cpython/pull/137827
https://github.com/gpshead
https://github.com/bedevere-bot
https://github.com/serhiy-storchaka
https://github.com/jbms
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.