Skip to content

shutdown (exit) can hang or segfault with daemon threads running #46164

Closed
@gpshead

Description

@gpshead
BPO 1856
Nosy @birkenfeld, @terryjreedy, @doko42, @gpshead, @kbkaiser, @amauryfa, @pitrou, @vstinner, @benjaminp, @ned-deily, @Trundle
Files
  • thread_exit.py: run this several times for several different behaviors
  • python-trunk-issue1856-threadexit.diff: Immediately exit non-main threads if the interpreter is exiting
  • thread_noswap.patch
  • python-thread_noswap-2.diff
  • finalizing.patch
  • finalizing2.patch
  • 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 2014-07-11.21:08:57.822>
    created_at = <Date 2008-01-17.02:01:14.628>
    labels = ['interpreter-core', 'type-crash']
    title = 'shutdown (exit) can hang or segfault with daemon threads running'
    updated_at = <Date 2020-03-26.23:05:06.906>
    user = 'https://github.com/gpshead'

    bugs.python.org fields:

    activity = <Date 2020-03-26.23:05:06.906>
    actor = 'vstinner'
    assignee = 'none'
    closed = True
    closed_date = <Date 2014-07-11.21:08:57.822>
    closer = 'ned.deily'
    components = ['Interpreter Core']
    creation = <Date 2008-01-17.02:01:14.628>
    creator = 'gregory.p.smith'
    dependencies = []
    files = ['9188', '9199', '9200', '10208', '21862', '21872']
    hgrepos = []
    issue_num = 1856
    keywords = ['patch']
    message_count = 32.0
    messages = ['60014', '60016', '60018', '60056', '60059', '60063', '60069', '60070', '60071', '60072', '60073', '60074', '60075', '60077', '66363', '66742', '73720', '81485', '112641', '115330', '116928', '135006', '135007', '135051', '135144', '135146', '194599', '220786', '222768', '222796', '231460', '365120']
    nosy_count = 20.0
    nosy_names = ['georg.brandl', 'terry.reedy', 'doko', 'gregory.p.smith', 'kbk', 'guettli', 'amaury.forgeotdarc', 'ggenellina', 'Rhamphoryncus', 'larsimmisch', 'pitrou', 'vstinner', 'forest', 'flub', 'benjamin.peterson', 'jamescooper', 'ned.deily', 'Trundle', 'Netto', 'python-dev']
    pr_nums = []
    priority = 'high'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'crash'
    url = 'https://bugs.python.org/issue1856'
    versions = ['Python 3.2', 'Python 3.3']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      interpreter-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