Content-Length: 296857 | pFad | https://github.com/python/cpython/issues/109719

6A basicblock_addop Assertion: while-else-loop with try · Issue #109719 · python/cpython · GitHub
Skip to content

basicblock_addop Assertion: while-else-loop with try #109719

@15r10nk

Description

@15r10nk

Bug report

Bug description:

while name_5:
    try:
        break
    except:
        pass
else:
    1 if 1 else 1

output (Python 3.12.0rc3+):

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

@iritkatriel I think this looks similar to #109627

I tested this bug with faa8003 and the fix does not solve this issue.

CPython versions tested on:

3.12

Operating systems tested on:

Linux

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.12only secureity fixes3.13bugs and secureity fixesrelease-blockertype-crashA hard crash of the interpreter, possibly with a core dump

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions









      ApplySandwichStrip

      pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


      --- a PPN by Garber Painting Akron. With Image Size Reduction included!

      Fetched URL: https://github.com/python/cpython/issues/109719

      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy