[issue17085] test_socket crashes the whole test suite

STINNER Victor report at bugs.python.org
Mon Sep 11 18:04:38 EDT 2017


STINNER Victor added the comment:

Charles-François Natali:
> the crash occurs because the test doesn't reset the alarm (with alarm(0)) upon exit, so if the alarm didn't go off during the test, it comes later when the original signal handler has been reset, and the default handler just exits.
> (...)
> Note that 3.4 and default aren't affected, because the alarm is properly reset.

Right, I fixed this issue in the master branch: I proposed attached PR 3505 to backport the fix.

----------
nosy: +haypo

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


More information about the Python-bugs-list mailing list