Skip to content

in debug mode, compile(ast) fails with an assertion error if an AST node has no line number information #65584

@ztane

Description

@ztane
mannequin
BPO 21385
Nosy @terryjreedy, @vstinner, @benjaminp, @bitdancer, @PCManticore, @ztane
Superseder
  • bpo-26107: PEP 511: code.co_lnotab: use signed line number delta to support moving instructions in an optimizer
  • Files
  • astlinenotest.py: an example of how to trigger the assertion failure using ASTs and compile
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = <Date 2016-01-20.11:35:39.832>
    created_at = <Date 2014-04-29.09:00:10.830>
    labels = ['interpreter-core', 'type-crash']
    title = 'in debug mode, compile(ast) fails with an assertion error if an AST node has no line number information'
    updated_at = <Date 2016-01-20.11:35:39.830>
    user = 'https://github.com/ztane'

    bugs.python.org fields:

    activity = <Date 2016-01-20.11:35:39.830>
    actor = 'vstinner'
    assignee = 'none'
    closed = True
    closed_date = <Date 2016-01-20.11:35:39.832>
    closer = 'vstinner'
    components = ['Interpreter Core']
    creation = <Date 2014-04-29.09:00:10.830>
    creator = 'ztane'
    dependencies = []
    files = ['35090']
    hgrepos = []
    issue_num = 21385
    keywords = []
    message_count = 7.0
    messages = ['217502', '217806', '218383', '218412', '218700', '218723', '258670']
    nosy_count = 6.0
    nosy_names = ['terry.reedy', 'vstinner', 'benjamin.peterson', 'r.david.murray', 'Claudiu.Popa', 'ztane']
    pr_nums = []
    priority = 'normal'
    resolution = 'fixed'
    stage = 'needs patch'
    status = 'closed'
    superseder = '26107'
    type = 'crash'
    url = 'https://bugs.python.org/issue21385'
    versions = ['Python 2.7', 'Python 3.4', 'Python 3.5']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      interpreter-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