Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
bugchong opened this issue Mar 31, 2022 · 5 comments

Comments

@bugchong
Copy link

bugchong commented Mar 31, 2022

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
Copy link

QiuJYWX commented Apr 5, 2022

Hi @bugchong ,

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

@bugchong
Copy link
Author

bugchong commented Apr 6, 2022

Hi @bugchong ,

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

no.:(

@H00K1998
Copy link

Could it be the operating system that causes it?

@Janette88
Copy link

i had the same error:-(

@Janette88
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants