Skip to content

Popen.communicate() breaks when child closes its side of pipe but not exits #79363

Description

@and800
mannequin
BPO 35182
Nosy @gpshead, @MojoVampire, @and800, @miss-islington
PRs
  • bpo-35182: fix communicate() crash after child closes its pipes #17020
  • [2.7] bpo-35182: fix communicate() crash after child closes its pipes (GH-17020) #17023
  • bpo-35182: fix communicate() crash after child closes its pipes #18117
  • [3.8] bpo-35182: fix communicate() crash after child closes its pipes (GH-18117) #18148
  • [3.7] bpo-35182: fix communicate() crash after child closes its pipes (GH-18117) #18151
  • 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 2020-01-23.23:33:29.317>
    created_at = <Date 2018-11-07.10:23:30.466>
    labels = ['3.7', '3.8', 'type-bug', 'library', '3.9']
    title = 'Popen.communicate() breaks when child closes its side of pipe but not exits'
    updated_at = <Date 2020-01-23.23:33:29.310>
    user = 'https://github.com/and800'

    bugs.python.org fields:

    activity = <Date 2020-01-23.23:33:29.310>
    actor = 'gregory.p.smith'
    assignee = 'gregory.p.smith'
    closed = True
    closed_date = <Date 2020-01-23.23:33:29.317>
    closer = 'gregory.p.smith'
    components = ['Library (Lib)']
    creation = <Date 2018-11-07.10:23:30.466>
    creator = 'and800'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 35182
    keywords = ['patch']
    message_count = 9.0
    messages = ['329412', '329435', '329436', '355760', '360520', '360521', '360584', '360585', '360586']
    nosy_count = 4.0
    nosy_names = ['gregory.p.smith', 'josh.r', 'and800', 'miss-islington']
    pr_nums = ['17020', '17023', '18117', '18148', '18151']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'commit review'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue35182'
    versions = ['Python 3.7', 'Python 3.8', 'Python 3.9']

    Metadata

    Metadata

    Assignees

    Labels

    3.7 (EOL)end of life3.8 (EOL)end of life3.9 (EOL)end of lifestdlibStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions