Open orangeC23 opened 1 year ago
probably related to #4259, #4265 and #4270.
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.
Steps to reproduce
(1)The c file is :
(2) compile the c file into wasm:
./wasi-sdk-16.0/bin/clang --target=wasm32-unkown-wasi --sysroot=./wasi-sdk-16.0/share/wasi-sysroot test.c -o test.wasm
(3)exeute open.wasmwasmer run --dir=./Data test.wasm
The permission of Data/hello.txt is 0700, user1 create the Data/hello.txt file and user1 execute the Wasm file.Expected behavior
wasmtime, wazero, wamr, wasmedge print:
And using
ls -al ./Data/hello.txt
to check the file size is 141.Actual behavior
wasmer prints:
And using
ls -al ./Data/hello.txt
to check the file size is 141. This is different from the printing value 42. Maybe this is a bug?version
wasmer 4.2.2
ubuntu 20.04