[New-bugs-announce] [issue40828] shared memory problems with multiprocessing.Pool

trapezoid677 report at bugs.python.org
Sat May 30 13:57:21 EDT 2020


New submission from trapezoid677 <hieronymi at web.de>:

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.

----------
components: Library (Lib)
files: shared_memory.py
messages: 370396
nosy: trapezoid677
priority: normal
severity: normal
status: open
title: shared memory problems with multiprocessing.Pool
type: behavior
versions: Python 3.8
Added file: https://bugs.python.org/file49203/shared_memory.py

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue40828>
_______________________________________


More information about the New-bugs-announce mailing list