René's URL Explorer Experiment


Title: gh-151126: Fix missing memory errors in `_interpchannelsmodule.c` by sobolevn · Pull Request #151239 · python/cpython · GitHub

Open Graph Title: gh-151126: Fix missing memory errors in `_interpchannelsmodule.c` by sobolevn · Pull Request #151239 · python/cpython

X Title: gh-151126: Fix missing memory errors in `_interpchannelsmodule.c` by sobolevn · Pull Request #151239 · python/cpython

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

Open Graph Description: Issue: Many places have missing PyErr_NoMemory() call after failing memory allocation #151126

X Description: Issue: Many places have missing PyErr_NoMemory() call after failing memory allocation #151126

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

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:1aa1a6da-2a79-b432-bda4-643488455abf
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idCCFE:2965CC:6526C2:89E6F9:6A514E3A
html-safe-noncee6b5ac15382389d047e457e11bad871607e0b8784769c71b47c5729eccf511cd
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQ0ZFOjI5NjVDQzo2NTI2QzI6ODlFNkY5OjZBNTE0RTNBIiwidmlzaXRvcl9pZCI6IjY3OTc0ODIzMjE1NTMxOTg2NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacbbf2d6f06c853cfd5c2d812834382354f3258756b26aeba9b4678ddf369d32a3
hovercard-subject-tagpull_request:3839254647
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/151239/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/ecef119ca4913fac8db6061da4c045e731521ed64d255812ae15cdffb6266fc0/python/cpython/pull/151239
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/ecef119ca4913fac8db6061da4c045e731521ed64d255812ae15cdffb6266fc0/python/cpython/pull/151239
og:image:altIssue: Many places have missing PyErr_NoMemory() call after failing memory allocation #151126
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamesobolevn
hostnamegithub.com
expected-hostnamegithub.com
None6f17634ed2af1d116850bcea6c63a70a4d72970f33ade1dd3eef3764b7e16994
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
release511bff6ea06e144ed085ff736aea4c6404987b00
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/151239#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F151239
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%2F151239
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/151239
Reloadhttps://github.com/python/cpython/pull/151239
Reloadhttps://github.com/python/cpython/pull/151239
Please reload this pagehttps://github.com/python/cpython/pull/151239
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/151239
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
sobolevnhttps://github.com/sobolevn
python:mainhttps://github.com/python/cpython/tree/main
sobolevn:issue-151126-_interpchannelsmodulehttps://github.com/sobolevn/cpython/tree/issue-151126-_interpchannelsmodule
Conversationhttps://github.com/python/cpython/pull/151239
Commits3 (3)https://github.com/python/cpython/pull/151239/commits
Checkshttps://github.com/python/cpython/pull/151239/checks
Files changedhttps://github.com/python/cpython/pull/151239/files
gh-151126: Fix missing memory errors in _interpchannelsmodule.chttps://github.com/python/cpython/pull/151239#top
sobolevnhttps://github.com/sobolevn
python:mainhttps://github.com/python/cpython/tree/main
sobolevn:issue-151126-_interpchannelsmodulehttps://github.com/sobolevn/cpython/tree/issue-151126-_interpchannelsmodule
https://github.com/sobolevn
sobolevnhttps://github.com/sobolevn
Jun 10, 2026https://github.com/python/cpython/pull/151239#issue-4631003851
Please reload this pagehttps://github.com/python/cpython/pull/151239
Many places have missing PyErr_NoMemory() call after failing memory allocation #151126https://github.com/python/cpython/issues/151126
Please reload this pagehttps://github.com/python/cpython/pull/151239
https://github.com/sobolevn
pythongh-151126https://github.com/python/cpython/issues/151126
: Fix missing memory errors inhttps://github.com/python/cpython/pull/151239/commits/5f4e2e81db1d3425af541a21b86186d35fa4fb60
_interpchannelsmodule.chttps://github.com/python/cpython/pull/151239/commits/5f4e2e81db1d3425af541a21b86186d35fa4fb60
5f4e2e8https://github.com/python/cpython/pull/151239/commits/5f4e2e81db1d3425af541a21b86186d35fa4fb60
https://github.com/sobolevn
sobolevnhttps://github.com/sobolevn
serhiy-storchakahttps://github.com/serhiy-storchaka
June 10, 2026 12:04https://github.com/python/cpython/pull/151239#event-26572482542
https://github.com/sobolevn
sobolevnhttps://github.com/sobolevn
ericsnowcurrentlyhttps://github.com/ericsnowcurrently
code ownerhttps://github.com/python/cpython/blob/3ca93ab198497da9451101019b67c52e7873377d/.github/CODEOWNERS#L349
June 10, 2026 12:04https://github.com/python/cpython/pull/151239#event-26572483062
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
Jun 10, 2026https://github.com/python/cpython/pull/151239#event-26572486598
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
Jun 10, 2026 https://github.com/python/cpython/pull/151239#ref-issue-4619485083
Many places have missing PyErr_NoMemory() call after failing memory allocation #151126 https://github.com/python/cpython/issues/151126
sobolevnhttps://github.com/sobolevn
June 10, 2026 15:12https://github.com/python/cpython/pull/151239#commits-pushed-9d52433
https://github.com/sobolevn
Fix docshttps://github.com/python/cpython/pull/151239/commits/9d524335142eb19503adfe02603bbb312d0d484e
9d52433https://github.com/python/cpython/pull/151239/commits/9d524335142eb19503adfe02603bbb312d0d484e
https://github.com/sobolevn
Fix docshttps://github.com/python/cpython/pull/151239/commits/96c750a2c56c662147f9594a8d90ade7dc739c11
96c750ahttps://github.com/python/cpython/pull/151239/commits/96c750a2c56c662147f9594a8d90ade7dc739c11
https://github.com/sobolevn
sobolevnhttps://github.com/sobolevn
needs backport to 3.13 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22needs%20backport%20to%203.13%22
needs backport to 3.14 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22needs%20backport%20to%203.14%22
needs backport to 3.15 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22needs%20backport%20to%203.15%22
Jun 10, 2026https://github.com/python/cpython/pull/151239#event-26574781139
https://github.com/serhiy-storchaka
serhiy-storchakahttps://github.com/serhiy-storchaka
Jun 10, 2026 https://github.com/python/cpython/pull/151239#pullrequestreview-4469335788
View reviewed changes https://github.com/python/cpython/pull/151239/files/96c750a2c56c662147f9594a8d90ade7dc739c11
serhiy-storchakahttps://github.com/serhiy-storchaka
https://github.com/python/cpython/pull/151239#pullrequestreview-4469335788
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/151239
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
Jun 10, 2026https://github.com/python/cpython/pull/151239#event-26582316550
https://github.com/sobolevn
sobolevnhttps://github.com/sobolevn
Jun 10, 2026https://github.com/python/cpython/pull/151239#issuecomment-4672016056
Please reload this pagehttps://github.com/python/cpython/pull/151239
https://github.com/sobolevn
sobolevnhttps://github.com/sobolevn
9fd1a12https://github.com/python/cpython/commit/9fd1a125bc0ebdc26eae684da6e48ef24ee23b34
Jun 10, 2026https://github.com/python/cpython/pull/151239#event-26583124810
Please reload this pagehttps://github.com/python/cpython/pull/151239
https://github.com/apps/miss-islington-app
miss-islington-apphttps://github.com/apps/miss-islington-app
Jun 10, 2026https://github.com/python/cpython/pull/151239#issuecomment-4672017991
@sobolevnhttps://github.com/sobolevn
Please reload this pagehttps://github.com/python/cpython/pull/151239
https://github.com/apps/miss-islington-app
miss-islington-apphttps://github.com/apps/miss-islington-app
Jun 10, 2026https://github.com/python/cpython/pull/151239#issuecomment-4672022006
@sobolevnhttps://github.com/sobolevn
cherry_pickerhttps://pypi.org/project/cherry-picker/
Please reload this pagehttps://github.com/python/cpython/pull/151239
https://github.com/apps/miss-islington-app
miss-islington-apphttps://github.com/apps/miss-islington-app
sobolevnhttps://github.com/sobolevn
Jun 10, 2026https://github.com/python/cpython/pull/151239#event-26583150239
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
Jun 10, 2026https://github.com/python/cpython/pull/151239#issuecomment-4672022771
GH-151265https://github.com/python/cpython/pull/151265
3.15 branchhttps://github.com/python/cpython/tree/3.15
Please reload this pagehttps://github.com/python/cpython/pull/151239
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
needs backport to 3.15 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22needs%20backport%20to%203.15%22
Jun 10, 2026https://github.com/python/cpython/pull/151239#event-26583154131
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
Jun 10, 2026https://github.com/python/cpython/pull/151239#issuecomment-4672024093
GH-151266https://github.com/python/cpython/pull/151266
3.13 branchhttps://github.com/python/cpython/tree/3.13
Please reload this pagehttps://github.com/python/cpython/pull/151239
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
needs backport to 3.13 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22needs%20backport%20to%203.13%22
Jun 10, 2026https://github.com/python/cpython/pull/151239#event-26583162414
sobolevnhttps://github.com/sobolevn
Jun 10, 2026 https://github.com/python/cpython/pull/151239#ref-commit-54ee910
https://github.com/miss-islington
https://github.com/sobolevn
[3.15]https://github.com/python/cpython/commit/54ee910bcd107ed5645ab5f88a0491266bb725c8
gh-151126https://github.com/python/cpython/issues/151126
: Fix missing memory errors in `_interpchannelsmodule…https://github.com/python/cpython/commit/54ee910bcd107ed5645ab5f88a0491266bb725c8
54ee910https://github.com/python/cpython/commit/54ee910bcd107ed5645ab5f88a0491266bb725c8
GH-151239https://github.com/python/cpython/pull/151239
#151265https://github.com/python/cpython/pull/151265
gh-151126https://github.com/python/cpython/issues/151126
GH-151239https://github.com/python/cpython/pull/151239
9fd1a12https://github.com/python/cpython/commit/9fd1a125bc0ebdc26eae684da6e48ef24ee23b34
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
Jun 11, 2026https://github.com/python/cpython/pull/151239#issuecomment-4680888757
GH-151336https://github.com/python/cpython/pull/151336
3.14 branchhttps://github.com/python/cpython/tree/3.14
Please reload this pagehttps://github.com/python/cpython/pull/151239
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
Jun 11, 2026https://github.com/python/cpython/pull/151239#event-26626530210
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
Jun 11, 2026https://github.com/python/cpython/pull/151239#issuecomment-4680907519
GH-151338https://github.com/python/cpython/pull/151338
3.13 branchhttps://github.com/python/cpython/tree/3.13
Please reload this pagehttps://github.com/python/cpython/pull/151239
sobolevnhttps://github.com/sobolevn
Jun 11, 2026 https://github.com/python/cpython/pull/151239#ref-commit-1d74300
https://github.com/sobolevn
[3.13]https://github.com/python/cpython/commit/1d74300f9f69b93045e333401e1cc4d5b7aac741
gh-151126https://github.com/python/cpython/issues/151126
: Fix missing memory errors in `_interpchannelsmodule…https://github.com/python/cpython/commit/1d74300f9f69b93045e333401e1cc4d5b7aac741
1d74300https://github.com/python/cpython/commit/1d74300f9f69b93045e333401e1cc4d5b7aac741
GH-151239https://github.com/python/cpython/pull/151239
#151338https://github.com/python/cpython/pull/151338
9fd1a12https://github.com/python/cpython/commit/9fd1a125bc0ebdc26eae684da6e48ef24ee23b34
sobolevnhttps://github.com/sobolevn
Jun 11, 2026 https://github.com/python/cpython/pull/151239#ref-commit-bbcd28e
https://github.com/sobolevn
[3.14]https://github.com/python/cpython/commit/bbcd28e00b3a55dcb5d135ad39e73c29a0b04f2e
gh-151126https://github.com/python/cpython/issues/151126
: Fix missing memory errors in `_interpchannelsmodule…https://github.com/python/cpython/commit/bbcd28e00b3a55dcb5d135ad39e73c29a0b04f2e
bbcd28ehttps://github.com/python/cpython/commit/bbcd28e00b3a55dcb5d135ad39e73c29a0b04f2e
GH-151239https://github.com/python/cpython/pull/151239
#151336https://github.com/python/cpython/pull/151336
9fd1a12https://github.com/python/cpython/commit/9fd1a125bc0ebdc26eae684da6e48ef24ee23b34
gh-150213: Fix OOM error handling in _interpchannels #150214 https://github.com/python/cpython/pull/150214
_interpchannels: missing PyErr_NoMemory() causes SystemErroron OOM in {create,close}() #150213 https://github.com/python/cpython/issues/150213
philthompson10https://github.com/philthompson10
Jun 17, 2026 https://github.com/python/cpython/pull/151239#ref-commit-13d4497
https://github.com/sobolevn
https://github.com/philthompson10
pythongh-151126https://github.com/python/cpython/issues/151126
: Fix missing memory errors in `_interpchannelsmodule.…https://github.com/philthompson10/cpython/commit/13d4497f56eb98b02aa4c845ab8fede7c22fc534
13d4497https://github.com/philthompson10/cpython/commit/13d4497f56eb98b02aa4c845ab8fede7c22fc534
python#151239https://github.com/python/cpython/pull/151239
https://github.com/sobolevn
sobolevnhttps://github.com/sobolevn
Jun 25, 2026 https://github.com/python/cpython/pull/151239#ref-issue-4741458278
Fix error handling in Modules/_interpchannelsmodule.c #152156 https://github.com/python/cpython/issues/152156
_interpchannels.create() debug aborts if channel lock allocation fails #152635 https://github.com/python/cpython/issues/152635
gh-152635: Raise MemoryError rather than fail assert() when the lock allocation fails in _interpchannels.create() #152642 https://github.com/python/cpython/pull/152642
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%2F151239
https://github.com/serhiy-storchaka
serhiy-storchaka https://github.com/serhiy-storchaka
https://github.com/python/cpython/pull/151239/files/96c750a2c56c662147f9594a8d90ade7dc739c11
https://github.com/ericsnowcurrently
ericsnowcurrently https://github.com/ericsnowcurrently
https://github.com/sobolevn
sobolevn https://github.com/sobolevn
awaiting merge https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20merge%22
Please reload this pagehttps://github.com/python/cpython/pull/151239
https://github.com/sobolevn
https://github.com/serhiy-storchaka
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.