Skip to content

Segfault when stringifying UnicodeEncodeError (or UnicodeDecodeError) created with __new__() #65333

@MarekKowalski

Description

@MarekKowalski
BPO 21134
Nosy @vstinner, @benjaminp, @ezio-melotti, @serhiy-storchaka
Files
  • segv.py: Minial script causing segfault
  • 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-12-11.07:50:44.617>
    created_at = <Date 2014-04-02.14:10:37.666>
    labels = ['expert-unicode', 'type-crash']
    title = 'Segfault when stringifying UnicodeEncodeError (or UnicodeDecodeError) created with __new__()'
    updated_at = <Date 2016-12-11.07:50:44.616>
    user = 'https://bugs.python.org/MarekKowalski'

    bugs.python.org fields:

    activity = <Date 2016-12-11.07:50:44.616>
    actor = 'serhiy.storchaka'
    assignee = 'none'
    closed = True
    closed_date = <Date 2016-12-11.07:50:44.617>
    closer = 'serhiy.storchaka'
    components = ['Unicode']
    creation = <Date 2014-04-02.14:10:37.666>
    creator = 'Marek.Kowalski'
    dependencies = []
    files = ['34702']
    hgrepos = []
    issue_num = 21134
    keywords = []
    message_count = 10.0
    messages = ['215384', '215386', '215389', '215390', '215391', '254675', '254695', '269421', '269424', '269426']
    nosy_count = 6.0
    nosy_names = ['vstinner', 'benjamin.peterson', 'ezio.melotti', 'python-dev', 'serhiy.storchaka', 'Marek.Kowalski']
    pr_nums = []
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'crash'
    url = 'https://bugs.python.org/issue21134'
    versions = ['Python 2.7', 'Python 3.4', 'Python 3.5']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      topic-unicodetype-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