sightglass icon indicating copy to clipboard operation
sightglass copied to clipboard

Unexpected behavior when calling open

Open jlb6740 opened this issue 2 years ago • 1 comments

#238 ran into this, but ackermann was made working again by avoiding the problem. The issue is different behavior was seen from open when comparing the native engine vs the wasm engine and calling open:

int fd = open(path, 0);

The Wasm engine seemed to not attempt the open (at least when looking at strace data) while the the native engine opened the file just fine. Moreover when compiling the Wasm without sightglass imports so that we can run in standalone Wasmtime, the above statement does work. So we are seeing incorrect behavior with wasmtime usage in sightglass compared to wasmtime standalone or native usage in sightglass. Since #238 was closed due to ackermann working again, wanted to record that the underlying issue is still there as it is assumed it will be encountered again.

jlb6740 avatar Jun 08 '23 23:06 jlb6740

Maybe this issue should be moved to the wasi-libc or Wasmtime repository, whichever we think is more likely the problem? cc: @sunfishcode.

abrown avatar Jun 09 '23 00:06 abrown