python / python/cpython

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

Abierto
#82,300 36 comentarios 14 reacciones 1 asignado Ver en GitHub

@applio ya está trabajando en esto.

Desde el 11/9/2019.

docs stdlib topic-multiprocessing type-bug
Lenguaje dominante
Python
Estrellas
77.2k
Forks
36k
Merge medio
1 d 9 h
PR fusionados (30 d)
558

Descripción

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

    Guía de contribución

    Abrir la guía de contribución

    Primeros pasos

    1. Lee el issue completo y luego la guía de contribución del proyecto.
    2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
    3. Haz un fork del repositorio y trabaja en una rama.
    4. Abre un pull request que haga referencia al número del issue.

    Evaluación

    Este issue todavía no se ha evaluado.

    Recibe los nuevos issues en tu correo

    Un resumen breve de issues de GitHub para principiantes.