-
Notifications
You must be signed in to change notification settings - Fork 12.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
compilation with sancov and multiple codegen units results in SIGSEGV: invalid memory reference; nightly-2017-12-26 regression #47071
Comments
if i add |
another possibly related issue #45220 |
this might be the issue upstream https://bugs.llvm.org/show_bug.cgi?id=32700 |
So, am I correctly inferring from this that this is (most likely) not a rustc bug, but rather a bug in LLVM? |
@frewsxcv can you get a backtrace, by any chance? |
Even better, can you test with a local build, that has LLVM asseritons enabled? |
triage: P-medium Limited to sanitizers, has a workaround, and likely due to an underlying LLVM problem, hence calling P-medium. |
i tried setting |
triage: Leaving at P-medium (for reasons noted by @nikomatsakis above). Might be good for a second set of eyes beyond @frewsxcv to double-check about running on a local build with llvm assertions enabled. |
This isn't an error with getopts, but I think this may help. I also set
|
Removing from the 1.25 milestone as this is P-medium and also looks like it uses unstable features |
Triage: I tried to reproduce but
|
I wonder if @tmiasko has any insight here, they've been effectively maintaining sanitizers at this point. |
Error on Linux:
|
@mati865 the linking issue would be #53945 (SanitizerCoverage has poor compatibility with some linkers & dead code stripping & LTO). @frewsxcv is this still an issue for you? It builds correctly for me with gold linker: export RUSTFLAGS="-Clink-arg=-fuse-ld=gold -C codegen-units=16 -C passes=sancov -C llvm-args=-sanitizer-coverage-level=3 -Z sanitizer=address -C opt-level=3"
cargo build --target x86_64-unknown-linux-gnu Possibly a duplicate of already closed #47953 (also about SanitizerCoverage and opened around similar time)? |
EDIT: updated
RUSTFLAGS
to include-C codegen-units=16
since rust-fuzz/targetsmaster
was updated to use-C codegen-units=1
The text was updated successfully, but these errors were encountered: