Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

shared memory problems with multiprocessing.Pool #85005

Open
trapezoid677 mannequin opened this issue May 30, 2020 · 2 comments
Open

shared memory problems with multiprocessing.Pool #85005

trapezoid677 mannequin opened this issue May 30, 2020 · 2 comments
Labels
3.8 only security fixes stdlib Python modules in the Lib dir topic-multiprocessing type-bug An unexpected behavior, bug, or error

Comments

@trapezoid677
Copy link
Mannequin

trapezoid677 mannequin commented May 30, 2020

BPO 40828
Nosy @pitrou, @applio, @vinay0410, @trapezoid677
Files
  • shared_memory.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 = None
    closed_at = None
    created_at = <Date 2020-05-30.17:57:21.554>
    labels = ['3.8', 'type-bug', 'library']
    title = 'shared memory problems with multiprocessing.Pool'
    updated_at = <Date 2020-07-19.07:15:02.005>
    user = 'https://github.com/trapezoid677'

    bugs.python.org fields:

    activity = <Date 2020-07-19.07:15:02.005>
    actor = 'vinay0410'
    assignee = 'none'
    closed = False
    closed_date = None
    closer = None
    components = ['Library (Lib)']
    creation = <Date 2020-05-30.17:57:21.554>
    creator = 'trapezoid677'
    dependencies = []
    files = ['49203']
    hgrepos = []
    issue_num = 40828
    keywords = []
    message_count = 2.0
    messages = ['370396', '373938']
    nosy_count = 4.0
    nosy_names = ['pitrou', 'davin', 'vinay0410', 'trapezoid677']
    pr_nums = []
    priority = 'normal'
    resolution = None
    stage = None
    status = 'open'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue40828'
    versions = ['Python 3.8']

    @trapezoid677
    Copy link
    Mannequin Author

    trapezoid677 mannequin commented May 30, 2020

    Under Linux, the resource_tracker throws warnings about not released memory blocks after the programs has finished and when used together with multiprocessing.Pool. This depends on the sequence of initialization of the shared memory block and the multiprocessing pool. In addition, .close() on the shared memory block generates a segmentation fault in the example code.

    Under MS Windows, the shared memory block holds arbitrary values when being read in the worker routines, but no warnings are thrown and no segmentation fault occurs when closing the memory block.

    @trapezoid677 trapezoid677 mannequin added 3.8 only security fixes stdlib Python modules in the Lib dir type-bug An unexpected behavior, bug, or error labels May 30, 2020
    @vinay0410
    Copy link
    Mannequin

    vinay0410 mannequin commented Jul 19, 2020

    Hi, Can you please confirm the python version in which you replicated this issue. I tried replicating (segmentation fault) this issue in python 3.8.0b3 but didn't succeed. And shared_memory isn't present in 3.7. Also, shared_memory is known to throw some warnings, and there is already a PR and issue open for that https://bugs.python.org/issue38119.

    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    3.8 only security fixes stdlib Python modules in the Lib dir topic-multiprocessing type-bug An unexpected behavior, bug, or error
    Projects
    Status: No status
    Development

    No branches or pull requests

    1 participant