[issue33997] multiprocessing Pool hangs in terminate()

Alex Hall report at bugs.python.org
Mon Jan 27 08:11:56 EST 2020


Alex Hall <alex.mojaki at gmail.com> added the comment:

I'm also experiencing hanging on terminate. I haven't made a debug build or anything but it's happening to me consistently on 3.8, although I haven't managed to create a small example to reproduce. Replacing pool.py with https://raw.githubusercontent.com/python/cpython/5f6a05bf5b3f7e3c1d805b3bbd8c5ad18f26d933/Lib/multiprocessing/pool.py (from the PR) did not help. So maybe what I'm experiencing is unrelated.

It gets stuck on `inqueue._rlock.acquire()` in `Pool._help_stuff_finish`. I've attached debugging info from snoop, maybe that will help.

----------
nosy: +alexmojaki
Added file: https://bugs.python.org/file48867/pool_terminate_snoop.txt

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


More information about the Python-bugs-list mailing list