Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

KeyError at exit after 'import threading' in other thread #44231

Copy link
Copy link
@cwalther

Description

@cwalther
mannequin
Issue body actions
BPO 1596321
Nosy @gpshead, @amauryfa, @pitrou, @vstinner, @briancurtin, @ericsnowcurrently, @miss-islington, @iritkatriel
PRs
  • bpo-1596321: Fix threading._shutdown() for the main thread #28549
  • [3.10] bpo-1596321: Fix threading._shutdown() for the main thread (GH-28549) #28588
  • [3.9] bpo-1596321: Fix threading._shutdown() for the main thread (GH-28549) #28589
  • Files
  • threadingbug.py: minimal reproducing example
  • thread_crash.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 2021-09-30.01:41:09.993>
    created_at = <Date 2006-11-14.14:02:45.000>
    labels = ['interpreter-core', 'type-bug', '3.9', '3.10', '3.11']
    title = "KeyError at exit after 'import threading' in other thread"
    updated_at = <Date 2021-09-30.01:41:09.992>
    user = 'https://bugs.python.org/cwalther'

    bugs.python.org fields:

    activity = <Date 2021-09-30.01:41:09.992>
    actor = 'vstinner'
    assignee = 'none'
    closed = True
    closed_date = <Date 2021-09-30.01:41:09.993>
    closer = 'vstinner'
    components = ['Interpreter Core']
    creation = <Date 2006-11-14.14:02:45.000>
    creator = 'cwalther'
    dependencies = []
    files = ['2213', '9195']
    hgrepos = []
    issue_num = 1596321
    keywords = ['patch']
    message_count = 26.0
    messages = ['30544', '30545', '30546', '30547', '60013', '60035', '60041', '60050', '60052', '60083', '97989', '98031', '101890', '107903', '107904', '109088', '110202', '133043', '194597', '358743', '399693', '402573', '402740', '402744', '402745', '402746']
    nosy_count = 16.0
    nosy_names = ['gregory.p.smith', 'guettli', 'amaury.forgeotdarc', 'Rhamphoryncus', 'pitrou', 'bronger', 'vstinner', 'cwalther', 'brian.curtin', 'cmcqueen1975', 'alexis', 'Laurent.Mazuel', 'eric.snow', 'hasenpfeffer', 'miss-islington', 'iritkatriel']
    pr_nums = ['28549', '28588', '28589']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue1596321'
    versions = ['Python 3.9', 'Python 3.10', 'Python 3.11']

    Reactions are currently unavailable

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.10only security fixesonly security fixes3.11only security fixesonly security fixes3.9 (EOL)end of lifeend of lifeinterpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
      No fields configured for issues without a type.

      Projects

      No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

        Morty Proxy This is a proxified and sanitized view of the page, visit original site.