Skip to content

subprocess leaks open file descriptors between Popen instances causing hangs #51462

@milkokrachounov

Description

@milkokrachounov
BPO 7213
Nosy @birkenfeld, @gpshead, @pfmoore, @vstinner, @jwilk, @ned-deily
Files
  • subprocess-cloexec-py3k.patch: [obsolete] Simple patch to enable CLOEXEC on subprocess pipes
  • subprocess-00-subprocess_test_utils.patch: Utils required by the tests of the CLOEXEC patches (issue 6559 could also use them for tests)
  • subprocess-01-atomic_cloexec_pipe2.patch: Create subprocess pipes with FD_CLOEXEC (atomically when possible)
  • subprocess-02-cloexec_tests.patch: Tests for FD_CLOEXEC on the subprocess pipes
  • 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 2010-12-14.13:47:59.664>
    created_at = <Date 2009-10-26.23:14:01.036>
    labels = ['type-bug', 'library']
    title = 'subprocess leaks open file descriptors between Popen instances causing hangs'
    updated_at = <Date 2010-12-14.13:48:51.110>
    user = 'https://bugs.python.org/milkokrachounov'

    bugs.python.org fields:

    activity = <Date 2010-12-14.13:48:51.110>
    actor = 'gregory.p.smith'
    assignee = 'gregory.p.smith'
    closed = True
    closed_date = <Date 2010-12-14.13:47:59.664>
    closer = 'gregory.p.smith'
    components = ['Library (Lib)']
    creation = <Date 2009-10-26.23:14:01.036>
    creator = 'milko.krachounov'
    dependencies = []
    files = ['20000', '20017', '20018', '20020']
    hgrepos = []
    issue_num = 7213
    keywords = ['patch']
    message_count = 28.0
    messages = ['94538', '100372', '123408', '123737', '123741', '123742', '123743', '123744', '123746', '123748', '123754', '123763', '123766', '123788', '123792', '123801', '123802', '123804', '123806', '123817', '123818', '123832', '123837', '123863', '123864', '123869', '123940', '123941']
    nosy_count = 8.0
    nosy_names = ['georg.brandl', 'gregory.p.smith', 'paul.moore', 'vstinner', 'jwilk', 'ned.deily', 'milko.krachounov', 'Giovanni.Bajo']
    pr_nums = []
    priority = 'normal'
    resolution = 'accepted'
    stage = None
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue7213'
    versions = ['Python 2.7', 'Python 3.2']

    Metadata

    Metadata

    Assignees

    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