Thanks to visit codestin.com
Credit goes to github.com

Skip to content

CPython hangs on error __context__ set to the error itself #69968

@1st1

Description

@1st1
BPO 25782
Nosy @birkenfeld, @terryjreedy, @ncoghlan, @cjerdonek, @ambv, @serhiy-storchaka, @1st1, @corona10, @miss-islington, @sweeneyde, @sobolevn, @iritkatriel
PRs
  • bpo-25782: Prevent cycles in the __context__ chain. #20543
  • bpo-25782: Do not hang when exception contexts form a cycle. #20539
  • bpo-25782: avoid hang in PyErr_SetObject when current exception has a… #27626
  • [3.10] bpo-25782: avoid hang in PyErr_SetObject when current exception has a cycle in its context chain (GH-27626) #27706
  • [3.9] bpo-25782: avoid hang in PyErr_SetObject when current exception has a cycle in its context chain (GH-27626) #27707
  • Files
  • Issue25782.patch
  • Issue25782_2.patch
  • Issue25782_3.patch
  • Issue25782_4.patch
  • set_context_reordering.patch
  • set_context_reordering2.patch
  • Issue25782_5.patch
  • issue27122_broken_cm.py: Explicit reproducer for python/issues-test-cpython#27122
  • 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 = 'https://github.com/serhiy-storchaka'
    closed_at = None
    created_at = <Date 2015-12-02.17:14:01.351>
    labels = ['interpreter-core', 'type-bug', '3.9', '3.10', '3.11']
    title = 'CPython hangs on error __context__ set to the error itself'
    updated_at = <Date 2021-08-11.12:41:10.037>
    user = 'https://github.com/1st1'

    bugs.python.org fields:

    activity = <Date 2021-08-11.12:41:10.037>
    actor = 'corona10'
    assignee = 'serhiy.storchaka'
    closed = False
    closed_date = None
    closer = None
    components = ['Interpreter Core']
    creation = <Date 2015-12-02.17:14:01.351>
    creator = 'yselivanov'
    dependencies = []
    files = ['41212', '41214', '41219', '41341', '41354', '43380', '43381', '43382']
    hgrepos = []
    issue_num = 25782
    keywords = ['patch']
    message_count = 71.0
    messages = ['255731', '255739', '255740', '255744', '255747', '255752', '255753', '255754', '255758', '255759', '255760', '255766', '255767', '255768', '255770', '255771', '255772', '255773', '255775', '255776', '255780', '255781', '255788', '255995', '256618', '256644', '256681', '256687', '256688', '268309', '268310', '268465', '268467', '268472', '268473', '268485', '268509', '268563', '268565', '268567', '268578', '283459', '291825', '291826', '291828', '314242', '314430', '370401', '370404', '370420', '391637', '399080', '399091', '399092', '399093', '399094', '399099', '399100', '399218', '399219', '399220', '399227', '399228', '399230', '399243', '399281', '399310', '399314', '399325', '399332', '399387']
    nosy_count = 16.0
    nosy_names = ['georg.brandl', 'terry.reedy', 'ncoghlan', 'chris.jerdonek', 'lukasz.langa', 'Yury.Selivanov', 'python-dev', 'serhiy.storchaka', 'yselivanov', 'Rotem Yaari', 'larsonreever', 'corona10', 'miss-islington', 'Dennis Sweeney', 'sobolevn', 'iritkatriel']
    pr_nums = ['20543', '20539', '27626', '27706', '27707']
    priority = 'high'
    resolution = None
    stage = 'patch review'
    status = 'open'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue25782'
    versions = ['Python 3.9', 'Python 3.10', 'Python 3.11']

    Metadata

    Metadata

    Labels

    3.10only security fixes3.11only security fixes3.9only security fixesinterpreter-core(Objects, Python, Grammar, and Parser dirs)type-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions