-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
WASI: path_open regression in Rust 1.51 when using LTO #82758
Copy link
Copy link
Closed
Labels
C-bugCategory: This is a bug.Category: This is a bug.O-wasmTarget: WASM (WebAssembly), http://webassembly.org/Target: WASM (WebAssembly), http://webassembly.org/P-highHigh priorityHigh priorityT-libsRelevant to the library team, which will review and decide on the PR/issue.Relevant to the library team, which will review and decide on the PR/issue.regression-from-stable-to-betaPerformance or correctness regression from stable to beta.Performance or correctness regression from stable to beta.
Milestone
Metadata
Metadata
Assignees
Labels
C-bugCategory: This is a bug.Category: This is a bug.O-wasmTarget: WASM (WebAssembly), http://webassembly.org/Target: WASM (WebAssembly), http://webassembly.org/P-highHigh priorityHigh priorityT-libsRelevant to the library team, which will review and decide on the PR/issue.Relevant to the library team, which will review and decide on the PR/issue.regression-from-stable-to-betaPerformance or correctness regression from stable to beta.Performance or correctness regression from stable to beta.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Code
I tried this code:
I expected to see this happen:
This is executed inside Envoy Proxy with preopen dir
/proxy-wasm-sandbox, but hopefully the output is readable:The memory address and size passed in the call (
path_open(.., 1114320, 14, ..)) correctly point to aregression.txt.Instead, this happened:
The memory address and size passed in the call (
path_open(.., 1, 0, ..)) are wrong.Version it worked on
It most recently worked on: Rust 1.50
rustc --version --verbose:Version with regression
rustc --version --verbose:@rustbot modify labels: +regression-from-stable-to-beta -regression-untriaged