Closed
Description
I have code opening a path like std::fs::read("/absolute/path.txt")
in WASI. All the surrounding code stays the same but when I upgrade nightly from 2021-03-10
to 2021-03-11
it does not work anymore.
Version details:
# opening a path with leading "/" does _NOT_ work
rustc 1.52.0-nightly (f98721f88 2021-03-10)
binary: rustc
commit-hash: f98721f886ab52d32d622ad0a46216ad03f3e525
commit-date: 2021-03-10
host: x86_64-apple-darwin
release: 1.52.0-nightly
# opening a path with leading "/" _DOES_ work
rustc 1.52.0-nightly (3a5d45f68 2021-03-09)
binary: rustc
commit-hash: 3a5d45f68cadc8fff4fbb557780f92b403b19c19
commit-date: 2021-03-09
host: x86_64-apple-darwin
release: 1.52.0-nightly
LLVM version: 12.0.0
Looking at the history, the only thing I can see that looks WASI-related is this but I have no idea here and any help would be appreciated!
EDIT: This description turned out to be somewhat incorrect, see below for a good repro case.
Metadata
Metadata
Assignees
Labels
Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.Category: This is a bug.Helping to "clean up" bugs with minimal examples and bisectionsTarget: WASM (WebAssembly), http://webassembly.org/Medium priorityRelevant to the library team, which will review and decide on the PR/issue.Performance or correctness regression from one stable version to another.