Skip to content

os.listdir() leaks FDs if invoked on FD pointing to a non-directory #62099

@abacabadabacaba

Description

@abacabadabacaba
BPO 17899
Nosy @jcea, @larryhastings, @tiran, @serhiy-storchaka
Files
  • larry.listdir.fd.leakage.bug.1.patch: First cut at a patch fixing the fd leaked when fdopendir fails in os.listdir.
  • larry.listdir.fd.leakage.bug.2.patch
  • larry.3.3.listdir.fd.leakage.bug.1.patch
  • listdir_fd.patch
  • larry.listdir.fd.leakage.bug.3.patch
  • larry.3.3.listdir.fd.leakage.bug.2.patch
  • 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/larryhastings'
    closed_at = <Date 2013-08-02.02:39:59.298>
    created_at = <Date 2013-05-03.19:16:26.371>
    labels = ['library', 'performance']
    title = 'os.listdir() leaks FDs if invoked on FD pointing to a non-directory'
    updated_at = <Date 2014-02-17.16:57:32.762>
    user = 'https://bugs.python.org/abacabadabacaba'

    bugs.python.org fields:

    activity = <Date 2014-02-17.16:57:32.762>
    actor = 'jcea'
    assignee = 'larry'
    closed = True
    closed_date = <Date 2013-08-02.02:39:59.298>
    closer = 'larry'
    components = ['Library (Lib)']
    creation = <Date 2013-05-03.19:16:26.371>
    creator = 'abacabadabacaba'
    dependencies = []
    files = ['30120', '30520', '30521', '31017', '31020', '31021']
    hgrepos = []
    issue_num = 17899
    keywords = ['patch']
    message_count = 24.0
    messages = ['188322', '188339', '188340', '188341', '190885', '190886', '190887', '193518', '193521', '193524', '193550', '193557', '193579', '193580', '193581', '193582', '193591', '193594', '193615', '193716', '194013', '194145', '194146', '194147']
    nosy_count = 6.0
    nosy_names = ['jcea', 'larry', 'christian.heimes', 'abacabadabacaba', 'python-dev', 'serhiy.storchaka']
    pr_nums = []
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'resource usage'
    url = 'https://bugs.python.org/issue17899'
    versions = ['Python 3.3', 'Python 3.4']

    Metadata

    Metadata

    Assignees

    Labels

    performancePerformance or resource usagestdlibStandard Library Python modules in the Lib/ directory

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions