René's URL Explorer Experiment


Title: gh-151378: Fix unbounded memory growth when recording binary and the thread is sleeping by maurycy · Pull Request #152089 · python/cpython · GitHub

Open Graph Title: gh-151378: Fix unbounded memory growth when recording binary and the thread is sleeping by maurycy · Pull Request #152089 · python/cpython

X Title: gh-151378: Fix unbounded memory growth when recording binary and the thread is sleeping by maurycy · Pull Request #152089 · python/cpython

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

Open Graph Description: Fixes #151378 I've described the root cause in #151378. Instead of adding some LIMIT and checking it, I'm doing two tricks here that spare us one struct and some complexity: using a fixed b...

X Description: Fixes #151378 I've described the root cause in #151378. Instead of adding some LIMIT and checking it, I'm doing two tricks here that spare us one struct and some complexity: using a...

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

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:67e0c178-357f-ba5a-11db-5148ec53aaaa
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idE010:1BC25C:2612DD:334834:6B023196
html-safe-nonce31af62d09f9f1ceebea1cab5aa83c354a28fb8bd3688bf96db9cc101866e8815
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMDEwOjFCQzI1QzoyNjEyREQ6MzM0ODM0OjZCMDIzMTk2IiwidmlzaXRvcl9pZCI6IjExMjk4NTM5NTQzMTQ4NzUyODYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac1b1317b55d4f870211aa747dd1d632e8720994b93c950b89322e9794483c4493
hovercard-subject-tagpull_request:3928427222
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/152089/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/48393c73dbeb5bb0f2029846630ec1f60ab57e128b9cc9609f642c541b7be121/python/cpython/pull/152089
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/48393c73dbeb5bb0f2029846630ec1f60ab57e128b9cc9609f642c541b7be121/python/cpython/pull/152089
og:image:altFixes #151378 I've described the root cause in #151378. Instead of adding some LIMIT and checking it, I'm doing two tricks here that spare us one struct and some complexity: using a fixed b...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamemaurycy
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/152089#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F152089
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%2F152089
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/152089
Reloadhttps://github.com/python/cpython/pull/152089
Reloadhttps://github.com/python/cpython/pull/152089
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
pablogsalhttps://github.com/pablogsal
python:mainhttps://github.com/python/cpython/tree/main
maurycy:rle-overlow-fixedhttps://github.com/maurycy/cpython/tree/rle-overlow-fixed
Conversationhttps://github.com/python/cpython/pull/152089
Commits8 (8)https://github.com/python/cpython/pull/152089/commits
Checkshttps://github.com/python/cpython/pull/152089/checks
Files changedhttps://github.com/python/cpython/pull/152089/files
gh-151378: Fix unbounded memory growth when recording binary and the thread is sleepinghttps://github.com/python/cpython/pull/152089#top
pablogsalhttps://github.com/pablogsal
python:mainhttps://github.com/python/cpython/tree/main
maurycy:rle-overlow-fixedhttps://github.com/maurycy/cpython/tree/rle-overlow-fixed
https://github.com/maurycy
maurycyhttps://github.com/maurycy
Jun 24, 2026https://github.com/python/cpython/pull/152089#issue-4735742078
Please reload this pagehttps://github.com/python/cpython/pull/152089
#151378https://github.com/python/cpython/issues/151378
#151378https://github.com/python/cpython/issues/151378
cpython/Modules/_remote_debugging/binary_io_reader.chttps://github.com/python/cpython/blob/ee78d4323c174d0281fef5e04e965cda4c46eeb7/Modules/_remote_debugging/binary_io_reader.c#L1098-L1114
ee78d43https://github.com/python/cpython/commit/ee78d4323c174d0281fef5e04e965cda4c46eeb7
cpython/Modules/_remote_debugging/binary_io_reader.chttps://github.com/python/cpython/blob/ee78d4323c174d0281fef5e04e965cda4c46eeb7/Modules/_remote_debugging/binary_io_reader.c#L958
ee78d43https://github.com/python/cpython/commit/ee78d4323c174d0281fef5e04e965cda4c46eeb7
#151378https://github.com/python/cpython/issues/151378
_remote_debugging: unbounded memory growth when recording binary and the thread is sleeping #151378https://github.com/python/cpython/issues/151378
Please reload this pagehttps://github.com/python/cpython/pull/152089
maurycyhttps://github.com/maurycy
June 24, 2026 16:24https://github.com/python/cpython/pull/152089#commits-pushed-266b8c4
https://github.com/maurycy
eager encode, fixed bufhttps://github.com/python/cpython/pull/152089/commits/266b8c4a310ef0371cb07d91f1b39c958044f93a
266b8c4https://github.com/python/cpython/pull/152089/commits/266b8c4a310ef0371cb07d91f1b39c958044f93a
https://github.com/maurycy
lazy allochttps://github.com/python/cpython/pull/152089/commits/25e079ad7141e3c78bf69e79314485c6526ade1d
25e079ahttps://github.com/python/cpython/pull/152089/commits/25e079ad7141e3c78bf69e79314485c6526ade1d
https://github.com/maurycy
maurycyhttps://github.com/maurycy
pablogsalhttps://github.com/pablogsal
code ownerhttps://github.com/python/cpython/blob/b35c37910a4595f22458cf0291a9b0252b3c6c70/.github/CODEOWNERS#L338
June 24, 2026 14:31https://github.com/python/cpython/pull/152089#event-27150035325
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
Jun 24, 2026 https://github.com/python/cpython/pull/152089#ref-issue-4643153280
_remote_debugging: unbounded memory growth when recording binary and the thread is sleeping #151378 https://github.com/python/cpython/issues/151378
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 24, 2026https://github.com/python/cpython/pull/152089#event-27150040717
maurycyhttps://github.com/maurycy
June 24, 2026 16:40https://github.com/python/cpython/pull/152089#commits-pushed-a2c1d59
https://github.com/maurycy
niushttps://github.com/python/cpython/pull/152089/commits/a2c1d594e2da81108fb8984163e9ee05ee7a6861
a2c1d59https://github.com/python/cpython/pull/152089/commits/a2c1d594e2da81108fb8984163e9ee05ee7a6861
https://github.com/maurycy
make -Wunused-function happyhttps://github.com/python/cpython/pull/152089/commits/a628ae0c07b43c1d194db380fe49f3595f709dda
a628ae0https://github.com/python/cpython/pull/152089/commits/a628ae0c07b43c1d194db380fe49f3595f709dda
https://github.com/maurycy
redundant new linehttps://github.com/python/cpython/pull/152089/commits/160ff256d075eb40085401a5d98407fd58bb74e3
160ff25https://github.com/python/cpython/pull/152089/commits/160ff256d075eb40085401a5d98407fd58bb74e3
https://github.com/maurycy
maurycyhttps://github.com/maurycy
Jun 24, 2026https://github.com/python/cpython/pull/152089#event-27159444254
https://github.com/pablogsal
pablogsalhttps://github.com/pablogsal
Jun 27, 2026 https://github.com/python/cpython/pull/152089#pullrequestreview-4585716355
View reviewed changes https://github.com/python/cpython/pull/152089/files/160ff256d075eb40085401a5d98407fd58bb74e3
pablogsalhttps://github.com/pablogsal
Please reload this pagehttps://github.com/python/cpython/pull/152089
https://github.com/python/cpython/pull/152089#pullrequestreview-4585716355
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/152089
https://github.com/pablogsal
pablogsalhttps://github.com/pablogsal
Jun 27, 2026 https://github.com/python/cpython/pull/152089#pullrequestreview-4585722925
View reviewed changes https://github.com/python/cpython/pull/152089/files/160ff256d075eb40085401a5d98407fd58bb74e3
pablogsalhttps://github.com/pablogsal
Please reload this pagehttps://github.com/python/cpython/pull/152089
https://github.com/python/cpython/pull/152089#pullrequestreview-4585722925
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/152089
Modules/_remote_debugging/binary_io_writer.chttps://github.com/python/cpython/pull/152089/files/160ff256d075eb40085401a5d98407fd58bb74e3#diff-0874163bd266558e3cba125b8511bf1614fcd01c94e99fc14d81daac38390847
Please reload this pagehttps://github.com/python/cpython/pull/152089
Modules/_remote_debugging/binary_io_writer.chttps://github.com/python/cpython/pull/152089/files/160ff256d075eb40085401a5d98407fd58bb74e3#diff-0874163bd266558e3cba125b8511bf1614fcd01c94e99fc14d81daac38390847
Please reload this pagehttps://github.com/python/cpython/pull/152089
maurycyhttps://github.com/maurycy
July 1, 2026 18:58https://github.com/python/cpython/pull/152089#commits-pushed-a9449af
https://github.com/maurycy
up stale commenthttps://github.com/python/cpython/pull/152089/commits/a9449afb276b56a9825b54e75587ef7e093fee0b
a9449afhttps://github.com/python/cpython/pull/152089/commits/a9449afb276b56a9825b54e75587ef7e093fee0b
https://github.com/maurycy
testhttps://github.com/python/cpython/pull/152089/commits/497bc989adf70639b3a7c4b1ac858d704591092e
497bc98https://github.com/python/cpython/pull/152089/commits/497bc989adf70639b3a7c4b1ac858d704591092e
https://github.com/maurycy
maurycyhttps://github.com/maurycy
pablogsalhttps://github.com/pablogsal
July 1, 2026 16:59https://github.com/python/cpython/pull/152089#event-27440687614
https://github.com/maurycy
maurycyhttps://github.com/maurycy
Jul 2, 2026 https://github.com/python/cpython/pull/152089#ref-pullrequest-4782006333
gh-152721: Fix quadratic RLE replay time in the profiling binary reader #152722 https://github.com/python/cpython/pull/152722
https://github.com/pablogsal
pablogsalhttps://github.com/pablogsal
Jul 4, 2026 https://github.com/python/cpython/pull/152089#pullrequestreview-4629685358
View reviewed changes https://github.com/python/cpython/pull/152089/files/497bc989adf70639b3a7c4b1ac858d704591092e
Misc/NEWS.d/next/Library/2026-06-24-16-40-15.gh-issue-151378.iYWa_6.rsthttps://github.com/python/cpython/pull/152089/files/497bc989adf70639b3a7c4b1ac858d704591092e#diff-e73752dcd88ebb46f83d91d731248e06a1ed1afff144037028e34360b159e1e0
Please reload this pagehttps://github.com/python/cpython/pull/152089
https://github.com/maurycy
news renamehttps://github.com/python/cpython/pull/152089/commits/edbea694493b7adab4ad56960cb509202f54d267
edbea69https://github.com/python/cpython/pull/152089/commits/edbea694493b7adab4ad56960cb509202f54d267
https://github.com/maurycy
maurycyhttps://github.com/maurycy
pablogsalhttps://github.com/pablogsal
July 4, 2026 15:09https://github.com/python/cpython/pull/152089#event-27558359989
https://github.com/pablogsal
pablogsalhttps://github.com/pablogsal
639a552https://github.com/python/cpython/commit/639a5525fb1b54973dcf55a636efc10be4042239
Jul 4, 2026https://github.com/python/cpython/pull/152089#event-27561723145
Please reload this pagehttps://github.com/python/cpython/pull/152089
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 4, 2026https://github.com/python/cpython/pull/152089#event-27561723964
https://github.com/pablogsal
pablogsalhttps://github.com/pablogsal
Jul 4, 2026https://github.com/python/cpython/pull/152089#issuecomment-4883495790
Please reload this pagehttps://github.com/python/cpython/pull/152089
https://github.com/pablogsal
pablogsalhttps://github.com/pablogsal
needs backport to 3.15 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22needs%20backport%20to%203.15%22
Jul 4, 2026https://github.com/python/cpython/pull/152089#event-27561725909
https://github.com/apps/miss-islington-app
miss-islington-apphttps://github.com/apps/miss-islington-app
Jul 4, 2026https://github.com/python/cpython/pull/152089#issuecomment-4883496125
@maurycyhttps://github.com/maurycy
@pablogsalhttps://github.com/pablogsal
Please reload this pagehttps://github.com/python/cpython/pull/152089
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
Jul 4, 2026https://github.com/python/cpython/pull/152089#issuecomment-4883496837
GH-153047https://github.com/python/cpython/pull/153047
3.15 branchhttps://github.com/python/cpython/tree/3.15
Please reload this pagehttps://github.com/python/cpython/pull/152089
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
Jul 4, 2026https://github.com/python/cpython/pull/152089#event-27561730475
https://github.com/maurycy
maurycyhttps://github.com/maurycy
July 4, 2026 19:25https://github.com/python/cpython/pull/152089#event-27562023810
pablogsalhttps://github.com/pablogsal
Jul 4, 2026 https://github.com/python/cpython/pull/152089#ref-commit-9f82c25
https://github.com/miss-islington
https://github.com/maurycy
[3.15]https://github.com/python/cpython/commit/9f82c25eca14fe484fc9a2d8662f47174372d6f7
gh-151378https://github.com/python/cpython/issues/151378
: Fix unbounded memory growth when recording binary a…https://github.com/python/cpython/commit/9f82c25eca14fe484fc9a2d8662f47174372d6f7
9f82c25https://github.com/python/cpython/commit/9f82c25eca14fe484fc9a2d8662f47174372d6f7
GH-152089https://github.com/python/cpython/pull/152089
#153047https://github.com/python/cpython/pull/153047
gh-151378https://github.com/python/cpython/issues/151378
GH-152089https://github.com/python/cpython/pull/152089
639a552https://github.com/python/cpython/commit/639a5525fb1b54973dcf55a636efc10be4042239
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%2F152089
https://github.com/pablogsal
pablogsal https://github.com/pablogsal
Please reload this pagehttps://github.com/python/cpython/pull/152089
_remote_debugging: unbounded memory growth when recording binary and the thread is sleeping https://github.com/python/cpython/issues/151378
Please reload this pagehttps://github.com/python/cpython/pull/152089
https://github.com/maurycy
https://github.com/pablogsal
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.