René's URL Explorer Experiment


Title: [3.14] gh-132551: make `io.BytesIO` thread safe (GH-132616) by kumaraditya303 · Pull Request #138551 · python/cpython · GitHub

Open Graph Title: [3.14] gh-132551: make `io.BytesIO` thread safe (GH-132616) by kumaraditya303 · Pull Request #138551 · python/cpython

X Title: [3.14] gh-132551: make `io.BytesIO` thread safe (GH-132616) by kumaraditya303 · Pull Request #138551 · python/cpython

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

Open Graph Description: (cherry picked from commits 5dd3a3a, 7c92497 and d8fa40b) Issue: Segfault/abort from calling BytesIO unshare_buffer in threads on a free-threaded build #132551

X Description: (cherry picked from commits 5dd3a3a, 7c92497 and d8fa40b) Issue: Segfault/abort from calling BytesIO unshare_buffer in threads on a free-threaded build #132551

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

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:9f22a2cb-6aba-84cb-b3b7-672f94cbe824
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idABBA:21C9D6:1CAE14:255F49:6A53DAEC
html-safe-nonce0528abf46e7ded6d30ebf4c9ebcbfc83c3cdb8a0237a2ead9e42c95f1dab6f74
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQkJBOjIxQzlENjoxQ0FFMTQ6MjU1RjQ5OjZBNTNEQUVDIiwidmlzaXRvcl9pZCI6IjE2NDI4MTczMDQ1MTI0MjA1ODgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac74d63a7e03e4ee618795988dd2d8a7173a81aa164a7180c3500c8b00c94182c6
hovercard-subject-tagpull_request:2803174599
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/138551/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/5f78e5c9f4de0e063d6d4aa65c2eed0950b7d3146e1f056d5b79d20b1982cd85/python/cpython/pull/138551
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/5f78e5c9f4de0e063d6d4aa65c2eed0950b7d3146e1f056d5b79d20b1982cd85/python/cpython/pull/138551
og:image:alt(cherry picked from commits 5dd3a3a, 7c92497 and d8fa40b) Issue: Segfault/abort from calling BytesIO unshare_buffer in threads on a free-threaded build #132551
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamekumaraditya303
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
release07a982c1d40157c619b364352b704c3ce66bb332
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/138551#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F138551
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%2F138551
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/138551
Reloadhttps://github.com/python/cpython/pull/138551
Reloadhttps://github.com/python/cpython/pull/138551
Please reload this pagehttps://github.com/python/cpython/pull/138551
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/138551
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:3.14https://github.com/python/cpython/tree/3.14
kumaraditya303:backport-5dd3a3a-3.14https://github.com/kumaraditya303/cpython/tree/backport-5dd3a3a-3.14
Conversationhttps://github.com/python/cpython/pull/138551
Commits4 (4)https://github.com/python/cpython/pull/138551/commits
Checkshttps://github.com/python/cpython/pull/138551/checks
Files changedhttps://github.com/python/cpython/pull/138551/files
[3.14] gh-132551: make io.BytesIO thread safe (GH-132616)https://github.com/python/cpython/pull/138551#top
kumaraditya303https://github.com/kumaraditya303
python:3.14https://github.com/python/cpython/tree/3.14
kumaraditya303:backport-5dd3a3a-3.14https://github.com/kumaraditya303/cpython/tree/backport-5dd3a3a-3.14
https://github.com/kumaraditya303
kumaraditya303https://github.com/kumaraditya303
Sep 5, 2025https://github.com/python/cpython/pull/138551#issue-3388218940
Please reload this pagehttps://github.com/python/cpython/pull/138551
5dd3a3ahttps://github.com/python/cpython/commit/5dd3a3a58cca4798ebfc2edd673211067453e81e
7c92497https://github.com/python/cpython/commit/7c92497e5c6d3d6c36721f554d09efffbe4bbc23
d8fa40bhttps://github.com/python/cpython/commit/d8fa40b08da60a711311751891fa830cb4ae77f3
Segfault/abort from calling BytesIO unshare_buffer in threads on a free-threaded build #132551https://github.com/python/cpython/issues/132551
Please reload this pagehttps://github.com/python/cpython/pull/138551
https://github.com/tom-pytel
https://github.com/kumaraditya303
[3.14]https://github.com/python/cpython/pull/138551/commits/5b8cff99c74fbc094b93e1a1e81cb8aa0805f7cc
pythongh-132551https://github.com/python/cpython/issues/132551
: makehttps://github.com/python/cpython/pull/138551/commits/5b8cff99c74fbc094b93e1a1e81cb8aa0805f7cc
io.BytesIOhttps://github.com/python/cpython/pull/138551/commits/5b8cff99c74fbc094b93e1a1e81cb8aa0805f7cc
thread safe (https://github.com/python/cpython/pull/138551/commits/5b8cff99c74fbc094b93e1a1e81cb8aa0805f7cc
pythonGH-132616https://github.com/python/cpython/pull/132616
)https://github.com/python/cpython/pull/138551/commits/5b8cff99c74fbc094b93e1a1e81cb8aa0805f7cc
5b8cff9https://github.com/python/cpython/pull/138551/commits/5b8cff99c74fbc094b93e1a1e81cb8aa0805f7cc
5dd3a3ahttps://github.com/kumaraditya303/cpython/commit/5dd3a3a58cca4798ebfc2edd673211067453e81e
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
Sep 5, 2025https://github.com/python/cpython/pull/138551#event-19532846504
Segfault/abort from calling BytesIO unshare_buffer in threads on a free-threaded build #132551 https://github.com/python/cpython/issues/132551
gh-132551: make BytesIO object free-thread safe #132616 https://github.com/python/cpython/pull/132616
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
topic-free-threading https://github.com/python/cpython/issues?q=state%3Aopen%20label%3Atopic-free-threading
Sep 5, 2025https://github.com/python/cpython/pull/138551#event-19532848448
https://github.com/kumaraditya303
kumaraditya303https://github.com/kumaraditya303
Sep 5, 2025https://github.com/python/cpython/pull/138551#event-19532866947
https://github.com/kumaraditya303
kumaraditya303https://github.com/kumaraditya303
🔨 test-with-buildbots https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22%3Ahammer%3A%20test-with-buildbots%22
Sep 5, 2025https://github.com/python/cpython/pull/138551#event-19533103781
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
Sep 5, 2025https://github.com/python/cpython/pull/138551#issuecomment-3259187654
@kumaraditya303https://github.com/kumaraditya303
5b8cff9https://github.com/python/cpython/commit/5b8cff99c74fbc094b93e1a1e81cb8aa0805f7cc
https://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F138551%2Fmergehttps://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F138551%2Fmerge
Please reload this pagehttps://github.com/python/cpython/pull/138551
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
🔨 test-with-buildbots https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22%3Ahammer%3A%20test-with-buildbots%22
Sep 5, 2025https://github.com/python/cpython/pull/138551#event-19533104354
https://github.com/picnixz
picnixzhttps://github.com/picnixz
Sep 6, 2025 https://github.com/python/cpython/pull/138551#pullrequestreview-3192185203
View reviewed changes https://github.com/python/cpython/pull/138551/files/5b8cff99c74fbc094b93e1a1e81cb8aa0805f7cc
Lib/test/test_free_threading/test_io.pyhttps://github.com/python/cpython/pull/138551/files/5b8cff99c74fbc094b93e1a1e81cb8aa0805f7cc#diff-bf1f83ccd2a3dfa0660824e2d685f4980d59e08e094ea0d88d08b074b70bd52d
Please reload this pagehttps://github.com/python/cpython/pull/138551
kumaraditya303https://github.com/kumaraditya303
September 6, 2025 18:47https://github.com/python/cpython/pull/138551#commits-pushed-47400f3
https://github.com/kumaraditya303
https://github.com/picnixz
Update Lib/test/test_free_threading/test_io.pyhttps://github.com/python/cpython/pull/138551/commits/47400f3d0563b39bae2fcc818d665974a5359eac
47400f3https://github.com/python/cpython/pull/138551/commits/47400f3d0563b39bae2fcc818d665974a5359eac
https://github.com/kumaraditya303
pythongh-132551https://github.com/python/cpython/issues/132551
: add missing critical sections on BytesIO methods (https://github.com/python/cpython/pull/138551/commits/6a67559f64885b65e8c95223c0fc6698d24d5930
py…https://github.com/python/cpython/pull/137073
6a67559https://github.com/python/cpython/pull/138551/commits/6a67559f64885b65e8c95223c0fc6698d24d5930
…thon#137073https://github.com/python/cpython/pull/137073
https://github.com/kumaraditya303
Merge branch '3.14' into backport-5dd3a3a-3.14https://github.com/python/cpython/pull/138551/commits/2b6ddaf3f2e060f71ffa07592e96ec03938073a0
2b6ddafhttps://github.com/python/cpython/pull/138551/commits/2b6ddaf3f2e060f71ffa07592e96ec03938073a0
https://github.com/kumaraditya303
kumaraditya303https://github.com/kumaraditya303
23cc8f7https://github.com/python/cpython/commit/23cc8f789d8366573cf12c4495b5a4c9afa64005
Oct 7, 2025https://github.com/python/cpython/pull/138551#event-20147024249
Please reload this pagehttps://github.com/python/cpython/pull/138551
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
Oct 7, 2025https://github.com/python/cpython/pull/138551#event-20147025215
https://github.com/kumaraditya303
kumaraditya303https://github.com/kumaraditya303
October 7, 2025 18:18https://github.com/python/cpython/pull/138551#event-20147025356
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%2F138551
https://github.com/picnixz
picnixz https://github.com/picnixz
https://github.com/python/cpython/pull/138551/files/5b8cff99c74fbc094b93e1a1e81cb8aa0805f7cc
https://github.com/kumaraditya303
kumaraditya303 https://github.com/kumaraditya303
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/138551
https://github.com/kumaraditya303
https://github.com/bedevere-bot
https://github.com/picnixz
https://github.com/tom-pytel
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.