[PATCH] D35602: Generate error reports when a fuzz target exits.

Max Moroz via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 3 14:37:47 PDT 2017


Dor1s added a comment.

Sorry for necroposting, but there are some compatibility issues with Clang coverage (see my comment on `FuzzerDriver.cpp#646`). What could be a good workaround?



================
Comment at: llvm/lib/Fuzzer/FuzzerDriver.cpp:646
 
+  std::atexit(Fuzzer::StaticExitCallback);
+
----------------
This change breaks Clang Source-based Code Coverage. For example, if you run `./fuzzer -runs=0 ./corpus_dir` with 123 files in `corpus_dir`, you'll see `LLVMFuzzerTestOneInput` executed only once, not 123 times.

We've temporarily rolled libFuzzer back Chromium because of that.


https://reviews.llvm.org/D35602





More information about the llvm-commits mailing list