René's URL Explorer Experiment


Title: bpo-32604: Fix memory leaks in the new _xxsubinterpreters module. by ericsnowcurrently · Pull Request #5507 · python/cpython · GitHub

Open Graph Title: bpo-32604: Fix memory leaks in the new _xxsubinterpreters module. by ericsnowcurrently · Pull Request #5507 · python/cpython

X Title: bpo-32604: Fix memory leaks in the new _xxsubinterpreters module. by ericsnowcurrently · Pull Request #5507 · python/cpython

Description: This also fixes the 2 coverity-reported defects. https://bugs.python.org/issue32604

Open Graph Description: This also fixes the 2 coverity-reported defects. https://bugs.python.org/issue32604

X Description: This also fixes the 2 coverity-reported defects. https://bugs.python.org/issue32604

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

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:a3c4ab6c-0f5b-9abc-c6e0-e99ffecd1f27
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idEA5C:361E9E:9B3CF:DBCA2:696A5E64
html-safe-noncea33b96d1244f686a28711052bcce9c65e3d104ca8bbe937f9b1af744d7feae66
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQTVDOjM2MUU5RTo5QjNDRjpEQkNBMjo2OTZBNUU2NCIsInZpc2l0b3JfaWQiOiI0MTc1MTY2NDYwNzIxMjU4MDg0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac0305f044343cbb6d2efc35d9d3823c67be8553b4930228fc98c0b79e76cf3f18
hovercard-subject-tagpull_request:166945931
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/5507/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/23d62300ff986272200380b60ef8427d26209a2fea8889c8e8115b20e1ceaf3b/python/cpython/pull/5507
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/23d62300ff986272200380b60ef8427d26209a2fea8889c8e8115b20e1ceaf3b/python/cpython/pull/5507
og:image:altThis also fixes the 2 coverity-reported defects. https://bugs.python.org/issue32604
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameericsnowcurrently
hostnamegithub.com
expected-hostnamegithub.com
None9b7735a184970dd9333b2cbe036c8f3c0a9108c64aaa93827c5a64fc70993392
turbo-cache-controlno-preview
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
release87cbd411c2982752221b5751d583a515b23bf5fa
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/5507#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F5507
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
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
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
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/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%2F5507
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/5507
Reloadhttps://github.com/python/cpython/pull/5507
Reloadhttps://github.com/python/cpython/pull/5507
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/5507
Notifications https://github.com/login?return_to=%2Fpython%2Fcpython
Fork 33.9k https://github.com/login?return_to=%2Fpython%2Fcpython
Star 71.1k 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.1k https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects 31 https://github.com/python/cpython/projects
Security Uh oh! There was an error while loading. Please reload this page. https://github.com/python/cpython/security
Please reload this pagehttps://github.com/python/cpython/pull/5507
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 https://github.com/python/cpython/security
Insights https://github.com/python/cpython/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
Jump to bottomhttps://github.com/python/cpython/pull/5507#issue-comment-box
ericsnowcurrentlyhttps://github.com/ericsnowcurrently
python:masterhttps://github.com/python/cpython/tree/master
ericsnowcurrently:fix-refleaks-interpreters-modulehttps://github.com/ericsnowcurrently/cpython/tree/fix-refleaks-interpreters-module
bpo-32604: Fix memory leaks in the new _xxsubinterpreters module. https://github.com/python/cpython/pull/5507#top
ericsnowcurrentlyhttps://github.com/ericsnowcurrently
python:masterhttps://github.com/python/cpython/tree/master
ericsnowcurrently:fix-refleaks-interpreters-modulehttps://github.com/ericsnowcurrently/cpython/tree/fix-refleaks-interpreters-module
Conversation 3 https://github.com/python/cpython/pull/5507
Commits 19 https://github.com/python/cpython/pull/5507/commits
Checks 0 https://github.com/python/cpython/pull/5507/checks
Files changed https://github.com/python/cpython/pull/5507/files
Please reload this pagehttps://github.com/python/cpython/pull/5507
https://github.co/hiddenchars
https://github.com/python/cpython/pull/{{ revealButtonHref }}
https://github.com/ericsnowcurrently
ericsnowcurrentlyhttps://github.com/ericsnowcurrently
Feb 3, 2018https://github.com/python/cpython/pull/5507#issue-294083004
Please reload this pagehttps://github.com/python/cpython/pull/5507
https://bugs.python.org/issue32604https://bugs.python.org/issue32604
Please reload this pagehttps://github.com/python/cpython/pull/5507
ericsnowcurrentlyhttps://github.com/ericsnowcurrently
February 3, 2018 04:23https://github.com/python/cpython/pull/5507#commits-pushed-e12d641
https://github.com/ericsnowcurrently
DECREF cls in _PyCrossInterpreterData_Lookup().https://github.com/python/cpython/pull/5507/commits/e12d6415c01d24f852ea1b58508c0e6893a82429
e12d641https://github.com/python/cpython/pull/5507/commits/e12d6415c01d24f852ea1b58508c0e6893a82429
https://github.com/ericsnowcurrently
DECREF the id in interp_list_all().https://github.com/python/cpython/pull/5507/commits/ce72eef3f8bfc2e62da50a3baa7f3055daa93253
ce72eefhttps://github.com/python/cpython/pull/5507/commits/ce72eef3f8bfc2e62da50a3baa7f3055daa93253
https://github.com/ericsnowcurrently
Avoid raising RunFailedError.https://github.com/python/cpython/pull/5507/commits/27bbab7f66354dd341c2a6b525d56058d6366b5f
27bbab7https://github.com/python/cpython/pull/5507/commits/27bbab7f66354dd341c2a6b525d56058d6366b5f
https://github.com/ericsnowcurrently
DECREF id in _coerce_id().https://github.com/python/cpython/pull/5507/commits/c744873cee13a39f929b2dc24dde80195c96a868
c744873https://github.com/python/cpython/pull/5507/commits/c744873cee13a39f929b2dc24dde80195c96a868
https://github.com/ericsnowcurrently
DECREF the original error message.https://github.com/python/cpython/pull/5507/commits/e982d873129877788b755765b81542b0155e0ab8
e982d87https://github.com/python/cpython/pull/5507/commits/e982d873129877788b755765b81542b0155e0ab8
https://github.com/ericsnowcurrently
Do not explicitly check against INT64_MAX.https://github.com/python/cpython/pull/5507/commits/aac9485031de7b9c2ee78d13d4a3d9d1fa8e6ec6
aac9485https://github.com/python/cpython/pull/5507/commits/aac9485031de7b9c2ee78d13d4a3d9d1fa8e6ec6
https://github.com/ericsnowcurrently
Free cids when done.https://github.com/python/cpython/pull/5507/commits/35f60460d0106cab5da691276168a544bb3bb30d
35f6046https://github.com/python/cpython/pull/5507/commits/35f60460d0106cab5da691276168a544bb3bb30d
https://github.com/ericsnowcurrently
DECREF other in channelid_richcompare().https://github.com/python/cpython/pull/5507/commits/38d924ece6db72c89b96bbb30e79a4a8bda316b6
38d924ehttps://github.com/python/cpython/pull/5507/commits/38d924ece6db72c89b96bbb30e79a4a8bda316b6
https://github.com/ericsnowcurrently
Add items to non-empty channels.https://github.com/python/cpython/pull/5507/commits/4321ecf1edd15d441a2cc682412fb5b91fd2e2c3
4321ecfhttps://github.com/python/cpython/pull/5507/commits/4321ecf1edd15d441a2cc682412fb5b91fd2e2c3
https://github.com/ericsnowcurrently
Add struct _sharedns and isolate related memory ops.https://github.com/python/cpython/pull/5507/commits/e5a3515af46b3c1fe94624374b68e5418a838465
e5a3515https://github.com/python/cpython/pull/5507/commits/e5a3515af46b3c1fe94624374b68e5418a838465
https://github.com/ericsnowcurrently
Clean up memory ops for _sharedexception.https://github.com/python/cpython/pull/5507/commits/0c0fa3df7cc1f003fefabd4f620857f4b93c986b
0c0fa3dhttps://github.com/python/cpython/pull/5507/commits/0c0fa3df7cc1f003fefabd4f620857f4b93c986b
https://github.com/ericsnowcurrently
Clean up _PyChannelState memory ops.https://github.com/python/cpython/pull/5507/commits/f0d44300e2cbc89338aa8292b53dd4be6fdb7706
f0d4430https://github.com/python/cpython/pull/5507/commits/f0d44300e2cbc89338aa8292b53dd4be6fdb7706
https://github.com/ericsnowcurrently
Add _channelref_free().https://github.com/python/cpython/pull/5507/commits/4802046131d18a4a8294fcde4349f25dccf09085
4802046https://github.com/python/cpython/pull/5507/commits/4802046131d18a4a8294fcde4349f25dccf09085
https://github.com/ericsnowcurrently
Move the RunFailedError definition down.https://github.com/python/cpython/pull/5507/commits/ac7bad55356103302af46255bc00bdba497a4860
ac7bad5https://github.com/python/cpython/pull/5507/commits/ac7bad55356103302af46255bc00bdba497a4860
https://github.com/ericsnowcurrently
Do not INCREF after PyErr_Fetch().https://github.com/python/cpython/pull/5507/commits/0689a9ceebde5645f41fe887efd8a48028ad40f7
0689a9chttps://github.com/python/cpython/pull/5507/commits/0689a9ceebde5645f41fe887efd8a48028ad40f7
https://github.com/ericsnowcurrently
DECREF the exception name.https://github.com/python/cpython/pull/5507/commits/9a91a287dbfb78520b0f3adfeefb0112d522fb93
9a91a28https://github.com/python/cpython/pull/5507/commits/9a91a287dbfb78520b0f3adfeefb0112d522fb93
https://github.com/ericsnowcurrently
Free the channel when we close it.https://github.com/python/cpython/pull/5507/commits/654e59adb98d96da4d6282617d7bd99d3d6e5e47
654e59ahttps://github.com/python/cpython/pull/5507/commits/654e59adb98d96da4d6282617d7bd99d3d6e5e47
https://github.com/ericsnowcurrently
Free the data when we are done with it.https://github.com/python/cpython/pull/5507/commits/8ca3c9691db0a4412c9480cc72722958d3d2af66
8ca3c96https://github.com/python/cpython/pull/5507/commits/8ca3c9691db0a4412c9480cc72722958d3d2af66
https://github.com/ericsnowcurrently
DECREF the ID in channelid_hash().https://github.com/python/cpython/pull/5507/commits/702876b9fee86bd328921a2b0ebae0c69ed60002
702876bhttps://github.com/python/cpython/pull/5507/commits/702876b9fee86bd328921a2b0ebae0c69ed60002
https://github.com/ericsnowcurrently
ericsnowcurrentlyhttps://github.com/ericsnowcurrently
skip news https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22skip%20news%22
Feb 3, 2018https://github.com/python/cpython/pull/5507#event-1456276369
https://github.com/the-knights-who-say-ni
the-knights-who-say-nihttps://github.com/the-knights-who-say-ni
CLA signed https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22CLA%20signed%22
Feb 3, 2018https://github.com/python/cpython/pull/5507#event-1456276377
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
awaiting merge https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20merge%22
Feb 3, 2018https://github.com/python/cpython/pull/5507#event-1456276378
https://github.com/ericsnowcurrently
ericsnowcurrentlyhttps://github.com/ericsnowcurrently
4e9da0dhttps://github.com/python/cpython/commit/4e9da0d163731caa79811c723c703ee416c31826
Feb 3, 2018https://github.com/python/cpython/pull/5507#event-1456281597
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
Feb 3, 2018https://github.com/python/cpython/pull/5507#issuecomment-362779917
@ericsnowcurrentlyhttps://github.com/ericsnowcurrently
Please reload this pagehttps://github.com/python/cpython/pull/5507
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
awaiting merge https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20merge%22
Feb 3, 2018https://github.com/python/cpython/pull/5507#event-1456281612
https://github.com/ericsnowcurrently
ericsnowcurrentlyhttps://github.com/ericsnowcurrently
February 3, 2018 04:49https://github.com/python/cpython/pull/5507#event-1456281629
https://github.com/ericsnowcurrently
ericsnowcurrentlyhttps://github.com/ericsnowcurrently
needs backport to 3.7 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22needs%20backport%20to%203.7%22
Feb 3, 2018https://github.com/python/cpython/pull/5507#event-1456282082
https://github.com/miss-islington
miss-islingtonhttps://github.com/miss-islington
Feb 3, 2018https://github.com/python/cpython/pull/5507#issuecomment-362780034
@ericsnowcurrentlyhttps://github.com/ericsnowcurrently
Please reload this pagehttps://github.com/python/cpython/pull/5507
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
Feb 3, 2018https://github.com/python/cpython/pull/5507#issuecomment-362780079
GH-5509https://github.com/python/cpython/pull/5509
3.7 branchhttps://github.com/python/cpython/tree/3.7
Please reload this pagehttps://github.com/python/cpython/pull/5507
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
needs backport to 3.7 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22needs%20backport%20to%203.7%22
Feb 3, 2018https://github.com/python/cpython/pull/5507#event-1456282339
miss-islingtonhttps://github.com/miss-islington
Feb 3, 2018 https://github.com/python/cpython/pull/5507#ref-commit-baa9fd9
https://github.com/ericsnowcurrently
https://github.com/miss-islington
bpo-32604: Fix memory leaks in the new _xxsubinterpreters module. (https://github.com/miss-islington/cpython/commit/baa9fd9fc63e89a2e4138660b4ad7dc5bc9b7378
py…https://github.com/python/cpython/pull/5507
baa9fd9https://github.com/miss-islington/cpython/commit/baa9fd9fc63e89a2e4138660b4ad7dc5bc9b7378
…thonGH-5507https://github.com/python/cpython/pull/5507
4e9da0dhttps://github.com/miss-islington/cpython/commit/4e9da0d163731caa79811c723c703ee416c31826
ericsnowcurrentlyhttps://github.com/ericsnowcurrently
Feb 3, 2018 https://github.com/python/cpython/pull/5507#ref-commit-f33eced
https://github.com/miss-islington
https://github.com/ericsnowcurrently
bpo-32604https://bugs.python.org/issue?@action=redirect&bpo=32604
: Fix memory leaks in the new _xxsubinterpreters module. (https://github.com/python/cpython/commit/f33ecedcad5a001735fa4ded5d21caa2cbf27911
GH…https://github.com/python/cpython/pull/5507
f33ecedhttps://github.com/python/cpython/commit/f33ecedcad5a001735fa4ded5d21caa2cbf27911
…-5507https://github.com/python/cpython/pull/5507
4e9da0dhttps://github.com/python/cpython/commit/4e9da0d163731caa79811c723c703ee416c31826
https://github.com/ericsnowcurrently
ericsnowcurrentlyhttps://github.com/ericsnowcurrently
Aug 24, 2018 https://github.com/python/cpython/pull/5507#ref-issue-353888754
memory leaks (coverity) ericsnowcurrently/multi-core-python#3 https://github.com/ericsnowcurrently/multi-core-python/issues/3
https://github.com/ericsnowcurrently
ericsnowcurrentlyhttps://github.com/ericsnowcurrently
Apr 10, 2022 https://github.com/python/cpython/pull/5507#ref-issue-1198986115
[subinterpreters] PEP 554 implementation: add interpreters module #76785 https://github.com/python/cpython/issues/76785
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%2F5507
skip news https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22skip%20news%22
Please reload this pagehttps://github.com/python/cpython/pull/5507
https://github.com/ericsnowcurrently
https://github.com/bedevere-bot
https://github.com/miss-islington
https://github.com/the-knights-who-say-ni
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.