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

github.com

Tin mới

byllyfish:fix-issue-99110

GitHub CopilotWrite better code with AI

GitHub Copilot appDirect agents from issue to merge

ActionsAutomate any workflow

CodespacesInstant dev environments

IssuesPlan and track work

Code ReviewManage code changes

Code QualityEnforce quality at merge

GitHub Advanced SecurityFind and fix vulnerabilities

Code securitySecure your code as you build

Secret protectionStop leaks before they start

View all use cases

Financial services

View all industries

Software Development

GitHub SponsorsFund open source developers

Copilot for BusinessEnterprise-grade AI features

Premium SupportEnterprise-grade 24/7 support

Pull requests 2.6k

Security and quality 0

Segfault on frame.f_back when frame is created with PyFrame_New() #99110

Initialize frame->previous in _PyFrame_InitializeSpecials.

📜🤖 Added by blurb_it.

Fixing Python file whitespace. (patchcheck)

View reviewed changes

when initializing the frame object

_PyInterpreterFrame.previous gets initialized when the frame is linked into the frame stack. I'd rather not add extra code to _PyFrame_InitializeSpecials, as it is performance critical.

needs backport to 3.11

Move initialization of frame->previous to init_frame.

Python 3.11 Unary cancellation and exceptions in pytest-asyncio are resulting in segmentation faults grpc/grpc#31441

View reviewed changes

Move comment above function.

Add frame_new function to _testcapimodule.c.

Remove blank line.

awaiting change review

View reviewed changes

Merge branch 'main' into fix-issue-99110

View reviewed changes

Learn more about hiding disruptive comments

The reason will be displayed to describe this comment to others. Learn more.

Update Misc/NEWS.d/next/Core and Builtins/2022-12-12-01-05-16.gh-issu…

in init_frame to fix seg…

in init_frame to …

: Initialize frame->previous in init_frame to fix segm…

Merged main into regmachine branch (

PyFrame_GetBack segfaults if called in a sys.settrace hook on 3.11.1 #100536

Python 3.11 crashes in some cases when loguru.logger.exception called Delgan/loguru#775