Skip to content

Stack overflow when parse long expression to AST #76939

@serhiy-storchaka

Description

@serhiy-storchaka
BPO 32758
Nosy @brettcannon, @terryjreedy, @ncoghlan, @benjaminp, @serhiy-storchaka, @Mariatta, @csabella, @tirkarthi
PRs
  • bpo-32758: warn that a couple ast functions can crash the interpreter #5960
  • [3.7] bpo-32758: Warn that ast.parse() and ast.literal_eval() can segfault the interpreter (GH-5960) #6041
  • [3.6] bpo-32758: Warn that ast.parse() and ast.literal_eval() can segfault the interpreter (GH-5960) #6042
  • bpo-32758: Warn that compile() can crash when compiling to an AST object #6043
  • [3.7] bpo-32758: Warn that compile() can crash when compiling to an AST object (GH-6043) #6045
  • [3.6] bpo-32758: Warn that compile() can crash when compiling to an AST object (GH-6043) #6046
  • bpo-32758: Warn that dbm.dumb.open() can crash Python #6047
  • [3.7] bpo-32758: Warn that dbm.dumb.open() can crash Python (GH-6047) #6048
  • [2.7] bpo-32758: warn that a couple ast functions can crash the interpreter (GH-5960) #16565
  • [2.7] bpo-32758: Warn that compile() can crash when compiling to an AST object (GH-6043) #16566
  • 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 2019-10-18.08:02:07.842>
    created_at = <Date 2018-02-03.18:22:51.069>
    labels = ['easy', 'type-crash', 'docs']
    title = 'Stack overflow when parse long expression to AST'
    updated_at = <Date 2019-10-18.08:02:07.841>
    user = 'https://github.com/serhiy-storchaka'

    bugs.python.org fields:

    activity = <Date 2019-10-18.08:02:07.841>
    actor = 'serhiy.storchaka'
    assignee = 'none'
    closed = True
    closed_date = <Date 2019-10-18.08:02:07.842>
    closer = 'serhiy.storchaka'
    components = ['Documentation']
    creation = <Date 2018-02-03.18:22:51.069>
    creator = 'serhiy.storchaka'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 32758
    keywords = ['patch', 'easy']
    message_count = 26.0
    messages = ['311568', '311570', '311920', '311922', '311945', '311978', '311993', '312009', '312030', '312701', '313165', '313185', '313192', '313495', '313500', '313501', '313502', '313503', '313506', '313508', '313509', '313510', '313511', '336476', '354869', '354870']
    nosy_count = 9.0
    nosy_names = ['brett.cannon', 'terry.reedy', 'ncoghlan', 'benjamin.peterson', 'docs@python', 'serhiy.storchaka', 'Mariatta', 'cheryl.sabella', 'xtreak']
    pr_nums = ['5960', '6041', '6042', '6043', '6045', '6046', '6047', '6048', '16565', '16566']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'crash'
    url = 'https://bugs.python.org/issue32758'
    versions = ['Python 2.7']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      docsDocumentation in the Doc direasytype-crashA hard crash of the interpreter, possibly with a core dump
      No fields configured for issues without a type.

      Projects

      No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions