René's URL Explorer Experiment


Title: [WIP] bpo-23689: re module, fix memory leak when a match is terminated by a signal · Pull Request #32188 · python/cpython · GitHub

Open Graph Title: [WIP] bpo-23689: re module, fix memory leak when a match is terminated by a signal · Pull Request #32188 · python/cpython

X Title: [WIP] bpo-23689: re module, fix memory leak when a match is terminated by a signal · Pull Request #32188 · python/cpython

Description: A draft Count the number of REPEAT when compiling a pattern, and allocate an array in SRE_STATE. At any time, a REPEAT will have at most one in active, so a SRE_REPEAT array is fine. https://bugs.python.org/issue23689

Open Graph Description: A draft Count the number of REPEAT when compiling a pattern, and allocate an array in SRE_STATE. At any time, a REPEAT will have at most one in active, so a SRE_REPEAT array is fine. https://bugs...

X Description: A draft Count the number of REPEAT when compiling a pattern, and allocate an array in SRE_STATE. At any time, a REPEAT will have at most one in active, so a SRE_REPEAT array is fine. https://bugs...

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

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:4b59c389-8970-a863-8c9a-136119c7b9f6
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idE270:2650A8:5867D9:75A402:6969CB10
html-safe-nonce3b3f33e73312c32dbf7693a09c825f2131a8cce65fd2d304d719dfc932220b39
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMjcwOjI2NTBBODo1ODY3RDk6NzVBNDAyOjY5NjlDQjEwIiwidmlzaXRvcl9pZCI6IjUzMjE3NzI0NDM1NTI1NjYwMzIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac6fcfcd44726629c5779b9d8ae50e13d210bd58866b5834b6d81dd9e7d2c9db64
hovercard-subject-tagpull_request:894103860
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///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/python/cpython/pull/32188/files
twitter:imagehttps://avatars.githubusercontent.com/u/10137?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/10137?s=400&v=4
og:image:altA draft Count the number of REPEAT when compiling a pattern, and allocate an array in SRE_STATE. At any time, a REPEAT will have at most one in active, so a SRE_REPEAT array is fine. https://bugs...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Noneacedec8b5f975d9e3d494ddd8f949b0b8a0de59d393901e26f73df9dcba80056
turbo-cache-controlno-preview
diff-viewunified
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 full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release83c08c21cdda978090dc44364b71aa5bc6dcea79
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/32188/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F32188%2Ffiles
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%2F32188%2Ffiles
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%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/pull/32188/files
Reloadhttps://github.com/python/cpython/pull/32188/files
Reloadhttps://github.com/python/cpython/pull/32188/files
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/32188/files
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/32188/files
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
ghosthttps://github.com/ghost
python:mainhttps://github.com/python/cpython/tree/main
Conversation 21 https://github.com/python/cpython/pull/32188
Commits 4 https://github.com/python/cpython/pull/32188/commits
Checks 0 https://github.com/python/cpython/pull/32188/checks
Files changed https://github.com/python/cpython/pull/32188/files
Please reload this pagehttps://github.com/python/cpython/pull/32188/files
[WIP] bpo-23689: re module, fix memory leak when a match is terminated by a signal https://github.com/python/cpython/pull/32188/files#top
Show all changes 4 commits https://github.com/python/cpython/pull/32188/files
652d87c re: fix memory leak when a match is terminated by a signal wjssz Mar 30, 2022 https://github.com/python/cpython/pull/32188/commits/652d87cee0958b514d023221317a5179076ba340
d2b505c don't emit repeat_index for REPEAT_ONE, MIN_REPEAT_ONE, POSSESSIVE_RE… wjssz Mar 30, 2022 https://github.com/python/cpython/pull/32188/commits/d2b505cb192b0ae354833397e6f3b3d5baa61e7d
adedb24 print repeat_index in TRACE() wjssz Mar 30, 2022 https://github.com/python/cpython/pull/32188/commits/adedb2417895b4ba44391869a18b4dea27e4d311
e8567e1 use PyMem_New instead of PyMem_RawCalloc wjssz Mar 30, 2022 https://github.com/python/cpython/pull/32188/commits/e8567e17efa8e1178790f79edc94d569d92e8994
Clear filters https://github.com/python/cpython/pull/32188/files
Please reload this pagehttps://github.com/python/cpython/pull/32188/files
Please reload this pagehttps://github.com/python/cpython/pull/32188/files
sre_compile.py https://github.com/python/cpython/pull/32188/files#diff-806633f92a864026d6c611735f1e2cbb063eb817ea1cca36e8d9f9bcf252baa6
sre_constants.py https://github.com/python/cpython/pull/32188/files#diff-2809ceff33bbd4caf1c97444c63cc36d852b719bb417725ff6a2d6f9a448e386
test_re.py https://github.com/python/cpython/pull/32188/files#diff-8e462ca5167ec7a83a5710c179ef56cbae19cd614303fbcf2ec33fd9db914e2a
2022-03-30-15-50-46.bpo-23689.kQj4p0.rst https://github.com/python/cpython/pull/32188/files#diff-45da8b1b2374671c3f532a6906fa948cf5089141e0b2c48277c0a656388b8a31
_sre.c https://github.com/python/cpython/pull/32188/files#diff-aaff088141c53a1b4b5f0d9d35d0bbd0406bac50c73be47328df26f46c9fe41c
sre.h https://github.com/python/cpython/pull/32188/files#diff-39041e5cd265563ee9103fe4ab8a2dd1bcfaba8554f7dcbc827eb0538caf1819
sre_constants.h https://github.com/python/cpython/pull/32188/files#diff-fa3757d7529b86b657a4880fbfdc3c2c3aa9bd461422aa946f62b0d76904a7f7
sre_lib.h https://github.com/python/cpython/pull/32188/files#diff-4e6d447ab468fcfdf1a5a9d8343c00af6d8f79eafc3ff2886eac8409bfc05df6
Lib/sre_compile.pyhttps://github.com/python/cpython/pull/32188/files#diff-806633f92a864026d6c611735f1e2cbb063eb817ea1cca36e8d9f9bcf252baa6
View file https://github.com/python/cpython/blob/e8567e17efa8e1178790f79edc94d569d92e8994/Lib/sre_compile.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/32188/{{ revealButtonHref }}
https://github.com/python/cpython/pull/32188/files#diff-806633f92a864026d6c611735f1e2cbb063eb817ea1cca36e8d9f9bcf252baa6
https://github.com/python/cpython/pull/32188/files#diff-806633f92a864026d6c611735f1e2cbb063eb817ea1cca36e8d9f9bcf252baa6
https://github.com/python/cpython/pull/32188/files#diff-806633f92a864026d6c611735f1e2cbb063eb817ea1cca36e8d9f9bcf252baa6
https://github.com/python/cpython/pull/32188/files#diff-806633f92a864026d6c611735f1e2cbb063eb817ea1cca36e8d9f9bcf252baa6
https://github.com/python/cpython/pull/32188/files#diff-806633f92a864026d6c611735f1e2cbb063eb817ea1cca36e8d9f9bcf252baa6
https://github.com/python/cpython/pull/32188/files#diff-806633f92a864026d6c611735f1e2cbb063eb817ea1cca36e8d9f9bcf252baa6
https://github.com/python/cpython/pull/32188/files#diff-806633f92a864026d6c611735f1e2cbb063eb817ea1cca36e8d9f9bcf252baa6
serhiy-storchakahttps://github.com/serhiy-storchaka
Mar 30, 2022https://github.com/python/cpython/pull/32188/files#r838443988
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/32188/files
ghosthttps://github.com/ghost
Mar 30, 2022https://github.com/python/cpython/pull/32188/files#r838461359
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/32188/files
https://github.com/python/cpython/pull/32188/files#diff-806633f92a864026d6c611735f1e2cbb063eb817ea1cca36e8d9f9bcf252baa6
https://github.com/python/cpython/pull/32188/files#diff-806633f92a864026d6c611735f1e2cbb063eb817ea1cca36e8d9f9bcf252baa6
https://github.com/python/cpython/pull/32188/files#diff-806633f92a864026d6c611735f1e2cbb063eb817ea1cca36e8d9f9bcf252baa6
https://github.com/python/cpython/pull/32188/files#diff-806633f92a864026d6c611735f1e2cbb063eb817ea1cca36e8d9f9bcf252baa6
Lib/sre_constants.pyhttps://github.com/python/cpython/pull/32188/files#diff-2809ceff33bbd4caf1c97444c63cc36d852b719bb417725ff6a2d6f9a448e386
View file https://github.com/python/cpython/blob/e8567e17efa8e1178790f79edc94d569d92e8994/Lib/sre_constants.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/32188/{{ revealButtonHref }}
https://github.com/python/cpython/pull/32188/files#diff-2809ceff33bbd4caf1c97444c63cc36d852b719bb417725ff6a2d6f9a448e386
https://github.com/python/cpython/pull/32188/files#diff-2809ceff33bbd4caf1c97444c63cc36d852b719bb417725ff6a2d6f9a448e386
Lib/test/test_re.pyhttps://github.com/python/cpython/pull/32188/files#diff-8e462ca5167ec7a83a5710c179ef56cbae19cd614303fbcf2ec33fd9db914e2a
View file https://github.com/python/cpython/blob/e8567e17efa8e1178790f79edc94d569d92e8994/Lib/test/test_re.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/32188/{{ revealButtonHref }}
https://github.com/python/cpython/pull/32188/files#diff-8e462ca5167ec7a83a5710c179ef56cbae19cd614303fbcf2ec33fd9db914e2a
https://github.com/python/cpython/pull/32188/files#diff-8e462ca5167ec7a83a5710c179ef56cbae19cd614303fbcf2ec33fd9db914e2a
https://github.com/python/cpython/pull/32188/files#diff-8e462ca5167ec7a83a5710c179ef56cbae19cd614303fbcf2ec33fd9db914e2a
https://github.com/python/cpython/pull/32188/files#diff-8e462ca5167ec7a83a5710c179ef56cbae19cd614303fbcf2ec33fd9db914e2a
Misc/NEWS.d/next/Library/2022-03-30-15-50-46.bpo-23689.kQj4p0.rsthttps://github.com/python/cpython/pull/32188/files#diff-45da8b1b2374671c3f532a6906fa948cf5089141e0b2c48277c0a656388b8a31
View file https://github.com/python/cpython/blob/e8567e17efa8e1178790f79edc94d569d92e8994/Misc/NEWS.d/next/Library/2022-03-30-15-50-46.bpo-23689.kQj4p0.rst
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/32188/{{ revealButtonHref }}
Modules/_sre.chttps://github.com/python/cpython/pull/32188/files#diff-aaff088141c53a1b4b5f0d9d35d0bbd0406bac50c73be47328df26f46c9fe41c
View file https://github.com/python/cpython/blob/e8567e17efa8e1178790f79edc94d569d92e8994/Modules/_sre.c
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/32188/{{ revealButtonHref }}
https://github.com/python/cpython/pull/32188/files#diff-aaff088141c53a1b4b5f0d9d35d0bbd0406bac50c73be47328df26f46c9fe41c
https://github.com/python/cpython/pull/32188/files#diff-aaff088141c53a1b4b5f0d9d35d0bbd0406bac50c73be47328df26f46c9fe41c
https://github.com/python/cpython/pull/32188/files#diff-aaff088141c53a1b4b5f0d9d35d0bbd0406bac50c73be47328df26f46c9fe41c
https://github.com/python/cpython/pull/32188/files#diff-aaff088141c53a1b4b5f0d9d35d0bbd0406bac50c73be47328df26f46c9fe41c
https://github.com/python/cpython/pull/32188/files#diff-aaff088141c53a1b4b5f0d9d35d0bbd0406bac50c73be47328df26f46c9fe41c
https://github.com/python/cpython/pull/32188/files#diff-aaff088141c53a1b4b5f0d9d35d0bbd0406bac50c73be47328df26f46c9fe41c
https://github.com/python/cpython/pull/32188/files#diff-aaff088141c53a1b4b5f0d9d35d0bbd0406bac50c73be47328df26f46c9fe41c
https://github.com/python/cpython/pull/32188/files#diff-aaff088141c53a1b4b5f0d9d35d0bbd0406bac50c73be47328df26f46c9fe41c
https://github.com/python/cpython/pull/32188/files#diff-aaff088141c53a1b4b5f0d9d35d0bbd0406bac50c73be47328df26f46c9fe41c
Modules/sre.hhttps://github.com/python/cpython/pull/32188/files#diff-39041e5cd265563ee9103fe4ab8a2dd1bcfaba8554f7dcbc827eb0538caf1819
View file https://github.com/python/cpython/blob/e8567e17efa8e1178790f79edc94d569d92e8994/Modules/sre.h
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/32188/{{ revealButtonHref }}
https://github.com/python/cpython/pull/32188/files#diff-39041e5cd265563ee9103fe4ab8a2dd1bcfaba8554f7dcbc827eb0538caf1819
https://github.com/python/cpython/pull/32188/files#diff-39041e5cd265563ee9103fe4ab8a2dd1bcfaba8554f7dcbc827eb0538caf1819
Modules/sre_constants.hhttps://github.com/python/cpython/pull/32188/files#diff-fa3757d7529b86b657a4880fbfdc3c2c3aa9bd461422aa946f62b0d76904a7f7
View file https://github.com/python/cpython/blob/e8567e17efa8e1178790f79edc94d569d92e8994/Modules/sre_constants.h
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/32188/{{ revealButtonHref }}
https://github.com/python/cpython/pull/32188/files#diff-fa3757d7529b86b657a4880fbfdc3c2c3aa9bd461422aa946f62b0d76904a7f7
https://github.com/python/cpython/pull/32188/files#diff-fa3757d7529b86b657a4880fbfdc3c2c3aa9bd461422aa946f62b0d76904a7f7
Please reload this pagehttps://github.com/python/cpython/pull/32188/files
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.