resource tracker destroys shared memory segments when other processes should still have valid access

未关闭
#82,300 36 条评论 14 个 reaction 已指派 1 人 在 GitHub 查看

@applio 已经在做这个了。

开始于 2019年9月11日。

评估

这个 Issue 还没有评估数据。

描述

docs stdlib topic-multiprocessing type-bug
BPO 38119
Nosy @pitrou, @applio, @pablogsal, @maggyero, @vinay0410, @JSmith-BitFlipper, @keven425, @TKaluza
PRs
  • python/cpython#15989
  • python/cpython#21516
  • python/cpython#23174
  • Files
  • mprt_monkeypatch.py
  • 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/applio'
    closed_at = None
    created_at = <Date 2019-09-11.15:58:26.817>
    labels = ['3.8', 'type-bug', 'library', '3.9', '3.10']
    title = 'resource tracker destroys shared memory segments when other processes should still have valid access'
    updated_at = <Date 2022-02-10.20:53:56.777>
    user = 'https://github.com/applio'
    

    bugs.python.org fields:

    activity = <Date 2022-02-10.20:53:56.777>
    actor = 'maggyero'
    assignee = 'davin'
    closed = False
    closed_date = None
    closer = None
    components = ['Library (Lib)']
    creation = <Date 2019-09-11.15:58:26.817>
    creator = 'davin'
    dependencies = []
    files = ['49859']
    hgrepos = []
    issue_num = 38119
    keywords = ['patch']
    message_count = 14.0
    messages = ['351960', '352050', '374434', '374939', '374944', '374951', '374954', '374956', '374958', '374974', '387606', '388287', '390198', '412440']
    nosy_count = 12.0
    nosy_names = ['pitrou', 'steve.newcomb', 'turicas', 'davin', 'pablogsal', 'maggyero', 'vinay0410', 'damian.barabonkov', 'keven425', 'davfelsen', 'jdogzz-g5', 'timka']
    pr_nums = ['15989', '21516', '23174']
    priority = 'normal'
    resolution = None
    stage = 'patch review'
    status = 'open'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue38119'
    versions = ['Python 3.8', 'Python 3.9', 'Python 3.10']
    

    TODO list:

    • Add a track=True parameter to SharedMemory (#110778 did this) so it can be disabled by the user.
    • It still needs covering in the What's New in 3.13 documentation.
    • Verify and make other documentation improvements as necessary as alluded by @ambv below in https://github.com/python/cpython/issues/82300#issuecomment-1336166761 - It sounded like we've got docs implying that resources outlive the process by default which was not what the implementation ever did.
    Linked PRs
    • gh-110778
    主要语言
    Python
    星标
    77.2k
    派生
    36k
    平均合并
    1 天 9 小时
    30 天内合并 PR
    558

    贡献指南

    打开贡献指南

    从这里开始

    1. 先读完整个 Issue,再读项目的贡献指南。
    2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
    3. Fork 仓库,在一个分支上完成修改。
    4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

    python/cpython 的其他 Issue

    查看 python/cpython 的全部 Issue

    相似的 Issue

    更多 Python Issue

    把新 issue 发到你的邮箱

    精选适合新手参与的 GitHub issue 摘要。