Fuzzing101 icon indicating copy to clipboard operation
Fuzzing101 copied to clipboard

Exercice-7 building VLC using afl-clang-fast as the compiler and with ASAN Error

Open bugchong opened this issue 2 years ago • 5 comments

hi,i'm building VLC using afl-clang-fast as the compiler and with ASAN and FATAL Error:

CC="afl-clang-fast" CXX="afl-clang-fast++" ./configure --prefix="$HOME/fuzzing_vlc/vlc-3.0.7.1/install" --disable-a52 --disable-lua --disable-qt --with-sanitizer=address
AFL_LLVM_ALLOWLIST=$HOME/fuzzing_vlc/vlc-3.0.7.1/Partial_instrumentation make -j$(nproc) LDFLAGS="-fsanitize=address"
afl-cc++4.01a by Michal Zalewski, Laszlo Szekeres, Marc Heuse - mode: LLVM-PCGUARD
afl-cc++4.01a by Michal Zalewski, Laszlo Szekeres, Marc Heuse - mode: LLVM-PCGUARD
afl-cc++4.01a by Michal Zalewski, Laszlo Szekeres, Marc Heuse - mode: LLVM-PCGUARD
afl-cc++4.01a by Michal Zalewski, Laszlo Szekeres, Marc Heuse - mode: LLVM-PCGUARD
  GEN      ../modules/plugins.dat
[-] FATAL: forkserver is already up, but an instrumented dlopen() library loaded afterwards. You must AFL_PRELOAD such libraries to be able to fuzz them or LD_PRELOAD to run outside of afl-fuzz.
To ignore this set AFL_IGNORE_PROBLEMS=1.
/bin/bash: line 4: 451562 Aborted                 (core dumped) ./vlc-cache-gen `realpath ../modules`
make[2]: *** [Makefile:1831: ../modules/plugins.dat] Error 134
make[2]: Leaving directory '/home/test/Fuzz/fuzzing-101-solutions/exercise-7/fuzzing_vlc/vlc-3.0.7.1/bin'
make[1]: *** [Makefile:1553: all-recursive] Error 1
make[1]: Leaving directory '/home/test/Fuzz/fuzzing-101-solutions/exercise-7/fuzzing_vlc/vlc-3.0.7.1'
make: *** [Makefile:1438: all] Error 2

bugchong avatar Mar 31 '22 08:03 bugchong

Hi @bugchong ,

Did u solve the error? I met the same error when building VLC.

QiuJYWX avatar Apr 05 '22 05:04 QiuJYWX

Hi @bugchong ,

Did u solve the error? I met the same error when building VLC.

no.:(

bugchong avatar Apr 06 '22 01:04 bugchong

Could it be the operating system that causes it?

H00K1998 avatar May 30 '22 08:05 H00K1998

i had the same error:-(

Janette88 avatar Jun 06 '22 09:06 Janette88

hi,i find sth about the error. Ref:https://github.com/AFLplusplus/AFLplusplus/blob/stable/docs/FAQ.md
The best solution is to simply set AFL_PRELOAD=foo.so to the libraries that are dlopen'ed (e.g., use strace to see which), or to set a manual forkserver after the final dlopen(). but i still stucked the problem. @antonio-morales thanks a lot.

Janette88 avatar Jun 07 '22 08:06 Janette88