Skip to content

_PyErr_CreateException() must check that the result is an exception (CPython Segfault in 5 lines of code) #83272

Description

@sekrause
mannequin
BPO 39091
Nosy @tiran, @benjaminp, @ambv, @serhiy-storchaka, @miss-islington, @sekrause, @coolreader18
PRs
  • bpo-39091: Fix segfault when Exception constructor returns non-exception for gen.throw #17658
  • [3.10] closes bpo-39091: Fix segfault when Exception constructor returns non-exception for gen.throw. (GH-17658) #27572
  • [3.9] closes bpo-39091: Fix segfault when Exception constructor returns non-exception for gen.throw. (GH-17658) #27573
  • 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 2021-08-03.02:17:33.440>
    created_at = <Date 2019-12-18.18:45:15.070>
    labels = ['interpreter-core', '3.10', '3.8', '3.9', 'type-crash']
    title = '_PyErr_CreateException() must check that the result is an exception (CPython Segfault in 5 lines of code)'
    updated_at = <Date 2021-08-03.10:11:05.815>
    user = 'https://github.com/sekrause'

    bugs.python.org fields:

    activity = <Date 2021-08-03.10:11:05.815>
    actor = 'lukasz.langa'
    assignee = 'none'
    closed = True
    closed_date = <Date 2021-08-03.02:17:33.440>
    closer = 'benjamin.peterson'
    components = ['Interpreter Core']
    creation = <Date 2019-12-18.18:45:15.070>
    creator = 'skrause'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 39091
    keywords = ['patch']
    message_count = 7.0
    messages = ['358639', '358640', '358643', '358649', '398813', '398817', '398818']
    nosy_count = 7.0
    nosy_names = ['christian.heimes', 'benjamin.peterson', 'lukasz.langa', 'serhiy.storchaka', 'miss-islington', 'skrause', 'coolreader18']
    pr_nums = ['17658', '27572', '27573']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'crash'
    url = 'https://bugs.python.org/issue39091'
    versions = ['Python 3.8', 'Python 3.9', 'Python 3.10']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.10only security fixes3.8 (EOL)end of life3.9 (EOL)end of lifeinterpreter-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