Open daichifukui opened 1 year ago
At first I suspected this was an issue with wasi-libc
, but we found this is more related to wasmer
as disscussed in https://github.com/WebAssembly/wasi-libc/issues/439, hence this issue.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Describe the bug
clock_nanosleep
with TIMER_ABSTIME does not return if it is called in a thread different from the main thread, usingwasmer
.Conditions are:
The details of wasmer:
Steps to reproduce
Expected behavior
clock_nanosleep
returns when the requested time expiresActual behavior
clock_nanosleep
does not return even after the requested time expiresAdditional context
In addition to
wasmer
, I've triedwasmtime
,wasmedge
, andiwasm
and followed the same steps to reproduce shown above.The result shows that
clock_nanosleep
lets the program sleep for expected duration with all of the three runtimes.In short,
clock_nanosleep
works fine with the runtimes except forwasmer
.FYI, the version of each runtime is as follows: