[PATCH] D11277: [lib/Fuzzer] Add sanitizer runtime errors unit save option

Kostya Serebryany kcc at google.com
Tue Jul 21 09:50:56 PDT 2015


kcc added a comment.

In http://reviews.llvm.org/D11277#207792, @skomski wrote:

> In http://reviews.llvm.org/D11277#207577, @kcc wrote:
>
> > I am sorry, I may be missing something, can we start again? 
> >  What problem exactly are you trying to solve?
>
>
> My problem is that I want to have an easy way to reproduce undefined behaviour errors for further debugging purposes or to put it into my testcases. I want to achieve that saving the active unit during the time ubsan reported the error.


That's exactly what I always need too. But the way current way of doing this work fine to me:

- Run the fuzzer with stderr pointed to a file (if running with -jobs=N, stderr is directed to fuzz-NN.log)
- When the crash happens, the log file contains *all* the information needed to reproduce the error: the message from the sanitizers, the input file encoded in hex and base64, the name of a separate file where the reproducer has been dumped to.

So, before considering this patch I need to understand what's missing in the existing functionality.

BTW, I've noticed fixes in PCRE2 based on your reports. Great work!


http://reviews.llvm.org/D11277







More information about the llvm-commits mailing list