[llvm-dev] fuzzer crash (but not the good kind)

Brian Cain via llvm-dev llvm-dev at lists.llvm.org
Tue Dec 1 17:22:04 PST 2015


I think I've found what looks like a reproducible bug in libFuzzer.  The
code under test is built with ASan and the first ASan CHECK failure shows
fuzzer in the stack trace.  (see below)

One of the factors that may be unique in my testing is that each iteration
can take a very long time to execute (tens or hundreds of seconds).

Let me know if you need more info, I think it shouldn't take much test time
to reproduce this.

================== Job 2 exited with exit code 256 ============
Flag: verbosity 3
Flag: use_traces 1
Flag: timeout 100
Flag: max_len 16384
Seed: 3259211893
PreferSmall: 0
#0      READ   units: 4975 exec/s: 0
#1      pulse  cov: 32410 bits: 30791 indir: 714 units: 4975 exec/s: 0
NEW0: 32410 L 13869
==31301==AddressSanitizer CHECK failed:
"((n % 16)) == ((0))" (0x1, 0x0)
    #0 0x11d3b7 in __asan::AsanCheckFailed(char const*, int, char const*,
unsigned long long, unsigned long long)
    #1 0x122f1f in __sanitizer::CheckFailed(char const*, int, char const*,
unsigned long long, unsigned long long)
    #2 0x134317 in
    #3 0x1b7b53 in fuzzer::Fuzzer::PrepareCoverageBeforeRun()
    #4 0x1b501b in fuzzer::Fuzzer::RunOne(std::vector<unsigned char,
std::allocator<unsigned char> > const&)
    #5 0x1b6be3 in fuzzer::Fuzzer::ShuffleAndMinimize()
    #6 0x14477b in fuzzer::FuzzerDriver(std::vector<std::string,
std::allocator<std::string> > const&, fuzzer::UserSuppliedFuzzer&)
    #7 0x14183f in fuzzer::FuzzerDriver(int, char**,
    #8 0x141427 in fuzzer::FuzzerDriver(int, char**, int (*)(unsigned char
const*, unsigned int))
    #9 0x1873e3 in main
    #10 0xb6c86775 in __libc_start_main

artifact_prefix='./'; Test unit written to

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20151201/f158be40/attachment.html>

More information about the llvm-dev mailing list