WASI target: thread::sleep() is panicing: unexpected result of poll_oneoff #65607
Labels
C-bug
Category: This is a bug.
O-wasm
Target: WASM (WebAssembly), http://webassembly.org/
T-libs-api
Relevant to the library API team, which will review and decide on the PR/issue.
Following code seems correct though will always panic when compiled to
wasm32-wasi
:fn main() { std::thread::sleep(std::time::Duration::new(0,5)); }
compiled with nightly rust 1.40:
>cargo +nightly build --target wasm32-wasi
It fails at least in wasmtime and wasmer-js VMs (example https://github.com/dunnock/wabench/tree/master/poll_oneoff_test):
rustup show:
The text was updated successfully, but these errors were encountered: