-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
wasmtime-wasi only preopening the first and last directory set in WasiCtxBuilder #10058
Comments
I just tried it on Ubuntu 24.04.1 and have the same issue |
This commit fixes a bug in the WASIp1-to-WASIp2 adapter during `fd_prestat_dir_name` where an iterator variable was forgotten to be incremented. That means that getting the path for anything other than the first preopen didn't work correctly. Closes bytecodealliance#10058
Thanks for the report! This should be fixed in #10064. I'll note though that this is a bug in the "adapter" which will take a bit of time to propagate to toolchains. In the meantime working around this will be difficult as the adapter is pretty deep inside tooling and difficult to update-on-a-dime. |
This commit fixes a bug in the WASIp1-to-WASIp2 adapter during `fd_prestat_dir_name` where an iterator variable was forgotten to be incremented. That means that getting the path for anything other than the first preopen didn't work correctly. Closes #10058
This commit fixes a bug in the WASIp1-to-WASIp2 adapter during `fd_prestat_dir_name` where an iterator variable was forgotten to be incremented. That means that getting the path for anything other than the first preopen didn't work correctly. Closes bytecodealliance#10058
* Add audit for `wasmtime-math` (#10059) I noticed that CI is failing given that an audit and policy for `wasmtime-math` is missing. `wasmtime-math` was introduced in https://github.com/bytecodealliance/wasmtime/pull/9808/files. I followed a similar approach to what it's used for all the other `wasmtime-*` crates. * Fix a missing increment in p1-to-p2 adapter (#10064) This commit fixes a bug in the WASIp1-to-WASIp2 adapter during `fd_prestat_dir_name` where an iterator variable was forgotten to be incremented. That means that getting the path for anything other than the first preopen didn't work correctly. Closes #10058 * Downgrade `wasip2` dep to 0.13.0 Compat with 1.81.0 MSRV --------- Co-authored-by: Saúl Cabrera <saulecabrera@gmail.com>
This pulls in a fix for bytecodealliance/wasmtime#10058
Pulls in a fix for bytecodealliance/wasmtime#10058
Pulls in a fix for bytecodealliance/wasmtime#10058
Pulls in a fix for bytecodealliance/wasmtime#10058 in the adapters that are used by default.
Pulls in a fix for bytecodealliance/wasmtime#10058 in the adapters that are used by default.
* Update the adapter binaries cargo-component uses This pulls in a fix for bytecodealliance/wasmtime#10058 * Update wasmtime used in CI
This commit updates the `wasm-component-ld` tool from 0.5.11 to 0.5.12. This pulls in a fix for the binary adapters that are included with this tool for an issue described in bytecodealliance/wasmtime#10058. Some other dependencies have additionally been updated in the meantime of `wasm-component-ld` but there should otherwise be no major changes.
…-ld, r=jieyouxu Update the `wasm-component-ld` tool This commit updates the `wasm-component-ld` tool from 0.5.11 to 0.5.12. This pulls in a fix for the binary adapters that are included with this tool for an issue described in bytecodealliance/wasmtime#10058. Some other dependencies have additionally been updated in the meantime of `wasm-component-ld` but there should otherwise be no major changes.
Thanks for the fast response! It looks like the adapter is used in quite a few places, and I'm not sure how it all fits together yet. In the case of my example repo would I just need the next release of cargo-component, that contains your merged PR updating |
I believe that should work yeah! |
…-ld, r=jieyouxu Update the `wasm-component-ld` tool This commit updates the `wasm-component-ld` tool from 0.5.11 to 0.5.12. This pulls in a fix for the binary adapters that are included with this tool for an issue described in bytecodealliance/wasmtime#10058. Some other dependencies have additionally been updated in the meantime of `wasm-component-ld` but there should otherwise be no major changes.
* Update wasm-component-ld Pulls in a fix for bytecodealliance/wasmtime#10058 in the adapters that are used by default. * Update wasmtime installed in CI * Downgrade the build-only-sysroot check step Looks like this is failing on Ubuntu 24.04, the new default of `ubuntu-latest`, so downgrade it to have it get fixed in a separate PR. * Try downgrading Wasmtime version again * Update base Linux images to Ubuntu 20.04 * Update Wasmtime back to 29
Test Case
Clone example repo here: https://github.com/justingaffney/wasmtime-preopen-bug
Steps to Reproduce
cd component
cargo component build --release
cd ..
cargo run
Expected Results
The following output:
Actual Results
The following output:
Versions and Environment
Wasmtime version or commit: 28.0.1, 29.0.0
Operating system: Windows 11
Architecture: x86_64
The text was updated successfully, but these errors were encountered: