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

[3.13] gh-145008: Maintain stack consistency in CALL_BOUND_METHOD_EXACT_ARGS#145015

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
Fidget-Spinner wants to merge4 commits intopython:3.13
base:3.13
Choose a base branch
Loading
fromFidget-Spinner:3.13_recursion_inconsistency_fix
Open
Show file tree
Hide file tree
Changes fromall commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletionInclude/internal/pycore_opcode_metadata.h
View file
Open in desktop

Some generated files are not rendered by default. Learn more abouthow customized files appear on GitHub.

View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
Fix a bug when calling certain methods at the recursion limit which manifested as a corruption of Python's operand stack. Patch by Ken Jin.
4 changes: 3 additions & 1 deletionPython/bytecodes.c
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -3241,9 +3241,11 @@ dummy_func(
macro(CALL_BOUND_METHOD_GENERAL)=
unused/1+// Skip over the counter
_CHECK_PEP_523+
// gh-145008: We must check recursion before expanding method,
// otherwise we may leave the stack in an inconsistent state in 3.13.
_CHECK_RECURSION_REMAINING+
_CHECK_METHOD_VERSION+
_EXPAND_METHOD+
_CHECK_RECURSION_REMAINING+
_PY_FRAME_GENERAL+
_SAVE_RETURN_OFFSET+
_PUSH_FRAME;
Expand Down
8 changes: 4 additions & 4 deletionsPython/generated_cases.c.h
View file
Open in desktop

Some generated files are not rendered by default. Learn more abouthow customized files appear on GitHub.

Loading

[8]ページ先頭

©2009-2026 Movatter.jp