-
Notifications
You must be signed in to change notification settings - Fork 13.7k
Closed
Labels
C-bugCategory: This is a bug.Category: This is a bug.
Description
Code
Suricata is a project with both C and Rust code.
Its fuzz targets get compiled by oss-fuzz
To reproduce the bug, you can clone github.com/google/oss-fuzz
and run python infra/helper.py build_fuzzers suricata
I expected to see this happen: Compilation succeeds
Instead, this happened:
Compilation failed with multiple similar errors
/usr/bin/ld: __sancov_cntrs has both ordered [`__sancov_cntrs[ROHashInitFinalize]' in libsuricata_c.a(util-rohash.o)] and unordered [`__sancov_cntrs[_ZN100_$LT$hashbrown..raw..RawIterHashInner$LT$A$GT$$u20$as$u20$core..iter..traits..iterator..Iterator$GT$4next17hce20d46d046f29e5E]' in ../rust/target/x86_64-unknown-linux-gnu/release/libsuricata_rust.a(suricata_rust-6f68cb102e8bc119.suricata_rust.7485b842-cgu.0.rcgu.o)] sections
A workaround is to use ld.gold instead of ld
Version it worked on
It most recently worked on: rustc 1.56.0-nightly (a0035916e 2021-08-20
Version with regression
rustc 1.56.0-nightly (d3e2578c3 2021-08-21)
was the first to fail
Still failing on
rustc --version --verbose
:
rustc 1.56.0-nightly (af140757b 2021-08-22)
binary: rustc
commit-hash: af140757b4cb1a60d107c690720311ba8e06e7de
commit-date: 2021-08-22
host: x86_64-unknown-linux-gnu
release: 1.56.0-nightly
LLVM version: 13.0.0
@rustbot modify labels: +regression-from-nightly-to-nightly -regression-untriaged
Metadata
Metadata
Assignees
Labels
C-bugCategory: This is a bug.Category: This is a bug.