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

Comments

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

Open
Fidget-Spinner wants to merge 4 commits intopython:3.13from
Fidget-Spinner:3.13_recursion_inconsistency_fix
Open

[3.13] gh-145008: Maintain stack consistency in CALL_BOUND_METHOD_EXACT_ARGS#145015
Fidget-Spinner wants to merge 4 commits intopython:3.13from
Fidget-Spinner:3.13_recursion_inconsistency_fix

Conversation

@Fidget-Spinner
Copy link
Member

@Fidget-SpinnerFidget-Spinner commentedFeb 19, 2026
edited by bedevere-appbot
Loading

The problem is that 3.13 actually doesn't guarantee stack consistency always between uops. This manifests as a bug that seems like stack corruption. In 3.14 and 3.15, this isn't a problem because we guarantee stack consistency between uops always by flushing or otherwise. The bandaid for 3.13 is to move all deopts to before we modify the stack.

@marc-hb could you please try the patch and check if it fixes your code? I tried on my end and it does, just need a second checker.

Can't test this easily, as it depends on specific recursion limits and interaction of specialization.

@Fidget-SpinnerFidget-Spinner changed the titlegh-145008: Maintain stack consistency in CALL_BOUND_METHOD_EXACT_ARGS[3.13] gh-145008: Maintain stack consistency in CALL_BOUND_METHOD_EXACT_ARGSFeb 19, 2026
@marc-hb
Copy link

I cherry-picked the single commit58c2e83 from this PR on top of v3.13.12 and I can confirm that this solves my issue#145008 and makes that infinite recursion test pass.

(Not like this should matter much but I also ran the other, non-recursive tests in the suite while at it and nothing went wrong)

Fidget-Spinner reacted with thumbs up emoji

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@markshannonmarkshannonAwaiting requested review from markshannonmarkshannon is a code owner

Assignees

No one assigned

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@Fidget-Spinner@marc-hb

[8]ページ先頭

©2009-2026 Movatter.jp