[issue42296] Infinite loop uninterruptable on Windows in 3.10

STINNER Victor report at bugs.python.org
Fri Nov 13 09:35:57 EST 2020


STINNER Victor <vstinner at python.org> added the comment:

> This code cannot be interrupted with ^C on Windows (e.g. in the REPL)

I tested manually: it's now fixed in 3.9 and master branches.

Thanks for the bug report Guido.


Signal handling is hard. Threads + signals is worse! :-) I modified _PyEval_SignalReceived() to always set eval_breaker to 1. See comments of my commit for the long rationale ;-)


If someone knows how to write an automated test for that on Windows, please create a PR and open a new issue ;-)

----------
priority: release blocker -> 
resolution:  -> fixed
stage:  -> resolved
status: open -> closed

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


More information about the Python-bugs-list mailing list