rust-fuzz / honggfuzz-rs

Fuzz your Rust code with Google-developed Honggfuzz !
https://crates.io/crates/honggfuzz
Apache License 2.0
448 stars 40 forks source link

remove linker hack #50

Closed ordian closed 2 years ago

ordian commented 3 years ago

The hack causes troubles for projects utilizing wasm32-unknown-unknown targets as rust uses a custom linker wasm-lld for it.

I don't see any __sancov_guards errors when the hack is removed with the recent version of LLVM.

cc https://github.com/rust-lang/rust/issues/53945

ordian commented 3 years ago

I'll close the PR as ubuntu commonly used in CI currently uses an old version of LLVM.

PaulGrandperrin commented 3 years ago

Nice! I'll be happy to see this code go :) I guess the CI is failing because GH Action is still using Ubuntu 18.04 by default, but I tested on my machine which is using 20.04 is it's fine.

PaulGrandperrin commented 3 years ago

no, it's fine, I'll force the CI to use Ubuntu 20.04, I think it's reasonable to require a 1year old LTS version of ubuntu

ordian commented 3 years ago

I think it has more to do with the llvm version than with Ubuntu's: https://github.com/rust-fuzz/honggfuzz-rs/runs/2096378570#step:1:4.

PaulGrandperrin commented 3 years ago

ah yes, they finally changed ubuntu-latest to 20.04 so yes it isn't that.. it's working on my 20.04 local machine through.. I'm trying to figure out why

PaulGrandperrin commented 2 years ago

I'm back after a little while, but I guess we can now safely remove this hack. I hope this will solve the issues with wasm! I don't know how to test though..