Erik Wolf added the comment:
To help get an idea of the racing condition I created a trace with several
additional debug outputs in pool.py and connection.py
"=== Creating new pool ===" marks a new start of a pool using the
Pool.imap() function. The iteration is terminat
New submission from Erik Wolf :
The terminate() method of multiprocessing.Pool hangs sporadically.
I could track this issue down to the fact that _handle_results() hangs in the
outqueue-cleanup. poll() returned True but get() actually hangs endlessly never
returning any data