Skip to content

NamedTemporaryFile could cause double-close on an fd if _TemporaryFileWrapper throws #83499

Closed
@nneonneo

Description

@nneonneo
BPO 39318
Nosy @nedbat, @sethtroisi, @albertz, @serhiy-storchaka, @eryksun, @jstasiak, @sanjioh, @joernheissler
PRs
  • bpo-39318: Catch a failure in NamedTemporaryFile to prevent leaking a descriptor #17985
  • 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/serhiy-storchaka'
    closed_at = None
    created_at = <Date 2020-01-13.04:56:47.144>
    labels = ['3.8', 'type-bug', 'library', '3.9', '3.10']
    title = 'NamedTemporaryFile could cause double-close on an fd if _TemporaryFileWrapper throws'
    updated_at = <Date 2021-03-28.03:37:24.913>
    user = 'https://bugs.python.org/nneonneo'

    bugs.python.org fields:

    activity = <Date 2021-03-28.03:37:24.913>
    actor = 'eryksun'
    assignee = 'serhiy.storchaka'
    closed = False
    closed_date = None
    closer = None
    components = ['Library (Lib)']
    creation = <Date 2020-01-13.04:56:47.144>
    creator = 'nneonneo'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 39318
    keywords = ['patch']
    message_count = 10.0
    messages = ['359888', '359892', '359935', '359957', '359959', '360040', '360041', '360071', '360084', '360104']
    nosy_count = 12.0
    nosy_names = ['nneonneo', 'nedbat', 'Seth.Troisi', 'Albert.Zeyer', 'serhiy.storchaka', 'paul_ollis', 'eryksun', 'jstasiak', 'sanjioh', 'joernheissler', 'hitbox', 'rekcartgubnohtyp']
    pr_nums = ['17985']
    priority = 'normal'
    resolution = None
    stage = 'patch review'
    status = 'open'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue39318'
    versions = ['Python 3.8', 'Python 3.9', 'Python 3.10']

    Metadata

    Metadata

    Labels

    3.10only security fixes3.8 (EOL)end of life3.9only security fixesstdlibPython modules in the Lib dirtype-bugAn unexpected behavior, bug, or error

    Projects

    • Status

      Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions