multiprocessing.Pool: leak of global named resources using multiprocessing spawn #122770
Labels
stdlib
Python modules in the Lib dir
topic-multiprocessing
type-bug
An unexpected behavior, bug, or error
Bug report
Bug description:
I'm receiving a warning when using the
multiprocessing.Pool
inspawn
mode.A similar issue was brought up and fixed before, when
multiprocessing.Process
was used:#30617
The test case introduced by the PR above: https://github.com/python/cpython/blob/3.12/Lib/test/_test_multiprocessing.py#L6040C7-L6040C24
To trigger the warning, I just replaced the
Process
withPool
as follows:CPython versions tested on:
3.11, 3.12, CPython main branch
Operating systems tested on:
Linux
The text was updated successfully, but these errors were encountered: