Skip to content

flowgraph.c: push_cold_blocks_to_end: Assertion `prev_instr' failed #120225

Closed

Description

@15r10nk

Bug report

Bug description:

The following code causes a crash with cpython 3.13 (56a7e04) and with the current main branch (d68a22e)

async def name_4():
    match b'':
        case True:
            pass
        case name_5 if f'e':
            {name_3: name_4 async for name_2 in name_5}
        case []:
            pass
    [[]]

output (Python 3.13.0b2+):

python: Python/flowgraph.c:2282: push_cold_blocks_to_end: Assertion `prev_instr' failed.

I bisected the problem down to this commit 2091fb2.
@iritkatriel can you take a look at it?

CPython versions tested on:

3.13, CPython main branch

Operating systems tested on:

No response

Linked PRs

Activity

  1. added
    type-bugAn unexpected behavior, bug, or error
    on Jun 7, 2024
  2. self-assigned this
    on Jun 7, 2024
  3. iritkatriel commented on Jun 7, 2024

    @iritkatriel
    Member

    @iritkatriel can you take a look at it?

    Yes. Thank you.

  4. added 2 commits that reference this issue on Jun 7, 2024
  5. added
    3.13only security fixes
    3.14bugs and security fixes
    type-crashA hard crash of the interpreter, possibly with a core dump
    interpreter-core(Objects, Python, Grammar, and Parser dirs)
    and removed
    type-bugAn unexpected behavior, bug, or error
    on Jun 7, 2024
  6. added a commit that references this issue on Jun 7, 2024
  7. added a commit that references this issue on Jun 7, 2024
  8. added a commit that references this issue on Jun 7, 2024
  9. added a commit that references this issue on Jul 11, 2024
  10. added a commit that references this issue on Jul 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

3.13only security fixes3.14bugs and security fixesinterpreter-core(Objects, Python, Grammar, and Parser dirs)type-crashA hard crash of the interpreter, possibly with a core dump

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions