[issue32576] concurrent.futures.thread deadlock due to Queue in weakref callback

Antoine Pitrou report at bugs.python.org
Fri Mar 9 04:52:23 EST 2018


Antoine Pitrou <pitrou at free.fr> added the comment:

Michał, sorry, I doubt it.  The fix is highly non-trivial as it first requires backporting a new feature (see issue14976).  I'm cc'ing the 3.6 branch release manager just in case.

If apparently you're witnessing this in controlled situations (the "gemato" utility, IIUC?), one workaround would be to disable the cyclic GC (call gc.disable()).  If your program doesn't create any cyclic references, or if those references don't keep too much memory alive, that would probably work.

----------
nosy: +ned.deily

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


More information about the Python-bugs-list mailing list