Add instructions on fixing fuzz build - #953
Conversation
b1ffb86 to
84b5eac
Compare
|
Thanks! |
|
I wonder if this is cause to revert #948 - Are there other benefits to a shared workspace considering everything has to be rebuilt under different flags anyway? |
|
Good point... especially when fuzzers are a different monster. |
I just verified that before my PR
For regular devs who don't use |
Yes! I didn't think of that part. Editor support is a good point. I had similar issues while working on dos-fuzzer. I suppose then the current status is fine. Hopefully the issue can eventually be fixed in cargo-fuzz (or wherever in the stack). |
When I was testing #948,
I built it directly using
cargo buildfrom withinfuzzcrate which worked as expected.However, when using fuzzers with
cargo fuzz, it overrides a lot of compilation parameters and that fails the build.: rust-lld: error: undefined symbol: __sancov_gen_.1094 >>> referenced by parse.3be71763e9de75d0-cgu.0 >>> /home/user/projects/pulldown-cmark/target/x86_64-unknown-linux-gnu/release/deps/parse-4bac226fcf249aac.parse.3be71763e9de75d0-cgu.0.rcgu.o:(asan.module_dtor.1168)I spent some time investigating the issue and the easiest fix seems to be overriding
ltoconfig in release profile which could be done using environment variables:This PR adds documentation on the issue and how to work around it.