René's URL Explorer Experiment


Title: gh-154523: Fix data-race in `TextIOWrapper.detach()` by brijkapadia · Pull Request #154565 · python/cpython · GitHub

Open Graph Title: gh-154523: Fix data-race in `TextIOWrapper.detach()` by brijkapadia · Pull Request #154565 · python/cpython

X Title: gh-154523: Fix data-race in `TextIOWrapper.detach()` by brijkapadia · Pull Request #154565 · python/cpython

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

Open Graph Description: Issue: Data race: TextIOWrapper.detach() stores self->buffer = NULL non-atomically #154523

X Description: Issue: Data race: TextIOWrapper.detach() stores self->buffer = NULL non-atomically #154523

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

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
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:8eeea8c6-ae3a-405e-162b-1410d617a13e
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idE302:3A4875:3276B0B:433E694:6B01F215
html-safe-nonce048af2ed2e090584764e23602e862f44606e7c40ebe3688790eadf6e03336416
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMzAyOjNBNDg3NTozMjc2QjBCOjQzM0U2OTQ6NkIwMUYyMTUiLCJ2aXNpdG9yX2lkIjoiNDQyOTI1OTQ1NzU3ODUyOTMwMiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacccc94f2d66ea1015dca4d0958005c903f4906bf4aa544c6cac89e6999c44ae3d
hovercard-subject-tagpull_request:4120552616
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/154565/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/98fbb26f0ec17139eea68c16a1478ffa58a75d8073b7ccf5dbed641de65cf89d/python/cpython/pull/154565
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/98fbb26f0ec17139eea68c16a1478ffa58a75d8073b7ccf5dbed641de65cf89d/python/cpython/pull/154565
og:image:altIssue: Data race: TextIOWrapper.detach() stores self->buffer = NULL non-atomically #154523
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamebrijkapadia
hostnamegithub.com
expected-hostnamegithub.com
None87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456
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
release423dbb54c5e7bfecc838eb387c1435eb3d0e760d
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/python/cpython/pull/154565#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F154565
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
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
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://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
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F154565
Sign uphttps://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/154565
Reloadhttps://github.com/python/cpython/pull/154565
Reloadhttps://github.com/python/cpython/pull/154565
pythonhttps://github.com/python
cpythonhttps://github.com/python/cpython
Codehttps://github.com/python/cpython
Issues5k+ (5k+)https://github.com/python/cpython/issues
Pull requests2.4k (2.4k)https://github.com/python/cpython/pulls
Actionshttps://github.com/python/cpython/actions
Projectshttps://github.com/python/cpython/projects
Security and qualityhttps://github.com/python/cpython/security
Insightshttps://github.com/python/cpython/insights
https://github.com/python/cpython
kumaraditya303https://github.com/kumaraditya303
python:mainhttps://github.com/python/cpython/tree/main
brijkapadia:textio-racehttps://github.com/brijkapadia/cpython/tree/textio-race
Conversationhttps://github.com/python/cpython/pull/154565
Commits4 (4)https://github.com/python/cpython/pull/154565/commits
Checkshttps://github.com/python/cpython/pull/154565/checks
Files changedhttps://github.com/python/cpython/pull/154565/files
gh-154523: Fix data-race in TextIOWrapper.detach()https://github.com/python/cpython/pull/154565#top
kumaraditya303https://github.com/kumaraditya303
python:mainhttps://github.com/python/cpython/tree/main
brijkapadia:textio-racehttps://github.com/brijkapadia/cpython/tree/textio-race
https://github.com/brijkapadia
brijkapadiahttps://github.com/brijkapadia
Jul 23, 2026https://github.com/python/cpython/pull/154565#issue-4963558678
Please reload this pagehttps://github.com/python/cpython/pull/154565
Data race: TextIOWrapper.detach() stores self->buffer = NULL non-atomically #154523https://github.com/python/cpython/issues/154523
Please reload this pagehttps://github.com/python/cpython/pull/154565
https://github.com/brijkapadia
pythongh-154523https://github.com/python/cpython/issues/154523
: Fix data-race inhttps://github.com/python/cpython/pull/154565/commits/684f2327b000a753cc6266c0ea418d7d0f3be4eb
TextIOWrapper.detach()https://github.com/python/cpython/pull/154565/commits/684f2327b000a753cc6266c0ea418d7d0f3be4eb
684f232https://github.com/python/cpython/pull/154565/commits/684f2327b000a753cc6266c0ea418d7d0f3be4eb
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
Jul 23, 2026https://github.com/python/cpython/pull/154565#event-28408745799
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
Jul 23, 2026 https://github.com/python/cpython/pull/154565#ref-issue-4955635627
Data race: TextIOWrapper.detach() stores self->buffer = NULL non-atomically #154523 https://github.com/python/cpython/issues/154523
brijkapadiahttps://github.com/brijkapadia
July 23, 2026 19:03https://github.com/python/cpython/pull/154565#commits-pushed-828618f
https://github.com/brijkapadia
Fix newshttps://github.com/python/cpython/pull/154565/commits/828618fdbbe8591fc29d47c008ddd62058e81c9b
828618fhttps://github.com/python/cpython/pull/154565/commits/828618fdbbe8591fc29d47c008ddd62058e81c9b
https://github.com/brijkapadia
implement buffer getterhttps://github.com/python/cpython/pull/154565/commits/12ecdf740dd4e4ebab3a34a911b6ac0c4e8a09c0
12ecdf7https://github.com/python/cpython/pull/154565/commits/12ecdf740dd4e4ebab3a34a911b6ac0c4e8a09c0
https://github.com/brijkapadia
update buffer getterhttps://github.com/python/cpython/pull/154565/commits/2b3b3dc84f59860ac7ce6c34060032ef2714cb8e
2b3b3dchttps://github.com/python/cpython/pull/154565/commits/2b3b3dc84f59860ac7ce6c34060032ef2714cb8e
https://github.com/brijkapadia
brijkapadiahttps://github.com/brijkapadia
Aug 4, 2026https://github.com/python/cpython/pull/154565#issuecomment-5178810481
@kumaraditya303https://github.com/kumaraditya303
Please reload this pagehttps://github.com/python/cpython/pull/154565
https://github.com/kumaraditya303
kumaraditya303https://github.com/kumaraditya303
Aug 4, 2026 https://github.com/python/cpython/pull/154565#pullrequestreview-4854978450
View reviewed changes https://github.com/python/cpython/pull/154565/files/2b3b3dc84f59860ac7ce6c34060032ef2714cb8e
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 review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20review%22
Aug 4, 2026https://github.com/python/cpython/pull/154565#event-28951492743
https://github.com/kumaraditya303
kumaraditya303https://github.com/kumaraditya303
8440a6ahttps://github.com/python/cpython/commit/8440a6a4651f93ecd1c7768ffb2c735c5b9fb984
Aug 4, 2026https://github.com/python/cpython/pull/154565#event-28951694074
Please reload this pagehttps://github.com/python/cpython/pull/154565
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 4, 2026https://github.com/python/cpython/pull/154565#event-28951697801
https://github.com/brijkapadia
brijkapadiahttps://github.com/brijkapadia
August 4, 2026 13:37https://github.com/python/cpython/pull/154565#event-28952183355
mbeijenhttps://github.com/mbeijen
Aug 14, 2026 https://github.com/python/cpython/pull/154565#ref-commit-8642dd0
https://github.com/brijkapadia
https://github.com/mbeijen
pythongh-154523https://github.com/python/cpython/issues/154523
: Fix data-race inhttps://github.com/mbeijen/cpython/commit/8642dd03ec00513addd6bb0eabc8f2b4e499cc6c
TextIOWrapper.detach()https://github.com/mbeijen/cpython/commit/8642dd03ec00513addd6bb0eabc8f2b4e499cc6c
(https://github.com/mbeijen/cpython/commit/8642dd03ec00513addd6bb0eabc8f2b4e499cc6c
python#15…https://github.com/python/cpython/pull/154565
8642dd0https://github.com/mbeijen/cpython/commit/8642dd03ec00513addd6bb0eabc8f2b4e499cc6c
…4565https://github.com/python/cpython/pull/154565
vstinnerhttps://github.com/vstinner
Oct 16, 2026 https://github.com/python/cpython/pull/154565#ref-commit-ea1312b
https://github.com/vstinner
https://github.com/cmaloney
https://github.com/yihong0618
https://github.com/brijkapadia
https://github.com/ashm-dev
[3.15]https://github.com/python/cpython/commit/ea1312bdb446a536964ec7133625ae6aa6a592bf
gh-157364https://github.com/python/cpython/issues/157364
: Fix use-after-free in io.TextIOWrapper during reent…https://github.com/python/cpython/commit/ea1312bdb446a536964ec7133625ae6aa6a592bf
ea1312bhttps://github.com/python/cpython/commit/ea1312bdb446a536964ec7133625ae6aa6a592bf
#159591https://github.com/python/cpython/pull/159591
gh-143008https://github.com/python/cpython/issues/143008
#145957https://github.com/python/cpython/pull/145957
gh-143041https://github.com/python/cpython/pull/143041
db4b194https://github.com/python/cpython/commit/db4b1948bc4ad5e7230fe1f2814da409ca1d669b
gh-154523https://github.com/python/cpython/issues/154523
#154565https://github.com/python/cpython/pull/154565
8440a6ahttps://github.com/python/cpython/commit/8440a6a4651f93ecd1c7768ffb2c735c5b9fb984
gh-157364https://github.com/python/cpython/issues/157364
#157370https://github.com/python/cpython/pull/157370
e19dc47https://github.com/python/cpython/commit/e19dc470f4c2afd7ac944896232a3a6ca0204399
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
Oct 16, 2026 https://github.com/python/cpython/pull/154565#ref-pullrequest-5892585714
[3.14] gh-157364: Fix use-after-free in io.TextIOWrapper during reentrant detach #159600 https://github.com/python/cpython/pull/159600
vstinnerhttps://github.com/vstinner
Oct 16, 2026 https://github.com/python/cpython/pull/154565#ref-commit-13fc16c
https://github.com/vstinner
https://github.com/cmaloney
https://github.com/yihong0618
https://github.com/brijkapadia
https://github.com/ashm-dev
[3.14]https://github.com/python/cpython/commit/13fc16c9c0e2b2055aa1d01c93cff2e8b50c445c
gh-157364https://github.com/python/cpython/issues/157364
: Fix use-after-free in io.TextIOWrapper during reent…https://github.com/python/cpython/commit/13fc16c9c0e2b2055aa1d01c93cff2e8b50c445c
13fc16chttps://github.com/python/cpython/commit/13fc16c9c0e2b2055aa1d01c93cff2e8b50c445c
#159600https://github.com/python/cpython/pull/159600
gh-157364https://github.com/python/cpython/issues/157364
#159591https://github.com/python/cpython/pull/159591
gh-143008https://github.com/python/cpython/issues/143008
#145957https://github.com/python/cpython/pull/145957
gh-143041https://github.com/python/cpython/pull/143041
db4b194https://github.com/python/cpython/commit/db4b1948bc4ad5e7230fe1f2814da409ca1d669b
gh-154523https://github.com/python/cpython/issues/154523
#154565https://github.com/python/cpython/pull/154565
8440a6ahttps://github.com/python/cpython/commit/8440a6a4651f93ecd1c7768ffb2c735c5b9fb984
gh-157364https://github.com/python/cpython/issues/157364
#157370https://github.com/python/cpython/pull/157370
e19dc47https://github.com/python/cpython/commit/e19dc470f4c2afd7ac944896232a3a6ca0204399
ea1312bhttps://github.com/python/cpython/commit/ea1312bdb446a536964ec7133625ae6aa6a592bf
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%2F154565
https://github.com/kumaraditya303
kumaraditya303 https://github.com/kumaraditya303
https://github.com/python/cpython/pull/154565/files/2b3b3dc84f59860ac7ce6c34060032ef2714cb8e
Please reload this pagehttps://github.com/python/cpython/pull/154565
Please reload this pagehttps://github.com/python/cpython/pull/154565
https://github.com/brijkapadia
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.