René's URL Explorer Experiment


Title: gh-137422: Fix race condition in PyImport_AddModuleRef by colesbury · Pull Request #141822 · python/cpython · GitHub

Open Graph Title: gh-137422: Fix race condition in PyImport_AddModuleRef by colesbury · Pull Request #141822 · python/cpython

X Title: gh-137422: Fix race condition in PyImport_AddModuleRef by colesbury · Pull Request #141822 · python/cpython

Description: The Python programming language. Contribute to python/cpython development by creating an account on GitHub.

Open Graph Description: Issue: free-threading: PyImport_AddModuleRef race condition #137422

X Description: Issue: free-threading: PyImport_AddModuleRef race condition #137422

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

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:a5262a1b-9bfe-52d9-9052-08e353550f1b
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idA460:7E3D2:4DF48F7:6E78370:6A4FD72D
html-safe-nonced2f9a3d4593f9550ead9ac24d55eaec0a936566caf5d7802cd0a0c0989c40d30
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNDYwOjdFM0QyOjRERjQ4Rjc6NkU3ODM3MDo2QTRGRDcyRCIsInZpc2l0b3JfaWQiOiIyOTE4MTg0MDIyMDQzNDIwNjEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacd3e2256b653b500c0578c5051a296f065073c69d470567da1ce3f8bbb175475c
hovercard-subject-tagpull_request:3034190329
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/141822/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/c27ed917aba6df2670698dfd450be56907167c8a0707dca0d422fb370ba09a67/python/cpython/pull/141822
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/c27ed917aba6df2670698dfd450be56907167c8a0707dca0d422fb370ba09a67/python/cpython/pull/141822
og:image:altIssue: free-threading: PyImport_AddModuleRef race condition #137422
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamecolesbury
hostnamegithub.com
expected-hostnamegithub.com
None19b98c3d9767bb8a56238a89ff8401d1cbdf3bc5c353799aacf49fe6c76b4b7c
turbo-cache-controlno-cache
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
release142593e66413bbae27fd485859993597d5a3b104
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/141822#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F141822
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
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
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
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/enterprise/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%2F141822
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/141822
Reloadhttps://github.com/python/cpython/pull/141822
Reloadhttps://github.com/python/cpython/pull/141822
Please reload this pagehttps://github.com/python/cpython/pull/141822
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/141822
Notifications https://github.com/login?return_to=%2Fpython%2Fcpython
Fork 34.8k https://github.com/login?return_to=%2Fpython%2Fcpython
Star 73.6k 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.3k https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects https://github.com/python/cpython/projects
Security and quality 0 https://github.com/python/cpython/security
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 and quality https://github.com/python/cpython/security
Insights https://github.com/python/cpython/pulse
colesburyhttps://github.com/colesbury
python:mainhttps://github.com/python/cpython/tree/main
colesbury:gh-137422-pyimport-addmodulerefhttps://github.com/colesbury/cpython/tree/gh-137422-pyimport-addmoduleref
Conversationhttps://github.com/python/cpython/pull/141822
Commits2 (2)https://github.com/python/cpython/pull/141822/commits
Checkshttps://github.com/python/cpython/pull/141822/checks
Files changedhttps://github.com/python/cpython/pull/141822/files
gh-137422: Fix race condition in PyImport_AddModuleRefhttps://github.com/python/cpython/pull/141822#top
colesburyhttps://github.com/colesbury
python:mainhttps://github.com/python/cpython/tree/main
colesbury:gh-137422-pyimport-addmodulerefhttps://github.com/colesbury/cpython/tree/gh-137422-pyimport-addmoduleref
https://github.com/colesbury
colesburyhttps://github.com/colesbury
Nov 21, 2025https://github.com/python/cpython/pull/141822#issue-3652151623
Please reload this pagehttps://github.com/python/cpython/pull/141822
free-threading: PyImport_AddModuleRef race condition #137422https://github.com/python/cpython/issues/137422
Please reload this pagehttps://github.com/python/cpython/pull/141822
https://github.com/colesbury
pythongh-137422https://github.com/python/cpython/issues/137422
: Fix race condition in PyImport_AddModuleRefhttps://github.com/python/cpython/pull/141822/commits/463b8b6a6d79b2d75ef62c7554ace6b5a3eb4111
463b8b6https://github.com/python/cpython/pull/141822/commits/463b8b6a6d79b2d75ef62c7554ace6b5a3eb4111
https://github.com/colesbury
colesburyhttps://github.com/colesbury
topic-C-API https://github.com/python/cpython/issues?q=state%3Aopen%20label%3Atopic-C-API
topic-free-threading https://github.com/python/cpython/issues?q=state%3Aopen%20label%3Atopic-free-threading
needs backport to 3.14 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22needs%20backport%20to%203.14%22
Nov 21, 2025https://github.com/python/cpython/pull/141822#event-21099805554
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
Nov 21, 2025 https://github.com/python/cpython/pull/141822#ref-issue-3293535587
free-threading: PyImport_AddModuleRef race condition #137422 https://github.com/python/cpython/issues/137422
https://github.com/colesbury
Fix linthttps://github.com/python/cpython/pull/141822/commits/d735393931486b79615d6af3966502f7ced24745
d735393https://github.com/python/cpython/pull/141822/commits/d735393931486b79615d6af3966502f7ced24745
https://github.com/colesbury
colesburyhttps://github.com/colesbury
Nov 21, 2025https://github.com/python/cpython/pull/141822#issuecomment-3563578293
[subinterpreters] Eliminate PyInterpreterState.modules. #72597https://github.com/python/cpython/issues/72597
bpo-28411: Support other mappings in PyInterpreterState.modules. #3593https://github.com/python/cpython/pull/3593
Please reload this pagehttps://github.com/python/cpython/pull/141822
https://github.com/colesbury
colesburyhttps://github.com/colesbury
November 21, 2025 15:46https://github.com/python/cpython/pull/141822#event-21100006931
https://github.com/colesbury
colesburyhttps://github.com/colesbury
brettcannonhttps://github.com/brettcannon
ericsnowcurrentlyhttps://github.com/ericsnowcurrently
kumaraditya303https://github.com/kumaraditya303
ncoghlanhttps://github.com/ncoghlan
warsawhttps://github.com/warsaw
code ownershttps://github.com/python/cpython/blob/49ff8b6cc017bb6e9bdb3bf4918d65f32f7aaed8/.github/CODEOWNERS#L255
November 21, 2025 15:46https://github.com/python/cpython/pull/141822#event-21100007115
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
Nov 21, 2025https://github.com/python/cpython/pull/141822#event-21100008013
https://github.com/kumaraditya303
kumaraditya303https://github.com/kumaraditya303
Nov 21, 2025 https://github.com/python/cpython/pull/141822#pullrequestreview-3493853743
View reviewed changes https://github.com/python/cpython/pull/141822/files/d735393931486b79615d6af3966502f7ced24745
kumaraditya303https://github.com/kumaraditya303
https://github.com/python/cpython/pull/141822#pullrequestreview-3493853743
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/141822
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
Nov 21, 2025https://github.com/python/cpython/pull/141822#event-21102681442
https://github.com/colesbury
colesburyhttps://github.com/colesbury
2d50dd2https://github.com/python/cpython/commit/2d50dd242e04b94f86cb23c4972c1b423c670175
Nov 21, 2025https://github.com/python/cpython/pull/141822#event-21103107960
Please reload this pagehttps://github.com/python/cpython/pull/141822
https://github.com/apps/miss-islington-app
miss-islington-apphttps://github.com/apps/miss-islington-app
Nov 21, 2025https://github.com/python/cpython/pull/141822#issuecomment-3564178739
@colesburyhttps://github.com/colesbury
Please reload this pagehttps://github.com/python/cpython/pull/141822
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
Nov 21, 2025https://github.com/python/cpython/pull/141822#event-21103108767
https://github.com/colesbury
colesburyhttps://github.com/colesbury
November 21, 2025 18:30https://github.com/python/cpython/pull/141822#event-21103108900
miss-islingtonhttps://github.com/miss-islington
Nov 21, 2025 https://github.com/python/cpython/pull/141822#ref-commit-33056f9
https://github.com/colesbury
https://github.com/miss-islington
pythongh-137422https://github.com/python/cpython/issues/137422
: Fix race condition in PyImport_AddModuleRef (https://github.com/miss-islington/cpython/commit/33056f93f7e299480f5d6960fbebaf8507b30ac0
pythong…https://github.com/python/cpython/pull/141822
33056f9https://github.com/miss-islington/cpython/commit/33056f93f7e299480f5d6960fbebaf8507b30ac0
…h-141822https://github.com/python/cpython/pull/141822
2d50dd2https://github.com/miss-islington/cpython/commit/2d50dd242e04b94f86cb23c4972c1b423c670175
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
Nov 21, 2025https://github.com/python/cpython/pull/141822#issuecomment-3564179027
GH-141830https://github.com/python/cpython/pull/141830
3.14 branchhttps://github.com/python/cpython/tree/3.14
Please reload this pagehttps://github.com/python/cpython/pull/141822
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
needs backport to 3.14 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22needs%20backport%20to%203.14%22
Nov 21, 2025https://github.com/python/cpython/pull/141822#event-21103110632
colesburyhttps://github.com/colesbury
Nov 21, 2025 https://github.com/python/cpython/pull/141822#ref-commit-5bca7f4
https://github.com/miss-islington
https://github.com/colesbury
[3.14]https://github.com/python/cpython/commit/5bca7f4d7ab685802a79e50e6746173c5cd7a00a
gh-137422https://github.com/python/cpython/issues/137422
: Fix race condition in PyImport_AddModuleRef (https://github.com/python/cpython/commit/5bca7f4d7ab685802a79e50e6746173c5cd7a00a
gh-141822https://github.com/python/cpython/pull/141822
5bca7f4https://github.com/python/cpython/commit/5bca7f4d7ab685802a79e50e6746173c5cd7a00a
https://github.com/python/cpython/pull/141822
gh-141830https://github.com/python/cpython/pull/141830
2d50dd2https://github.com/python/cpython/commit/2d50dd242e04b94f86cb23c4972c1b423c670175
StanFromIrelandhttps://github.com/StanFromIreland
Dec 6, 2025 https://github.com/python/cpython/pull/141822#ref-commit-ae5ac02
https://github.com/colesbury
https://github.com/StanFromIreland
pythongh-137422https://github.com/python/cpython/issues/137422
: Fix race condition in PyImport_AddModuleRef (https://github.com/StanFromIreland/cpython/commit/ae5ac0282ff02ed7626d582a82f8f6f065528fba
pythong…https://github.com/python/cpython/pull/141822
ae5ac02https://github.com/StanFromIreland/cpython/commit/ae5ac0282ff02ed7626d582a82f8f6f065528fba
…h-141822https://github.com/python/cpython/pull/141822
ashm-devhttps://github.com/ashm-dev
Dec 8, 2025 https://github.com/python/cpython/pull/141822#ref-commit-4dc0467
https://github.com/colesbury
https://github.com/ashm-dev
pythongh-137422https://github.com/python/cpython/issues/137422
: Fix race condition in PyImport_AddModuleRef (https://github.com/ashm-dev/cpython/commit/4dc046776fb837c028222abff6a806c1f12d2acd
pythong…https://github.com/python/cpython/pull/141822
4dc0467https://github.com/ashm-dev/cpython/commit/4dc046776fb837c028222abff6a806c1f12d2acd
…h-141822https://github.com/python/cpython/pull/141822
https://github.co/hiddenchars
https://github.com/python/cpython/pull/{{ revealButtonHref }}
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%2F141822
https://github.com/kumaraditya303
kumaraditya303 https://github.com/kumaraditya303
https://github.com/python/cpython/pull/141822/files/d735393931486b79615d6af3966502f7ced24745
https://github.com/brettcannon
brettcannon https://github.com/brettcannon
https://github.com/ericsnowcurrently
ericsnowcurrently https://github.com/ericsnowcurrently
https://github.com/ncoghlan
ncoghlan https://github.com/ncoghlan
https://github.com/warsaw
warsaw https://github.com/warsaw
topic-C-API https://github.com/python/cpython/issues?q=state%3Aopen%20label%3Atopic-C-API
topic-free-threading https://github.com/python/cpython/issues?q=state%3Aopen%20label%3Atopic-free-threading
Please reload this pagehttps://github.com/python/cpython/pull/141822
https://github.com/colesbury
https://github.com/kumaraditya303
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.