Skip to content

Add threading.excepthook() to handle uncaught exceptions raised by Thread.run() #42148

@ellisj

Description

@ellisj
mannequin
BPO 1230540
Nosy @mwhudson, @tim-one, @ncoghlan, @pitrou, @vstinner, @merwok, @vlasovskikh, @serhiy-storchaka, @lazka, @AraHaan
PRs
  • bpo-1230540: Invoke custom sys.excepthook for threads in threading #8610
  • bpo-1230540: Add threading.excepthook() #13515
  • Files
  • fork_thread.py
  • sys_threading_excepthook.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-05-27.22:53:59.194>
    created_at = <Date 2005-06-30.19:06:10.000>
    labels = ['interpreter-core', 'type-bug', '3.8']
    title = 'Add threading.excepthook() to handle uncaught exceptions raised by Thread.run()'
    updated_at = <Date 2019-05-28.10:20:57.279>
    user = 'https://bugs.python.org/ellisj'

    bugs.python.org fields:

    activity = <Date 2019-05-28.10:20:57.279>
    actor = 'vstinner'
    assignee = 'none'
    closed = True
    closed_date = <Date 2019-05-27.22:53:59.194>
    closer = 'vstinner'
    components = ['Interpreter Core']
    creation = <Date 2005-06-30.19:06:10.000>
    creator = 'ellisj'
    dependencies = []
    files = ['48351', '48354']
    hgrepos = []
    issue_num = 1230540
    keywords = ['patch']
    message_count = 42.0
    messages = ['25694', '25695', '25696', '62933', '91243', '91244', '272002', '272003', '272006', '288513', '288514', '297221', '302320', '302645', '322892', '322895', '322932', '323111', '324422', '324436', '343252', '343258', '343260', '343261', '343276', '343280', '343293', '343443', '343444', '343474', '343494', '343510', '343512', '343515', '343516', '343522', '343523', '343524', '343692', '343694', '343748', '343758']
    nosy_count = 15.0
    nosy_names = ['mwh', 'tim.peters', 'ncoghlan', 'ellisj', 'pitrou', 'vstinner', 'tiagoaoa', 'eric.araujo', 'undercoveridiot', 'vlasovskikh', 'serhiy.storchaka', 'lazka', 'Decorater', 'CyberJacob', 'Matt Groth']
    pr_nums = ['8610', '13515']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue1230540'
    versions = ['Python 3.8']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.8 (EOL)end of lifeinterpreter-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