Skip to content

Assertion failure dis null byte #142736

@YuanchengJiang

Description

@YuanchengJiang

Crash report

What happened?

import dis
code = compile("pass", "", "exec")
test = code.replace(co_linetable=b'\x00')
dis.dis(test)
python: ../Objects/codeobject.c:1179: void advance(PyCodeAddressRange *): Assertion `bounds->opaque.lo_next <= bounds->opaque.limit && (bounds->ar_line == -1 || bounds->ar_line == bounds->opaque.computed_line) && (bounds->opaque.lo_next == bounds->opaque.limit || (*bounds->opaque.lo_next) & 128)' failed.

CPython versions tested on:

CPython main branch

Operating systems tested on:

Linux

Output from running 'python -VV' on the command line:

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    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