bytecodealliance / sightglass

A benchmark suite and tool to compare different implementations of the same primitives.
Apache License 2.0
69 stars 33 forks source link

Unexpected behavior when calling open #246

Open jlb6740 opened 1 year ago

jlb6740 commented 1 year ago

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.

abrown commented 1 year ago

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