rust-fuzz / libfuzzer

Rust bindings and utilities for LLVM’s libFuzzer
Apache License 2.0
208 stars 44 forks source link

The size of coverage PC tables does not match #41

Closed ia0 closed 4 years ago

ia0 commented 4 years ago

Hi,

I'm not sure the issue is related to this crate, so feel free to redirect me.

I get the following error and I don't understand what it means:

INFO: Seed: 2943382958
INFO: Loaded 1 modules   (10632 inline 8-bit counters): 10632 [0x5566fff84008, 0x5566fff86990), 
INFO: Loaded 1 PC tables (6775 PCs): 6775 [0x5566fff86990,0x5566fffa1100), 
ERROR: The size of coverage PC tables does not match the
number of instrumented PCs. This might be a compiler bug,
please contact the libFuzzer developers.
Also check https://bugs.llvm.org/show_bug.cgi?id=34636
for possible workarounds (tl;dr: don't use the old GNU ld)

To reproduce, you can try:

# In case the version of rust and cargo-fuzz matters:
rustup toolchain install nightly-2019-11-02
cargo +nightly-2019-11-02 install -f --version=0.5.4 cargo-fuzz
# The actual issue:
git clone git@github.com:ia0/data-encoding.git
cd data-encoding/lib
cargo +nightly-2019-11-02 fuzz run -O -a round_trip

Thanks!

alpire commented 4 years ago

Can you try again with cargo-fuzz 0.5.5? https://github.com/rust-fuzz/cargo-fuzz/pull/193 should help with that issue.

ia0 commented 4 years ago

It works. Thanks a lot!