AddressSanitizer detects a stack-use-after-scope in Chain::new when optimizations are enabled #98454
Labels
A-LLVM
Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.
A-sanitizers
Area: Sanitizers for correctness and code quality
C-bug
Category: This is a bug.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
I compiled this code:
With
opt-level
2, 3, s, or z seems required. Then I ran the executable withAnd I get this report:
without
detect_stack_use_after_return=1
I get this error, with the same backtrace:Meta
rustc --version --verbose
:@rustbot labels +A-llvm +A-sanitizers
The text was updated successfully, but these errors were encountered: