René's URL Explorer Experiment


Title: gh-99110: Initialize frame->previous in init_frame to fix segmentation fault by byllyfish · Pull Request #100182 · python/cpython · GitHub

Open Graph Title: gh-99110: Initialize frame->previous in init_frame to fix segmentation fault by byllyfish · Pull Request #100182 · python/cpython

X Title: gh-99110: Initialize frame->previous in init_frame to fix segmentation fault by byllyfish · Pull Request #100182 · python/cpython

Description: This PR fixes a segmentation fault caused by an uninitialized variable. One way to trigger the seg. fault is to use the PyFrame_New() C API. I've also run across this segmentation fault by calling asyncio.Task.get_stack() on cython based asyncio Task (in the grpcio module). The fix for #99110 needs to be back-ported to 3.11. Issue: gh-99110

Open Graph Description: This PR fixes a segmentation fault caused by an uninitialized variable. One way to trigger the seg. fault is to use the PyFrame_New() C API. I've also run across this segmentation fault by call...

X Description: This PR fixes a segmentation fault caused by an uninitialized variable. One way to trigger the seg. fault is to use the PyFrame_New() C API. I've also run across this segmentation fault by ...

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

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:e2cfa114-438d-bdec-4e63-470cf7c65a56
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idD7F2:1B7E6F:4F7E15:6EBBCC:696A6CBB
html-safe-noncee3edc853834d5a5c128a7931b2271746535a1df245f407a0c7aca9675f88b79f
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEN0YyOjFCN0U2Rjo0RjdFMTU6NkVCQkNDOjY5NkE2Q0JCIiwidmlzaXRvcl9pZCI6IjExMDAyOTA5OTQzMTAxMTQ0OTEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmaccd97502cde241a54a952b59919532743bf37d4ea174e475d43e42bdbd5be6999
hovercard-subject-tagpull_request:1159694274
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/100182/files
twitter:imagehttps://avatars.githubusercontent.com/u/105391?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/105391?s=400&v=4
og:image:altThis PR fixes a segmentation fault caused by an uninitialized variable. One way to trigger the seg. fault is to use the PyFrame_New() C API. I've also run across this segmentation fault by call...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None6fea32d5b7276b841b7a803796d9715bc6cfb31ed549fdf9de2948ac25d12ba6
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
releasef2d9f6432a5a115ec709295ae70623f33bb80aee
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/100182/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F100182%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%2F100182%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/100182/files
Reloadhttps://github.com/python/cpython/pull/100182/files
Reloadhttps://github.com/python/cpython/pull/100182/files
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/100182/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/100182/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
kumaraditya303https://github.com/kumaraditya303
python:mainhttps://github.com/python/cpython/tree/main
byllyfish:fix-issue-99110https://github.com/byllyfish/cpython/tree/fix-issue-99110
Conversation 16 https://github.com/python/cpython/pull/100182
Commits 10 https://github.com/python/cpython/pull/100182/commits
Checks 0 https://github.com/python/cpython/pull/100182/checks
Files changed https://github.com/python/cpython/pull/100182/files
Please reload this pagehttps://github.com/python/cpython/pull/100182/files
gh-99110: Initialize frame->previous in init_frame to fix segmentation fault https://github.com/python/cpython/pull/100182/files#top
Show all changes 10 commits https://github.com/python/cpython/pull/100182/files
b2e7256 Initialize frame->previous in _PyFrame_InitializeSpecials. byllyfish Dec 12, 2022 https://github.com/python/cpython/pull/100182/commits/b2e72562707b5724917f59ffae6a5dd3931a086d
b6e290d 📜🤖 Added by blurb_it. blurb-it[bot] Dec 12, 2022 https://github.com/python/cpython/pull/100182/commits/b6e290d6c9d05d8c489d7e70b3e75ab51dcfb9c7
f667d8f Fixing Python file whitespace. (patchcheck) byllyfish Dec 12, 2022 https://github.com/python/cpython/pull/100182/commits/f667d8fb603a0ac6044c7e988e7d4d38464ded02
d679783 Move initialization of frame->previous to init_frame. byllyfish Dec 13, 2022 https://github.com/python/cpython/pull/100182/commits/d6797833bcb0fb6195de0fb23b4c2643122af69f
230b80e Move comment above function. byllyfish Dec 18, 2022 https://github.com/python/cpython/pull/100182/commits/230b80e2c5a7da57283f219f94a879602edf29ed
4e70dc5 Add frame_new function to _testcapimodule.c. byllyfish Dec 18, 2022 https://github.com/python/cpython/pull/100182/commits/4e70dc50580212e74aac4c12dd3255933fe85224
627e8d5 Remove blank line. byllyfish Dec 18, 2022 https://github.com/python/cpython/pull/100182/commits/627e8d5a177ae4566b18128dc6e90b85d3bb803c
35a4c58 Use assertIsNone kumaraditya303 Dec 23, 2022 https://github.com/python/cpython/pull/100182/commits/35a4c5820d3d7eb41995f49f5140249145aa8743
34bee72 Merge branch 'main' into fix-issue-99110 kumaraditya303 Dec 23, 2022 https://github.com/python/cpython/pull/100182/commits/34bee7281598f375345476adaac99ce98bc8cdac
2c1db99 Update Misc/NEWS.d/next/Core and Builtins/2022-12-12-01-05-16.gh-issu… kumaraditya303 Dec 23, 2022 https://github.com/python/cpython/pull/100182/commits/2c1db9974a8aea47f38609cf2821b077f211877e
Clear filters https://github.com/python/cpython/pull/100182/files
Please reload this pagehttps://github.com/python/cpython/pull/100182/files
Please reload this pagehttps://github.com/python/cpython/pull/100182/files
pycore_frame.h https://github.com/python/cpython/pull/100182/files#diff-dc43b169f3202922a7787b97210ce299172f0cf03bd88529d473128f32e49fe4
test_frame.py https://github.com/python/cpython/pull/100182/files#diff-55c13388062eea8a35790a234232d00080f6c6e02fc0f1e945844f97c6c85012
2022-12-12-01-05-16.gh-issue-99110.1JqtIg.rst https://github.com/python/cpython/pull/100182/files#diff-0f6f3ac5ed0cfa0b9021f57283bd78a09a17f463429cc954cf5ee16bdfbdadba
_testcapimodule.c https://github.com/python/cpython/pull/100182/files#diff-b2d7540efa4f376350ef77b923a6dfcc54bb90424970477f66275f19bad0d30f
frameobject.c https://github.com/python/cpython/pull/100182/files#diff-7b8cef249e5cca077d30de4e428a6bde6b9b803464e790e9cffa7e052e19efdd
Include/internal/pycore_frame.hhttps://github.com/python/cpython/pull/100182/files#diff-dc43b169f3202922a7787b97210ce299172f0cf03bd88529d473128f32e49fe4
View file https://github.com/byllyfish/cpython/blob/2c1db9974a8aea47f38609cf2821b077f211877e/Include/internal/pycore_frame.h
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/100182/{{ revealButtonHref }}
https://github.com/python/cpython/pull/100182/files#diff-dc43b169f3202922a7787b97210ce299172f0cf03bd88529d473128f32e49fe4
https://github.com/python/cpython/pull/100182/files#diff-dc43b169f3202922a7787b97210ce299172f0cf03bd88529d473128f32e49fe4
Lib/test/test_frame.pyhttps://github.com/python/cpython/pull/100182/files#diff-55c13388062eea8a35790a234232d00080f6c6e02fc0f1e945844f97c6c85012
View file https://github.com/byllyfish/cpython/blob/2c1db9974a8aea47f38609cf2821b077f211877e/Lib/test/test_frame.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/100182/{{ revealButtonHref }}
https://github.com/python/cpython/pull/100182/files#diff-55c13388062eea8a35790a234232d00080f6c6e02fc0f1e945844f97c6c85012
Misc/NEWS.d/next/Core and Builtins/2022-12-12-01-05-16.gh-issue-99110.1JqtIg.rsthttps://github.com/python/cpython/pull/100182/files#diff-0f6f3ac5ed0cfa0b9021f57283bd78a09a17f463429cc954cf5ee16bdfbdadba
View file https://github.com/byllyfish/cpython/blob/2c1db9974a8aea47f38609cf2821b077f211877e/Misc/NEWS.d/next/Core%20and%20Builtins/2022-12-12-01-05-16.gh-issue-99110.1JqtIg.rst
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/100182/{{ revealButtonHref }}
Modules/_testcapimodule.chttps://github.com/python/cpython/pull/100182/files#diff-b2d7540efa4f376350ef77b923a6dfcc54bb90424970477f66275f19bad0d30f
View file https://github.com/byllyfish/cpython/blob/2c1db9974a8aea47f38609cf2821b077f211877e/Modules/_testcapimodule.c
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/100182/{{ revealButtonHref }}
https://github.com/python/cpython/pull/100182/files#diff-b2d7540efa4f376350ef77b923a6dfcc54bb90424970477f66275f19bad0d30f
https://github.com/python/cpython/pull/100182/files#diff-b2d7540efa4f376350ef77b923a6dfcc54bb90424970477f66275f19bad0d30f
https://github.com/python/cpython/pull/100182/files#diff-b2d7540efa4f376350ef77b923a6dfcc54bb90424970477f66275f19bad0d30f
https://github.com/python/cpython/pull/100182/files#diff-b2d7540efa4f376350ef77b923a6dfcc54bb90424970477f66275f19bad0d30f
https://github.com/python/cpython/pull/100182/files#diff-b2d7540efa4f376350ef77b923a6dfcc54bb90424970477f66275f19bad0d30f
https://github.com/python/cpython/pull/100182/files#diff-b2d7540efa4f376350ef77b923a6dfcc54bb90424970477f66275f19bad0d30f
https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L212
Objects/frameobject.chttps://github.com/python/cpython/pull/100182/files#diff-7b8cef249e5cca077d30de4e428a6bde6b9b803464e790e9cffa7e052e19efdd
View file https://github.com/byllyfish/cpython/blob/2c1db9974a8aea47f38609cf2821b077f211877e/Objects/frameobject.c
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/100182/{{ revealButtonHref }}
https://github.com/python/cpython/pull/100182/files#diff-7b8cef249e5cca077d30de4e428a6bde6b9b803464e790e9cffa7e052e19efdd
https://github.com/python/cpython/pull/100182/files#diff-7b8cef249e5cca077d30de4e428a6bde6b9b803464e790e9cffa7e052e19efdd
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.