Bug#833563: libfuzzer-3.8-dev: illegal hardware instruction

Chris Lamb lamby at debian.org
Sat Aug 6 06:38:14 UTC 2016


Package: libfuzzer-3.8-dev
Version: 1:3.8.1-7
Severity: normal

Hi,

First, thanks for packaging libFuzzer! Unfortunately, I'm getting
the following:

$ apt-get install libfuzzer-3.8-dev clang-4.0
[..]

$ cat << EOF > test_fuzzer.cc
#include <stdint.h>
#include <stddef.h>
extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
  if (size > 0 && data[0] == 'H')
    if (size > 1 && data[1] == 'I')
       if (size > 2 && data[2] == '!')
       __builtin_trap();
  return 0;
}
EOF

$ clang++-4.0 -fsanitize=address -fsanitize-coverage=edge test_fuzzer.cc /usr/lib/llvm-3.8/lib/libFuzzer.a

$ ./a.out
Seed: 2980367726
PreferSmall: 1
#0	READ   units: 1 exec/s: 0
#1	INITED cov: 2 units: 1 exec/s: 0
#2	NEW    cov: 3 units: 2 exec/s: 0 L: 64 MS: 0 
#657	NEW    cov: 4 units: 3 exec/s: 0 L: 64 MS: 0 
#1070	NEW    cov: 5 units: 4 exec/s: 0 L: 1 MS: 4 ShuffleBytes-ChangeByte-EraseByte-CrossOver-
#4893	NEW    cov: 6 units: 5 exec/s: 0 L: 2 MS: 2 CrossOver-ChangeBit-
#5577	NEW    cov: 7 units: 6 exec/s: 0 L: 50 MS: 1 CrossOver-
zsh: illegal hardware instruction  ./a.out

$ echo $?
132

Any ideas?


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      lamby at debian.org / chris-lamb.co.uk
       `-



More information about the Pkg-llvm-team mailing list