Andrew Svetlov <andrew.svet...@gmail.com> added the comment:

Victor, sorry.
I spent about 4 days in total trying to figure out what is the reason for 
hanging.
I see that the signal handler is installed; but, in a rare situation, it is not 
called when the process is killed.

If I reduce an amount of code executed in a signal handler by spawning a 
auxiliary thread, setting threading. Event in sighandler, and doing all dirty 
work in this secondary thread -- the problem goes away.
I'm not happy with this "patch" because it looks like reducing a change of the 
race without the elimination of the root cause.

I've mastered a quick hack to skip the problematic test on a hang, it may 
unblock other developers.
I want to spend more time on the issue detection. Unfortunately, it is not easy 
because of non-determenistic problem source.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue38323>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to