René's URL Explorer Experiment


Title: gh-149816: Fix race between `setattr` and `object.__dict__` update by LindaSummer · Pull Request #152296 · python/cpython · GitHub

Open Graph Title: gh-149816: Fix race between `setattr` and `object.__dict__` update by LindaSummer · Pull Request #152296 · python/cpython

X Title: gh-149816: Fix race between `setattr` and `object.__dict__` update by LindaSummer · Pull Request #152296 · python/cpython

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

Open Graph Description: Issue #149816 sub-case 108 Root Cause This race is caused between _PyObject_SetDict and _PyObject_StoreInstanceAttribute. Inside the !FT_ATOMIC_LOAD_UINT8(values->valid) branch the obj and dict ...

X Description: Issue #149816 sub-case 108 Root Cause This race is caused between _PyObject_SetDict and _PyObject_StoreInstanceAttribute. Inside the !FT_ATOMIC_LOAD_UINT8(values->valid) branch the obj and d...

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

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:e16e726d-1100-0df8-1546-db05777dc05a
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idA8E6:497D6:D32977:11DEB38:6A51F957
html-safe-nonce0c1a4666e22c8cf93bf982d26953e346c56ce05b0e8d2c74773accccb5ec425f
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBOEU2OjQ5N0Q2OkQzMjk3NzoxMURFQjM4OjZBNTFGOTU3IiwidmlzaXRvcl9pZCI6IjIwOTYzNjAzODM0NzY1Mjk0OTUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac3d9ac4ec9141f864103cee6186a6b5ac6fa65d76aac5e4a046f367d830e105f8
hovercard-subject-tagpull_request:3942953110
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/152296/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/60327169e6481c6dfe11076c25e871a0a34a5cccb3b8d8ea4b1286a64435498b/python/cpython/pull/152296
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/60327169e6481c6dfe11076c25e871a0a34a5cccb3b8d8ea4b1286a64435498b/python/cpython/pull/152296
og:image:altIssue #149816 sub-case 108 Root Cause This race is caused between _PyObject_SetDict and _PyObject_StoreInstanceAttribute. Inside the !FT_ATOMIC_LOAD_UINT8(values->valid) branch the obj and dict ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameLindaSummer
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/152296#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F152296
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%2F152296
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/152296
Reloadhttps://github.com/python/cpython/pull/152296
Reloadhttps://github.com/python/cpython/pull/152296
Please reload this pagehttps://github.com/python/cpython/pull/152296
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/152296
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
LindaSummerhttps://github.com/LindaSummer
python:mainhttps://github.com/python/cpython/tree/main
LindaSummer:fix/dict_borrow_refhttps://github.com/LindaSummer/cpython/tree/fix/dict_borrow_ref
Conversationhttps://github.com/python/cpython/pull/152296
Commits14 (14)https://github.com/python/cpython/pull/152296/commits
Checkshttps://github.com/python/cpython/pull/152296/checks
Files changedhttps://github.com/python/cpython/pull/152296/files
gh-149816: Fix race between setattr and object.__dict__ updatehttps://github.com/python/cpython/pull/152296#top
LindaSummerhttps://github.com/LindaSummer
python:mainhttps://github.com/python/cpython/tree/main
LindaSummer:fix/dict_borrow_refhttps://github.com/LindaSummer/cpython/tree/fix/dict_borrow_ref
https://github.com/LindaSummer
LindaSummerhttps://github.com/LindaSummer
Jun 26, 2026https://github.com/python/cpython/pull/152296#issue-4752827774
Please reload this pagehttps://github.com/python/cpython/pull/152296
#149816https://github.com/python/cpython/issues/149816
cpython/Objects/dictobject.chttps://github.com/python/cpython/blob/3ffda34f5cd3809a8755c9596948e4e477661d5f/Objects/dictobject.c#L7558-L7570
3ffda34https://github.com/python/cpython/commit/3ffda34f5cd3809a8755c9596948e4e477661d5f
22 free-threading race conditions #149816https://github.com/python/cpython/issues/149816
Please reload this pagehttps://github.com/python/cpython/pull/152296
LindaSummerhttps://github.com/LindaSummer
June 23, 2026 00:03https://github.com/python/cpython/pull/152296#commits-pushed-13d6728
https://github.com/LindaSummer
draft fix patchhttps://github.com/python/cpython/pull/152296/commits/13d6728d07fbd1d685915a08153fc36b0fd81c01
13d6728https://github.com/python/cpython/pull/152296/commits/13d6728d07fbd1d685915a08153fc36b0fd81c01
https://github.com/LindaSummer
todo: test, make draft almost ok.https://github.com/python/cpython/pull/152296/commits/fa8f8b57c7929726b7ab672cd827f3eca4565a36
fa8f8b5https://github.com/python/cpython/pull/152296/commits/fa8f8b57c7929726b7ab672cd827f3eca4565a36
https://github.com/LindaSummer
update for comment.https://github.com/python/cpython/pull/152296/commits/265ff3fb6a536d2589c6df9e30ed3296ac5dc161
265ff3fhttps://github.com/python/cpython/pull/152296/commits/265ff3fb6a536d2589c6df9e30ed3296ac5dc161
https://github.com/LindaSummer
add unit test casehttps://github.com/python/cpython/pull/152296/commits/1cbfd8e17c64f6ef1e8941f2c791dc828b29c349
1cbfd8ehttps://github.com/python/cpython/pull/152296/commits/1cbfd8e17c64f6ef1e8941f2c791dc828b29c349
https://github.com/LindaSummer
add blurb.https://github.com/python/cpython/pull/152296/commits/5ff874d657693f58649abe3a0345251c2942f216
5ff874dhttps://github.com/python/cpython/pull/152296/commits/5ff874d657693f58649abe3a0345251c2942f216
https://github.com/LindaSummer
update test case import.https://github.com/python/cpython/pull/152296/commits/1aaa428388a88c0fdbf97263661e8e620e3074cc
1aaa428https://github.com/python/cpython/pull/152296/commits/1aaa428388a88c0fdbf97263661e8e620e3074cc
https://github.com/LindaSummer
fix unused errorhttps://github.com/python/cpython/pull/152296/commits/fd477ca6f6d85d811bff59b70284b713c10bfacb
fd477cahttps://github.com/python/cpython/pull/152296/commits/fd477ca6f6d85d811bff59b70284b713c10bfacb
https://github.com/LindaSummer
update test casehttps://github.com/python/cpython/pull/152296/commits/aa631bcbfc07b8f8c772b5c3c28346c4083dbdcb
aa631bchttps://github.com/python/cpython/pull/152296/commits/aa631bcbfc07b8f8c772b5c3c28346c4083dbdcb
https://github.com/LindaSummer
LindaSummerhttps://github.com/LindaSummer
markshannonhttps://github.com/markshannon
methanehttps://github.com/methane
code ownershttps://github.com/python/cpython/blob/49d484e4b1665fcb546075edbee429b8184a9d73/.github/CODEOWNERS#L215
June 26, 2026 14:39https://github.com/python/cpython/pull/152296#event-27250700062
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
Jun 26, 2026 https://github.com/python/cpython/pull/152296#ref-issue-4442224953
22 free-threading race conditions #149816 https://github.com/python/cpython/issues/149816
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
Jun 26, 2026https://github.com/python/cpython/pull/152296#event-27250704921
https://github.com/LindaSummer
LindaSummerhttps://github.com/LindaSummer
Jun 26, 2026https://github.com/python/cpython/pull/152296#issuecomment-4810596540
Please reload this pagehttps://github.com/python/cpython/pull/152296
https://github.com/apps/chatgpt-codex-connector
chatgpt-codex-connectorhttps://github.com/apps/chatgpt-codex-connector
Jun 26, 2026 https://github.com/python/cpython/pull/152296#pullrequestreview-4580331837
View reviewed changes https://github.com/python/cpython/pull/152296/files/aa631bcbfc07b8f8c772b5c3c28346c4083dbdcb
chatgpt-codex-connectorhttps://github.com/apps/chatgpt-codex-connector
https://github.com/python/cpython/pull/152296#pullrequestreview-4580331837
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Your team has set up Codex to review pull requests in this repohttps://chatgpt.com/codex/cloud/settings/general
@codexhttps://github.com/codex
@codexhttps://github.com/codex
Please reload this pagehttps://github.com/python/cpython/pull/152296
Objects/dictobject.chttps://github.com/python/cpython/pull/152296/files/aa631bcbfc07b8f8c772b5c3c28346c4083dbdcb#diff-b08a47ddc5bc20b2e99ac2e5aa199ca24a56b994e7bc64e918513356088c20ae
chatgpt-codex-connectorhttps://github.com/apps/chatgpt-codex-connector
Jun 26, 2026https://github.com/python/cpython/pull/152296#discussion_r3482131950
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
https://camo.githubusercontent.com/c595229c0ecb6ee85b9c7804144d495f131a495ec87091fea2b262d954c9a92d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f50312d6f72616e67653f7374796c653d666c6174
Please reload this pagehttps://github.com/python/cpython/pull/152296
https://github.com/LindaSummer
LindaSummerhttps://github.com/LindaSummer
Jun 29, 2026https://github.com/python/cpython/pull/152296#issuecomment-4830975080
@markshannonhttps://github.com/markshannon
@methanehttps://github.com/methane
Please reload this pagehttps://github.com/python/cpython/pull/152296
https://github.com/LindaSummer
LindaSummerhttps://github.com/LindaSummer
Jul 5, 2026https://github.com/python/cpython/pull/152296#issuecomment-4886556581
@kumaraditya303https://github.com/kumaraditya303
Please reload this pagehttps://github.com/python/cpython/pull/152296
https://github.com/kumaraditya303
kumaraditya303https://github.com/kumaraditya303
Jul 6, 2026 https://github.com/python/cpython/pull/152296#pullrequestreview-4634681820
View reviewed changes https://github.com/python/cpython/pull/152296/files/aa631bcbfc07b8f8c772b5c3c28346c4083dbdcb
Objects/dictobject.chttps://github.com/python/cpython/pull/152296/files/aa631bcbfc07b8f8c772b5c3c28346c4083dbdcb#diff-b08a47ddc5bc20b2e99ac2e5aa199ca24a56b994e7bc64e918513356088c20ae
kumaraditya303https://github.com/kumaraditya303
Jul 6, 2026https://github.com/python/cpython/pull/152296#discussion_r3527888090
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/152296
LindaSummerhttps://github.com/LindaSummer
Jul 7, 2026https://github.com/python/cpython/pull/152296#discussion_r3537309525
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
@kumaraditya303https://github.com/kumaraditya303
Please reload this pagehttps://github.com/python/cpython/pull/152296
LindaSummerhttps://github.com/LindaSummer
July 6, 2026 23:15https://github.com/python/cpython/pull/152296#commits-pushed-ed54dbf
https://github.com/LindaSummer
Merge remote-tracking branch 'upstream/main' into fix/dict_borrow_refhttps://github.com/python/cpython/pull/152296/commits/ed54dbffc3e5ad8f40ce389d5da14cb0821d849b
ed54dbfhttps://github.com/python/cpython/pull/152296/commits/ed54dbffc3e5ad8f40ce389d5da14cb0821d849b
https://github.com/LindaSummer
remove complex result struct for try_store_instance_attr_status.https://github.com/python/cpython/pull/152296/commits/1500d1754d1bc69783d66a97c4ff4d2a91387055
1500d17https://github.com/python/cpython/pull/152296/commits/1500d1754d1bc69783d66a97c4ff4d2a91387055
https://github.com/LindaSummer
Merge branch 'main' into fix/dict_borrow_refhttps://github.com/python/cpython/pull/152296/commits/aa58de4d466ed963cd5c1e7cf5bb240735c6bd10
aa58de4https://github.com/python/cpython/pull/152296/commits/aa58de4d466ed963cd5c1e7cf5bb240735c6bd10
https://github.com/LindaSummer
Merge branch 'main' into fix/dict_borrow_refhttps://github.com/python/cpython/pull/152296/commits/09e2148c2f0a7d5e480e26ad0e3b35ba9f2b7221
09e2148https://github.com/python/cpython/pull/152296/commits/09e2148c2f0a7d5e480e26ad0e3b35ba9f2b7221
https://github.com/LindaSummer
Merge branch 'main' into fix/dict_borrow_refhttps://github.com/python/cpython/pull/152296/commits/75c3c652ac8dd4d714887199f21da2c0a3c8dc88
75c3c65https://github.com/python/cpython/pull/152296/commits/75c3c652ac8dd4d714887199f21da2c0a3c8dc88
https://github.com/LindaSummer
LindaSummerhttps://github.com/LindaSummer
Jul 7, 2026https://github.com/python/cpython/pull/152296#issuecomment-4905000580
Please reload this pagehttps://github.com/python/cpython/pull/152296
@kumaraditya303https://github.com/kumaraditya303
#153201https://github.com/python/cpython/issues/153201
Please reload this pagehttps://github.com/python/cpython/pull/152296
https://github.com/LindaSummer
Merge branch 'main' into fix/dict_borrow_refhttps://github.com/python/cpython/pull/152296/commits/43d7cf48c8f0504b10e6c74b3687a730d9bfcff4
43d7cf4https://github.com/python/cpython/pull/152296/commits/43d7cf48c8f0504b10e6c74b3687a730d9bfcff4
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%2F152296
https://github.com/kumaraditya303
kumaraditya303 https://github.com/kumaraditya303
https://github.com/python/cpython/pull/152296/files/aa631bcbfc07b8f8c772b5c3c28346c4083dbdcb
https://github.com/apps/chatgpt-codex-connector
chatgpt-codex-connector[bot] https://github.com/apps/chatgpt-codex-connector
https://github.com/python/cpython/pull/152296/files/aa631bcbfc07b8f8c772b5c3c28346c4083dbdcb
https://github.com/methane
methane https://github.com/methane
https://github.com/markshannon
markshannon https://github.com/markshannon
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/152296
https://github.com/LindaSummer
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.