GH-93252: Fix error handling for failed Python calls by brandtbucher · Pull Request #94693 · python/cpython · GitHub

github.com

Tin mới

brandtbucher:failed-call-cleanup

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

Python/pystate.c:2218: _PyThreadState_PopFrame: Assertion `tstate->datastack_top >= base' failed. #93252

Add failing regression test

Always pop the new frame after a failed call

needs backport to 3.11

needs backport to 3.11

awaiting core review

awaiting core review

View reviewed changes

Learn more about hiding disruptive comments

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

Fix compiler warning

🔨 test-with-buildbots

🔨 test-with-buildbots

: Fix error handling for failed Python calls (

View reviewed changes

[3.11] GH-93252: Fix error handling for failed Python calls (GH-94693) (cherry picked from commit 8a285df806816805484fed36dce5fd5b77a215a6) Co-authored-by: Brandt Bucher <[email protected]>

: Fix error handling for failed Python calls (

[3.11] GH-93252: Fix error handling for failed Python calls (GH-94693) (GH-94708) Automerge-Triggered-By: GH:tiran