Skip to content

Bus error on 'except E as a.b:' #84807

Closed
Closed

Description

@gvanrossum
BPO 40627
Nosy @gvanrossum, @lysnikolaou, @pablogsal
PRs
  • bpo-40618: Disallow invalid targets in augassign and except clauses #20083
  • Superseder
  • bpo-40618: PEG Parser: Invalid targets for augassign and except succeed
  • 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 2020-05-14.18:31:15.733>
    created_at = <Date 2020-05-14.18:27:40.786>
    labels = ['type-crash']
    title = "Bus error on 'except E as a.b:'"
    updated_at = <Date 2020-05-14.18:31:15.730>
    user = 'https://github.com/gvanrossum'

    bugs.python.org fields:

    activity = <Date 2020-05-14.18:31:15.730>
    actor = 'gvanrossum'
    assignee = 'none'
    closed = True
    closed_date = <Date 2020-05-14.18:31:15.733>
    closer = 'gvanrossum'
    components = []
    creation = <Date 2020-05-14.18:27:40.786>
    creator = 'gvanrossum'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 40627
    keywords = ['patch']
    message_count = 3.0
    messages = ['368860', '368861', '368862']
    nosy_count = 3.0
    nosy_names = ['gvanrossum', 'lys.nikolaou', 'pablogsal']
    pr_nums = ['20083']
    priority = 'normal'
    resolution = 'duplicate'
    stage = 'resolved'
    status = 'closed'
    superseder = '40618'
    type = 'crash'
    url = 'https://bugs.python.org/issue40627'
    versions = []

    Activity

    1. gvanrossum commented on May 14, 2020

      @gvanrossum
      MemberAuthor

      This seems due to some new check in pegen:

      >>> try:
      ...   pass
      ... except E as a.b:
      ...   pass
      ... 
      Bus error: 10
    2. added
      type-crashA hard crash of the interpreter, possibly with a core dump
      on May 14, 2020
    3. gvanrossum commented on May 14, 2020

      @gvanrossum
      MemberAuthor

      Oh, looks like #20083 fixes it.

    4. gvanrossum commented on May 14, 2020

      @gvanrossum
      MemberAuthor

      Sorry!

    5. transferred this issue fromon Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

    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