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.
This commit is contained in:
Alex Crichton 2023-03-18 06:43:33 -05:00 committed by GitHub
parent 34640bceec
commit dca8eca5c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -2,3 +2,4 @@
allow_user_segv_handler=1
handle_sigill=0
handle_segv=1
handle_sigfpe=1