Skip to content

subprocess.run() timeout not working with grandchildren and stdout=PIPE #76116

@MartinRitter

Description

@MartinRitter
BPO 31935
Nosy @vstinner, @vadmium
Superseder
  • bpo-30154: subprocess.run with stderr connected to a pipe won't timeout when killing a never-ending shell commanad
  • Files
  • test_killsub.py: Minimal example to reproduce timeout problem
  • 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 2018-07-22.08:38:36.212>
    created_at = <Date 2017-11-03.15:01:31.986>
    labels = ['type-bug', 'library']
    title = 'subprocess.run() timeout not working with grandchildren and stdout=PIPE'
    updated_at = <Date 2018-07-22.08:38:36.210>
    user = 'https://bugs.python.org/MartinRitter'

    bugs.python.org fields:

    activity = <Date 2018-07-22.08:38:36.210>
    actor = 'martin.panter'
    assignee = 'none'
    closed = True
    closed_date = <Date 2018-07-22.08:38:36.212>
    closer = 'martin.panter'
    components = ['Library (Lib)']
    creation = <Date 2017-11-03.15:01:31.986>
    creator = 'Martin Ritter'
    dependencies = []
    files = ['47251']
    hgrepos = []
    issue_num = 31935
    keywords = []
    message_count = 3.0
    messages = ['305487', '305529', '322137']
    nosy_count = 3.0
    nosy_names = ['vstinner', 'martin.panter', 'Martin Ritter']
    pr_nums = []
    priority = 'normal'
    resolution = 'duplicate'
    stage = 'resolved'
    status = 'closed'
    superseder = '30154'
    type = 'behavior'
    url = 'https://bugs.python.org/issue31935'
    versions = ['Python 3.6']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      stdlibStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or error
      No fields configured for issues without a type.

      Projects

      No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions