You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ wasmer run --dir=/ opendevnull.wasm
open: /dev/null
thread 'main' panicked at 'not yet implemented: state::get_inode_at_path unknown file type: not file, directory, or symlink', lib/wasi/src/state/mod.rs:818:33
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace.
Error: error: User(Any)
Expected behavior
Opening /dev/null should've succeeded.
Actual behavior
Wasmer panics with the error saying "not yet implemented.
Additional context
I want to use the existing test suite to ensure that the program ported to Wasmer works as expected. I'd like to have as few modifications to the test suite as possible.
The test suite depends heavily on /dev/null. I could make it work for the output going to /dev/null easily with --mapdir feature (so that it actually goes to a file named "null" in a temporary dir). Unfortunately, /dev/null is also often used for input and I don't have a workaround.
The text was updated successfully, but these errors were encountered:
Describe the bug
If a program attempts to open
/dev/null
or any other device file, Wasmer panics with the error saying "not yet implemented".Steps to reproduce
opendevnull.c
:wasienv
:Expected behavior
Opening
/dev/null
should've succeeded.Actual behavior
Wasmer panics with the error saying "not yet implemented.
Additional context
I want to use the existing test suite to ensure that the program ported to Wasmer works as expected. I'd like to have as few modifications to the test suite as possible.
The test suite depends heavily on
/dev/null
. I could make it work for the output going to/dev/null
easily with--mapdir
feature (so that it actually goes to a file named "null" in a temporary dir). Unfortunately,/dev/null
is also often used for input and I don't have a workaround.The text was updated successfully, but these errors were encountered: