René's URL Explorer Experiment


Title: gh-149816: Fix race conditions in `Modules/_elementtree.c` with free-threaded by ByteFlowing1337 · Pull Request #149918 · python/cpython · GitHub

Open Graph Title: gh-149816: Fix race conditions in `Modules/_elementtree.c` with free-threaded by ByteFlowing1337 · Pull Request #149918 · python/cpython

X Title: gh-149816: Fix race conditions in `Modules/_elementtree.c` with free-threaded by ByteFlowing1337 · Pull Request #149918 · python/cpython

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

Open Graph Description: This PR fixes (69) Unsynchronized extra pointer dereference in len in Modules/_elementtree.c mentioned in #149816. It also fixes race condition in getting attrib. Issue: 22 free-threading race co...

X Description: This PR fixes (69) Unsynchronized extra pointer dereference in len in Modules/_elementtree.c mentioned in #149816. It also fixes race condition in getting attrib. Issue: 22 free-threading race co...

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

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:94232d15-7d3d-83aa-c2fb-0441200cb4fd
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idEB54:163D9C:21C4406:2CBB06C:6A51F963
html-safe-nonce804191523262afdc4e825c9b03509a9f0b24d61a7ff0c8d5114ea4602947c08b
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQjU0OjE2M0Q5QzoyMUM0NDA2OjJDQkIwNkM6NkE1MUY5NjMiLCJ2aXNpdG9yX2lkIjoiNTY3Njg1ODYwMjc3MTU3NzE4NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac7380ee57430cd51e251ba5ca89a904650131c3aab8349869db76265ff946d0d9
hovercard-subject-tagpull_request:3694304845
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/149918/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/081b16bbae569965766eea997ce26581672c152ff73807fe7290667694943f7d/python/cpython/pull/149918
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/081b16bbae569965766eea997ce26581672c152ff73807fe7290667694943f7d/python/cpython/pull/149918
og:image:altThis PR fixes (69) Unsynchronized extra pointer dereference in len in Modules/_elementtree.c mentioned in #149816. It also fixes race condition in getting attrib. Issue: 22 free-threading race co...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameByteFlowing1337
hostnamegithub.com
expected-hostnamegithub.com
Noneb9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb
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
release7aed05249554b889eb33d002851a973eebcc7e91
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/149918#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F149918
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%2F149918
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/149918
Reloadhttps://github.com/python/cpython/pull/149918
Reloadhttps://github.com/python/cpython/pull/149918
Please reload this pagehttps://github.com/python/cpython/pull/149918
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/149918
Notifications https://github.com/login?return_to=%2Fpython%2Fcpython
Fork 35k https://github.com/login?return_to=%2Fpython%2Fcpython
Star 73.7k 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
ByteFlowing1337https://github.com/ByteFlowing1337
python:mainhttps://github.com/python/cpython/tree/main
ByteFlowing1337:fix-149816https://github.com/ByteFlowing1337/cpython/tree/fix-149816
Conversationhttps://github.com/python/cpython/pull/149918
Commits9 (9)https://github.com/python/cpython/pull/149918/commits
Checkshttps://github.com/python/cpython/pull/149918/checks
Files changedhttps://github.com/python/cpython/pull/149918/files
gh-149816: Fix race conditions in Modules/_elementtree.c with free-threadedhttps://github.com/python/cpython/pull/149918#top
ByteFlowing1337https://github.com/ByteFlowing1337
python:mainhttps://github.com/python/cpython/tree/main
ByteFlowing1337:fix-149816https://github.com/ByteFlowing1337/cpython/tree/fix-149816
https://github.com/ByteFlowing1337
ByteFlowing1337https://github.com/ByteFlowing1337
May 16, 2026https://github.com/python/cpython/pull/149918#issue-4459643295
Please reload this pagehttps://github.com/python/cpython/pull/149918
#149816https://github.com/python/cpython/issues/149816
22 free-threading race conditions #149816https://github.com/python/cpython/issues/149816
Please reload this pagehttps://github.com/python/cpython/pull/149918
ByteFlowing1337https://github.com/ByteFlowing1337
May 16, 2026 18:14https://github.com/python/cpython/pull/149918#commits-pushed-94a0e28
https://github.com/ByteFlowing1337
fix: Fix race condition in elementtree with free-threadinghttps://github.com/python/cpython/pull/149918/commits/94a0e28faebdd771e161a441e56fda6dff54c817
94a0e28https://github.com/python/cpython/pull/149918/commits/94a0e28faebdd771e161a441e56fda6dff54c817
https://github.com/ByteFlowing1337
clear commentshttps://github.com/python/cpython/pull/149918/commits/b3cad8bb914a5b281052858cb0d92b0f54a09161
b3cad8bhttps://github.com/python/cpython/pull/149918/commits/b3cad8bb914a5b281052858cb0d92b0f54a09161
https://github.com/ByteFlowing1337
fixhttps://github.com/python/cpython/pull/149918/commits/1dc4f3696b15ff5b03c7c8acc396a23130b2ef26
1dc4f36https://github.com/python/cpython/pull/149918/commits/1dc4f3696b15ff5b03c7c8acc396a23130b2ef26
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
awaiting review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20review%22
May 16, 2026https://github.com/python/cpython/pull/149918#event-25607141644
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
May 16, 2026 https://github.com/python/cpython/pull/149918#ref-issue-4442224953
22 free-threading race conditions #149816 https://github.com/python/cpython/issues/149816
ByteFlowing1337https://github.com/ByteFlowing1337
May 16, 2026 19:09https://github.com/python/cpython/pull/149918#commits-pushed-4e16057
https://github.com/ByteFlowing1337
fix CI testshttps://github.com/python/cpython/pull/149918/commits/4e1605782a39c45bc5a62401be1c08e5b8533628
4e16057https://github.com/python/cpython/pull/149918/commits/4e1605782a39c45bc5a62401be1c08e5b8533628
https://github.com/ByteFlowing1337
add newshttps://github.com/python/cpython/pull/149918/commits/6d8b5599ddc53558bb68497e1d4f5934d17a5c0f
6d8b559https://github.com/python/cpython/pull/149918/commits/6d8b5599ddc53558bb68497e1d4f5934d17a5c0f
https://github.com/ByteFlowing1337
Improve naming of free-threading race testhttps://github.com/python/cpython/pull/149918/commits/de9bbf6a68a7fa68c293bf6ab6b4afdf2ce601e3
de9bbf6https://github.com/python/cpython/pull/149918/commits/de9bbf6a68a7fa68c293bf6ab6b4afdf2ce601e3
https://github.com/dpdani
dpdanihttps://github.com/dpdani
Jun 8, 2026 https://github.com/python/cpython/pull/149918#pullrequestreview-4427590340
View reviewed changes https://github.com/python/cpython/pull/149918/files/de9bbf6a68a7fa68c293bf6ab6b4afdf2ce601e3
Lib/test/test_xml_etree_c.pyhttps://github.com/python/cpython/pull/149918/files/de9bbf6a68a7fa68c293bf6ab6b4afdf2ce601e3#diff-f6a8b0add3c473134d7ff3bebba5693bb02a850fcfa6e27800925f849e221285
Please reload this pagehttps://github.com/python/cpython/pull/149918
Lib/test/test_xml_etree_c.pyhttps://github.com/python/cpython/pull/149918/files/de9bbf6a68a7fa68c293bf6ab6b4afdf2ce601e3#diff-f6a8b0add3c473134d7ff3bebba5693bb02a850fcfa6e27800925f849e221285
Please reload this pagehttps://github.com/python/cpython/pull/149918
Misc/NEWS.d/next/Library/2026-05-16-19-13-58.gh-issue-149816.Ht-jC5.rsthttps://github.com/python/cpython/pull/149918/files/de9bbf6a68a7fa68c293bf6ab6b4afdf2ce601e3#diff-26017e4ab3f65d1c8ba6c3ef58a5dbb75888a0dc3d139a322a7b87a6c476e6c3
Please reload this pagehttps://github.com/python/cpython/pull/149918
Modules/_elementtree.chttps://github.com/python/cpython/pull/149918/files/de9bbf6a68a7fa68c293bf6ab6b4afdf2ce601e3#diff-72f80c6ac0294ae74c7b014c12bcf229e9df089ab19018ea35fd61c58fdb69ac
Please reload this pagehttps://github.com/python/cpython/pull/149918
Modules/_elementtree.chttps://github.com/python/cpython/pull/149918/files/de9bbf6a68a7fa68c293bf6ab6b4afdf2ce601e3#diff-72f80c6ac0294ae74c7b014c12bcf229e9df089ab19018ea35fd61c58fdb69ac
Please reload this pagehttps://github.com/python/cpython/pull/149918
Modules/_elementtree.chttps://github.com/python/cpython/pull/149918/files/de9bbf6a68a7fa68c293bf6ab6b4afdf2ce601e3#diff-72f80c6ac0294ae74c7b014c12bcf229e9df089ab19018ea35fd61c58fdb69ac
Please reload this pagehttps://github.com/python/cpython/pull/149918
https://github.com/ByteFlowing1337
address reviewhttps://github.com/python/cpython/pull/149918/commits/2f71c508c7af5f12373acb5da521fd19a0df1578
2f71c50https://github.com/python/cpython/pull/149918/commits/2f71c508c7af5f12373acb5da521fd19a0df1578
https://github.com/ByteFlowing1337
ByteFlowing1337https://github.com/ByteFlowing1337
Jun 10, 2026https://github.com/python/cpython/pull/149918#issuecomment-4671225326
@dpdanihttps://github.com/dpdani
Please reload this pagehttps://github.com/python/cpython/pull/149918
ByteFlowing1337https://github.com/ByteFlowing1337
June 10, 2026 22:44https://github.com/python/cpython/pull/149918#commits-pushed-bb270e7
https://github.com/ByteFlowing1337
PyErr_SetString in element_get_attrib() is removedhttps://github.com/python/cpython/pull/149918/commits/bb270e7b471cbdb71c752a29fd76f8d97d244d7b
bb270e7https://github.com/python/cpython/pull/149918/commits/bb270e7b471cbdb71c752a29fd76f8d97d244d7b
https://github.com/ByteFlowing1337
Merge branch 'main' into fix-149816https://github.com/python/cpython/pull/149918/commits/8b882716d9718ec02c504b1409fa226617c35f31
8b88271https://github.com/python/cpython/pull/149918/commits/8b882716d9718ec02c504b1409fa226617c35f31
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%2F149918
https://github.com/dpdani
dpdani https://github.com/dpdani
https://github.com/python/cpython/pull/149918/files/de9bbf6a68a7fa68c293bf6ab6b4afdf2ce601e3
awaiting review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20review%22
Please reload this pagehttps://github.com/python/cpython/pull/149918
https://github.com/ByteFlowing1337
https://github.com/dpdani
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.