segfault when compiling with address sanitizer and debug variable locations #99886
Labels
A-sanitizers
Area: Sanitizers for correctness and code quality
C-bug
Category: This is a bug.
S-needs-repro
Status: This issue has no reproduction and needs a reproduction to make progress.
In the crate
rustc-demangle-capi
version 0.1.0(
wget https://crates.io.api/v1/crates/rustc-demangle-capi/0.1.0/download
)I do this
I get a segfault:
rustc --version --verbose
:Note that
-experimental-debug-variable-locations=1
is now the default on x86-64 (since this LLVM commit, which is in Rust's LLVM repo since around 1.61), so that option doesn't actually have to be present. If we turn it off with-Cllvm-args=-experimental-debug-variable-locations=0
no segfault happens.I suppose this is likely actually an LLVM problem, but I only have an illustration of the bug in Rust code.
I have another crate which also causes
rustc
to segfault when using the same options, but it's a big thing with lots of dependencies, so I'm illustrating the problem withrustc-demangle-capi
.The text was updated successfully, but these errors were encountered: