Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit6971e40

Browse files
authored
GH-104584: Restore frame->stacktop on optimizer error (GH-108953)
1 parent6f3c138 commit6971e40

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Fix a crash when running with:envvar:`PYTHONUOPS` or:option:`-X uops <-X>`
2+
enabled and an error occurs during optimization.

‎Python/optimizer.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,7 @@ _PyOptimizer_BackEdge(_PyInterpreterFrame *frame, _Py_CODEUNIT *src, _Py_CODEUNI
169169
if (err <=0) {
170170
assert(executor==NULL);
171171
if (err<0) {
172+
_PyFrame_SetStackPointer(frame,stack_pointer);
172173
returnNULL;
173174
}
174175
gotojump_to_destination;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp