Bug#833563: libfuzzer-3.8-dev: illegal hardware instruction
Sylvestre Ledru
sylvestre at debian.org
Sat Aug 6 07:04:18 UTC 2016
Do you have the same issue with Clang 3.8?
Maybe a mismatch between the coverage and fuzzer?
Le 6 août 2016 08:38:14 GMT+02:00, Chris Lamb <lamby at debian.org> a écrit :
>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
> `-
>
>_______________________________________________
>Pkg-llvm-team mailing list
>Pkg-llvm-team at lists.alioth.debian.org
>http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-llvm-team
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/pkg-llvm-team/attachments/20160806/621051ca/attachment-0001.html>
More information about the Pkg-llvm-team
mailing list