rust-fuzz / afl.rs

🐇 Fuzzing Rust code with American Fuzzy Lop

Home Page:https://rust-fuzz.github.io/book/afl.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unknown pass name 'sancov'

smoelius opened this issue · comments

rust-fuzz/cargo-fuzz#276

afl.rs suffers from this issue as well:

-C passes=sancov \

-C passes=sancov \

There seem to be at least two options:

  • Wait and see what cargo-fuzz does.
  • Charge ahead and implement a fix for the latest nightly.

I don't have a strong opinion. Does anyone else?

cargo-fuzz has published a fix: rust-fuzz/cargo-fuzz#277

This error is caused by new LLVM pass manager, which sancov has a new name called "sancov-module". The fix should check llvm version to decide which name should be used.

@smoelius The workaround could be passing -Znew-llvm-pass-manager=no to avoid new LLVM pass manager.
If running in Cargo, it will be RUSTFLAGS="-Znew-llvm-pass-manager=no" cargo ...

@smoelius The workaround could be passing -Znew-llvm-pass-manager=no to avoid new LLVM pass manager. If running in Cargo, it will be RUSTFLAGS="-Znew-llvm-pass-manager=no" cargo ...

@charlesxsh I'm sorry for having gotten sidetracked with #193. But your suggestion was very helpful, and I did actually make use it. Thank you very much.