Skip to content

subprocess.run timeout does not function if shell=True and capture_output=True #81605

Closed
@haizaar

Description

@haizaar
mannequin
BPO 37424
Nosy @Yhg1s, @gpshead, @vstinner, @vadmium, @cappy2112@gmail.com, @miss-islington, @tirkarthi, @haizaar
PRs
  • bpo-37424: Avoid a hang in subprocess.run timeout output capture #14490
  • [3.8] bpo-37424: Avoid a hang in subprocess.run timeout output capture (GH-14490) #15897
  • [3.7] bpo-37424: Avoid a hang in subprocess.run timeout output capture (GH-14490) #15898
  • Superseder
  • bpo-30154: subprocess.run with stderr connected to a pipe won't timeout when killing a never-ending shell commanad
  • 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 = 'https://github.com/gpshead'
    closed_at = <Date 2019-09-11.14:42:27.911>
    created_at = <Date 2019-06-27.06:59:50.859>
    labels = ['3.7', 'type-bug', 'library']
    title = 'subprocess.run timeout does not function if shell=True and capture_output=True'
    updated_at = <Date 2019-10-01.20:26:06.077>
    user = 'https://github.com/haizaar'

    bugs.python.org fields:

    activity = <Date 2019-10-01.20:26:06.077>
    actor = 'vstinner'
    assignee = 'gregory.p.smith'
    closed = True
    closed_date = <Date 2019-09-11.14:42:27.911>
    closer = 'gregory.p.smith'
    components = ['Library (Lib)']
    creation = <Date 2019-06-27.06:59:50.859>
    creator = 'haizaar'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 37424
    keywords = ['patch']
    message_count = 14.0
    messages = ['346712', '346714', '346718', '346735', '346948', '351775', '351792', '351793', '351813', '351912', '352677', '353705', '353707', '353710']
    nosy_count = 8.0
    nosy_names = ['twouters', 'gregory.p.smith', 'vstinner', 'martin.panter', 'cappy', 'miss-islington', 'xtreak', 'haizaar']
    pr_nums = ['14490', '15897', '15898']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'commit review'
    status = 'closed'
    superseder = '30154'
    type = 'behavior'
    url = 'https://bugs.python.org/issue37424'
    versions = ['Python 3.7']

    Metadata

    Metadata

    Assignees

    Labels

    3.7 (EOL)end of lifestdlibPython modules in the Lib dirtype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions