python / python/cpython

Setting a signal handler gets multiprocessing.Pool stuck

未關閉
#82,408 6 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

3.8 (EOL) stdlib topic-multiprocessing
主要語言
Python
星號
77.2k
分支
36k
PR 合併指標
PR 指標待擷取

描述

BPO 38227
Nosy @pitrou, @wumpus
Files
  • mp-bug-python2.8.py
  • mp-signal-bug-python3.8.py
  • pool.py.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 = None
    created_at = <Date 2019-09-19.21:41:35.764>
    labels = ['3.8', 'library']
    title = 'Setting a signal handler gets multiprocessing.Pool stuck'
    updated_at = <Date 2020-07-19.17:38:12.599>
    user = 'https://bugs.python.org/ionelmc'
    

    bugs.python.org fields:

    activity = <Date 2020-07-19.17:38:12.599>
    actor = 'wumpus'
    assignee = 'none'
    closed = False
    closed_date = None
    closer = None
    components = ['Library (Lib)']
    creation = <Date 2019-09-19.21:41:35.764>
    creator = 'ionelmc'
    dependencies = []
    files = ['48615', '49130', '49131']
    hgrepos = []
    issue_num = 38227
    keywords = ['patch']
    message_count = 6.0
    messages = ['352815', '353938', '353947', '368233', '368234', '368237']
    nosy_count = 4.0
    nosy_names = ['pitrou', 'ionelmc', 'wumpus', 'mapozyan']
    pr_nums = []
    priority = 'normal'
    resolution = None
    stage = None
    status = 'open'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue38227'
    versions = ['Python 3.8']
    

    貢獻指南

    開啟貢獻指南

    從這裡開始

    1. 先讀完整個 Issue,再讀專案的貢獻指南。
    2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
    3. Fork 儲存庫,在一個分支上完成修改。
    4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

    研究方向

    先從重現檔案 mp-bug-python2.8.py 和 mp-signal-bug-python3.8.py 開始,接著檢查 pool.py.patch 以了解提議的方向。重現 multiprocessing.Pool 卡住的行為,並驗證設定訊號處理常式後 pool 不再掛起。

    由索引模型根據 Issue 內容生成。

    評估

    技術堆疊
    python
    領域
    backend, operating-systems
    Issue 類型
    缺陷
    難度
    4/5
    預估耗時
    3-5 天
    活躍度
    停滯
    描述清晰度
    基本清楚
    新手友好度
    38/100

    把新 issue 寄到你的電子郵件信箱

    精選適合新手參與的 GitHub issue 摘要。