alexcrichton opened PR #2615 from precise-pc-trap
to main
:
Previously wasmtime would handle any signal originating from wasm JIT
code. This would, however, handle bugs in JIT code as-if they were wasm
traps. Instead this commit switches signal handling to specifically
check for whether the precise program counter is expected to be a trap.
This way if a program counter traps and it's not expected to trap the
signal isn't handled and the process is aborted (presumably leading to
further debugging of whomever happens to work on the JIT at that time).
cfallin submitted PR Review.
cfallin merged PR #2615.
Last updated: Dec 23 2024 at 12:05 UTC