-
-
Notifications
You must be signed in to change notification settings - Fork 31.9k
Incorrect optimization in JIT build #121012
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Labels
type-bug
An unexpected behavior, bug, or error
Comments
This is a tier two thing, not a JIT thing. Let's reserve the |
markshannon
added a commit
that referenced
this issue
Jul 8, 2024
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this issue
Jul 8, 2024
… in tier 2 (pythonGH-121483) (cherry picked from commit 8ad6067) Co-authored-by: Mark Shannon <[email protected]>
markshannon
pushed a commit
that referenced
this issue
Jul 8, 2024
noahbkim
pushed a commit
to hudson-trading/cpython
that referenced
this issue
Jul 11, 2024
estyxx
pushed a commit
to estyxx/cpython
that referenced
this issue
Jul 17, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug report
Bug description:
Reproducer:
Output:
Obviously, the last line is incorrect.
Output with a
PYTHON_LLTRACE=2
env:It's definitely related to this part of code:
cpython/Python/optimizer.c
Lines 1027 to 1033 in e4a97a7
I guess the culprit is there. If we remove the
_GUARD_NOT_EXHAUSTED_LIST
fromis_for_iter_test
, the problem will go away (although it can still be reproduced in other ways using other (range, tuple) iterators).CPython versions tested on:
CPython main branch
Operating systems tested on:
Linux, macOS
Linked PRs
The text was updated successfully, but these errors were encountered: