antonio-morales / Fuzzing101

An step by step fuzzing tutorial. A GitHub Security Lab initiative
https://securitylab.github.com/
Apache License 2.0
2.43k stars 321 forks source link

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

Open bugchong opened 2 years ago

bugchong commented 2 years ago

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
QiuJYWX commented 2 years ago

Hi @bugchong ,

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

bugchong commented 2 years ago

Hi @bugchong ,

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

no.:(

H00K1998 commented 2 years ago

Could it be the operating system that causes it?

Janette88 commented 2 years ago

i had the same error:-(

Janette88 commented 2 years ago

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.