This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author asvetlov
Recipients aeros, asvetlov, vstinner, yselivanov
Date 2020-02-11.11:41:20
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
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.
Date User Action Args
2020-02-11 11:41:21asvetlovsetrecipients: + asvetlov, vstinner, yselivanov, aeros
2020-02-11 11:41:21asvetlovsetmessageid: <>
2020-02-11 11:41:21asvetlovlinkissue38323 messages
2020-02-11 11:41:20asvetlovcreate