subprocess.communicate with timeout 0 and already terminated process generates TimeoutExpired on Linux
オープン
まだ誰も着手していません。
stdlib
topic-subprocess
type-bug
- 主要言語
- Python
- スター
- 77.2k
- フォーク
- 36k
- 平均マージ
- 1日 9時間
- マージ済み PR(30日)
- 558
説明
| BPO | 29472 |
|---|---|
| Nosy | @Griffon26, @spoorcc |
| Files |
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 2017-02-07.11:57:14.624>
labels = ['type-bug', 'library']
title = 'subprocess.communicate with timeout 0 and already terminated process generates TimeoutExpired on Linux'
updated_at = <Date 2017-02-07.12:36:53.465>
user = 'https://github.com/Griffon26'
bugs.python.org fields:
activity = <Date 2017-02-07.12:36:53.465>
actor = 'spoorcc'
assignee = 'none'
closed = False
closed_date = None
closer = None
components = ['Library (Lib)']
creation = <Date 2017-02-07.11:57:14.624>
creator = 'Griffon26'
dependencies = []
files = ['46557']
hgrepos = []
issue_num = 29472
keywords = []
message_count = 1.0
messages = ['287230']
nosy_count = 2.0
nosy_names = ['Griffon26', 'spoorcc']
pr_nums = []
priority = 'normal'
resolution = None
stage = None
status = 'open'
superseder = None
type = 'behavior'
url = 'https://bugs.python.org/issue29472'
versions = ['Python 3.6']
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
まず Linux 上で test.py の最小再現を実行し、すでに終了したプロセスに対して subprocess.communicate が timeout=0 をどのように処理するかを調べます。このケースで TimeoutExpired が発生しなくなり、終了していないプロセスに対する期待される timeout の動作が維持されていれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- python
- 領域
- operating-systems
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100