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 vstinner
Recipients Mark.Shannon, corona10, eric.snow, gvanrossum, kj, vstinner
Date 2022-01-23.05:50:39
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1642917039.18.0.48532765153.issue46465@roundup.psfhosted.org>
In-reply-to
Content
The problem is that the optimization no longer checks for pending signals in TARGET(CALL_NO_KW_BUILTIN_FAST). The patch below fix my issue. I guess that other opcode needs an additional CHECK_EVAL_BREAKER().

diff --git a/Python/ceval.c b/Python/ceval.c
index 9aaddd99eda..7cc0f805366 100644
--- a/Python/ceval.c
+++ b/Python/ceval.c
@@ -4822,6 +4822,7 @@ _PyEval_EvalFrameDefault(PyThreadState *tstate, InterpreterFrame *frame, int thr
                 */
                 goto error;
             }
+            CHECK_EVAL_BREAKER();
             DISPATCH();
         }
History
Date User Action Args
2022-01-23 05:50:39vstinnersetrecipients: + vstinner, gvanrossum, Mark.Shannon, eric.snow, corona10, kj
2022-01-23 05:50:39vstinnersetmessageid: <1642917039.18.0.48532765153.issue46465@roundup.psfhosted.org>
2022-01-23 05:50:39vstinnerlinkissue46465 messages
2022-01-23 05:50:39vstinnercreate