Dong-hee Na <donghee.n...@gmail.com> added the comment:
FYI this change fix this issue. --- a/Modules/signalmodule.c +++ b/Modules/signalmodule.c @@ -1782,7 +1782,11 @@ PyOS_FiniInterrupts(void) int PyOS_InterruptOccurred(void) { - PyInterpreterState *interp = _PyInterpreterState_GET(); + PyThreadState *tstate = _PyThreadState_GET(); + if (!tstate) { + return 0; + } + PyInterpreterState *interp = tstate->interp; if (!_Py_ThreadCanHandleSignals(interp)) { return 0; } ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue40826> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com