[wasm][fuzzer] Stack overflow is nondeterministic
Before the introduction of exception handling in the compile fuzzer, stack overflows were deterministic because they always caused the whole stack to be unwound. With support for exception handling, the stack overflow exception can be caught and is a source of nondeterminism. Flag the interpreter result as such in this case so that we skip the correctness check. R=ahaas@chromium.org Bug: chromium:1193212 Change-Id: I7efd38df1b3c108c1c41997395c2b22ded2b4ad1 Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2791566 Reviewed-by: Andreas Haas <ahaas@chromium.org> Commit-Queue: Thibaud Michaud <thibaudm@chromium.org> Cr-Commit-Position: refs/heads/master@{#73719}
This commit is contained in:
parent
fc6447c538
commit
11110c307c
@ -3106,6 +3106,9 @@ class WasmInterpreterInternals {
|
||||
// it to 0 here such that we report the same position as in compiled code.
|
||||
frames_.back().pc = 0;
|
||||
isolate_->StackOverflow();
|
||||
if (FLAG_experimental_wasm_eh) {
|
||||
possible_nondeterminism_ = true;
|
||||
}
|
||||
if (HandleException(isolate_) == WasmInterpreter::HANDLED) {
|
||||
ReloadFromFrameOnException(decoder, target, pc, limit);
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user