Userzxcvbvnm added the bug label to Issue #7659.
Userzxcvbvnm opened issue #7659:
Test Case
The c file is uploaded as
test-c.txtThe wasm file is uploaded as
test-wasm.txtSteps to Reproduce
We create a normal file
Data/hello.txt
, and a softlink fileData/link/hello_softlink.txt
points toData/hello.txt
using commandwasmtime run --dir=./Data test.wasm
to execute the wasm file.Expected Results
In windows, WAMR could write content successfully to the source file
Data/hello.txt
. And this behavior could be considered as a right behavior, sinceData/link/hello_softlink.txt
points toData/hello.txt
.Actual Results
wasmtime create a new file
Data/link/hello.txt
and write content to this file rather the fileData/hello.txt
.
This may be a bug?Versions and Environment
Wasmtime version or commit: 13.0.0
Operating system: Windows 10
Architecture: amd64
alexcrichton commented on issue #7659:
Thanks for the report. I've gotten around now to debugging this. I am, however, unfortunately unable to reproduce. Here's what I did:
$ mkdir Data $ cd Data # ... create a `hello.txt` file here $ mkdir link $ cd link $ mklink hello_softlink.txt ..\hello.txt
When I run Wasmtime with that
--dir Data
file then the wasm module executes successfully and the contents show up inData/hello.txt
as expected.Can you clarify exactly how you set up the symlinks and such? I find the syntax for creating symlinks often confusing so I'm curious if you may have made a mistake in the direction of the symlink or forgotten a
../
for example.
Last updated: Nov 22 2024 at 16:03 UTC