René's URL Explorer Experiment


Title: gh-136870: fix race in `PyThreadState_Clear` on `sys_tracing_threads` by kumaraditya303 · Pull Request #136951 · python/cpython · GitHub

Open Graph Title: gh-136870: fix race in `PyThreadState_Clear` on `sys_tracing_threads` by kumaraditya303 · Pull Request #136951 · python/cpython

X Title: gh-136870: fix race in `PyThreadState_Clear` on `sys_tracing_threads` by kumaraditya303 · Pull Request #136951 · python/cpython

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

Open Graph Description: In free-threading multiple threads can be cleared concurrently as such the modifications on sys_tracing_threads should be done while holding the profile lock otherwise it can race with other thread...

X Description: In free-threading multiple threads can be cleared concurrently as such the modifications on sys_tracing_threads should be done while holding the profile lock otherwise it can race with other thread...

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

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:54fe014c-e269-6d33-f0c9-f962e504683e
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idE036:27700E:F069C1:15E88A2:6A562FD3
html-safe-nonce5de1b86cd0ba70163ede3d96ae67634a2b53bd78bb516db60c2a8811dcda8cc4
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMDM2OjI3NzAwRTpGMDY5QzE6MTVFODhBMjo2QTU2MkZEMyIsInZpc2l0b3JfaWQiOiIzMDUyNzYyMTc2MjM2Njk1NTA3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmace5c5ee5e6775ac7ba1debd7f791e561ebee94ed122bf0eb3cc1b83090577f35a
hovercard-subject-tagpull_request:2683049224
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/136951/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/839506e094d4b13adc2b303524623e51f30c5f3039969a1cfbb2fcdd5bd80ead/python/cpython/pull/136951
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/839506e094d4b13adc2b303524623e51f30c5f3039969a1cfbb2fcdd5bd80ead/python/cpython/pull/136951
og:image:altIn free-threading multiple threads can be cleared concurrently as such the modifications on sys_tracing_threads should be done while holding the profile lock otherwise it can race with other thread...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamekumaraditya303
hostnamegithub.com
expected-hostnamegithub.com
None9d78ea552aac0685ca5f006d44f88166cbbf3bb96843f8da0c5a2c0b9908430b
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
release160a6fceec0fef718a0c3ac46f2d71ae9d5c0ff5
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/136951#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F136951
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%2F136951
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/136951
Reloadhttps://github.com/python/cpython/pull/136951
Reloadhttps://github.com/python/cpython/pull/136951
Please reload this pagehttps://github.com/python/cpython/pull/136951
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/136951
Notifications https://github.com/login?return_to=%2Fpython%2Fcpython
Fork 35k https://github.com/login?return_to=%2Fpython%2Fcpython
Star 73.8k 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
kumaraditya303https://github.com/kumaraditya303
python:mainhttps://github.com/python/cpython/tree/main
kumaraditya303:ts-clear-monitoringhttps://github.com/kumaraditya303/cpython/tree/ts-clear-monitoring
Conversationhttps://github.com/python/cpython/pull/136951
Commits1 (1)https://github.com/python/cpython/pull/136951/commits
Checkshttps://github.com/python/cpython/pull/136951/checks
Files changedhttps://github.com/python/cpython/pull/136951/files
gh-136870: fix race in PyThreadState_Clear on sys_tracing_threadshttps://github.com/python/cpython/pull/136951#top
kumaraditya303https://github.com/kumaraditya303
python:mainhttps://github.com/python/cpython/tree/main
kumaraditya303:ts-clear-monitoringhttps://github.com/kumaraditya303/cpython/tree/ts-clear-monitoring
https://github.com/kumaraditya303
kumaraditya303https://github.com/kumaraditya303
Jul 21, 2025https://github.com/python/cpython/pull/136951#issue-3249897288
Please reload this pagehttps://github.com/python/cpython/pull/136951
data races in instrumentation when running coverage under TSAN #136870https://github.com/python/cpython/issues/136870
Please reload this pagehttps://github.com/python/cpython/pull/136951
https://github.com/kumaraditya303
fix race in PyThreadState_Clear on sys_tracing_threadshttps://github.com/python/cpython/pull/136951/commits/e8225ab6be13c8b229c52917badd29eefa3c681f
e8225abhttps://github.com/python/cpython/pull/136951/commits/e8225ab6be13c8b229c52917badd29eefa3c681f
https://github.com/kumaraditya303
kumaraditya303https://github.com/kumaraditya303
ZeroIntensityhttps://github.com/ZeroIntensity
ericsnowcurrentlyhttps://github.com/ericsnowcurrently
code ownershttps://github.com/python/cpython/blob/322442945084ea9055f86a17fa5096b11ba5b344/.github/CODEOWNERS#L73
July 21, 2025 20:10https://github.com/python/cpython/pull/136951#event-18736180311
https://github.com/kumaraditya303
kumaraditya303https://github.com/kumaraditya303
skip news https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22skip%20news%22
Jul 21, 2025https://github.com/python/cpython/pull/136951#event-18736180580
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
Jul 21, 2025https://github.com/python/cpython/pull/136951#event-18736181884
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
Jul 21, 2025 https://github.com/python/cpython/pull/136951#ref-issue-3246336678
data races in instrumentation when running coverage under TSAN #136870 https://github.com/python/cpython/issues/136870
https://github.com/kumaraditya303
kumaraditya303https://github.com/kumaraditya303
needs backport to 3.14 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22needs%20backport%20to%203.14%22
topic-free-threading https://github.com/python/cpython/issues?q=state%3Aopen%20label%3Atopic-free-threading
Jul 21, 2025https://github.com/python/cpython/pull/136951#event-18736191092
https://github.com/colesbury
colesburyhttps://github.com/colesbury
Jul 21, 2025 https://github.com/python/cpython/pull/136951#pullrequestreview-3039639765
View reviewed changes https://github.com/python/cpython/pull/136951/files/e8225ab6be13c8b229c52917badd29eefa3c681f
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
Jul 21, 2025https://github.com/python/cpython/pull/136951#event-18736241859
https://github.com/kumaraditya303
kumaraditya303https://github.com/kumaraditya303
July 21, 2025 20:16https://github.com/python/cpython/pull/136951#event-18736278075
https://github.com/ZeroIntensity
ZeroIntensityhttps://github.com/ZeroIntensity
Jul 21, 2025https://github.com/python/cpython/pull/136951#issuecomment-3098549464
Please reload this pagehttps://github.com/python/cpython/pull/136951
https://github.com/kumaraditya303
kumaraditya303https://github.com/kumaraditya303
Jul 21, 2025https://github.com/python/cpython/pull/136951#issuecomment-3098624887
Please reload this pagehttps://github.com/python/cpython/pull/136951
Please reload this pagehttps://github.com/python/cpython/pull/136951
https://github.com/kumaraditya303
kumaraditya303https://github.com/kumaraditya303
f183996https://github.com/python/cpython/commit/f183996eb77fd2d5662c62667298c292c943ebf5
Jul 21, 2025https://github.com/python/cpython/pull/136951#event-18736543352
Please reload this pagehttps://github.com/python/cpython/pull/136951
https://github.com/apps/miss-islington-app
miss-islington-apphttps://github.com/apps/miss-islington-app
Jul 21, 2025https://github.com/python/cpython/pull/136951#issuecomment-3098673811
@kumaraditya303https://github.com/kumaraditya303
Please reload this pagehttps://github.com/python/cpython/pull/136951
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
Jul 21, 2025https://github.com/python/cpython/pull/136951#event-18736544055
miss-islingtonhttps://github.com/miss-islington
Jul 21, 2025 https://github.com/python/cpython/pull/136951#ref-commit-72262f4
https://github.com/kumaraditya303
https://github.com/miss-islington
pythongh-136870https://github.com/python/cpython/issues/136870
: fix data race inhttps://github.com/miss-islington/cpython/commit/72262f46e72437a8e299a7a51fa41298ed3133b0
PyThreadState_Clearhttps://github.com/miss-islington/cpython/commit/72262f46e72437a8e299a7a51fa41298ed3133b0
on `sys_traci…https://github.com/miss-islington/cpython/commit/72262f46e72437a8e299a7a51fa41298ed3133b0
72262f4https://github.com/miss-islington/cpython/commit/72262f46e72437a8e299a7a51fa41298ed3133b0
pythonGH-136951https://github.com/python/cpython/pull/136951
f183996https://github.com/miss-islington/cpython/commit/f183996eb77fd2d5662c62667298c292c943ebf5
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
Jul 21, 2025https://github.com/python/cpython/pull/136951#issuecomment-3098676465
GH-136953https://github.com/python/cpython/pull/136953
3.14 branchhttps://github.com/python/cpython/tree/3.14
Please reload this pagehttps://github.com/python/cpython/pull/136951
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
Jul 21, 2025https://github.com/python/cpython/pull/136951#event-18736548267
https://github.com/kumaraditya303
kumaraditya303https://github.com/kumaraditya303
July 21, 2025 20:39https://github.com/python/cpython/pull/136951#event-18736600233
kumaraditya303https://github.com/kumaraditya303
Jul 21, 2025 https://github.com/python/cpython/pull/136951#ref-commit-718fc5b
https://github.com/miss-islington
https://github.com/kumaraditya303
[3.14]https://github.com/python/cpython/commit/718fc5b1393d9ce52fc0353fb361818e865e3e45
gh-136870https://github.com/python/cpython/issues/136870
: fix data race inhttps://github.com/python/cpython/commit/718fc5b1393d9ce52fc0353fb361818e865e3e45
PyThreadState_Clearhttps://github.com/python/cpython/commit/718fc5b1393d9ce52fc0353fb361818e865e3e45
on `sys_trac…https://github.com/python/cpython/commit/718fc5b1393d9ce52fc0353fb361818e865e3e45
718fc5bhttps://github.com/python/cpython/commit/718fc5b1393d9ce52fc0353fb361818e865e3e45
GH-136951https://github.com/python/cpython/pull/136951
#136953https://github.com/python/cpython/pull/136953
gh-136870https://github.com/python/cpython/issues/136870
GH-136951https://github.com/python/cpython/pull/136951
f183996https://github.com/python/cpython/commit/f183996eb77fd2d5662c62667298c292c943ebf5
taegyunkimhttps://github.com/taegyunkim
Aug 4, 2025 https://github.com/python/cpython/pull/136951#ref-commit-26332b8
https://github.com/kumaraditya303
https://github.com/taegyunkim
pythongh-136870https://github.com/python/cpython/issues/136870
: fix data race inhttps://github.com/taegyunkim/cpython/commit/26332b80676014f949f4f80c6c03d4bcb8bf5538
PyThreadState_Clearhttps://github.com/taegyunkim/cpython/commit/26332b80676014f949f4f80c6c03d4bcb8bf5538
on `sys_traci…https://github.com/taegyunkim/cpython/commit/26332b80676014f949f4f80c6c03d4bcb8bf5538
26332b8https://github.com/taegyunkim/cpython/commit/26332b80676014f949f4f80c6c03d4bcb8bf5538
python#136951https://github.com/python/cpython/pull/136951
Agent-Hellboyhttps://github.com/Agent-Hellboy
Aug 19, 2025 https://github.com/python/cpython/pull/136951#ref-commit-15ce56e
https://github.com/kumaraditya303
https://github.com/Agent-Hellboy
pythongh-136870https://github.com/python/cpython/issues/136870
: fix data race inhttps://github.com/Agent-Hellboy/cpython/commit/15ce56ed47950f98a44fd6c428252a137b49aef1
PyThreadState_Clearhttps://github.com/Agent-Hellboy/cpython/commit/15ce56ed47950f98a44fd6c428252a137b49aef1
on `sys_traci…https://github.com/Agent-Hellboy/cpython/commit/15ce56ed47950f98a44fd6c428252a137b49aef1
15ce56ehttps://github.com/Agent-Hellboy/cpython/commit/15ce56ed47950f98a44fd6c428252a137b49aef1
python#136951https://github.com/python/cpython/pull/136951
kumaraditya303https://github.com/kumaraditya303
Sep 9, 2025 https://github.com/python/cpython/pull/136951#ref-commit-20f0380
https://github.com/miss-islington
https://github.com/kumaraditya303
[3.14]https://github.com/miss-islington/cpython/commit/20f03802e8a5271a3843c529980f3785e8f19e6b
pythongh-136870https://github.com/python/cpython/issues/136870
: fix data race inhttps://github.com/miss-islington/cpython/commit/20f03802e8a5271a3843c529980f3785e8f19e6b
PyThreadState_Clearhttps://github.com/miss-islington/cpython/commit/20f03802e8a5271a3843c529980f3785e8f19e6b
on `sy…https://github.com/miss-islington/cpython/commit/20f03802e8a5271a3843c529980f3785e8f19e6b
20f0380https://github.com/miss-islington/cpython/commit/20f03802e8a5271a3843c529980f3785e8f19e6b
pythonGH-136951https://github.com/python/cpython/pull/136951
python#136953https://github.com/python/cpython/pull/136953
pythongh-136870https://github.com/python/cpython/issues/136870
pythonGH-136951https://github.com/python/cpython/pull/136951
f183996https://github.com/miss-islington/cpython/commit/f183996eb77fd2d5662c62667298c292c943ebf5
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%2F136951
https://github.com/colesbury
colesbury https://github.com/colesbury
https://github.com/python/cpython/pull/136951/files/e8225ab6be13c8b229c52917badd29eefa3c681f
https://github.com/ericsnowcurrently
ericsnowcurrently https://github.com/ericsnowcurrently
https://github.com/ZeroIntensity
ZeroIntensity https://github.com/ZeroIntensity
skip news https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22skip%20news%22
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/136951
https://github.com/kumaraditya303
https://github.com/ZeroIntensity
https://github.com/colesbury
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.