Unreachable code reached when executing pipe_reverse.wasm
and infinitely returning bytes from WasiPipe
#3349
Labels
pipe_reverse.wasm
and infinitely returning bytes from WasiPipe
#3349
In c80fc58 we discovered a bug in which the
recv()
behaviour of theWasiPipe
somehow triggers aTrap(UnreachableCode)
in the wasm file.This trap can be reached by editing:
wasmer/lib/wasi/src/state/pipe.rs
Lines 305 to 307 in c80fc58
to:
The code runs for a while and then panics with:
This does not happen when reverting to before #3145 and editing the same lines again, meaning that something in the PR broke the logic in a way to trigger the exception in the wasm file.
Wasm file for reference:
pipe_reverse.wasm.zip
The text was updated successfully, but these errors were encountered: