Skip to content
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

basicblock_addop Assertion: while-loop with if-expression #109823

Closed
15r10nk opened this issue Sep 25, 2023 · 0 comments · Fixed by #109839
Closed

basicblock_addop Assertion: while-loop with if-expression #109823

15r10nk opened this issue Sep 25, 2023 · 0 comments · Fixed by #109839
Assignees
Labels
3.12 bugs and security fixes 3.13 bugs and security fixes release-blocker type-bug An unexpected behavior, bug, or error

Comments

@15r10nk
Copy link
Contributor

15r10nk commented Sep 25, 2023

Bug report

Bug description:

while x:
    0 if 1 else 0 # 1 can not be 0 to reproduce this bug

output (Python 3.12.0rc3+):

python: Python/flowgraph.c:114: basicblock_addop: Assertion `0 <= oparg && oparg < (1 << 30)' failed.

I tested this with the current 3.12 branch (6f1d455)
@iritkatriel I think this is again something like #109719 or #109627

CPython versions tested on:

3.12

Operating systems tested on:

Linux

Linked PRs

@15r10nk 15r10nk added the type-bug An unexpected behavior, bug, or error label Sep 25, 2023
@AlexWaygood AlexWaygood added release-blocker 3.12 bugs and security fixes 3.13 bugs and security fixes labels Sep 25, 2023
iritkatriel added a commit to iritkatriel/cpython that referenced this issue Sep 25, 2023
iritkatriel added a commit to iritkatriel/cpython that referenced this issue Sep 25, 2023
iritkatriel added a commit that referenced this issue Sep 25, 2023
miss-islington pushed a commit to miss-islington/cpython that referenced this issue Sep 25, 2023
…ic block which is a jump target (pythonGH-109839)

(cherry picked from commit d73c12b)

Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
Yhg1s pushed a commit that referenced this issue Sep 26, 2023
…sic block which is a jump target (GH-109839) (#109865)

gh-109823: Adjust labels in compiler when removing an empty basic block which is a jump target (GH-109839)
(cherry picked from commit d73c12b)

Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
csm10495 pushed a commit to csm10495/cpython that referenced this issue Sep 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.12 bugs and security fixes 3.13 bugs and security fixes release-blocker type-bug An unexpected behavior, bug, or error
Projects
3 participants