cargo-fuzz
cargo-fuzz copied to clipboard
Symbols not found when using cargo-fuzz on MacOS
I'm running a cloud instance of fuzzing with cargo-fuzz and tried to build the same fuzzer target on local MacOS 10.15.1. XCode and tools are installed. Cargo-fuzz requires nightly so it was tested on the latest (cd1ef390e 2020-01-31 as a time of writing) and on 2020-01-06 (matches Linux could instance version).
For both toolchains there are lot of "symbol not found" error for symbols like ___sanitizer_cov_trace_pc_indir or ___asan_handle_no_return that may hint that the corresponding library is not linked.
Before an upgrade to 0.2 same scripts were working on MacOS.
I'm still seeing this issue on 2021-12-13, but only with --sanitizer=none. If I leave off the sanitizer flags and use asan everything works.