From dca8eca5c35f82079e539721a8ff746a076ad751 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Sat, 18 Mar 2023 06:43:33 -0500 Subject: [PATCH] wasmtime: Allow Wasmtime to handle SIGFPE (#9945) Recently Wasmtime switched code generator tactics for the implementation of integer division. This means that Wasmtime expects to receive SIGFPE for divide-by-zero traps and similar. This is similar to other signals that Wasmtime is expected to handle in JIT code. This commit adds an option for Wasmtime to let it handle signals in the same manner that it's allowed to handle SIGILL and SIGSEGV currently. --- projects/wasmtime/default.options | 1 + 1 file changed, 1 insertion(+) diff --git a/projects/wasmtime/default.options b/projects/wasmtime/default.options index 06422d9a3..30a192385 100644 --- a/projects/wasmtime/default.options +++ b/projects/wasmtime/default.options @@ -2,3 +2,4 @@ allow_user_segv_handler=1 handle_sigill=0 handle_segv=1 +handle_sigfpe=1