The most common usecase for -runs=0 is for generating code coverage
over some corpus. Coverage reports based on sancov are about to be deprecated,
which means some external coverage solution will be used, e.g. Clang source
based code coverage, which does not use any sancov instrumentations and thus
libFuzzer would consider any input to be not interesting in that case.
Details
Details
Diff Detail
Diff Detail
- Repository
- rCRT Compiler Runtime
Event Timeline
Comment Actions
FYI, this breaks some tests, but I can fix that if we agree that we need this change.
Comment Actions
An update: no tests seem to be failing due to this, but I have some build issue with dataflow.test:
Exit Code: 1 Command Output (stderr): -- clang-6.0: warning: -Z-reserved-lib-stdc++: 'linker' input unused [-Wunused-command-line-argument] <...>/build/projects/compiler-rt/test/fuzzer/Output/dataflow.test.tmp-ThreeFunctionsTest.o: In function `dfs$_Z5Func2PKhm': <...>/llvm/projects/compiler-rt/test/fuzzer/ThreeFunctionsTest.cpp:19: undefined reference to `dfs$__sanitizer_cov_trace_const_cmp8' <...>/llvm/projects/compiler-rt/test/fuzzer/ThreeFunctionsTest.cpp:19: undefined reference to `dfs$__sanitizer_cov_trace_const_cmp1' <...>/build/projects/compiler-rt/test/fuzzer/Output/dataflow.test.tmp-ThreeFunctionsTest.o: In function `LLVMFuzzerTestOneInput': <...>/llvm/projects/compiler-rt/test/fuzzer/ThreeFunctionsTest.cpp:23: undefined reference to `dfs$__sanitizer_cov_trace_const_cmp8' <...>/llvm/projects/compiler-rt/test/fuzzer/ThreeFunctionsTest.cpp:24: undefined reference to `dfs$__sanitizer_cov_trace_const_cmp1' <...>/llvm/projects/compiler-rt/test/fuzzer/ThreeFunctionsTest.cpp:25: undefined reference to `dfs$__sanitizer_cov_trace_const_cmp1' <...>/llvm/projects/compiler-rt/test/fuzzer/ThreeFunctionsTest.cpp:26: undefined reference to `dfs$__sanitizer_cov_trace_const_cmp1' <...>/llvm/projects/compiler-rt/test/fuzzer/ThreeFunctionsTest.cpp:27: undefined reference to `dfs$__sanitizer_cov_trace_const_cmp1' <...>/build/projects/compiler-rt/test/fuzzer/Output/dataflow.test.tmp-ThreeFunctionsTest.o: In function `dfs$_ZL5Func1PKhm': <...>/llvm/projects/compiler-rt/test/fuzzer/ThreeFunctionsTest.cpp:14: undefined reference to `dfs$__sanitizer_cov_trace_const_cmp1' clang-6.0: error: linker command failed with exit code 1 (use -v to see invocation)