Bug#912785: afl: Please switch to llvm-toolchain-7

2018-12-14 Thread Daniel Stender

With the problem mentioned above fixed, it isn't working yet:


unset AFL_USE_ASAN AFL_USE_MSAN AFL_INST_RATIO; AFL_QUIET=1 AFL_PATH=. AFL_CC=clang-7 ../afl-clang-fast  
-Wall -D_FORTIFY_SOURCE=2 -g -Wno-pointer-sign -DAFL_PATH=\"/usr/lib/afl\" 
-DBIN_PATH=\"/usr/bin\" -DVERSION=\"2.52b\"  ../test-instr.c -o test-instr -Wl,-z,relro 
-Wl,-z,now
Stack dump:
0.  Program arguments: /usr/lib/llvm-7/bin/clang -cc1 -triple x86_64-pc-linux-gnu -emit-obj -disable-free -disable-llvm-verifier -discard-value-names -main-file-name 
test-instr.c -mrelocation-model static -mthread-model posix -fmath-errno -masm-verbose -mconstructor-aliases -munwind-tables -fuse-init-array -target-cpu x86-64 -dwarf-column-info 
-debug-info-kind=limited -dwarf-version=4 -debugger-tuning=gdb -momit-leaf-frame-pointer -resource-dir /usr/lib/llvm-7/lib/clang/7.0.1 -D _FORTIFY_SOURCE=2 -D 
AFL_PATH="/usr/lib/afl" -D BIN_PATH="/usr/bin" -D VERSION="2.52b" -D __AFL_HAVE_MANUAL_CONTROL=1 -D __AFL_COMPILER=1 -D 
FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION=1 -D __AFL_LOOP(_A)=({ static volatile char *_B __attribute__((used));  _B = (char*)"##SIG_AFL_PERSISTENT##"; 
__attribute__((visibility("default"))) int _L(unsigned int) __asm__("__afl_persistent_loop"); _L(_A); }) -D __AFL_INIT()=do { static volatile char *_A 
__attribute__((used));  _A = (char*)"##SIG_AFL_DEFER_FORKSRV##"; __attribute__((visibility("default"))) void _I(void) __asm__("__afl_manual_init"); 
_I(); } while (0) -internal-isystem /usr/local/include -internal-isystem /usr/lib/llvm-7/lib/clang/7.0.1/include -internal-externc-isystem /usr/include/x86_64-linux-gnu 
-internal-externc-isystem /include -internal-externc-isystem /usr/include -O3 -Wall -Wno-pointer-sign -fdebug-compilation-dir /<>/llvm_mode -ferror-limit 19 
-fmessage-length 0 -funroll-loops -fobjc-runtime=gcc -fdiagnostics-show-option -vectorize-loops -vectorize-slp -load ../afl-llvm-pass.so -o /tmp/test-instr-4733ec.o -x c 
../test-instr.c -faddrsig
clang: error: unable to execute command: Segmentation fault
clang: error: clang frontend command failed due to signal (use -v to see 
invocation)
clang version 7.0.1-+rc3-2 (tags/RELEASE_701/rc3)
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
clang: note: diagnostic msg: PLEASE submit a bug report to 
https://bugs.llvm.org/ and include the crash backtrace, preprocessed source, 
and associated run script.
clang: error: unable to execute command: Segmentation fault
clang: note: diagnostic msg: Error generating preprocessed source(s).


DS

--
4096R/DF5182C8 (sten...@debian.org)
http://www.danielstender.com/


Bug#912785: afl: Please switch to llvm-toolchain-7

2018-12-04 Thread Daniel Stender

... there's a problem that g++ 8.2.0 doesn't like the compiler flags emitted by
llvm-config-7:


g++ `llvm-config-7 --cxxflags` -fno-rtti -fpic  -Wall -D_FORTIFY_SOURCE=2 -g 
-Wno-pointer-sign -DVERSION=\"2.52b\" -Wno-variadic-macros -shared 
afl-llvm-pass.so.cc -o ../afl-llvm-pass.so `llvm-config-7 --ldflags` -Wl,-z,relro 
-Wl,-z,now
g++: error: unrecognized command line option '-Wcovered-switch-default'; did 
you mean '-Wno-switch-default'?
g++: error: unrecognized command line option '-Wstring-conversion'; did you 
mean '-Wint-conversion'?


Ah, it's: https://bugs.debian.org/914838 llvm-7: llvm-config-7 emits 
unsupported compiler option

DS

--
4096R/DF5182C8 (sten...@debian.org)
http://www.danielstender.com/



Bug#912785: afl: Please switch to llvm-toolchain-7

2018-11-03 Thread Sylvestre Ledru
Source: afl
Severity: normal

Hello,

llvm-toolchain-7 is now the default version in Debian.

As part of the effort to keep the number of llvm-toolchain versions under
control, it would be great if you could update to llvm-toolchain-7.

Thanks,
Sylvestre