[PATCH] D48686: [libFuzzer] [Tests] [NFC] Change seed for reduce_inputs.test

Kostya Serebryany via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 27 17:52:32 PDT 2018


kcc added a comment.

>   Any sources of non-determinism you suspect? 

RNG is expected to provide the same values, but if e.g. the code is compiled slightly differently because 
the system headers are different, then the coverage feedback will be different and hence the RNG will be called in different order.

This is very strange. 
I've just ran the test manually for a few times with different seeds and it always finds the bug quickly.

  clang -g -std=c++11 -fsanitize=address,fuzzer ~/llvm/projects/compiler-rt/test/fuzzer/ShrinkControlFlowSimpleTest.cpp
  ./a.out -exit_on_item=0eb8e4ed029b774d80f2b66408203801cb982a60 -runs=1000000 -jobs=100


Repository:
  rL LLVM

https://reviews.llvm.org/D48686





More information about the llvm-commits mailing list