Skip to content

sys.excepthook (PyErr_Display) does crash with SyntaxError which has a bytes filename #81648

@vstinner

Description

@vstinner
BPO 37467
Nosy @vstinner, @miss-islington
PRs
  • bpo-37467: Fix PyErr_Display() for bytes filename #14504
  • [3.8] bpo-37467: Fix PyErr_Display() for bytes filename (GH-14504) #14514
  • [3.7] bpo-37467: Fix PyErr_Display() for bytes filename (GH-14504) #14515
  • Files
  • sf.py
  • sf.xml
  • excepthook_syntaxerror.py
  • 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-07-01.15:42:28.918>
    created_at = <Date 2019-07-01.09:49:10.994>
    labels = ['3.7', '3.8', '3.9', 'type-crash']
    title = 'sys.excepthook (PyErr_Display) does crash with SyntaxError which has a bytes filename'
    updated_at = <Date 2019-07-01.15:42:28.917>
    user = 'https://github.com/vstinner'

    bugs.python.org fields:

    activity = <Date 2019-07-01.15:42:28.917>
    actor = 'vstinner'
    assignee = 'none'
    closed = True
    closed_date = <Date 2019-07-01.15:42:28.918>
    closer = 'vstinner'
    components = []
    creation = <Date 2019-07-01.09:49:10.994>
    creator = 'vstinner'
    dependencies = []
    files = ['48449', '48450', '48451']
    hgrepos = []
    issue_num = 37467
    keywords = ['patch']
    message_count = 7.0
    messages = ['346988', '346992', '347028', '347029', '347030', '347035', '347036']
    nosy_count = 2.0
    nosy_names = ['vstinner', 'miss-islington']
    pr_nums = ['14504', '14514', '14515']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'crash'
    url = 'https://bugs.python.org/issue37467'
    versions = ['Python 3.7', 'Python 3.8', 'Python 3.9']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.7 (EOL)end of life3.8 (EOL)end of life3.9 (EOL)end of lifetype-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