==> Synchronizing chroot copy [/home/alhp/workspace/chroot/root] -> [build_e024140c-443e-4221-ae31-3949d837a41b]...done ==> Making package: afl++ 4.21c-1.1 (Fri Jul 5 23:20:50 2024) ==> Retrieving sources... -> Downloading afl++-4.21c.tar.gz... % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 2547k 0 2547k 0 0 3201k 0 --:--:-- --:--:-- --:--:-- 3201k 100 2933k 0 2933k 0 0 3511k 0 --:--:-- --:--:-- --:--:-- 9893k ==> Validating source files with sha256sums... afl++-4.21c.tar.gz ... Passed ==> Validating source files with b2sums... afl++-4.21c.tar.gz ... Passed ==> Making package: afl++ 4.21c-1.1 (Fri Jul 5 23:20:54 2024) ==> Checking runtime dependencies... ==> Installing missing dependencies... resolving dependencies... looking for conflicting packages... Package (9) New Version Net Change core/expat 2.6.2-1 0.41 MiB core/libedit 20240517_3.1-1 0.27 MiB extra/llvm-libs 18.1.8-3 128.31 MiB core/mpdecimal 4.0.0-2 0.32 MiB extra/clang 18.1.8-1 209.03 MiB extra/compiler-rt 18.1.8-1 40.51 MiB extra/lld 18.1.8-1 5.80 MiB extra/llvm 18.1.8-3 108.27 MiB core/python 3.12.4-1 70.24 MiB Total Installed Size: 563.16 MiB :: Proceed with installation? [Y/n] checking keyring... checking package integrity... loading package files... checking for file conflicts... :: Processing package changes... installing libedit... installing llvm-libs... installing compiler-rt... installing clang... Optional dependencies for clang openmp: OpenMP support in clang with -fopenmp python: for scan-view and git-clang-format [pending] llvm: referenced by some clang headers [pending] installing lld... installing llvm... installing expat... installing mpdecimal... installing python... Optional dependencies for python python-setuptools: for building Python packages using tooling that is usually bundled with Python python-pip: for installing Python packages using tooling that is usually bundled with Python python-pipx: for installing Python software not packaged on Arch Linux sqlite: for a default database integration [installed] xz: for lzma [installed] tk: for tkinter ==> Checking buildtime dependencies... ==> Installing missing dependencies... resolving dependencies... looking for conflicting packages... Package (12) New Version Net Change extra/perl-error 0.17029-5 0.04 MiB extra/perl-mailtools 2.21-7 0.10 MiB extra/perl-timedate 2.33-5 0.08 MiB extra/python-markupsafe 2.1.5-2 0.08 MiB extra/python-pyelftools 0.31-2 2.05 MiB extra/cmocka 1.1.7-1 0.14 MiB extra/cpio 2.15-1 0.94 MiB extra/git 2.45.2-1 27.79 MiB extra/pax-utils 1.3.7-2 0.22 MiB extra/python-jinja 1:3.1.4-1 1.74 MiB extra/python-msgpack 1.0.5-2 0.32 MiB extra/rust 1:1.79.0-3 255.96 MiB Total Installed Size: 289.47 MiB :: Proceed with installation? [Y/n] checking keyring... checking package integrity... loading package files... checking for file conflicts... :: Processing package changes... installing cpio... installing perl-error... installing perl-timedate... installing perl-mailtools... installing git... Optional dependencies for git tk: gitk and git gui openssh: ssh transport and crypto perl-libwww: git svn perl-term-readkey: git svn and interactive.singlekey setting perl-io-socket-ssl: git send-email TLS support perl-authen-sasl: git send-email TLS support perl-mediawiki-api: git mediawiki support perl-datetime-format-iso8601: git mediawiki support perl-lwp-protocol-https: git mediawiki https support perl-cgi: gitweb (web interface) support python: git svn & git p4 [installed] subversion: git svn org.freedesktop.secrets: keyring credential helper libsecret: libsecret credential helper [installed] installing python-pyelftools... installing pax-utils... installing python-markupsafe... installing python-jinja... Optional dependencies for python-jinja python-babel: for i18n support installing python-msgpack... installing rust... Optional dependencies for rust gdb: rust-gdb script lldb: rust-lldb script installing cmocka... :: Running post-transaction hooks... (1/2) Warn about old perl modules (2/2) Updating the info directory file... ==> Retrieving sources... -> Found afl++-4.21c.tar.gz ==> WARNING: Skipping all source file integrity checks. ==> Extracting sources... -> Extracting afl++-4.21c.tar.gz with bsdtar ==> Starting build()... [*] Compiling AFL++ for OS Linux on ARCH x86_64 [*] Checking for the default compiler cc... [*] Testing the PATH environment variable... [*] Checking for the ability to compile x86 code... [+] shmat seems to be working. [+] Python 3.12.4 support seems to be working. [+] Everything seems to be working, ready to compile. (cc (GCC) 14.1.1 20240522) cc -march=x86-64-v3 -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -mpclmul -g -ffile-prefix-map=/startdir/src=/usr/src/debug/afl++ -flto=auto -falign-functions=32 -g -Wno-pointer-sign -Wno-variadic-macros -Wall -Wextra -Wno-pointer-arith -fPIC -I include/ -DAFL_PATH=\"/usr/lib/afl\" -DBIN_PATH=\"/usr/bin\" -DDOC_PATH=\"/usr/share/doc/afl\" -flto -c src/afl-common.c -o src/afl-common.o cc -march=x86-64-v3 -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -mpclmul -g -ffile-prefix-map=/startdir/src=/usr/src/debug/afl++ -flto=auto -falign-functions=32 -g -Wno-pointer-sign -Wno-variadic-macros -Wall -Wextra -Wno-pointer-arith -fPIC -I include/ -DAFL_PATH=\"/usr/lib/afl\" -DBIN_PATH=\"/usr/bin\" -DDOC_PATH=\"/usr/share/doc/afl\" -flto -c src/afl-sharedmem.c -o src/afl-sharedmem.o cc -march=x86-64-v3 -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -mpclmul -g -ffile-prefix-map=/startdir/src=/usr/src/debug/afl++ -flto=auto -falign-functions=32 -g -Wno-pointer-sign -Wno-variadic-macros -Wall -Wextra -Wno-pointer-arith -fPIC -I include/ -DAFL_PATH=\"/usr/lib/afl\" -DBIN_PATH=\"/usr/bin\" -DDOC_PATH=\"/usr/share/doc/afl\" -flto -c src/afl-forkserver.c -o src/afl-forkserver.o cc -march=x86-64-v3 -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -mpclmul -g -ffile-prefix-map=/startdir/src=/usr/src/debug/afl++ -flto=auto -falign-functions=32 -g -Wno-pointer-sign -Wno-variadic-macros -Wall -Wextra -Wno-pointer-arith -fPIC -I include/ -DAFL_PATH=\"/usr/lib/afl\" -DBIN_PATH=\"/usr/bin\" -DDOC_PATH=\"/usr/share/doc/afl\" -Wno-error=format-truncation -Wno-format-truncation -Iinclude -c src/afl-performance.c -o src/afl-performance.o cc -march=x86-64-v3 -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -mpclmul -g -ffile-prefix-map=/startdir/src=/usr/src/debug/afl++ -flto=auto -falign-functions=32 -g -Wno-pointer-sign -Wno-variadic-macros -Wall -Wextra -Wno-pointer-arith -fPIC -I include/ -DAFL_PATH=\"/usr/lib/afl\" -DBIN_PATH=\"/usr/bin\" -DDOC_PATH=\"/usr/share/doc/afl\" -flto -Wno-shift-count-overflow src/afl-fuzz-bitmap.c src/afl-fuzz-cmplog.c src/afl-fuzz-extras.c src/afl-fuzz-init.c src/afl-fuzz-mutators.c src/afl-fuzz-one.c src/afl-fuzz-python.c src/afl-fuzz-queue.c src/afl-fuzz-redqueen.c src/afl-fuzz-run.c src/afl-fuzz-skipdet.c src/afl-fuzz-state.c src/afl-fuzz-stats.c src/afl-fuzz-statsd.c src/afl-fuzz.c src/afl-common.o src/afl-sharedmem.o src/afl-forkserver.o src/afl-performance.o src/hashmap.c -o afl-fuzz -DUSE_PYTHON -I/usr/include/python3.12 -I/usr/include/python3.12 -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,-z,pack-relative-relocs -flto=auto -falign-functions=32 -ldl -lrt -lm -lpython3.12 -ldl -lm -L/usr/lib -lpython3.12 -ldl -lm -DPYTHON_VERSION="\"Python 3.12.4\"" -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,-z,pack-relative-relocs -flto=auto -falign-functions=32 -ldl -lrt -lm -lm cc -march=x86-64-v3 -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -mpclmul -g -ffile-prefix-map=/startdir/src=/usr/src/debug/afl++ -flto=auto -falign-functions=32 -g -Wno-pointer-sign -Wno-variadic-macros -Wall -Wextra -Wno-pointer-arith -fPIC -I include/ -DAFL_PATH=\"/usr/lib/afl\" -DBIN_PATH=\"/usr/bin\" -DDOC_PATH=\"/usr/share/doc/afl\" -flto src/afl-showmap.c src/afl-fuzz-mutators.c src/afl-fuzz-python.c src/afl-common.o src/afl-sharedmem.o src/afl-forkserver.o src/afl-performance.o -o afl-showmap -DUSE_PYTHON -I/usr/include/python3.12 -I/usr/include/python3.12 -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,-z,pack-relative-relocs -flto=auto -falign-functions=32 -ldl -lrt -lm -lpython3.12 -ldl -lm -L/usr/lib -lpython3.12 -ldl -lm -DPYTHON_VERSION="\"Python 3.12.4\"" -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,-z,pack-relative-relocs -flto=auto -falign-functions=32 -ldl -lrt -lm cc -march=x86-64-v3 -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -mpclmul -g -ffile-prefix-map=/startdir/src=/usr/src/debug/afl++ -flto=auto -falign-functions=32 -g -Wno-pointer-sign -Wno-variadic-macros -Wall -Wextra -Wno-pointer-arith -fPIC -I include/ -DAFL_PATH=\"/usr/lib/afl\" -DBIN_PATH=\"/usr/bin\" -DDOC_PATH=\"/usr/share/doc/afl\" -flto src/afl-tmin.c src/afl-common.o src/afl-sharedmem.o src/afl-forkserver.o src/afl-performance.o -o afl-tmin -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,-z,pack-relative-relocs -flto=auto -falign-functions=32 -ldl -lrt -lm cc -march=x86-64-v3 -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -mpclmul -g -ffile-prefix-map=/startdir/src=/usr/src/debug/afl++ -flto=auto -falign-functions=32 -g -Wno-pointer-sign -Wno-variadic-macros -Wall -Wextra -Wno-pointer-arith -fPIC -I include/ -DAFL_PATH=\"/usr/lib/afl\" -DBIN_PATH=\"/usr/bin\" -DDOC_PATH=\"/usr/share/doc/afl\" -flto src/afl-gotcpu.c src/afl-common.o -o afl-gotcpu -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,-z,pack-relative-relocs -flto=auto -falign-functions=32 -ldl -lrt -lm cc -march=x86-64-v3 -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -mpclmul -g -ffile-prefix-map=/startdir/src=/usr/src/debug/afl++ -flto=auto -falign-functions=32 -g -Wno-pointer-sign -Wno-variadic-macros -Wall -Wextra -Wno-pointer-arith -fPIC -I include/ -DAFL_PATH=\"/usr/lib/afl\" -DBIN_PATH=\"/usr/bin\" -DDOC_PATH=\"/usr/share/doc/afl\" -flto src/afl-analyze.c src/afl-common.o src/afl-sharedmem.o src/afl-performance.o src/afl-forkserver.o -o afl-analyze -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,-z,pack-relative-relocs -flto=auto -falign-functions=32 -ldl -lrt -lm cc -march=x86-64-v3 -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -mpclmul -g -ffile-prefix-map=/startdir/src=/usr/src/debug/afl++ -flto=auto -falign-functions=32 -g -Wno-pointer-sign -Wno-variadic-macros -Wall -Wextra -Wno-pointer-arith -fPIC -I include/ -DAFL_PATH=\"/usr/lib/afl\" -DBIN_PATH=\"/usr/bin\" -DDOC_PATH=\"/usr/share/doc/afl\" src/afl-as.c -o afl-as -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,-z,pack-relative-relocs -flto=auto -falign-functions=32 -ldl -lrt -lm make -j -f GNUmakefile.llvm make[1]: Entering directory '/startdir/src/AFLplusplus-4.21c' make[1]: warning: -j0 forced in submake: resetting jobserver mode. [+] llvm_mode detected llvm 10+, enabling neverZero implementation and c++14 [+] llvm_mode detected llvm 16+, enabling c++17 [+] llvm_mode detected llvm 12+, enabling afl-lto LTO implementation GNUmakefile.llvm:228: ld.lld found in a weird location (/usr/bin/ld.lld), but its the same version as LLVM so we will allow it [+] shmat seems to be working. [*] Checking for working 'llvm-config'... [*] Checking for working '/usr/bin/clang'... /usr/bin/clang -march=x86-64-v3 -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -mpclmul -g -ffile-prefix-map=/startdir/src=/usr/src/debug/afl++ -flto=auto -falign-functions=32 -g -Wno-pointer-sign -Wno-variadic-macros -Wall -Wextra -Wno-pointer-arith -fPIC -I include/ -DAFL_PATH=\"/usr/lib/afl\" -DBIN_PATH=\"/usr/bin\" -DDOC_PATH=\"/usr/share/doc/afl\" -Wall -g -Wno-cast-qual -Wno-variadic-macros -Wno-pointer-sign -I ./include/ -I ./instrumentation/ -DAFL_PATH=\"/usr/lib/afl\" -DBIN_PATH=\"/usr/bin\" -DLLVM_BINDIR=\"/usr/bin\" -DVERSION=\"++4.21c\" -DLLVM_LIBDIR=\"/usr/lib\" -DLLVM_VERSION=\"18.1.8\" -DAFL_CLANG_FLTO=\"-flto=full\" -DAFL_REAL_LD=\"/usr/bin/ld.lld\" -DAFL_CLANG_LDPATH=\"1\" -DAFL_CLANG_FUSELD=\"1\" -DCLANG_BIN=\"/usr/bin/clang\" -DCLANGPP_BIN=\"/usr/bin/clang++\" -DUSE_BINDIR=1 -Wno-unused-function -fdebug-prefix-map="/startdir/src/AFLplusplus-4.21c=llvm_mode" -Wno-deprecated -c src/afl-common.c -o instrumentation/afl-common.o -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,-z,pack-relative-relocs -flto=auto -falign-functions=32 -ldl -lrt -lm [*] Checking for matching versions of '/usr/bin/clang' and 'llvm-config' [*] We have llvm-config version 18.1.8 with a clang version 18.1.8, good. [*] Checking for './afl-showmap'... [+] All set and ready to build. clang: warning: -Wl,-O1: 'linker' input unused [-Wunused-command-line-argument] clang: warning: -Wl,--sort-common: 'linker' input unused [-Wunused-command-line-argument] clang: warning: -Wl,--as-needed: 'linker' input unused [-Wunused-command-line-argument] clang: warning: -Wl,-z,relro: 'linker' input unused [-Wunused-command-line-argument] clang: warning: -Wl,-z,now: 'linker' input unused [-Wunused-command-line-argument] clang: warning: -Wl,-z,pack-relative-relocs: 'linker' input unused [-Wunused-command-line-argument] clang: warning: -ldl: 'linker' input unused [-Wunused-command-line-argument] clang: warning: -lrt: 'linker' input unused [-Wunused-command-line-argument] clang: warning: -lm: 'linker' input unused [-Wunused-command-line-argument] /usr/bin/clang -I/usr/include -I./../include -Wall -g -Wno-cast-qual -Wno-variadic-macros -Wno-pointer-sign -I ./include/ -I ./instrumentation/ -DAFL_PATH=\"/usr/lib/afl\" -DBIN_PATH=\"/usr/bin\" -DLLVM_BINDIR=\"/usr/bin\" -DVERSION=\"++4.21c\" -DLLVM_LIBDIR=\"/usr/lib\" -DLLVM_VERSION=\"18.1.8\" -DAFL_CLANG_FLTO=\"-flto=full\" -DAFL_REAL_LD=\"/usr/bin/ld.lld\" -DAFL_CLANG_LDPATH=\"1\" -DAFL_CLANG_FUSELD=\"1\" -DCLANG_BIN=\"/usr/bin/clang\" -DCLANGPP_BIN=\"/usr/bin/clang++\" -DUSE_BINDIR=1 -Wno-unused-function -fdebug-prefix-map="/startdir/src/AFLplusplus-4.21c=llvm_mode" -Wno-deprecated -O3 -Wno-unused-result -fPIC -c instrumentation/afl-compiler-rt.o.c -o afl-compiler-rt.o [*] Building 32-bit variant of the runtime (-m32)... [*] Building 64-bit variant of the runtime (-m64)... /usr/bin/clang++ -march=x86-64-v3 -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -mpclmul -g -ffile-prefix-map=/startdir/src=/usr/src/debug/afl++ -flto=auto -falign-functions=32 -g -Wno-pointer-sign -Wno-variadic-macros -Wall -Wextra -Wno-pointer-arith -fPIC -I include/ -DAFL_PATH=\"/usr/lib/afl\" -DBIN_PATH=\"/usr/bin\" -DDOC_PATH=\"/usr/share/doc/afl\" -Wall -g -Wno-cast-qual -Wno-variadic-macros -Wno-pointer-sign -I ./include/ -I ./instrumentation/ -DAFL_PATH=\"/usr/lib/afl\" -DBIN_PATH=\"/usr/bin\" -DLLVM_BINDIR=\"/usr/bin\" -DVERSION=\"++4.21c\" -DLLVM_LIBDIR=\"/usr/lib\" -DLLVM_VERSION=\"18.1.8\" -DAFL_CLANG_FLTO=\"-flto=full\" -DAFL_REAL_LD=\"/usr/bin/ld.lld\" -DAFL_CLANG_LDPATH=\"1\" -DAFL_CLANG_FUSELD=\"1\" -DCLANG_BIN=\"/usr/bin/clang\" -DCLANGPP_BIN=\"/usr/bin/clang++\" -DUSE_BINDIR=1 -Wno-unused-function -fdebug-prefix-map="/startdir/src/AFLplusplus-4.21c=llvm_mode" -Wno-deprecated `llvm-config --cxxflags` -fno-rtti -fPIC -std=c++17 -c instrumentation/afl-llvm-common.cc -o instrumentation/afl-llvm-common.o /usr/bin/clang -march=x86-64-v3 -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -mpclmul -g -ffile-prefix-map=/startdir/src=/usr/src/debug/afl++ -flto=auto -falign-functions=32 -g -Wno-pointer-sign -Wno-variadic-macros -Wall -Wextra -Wno-pointer-arith -fPIC -I include/ -DAFL_PATH=\"/usr/lib/afl\" -DBIN_PATH=\"/usr/bin\" -DDOC_PATH=\"/usr/share/doc/afl\" -Wall -g -Wno-cast-qual -Wno-variadic-macros -Wno-pointer-sign -I ./include/ -I ./instrumentation/ -DAFL_PATH=\"/usr/lib/afl\" -DBIN_PATH=\"/usr/bin\" -DLLVM_BINDIR=\"/usr/bin\" -DVERSION=\"++4.21c\" -DLLVM_LIBDIR=\"/usr/lib\" -DLLVM_VERSION=\"18.1.8\" -DAFL_CLANG_FLTO=\"-flto=full\" -DAFL_REAL_LD=\"/usr/bin/ld.lld\" -DAFL_CLANG_LDPATH=\"1\" -DAFL_CLANG_FUSELD=\"1\" -DCLANG_BIN=\"/usr/bin/clang\" -DCLANGPP_BIN=\"/usr/bin/clang++\" -DUSE_BINDIR=1 -Wno-unused-function -fdebug-prefix-map="/startdir/src/AFLplusplus-4.21c=llvm_mode" -Wno-deprecated src/afl-ld-lto.c -o afl-ld-lto /usr/bin/clang -I/usr/include -I./../include -march=x86-64-v3 -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -mpclmul -g -ffile-prefix-map=/startdir/src=/usr/src/debug/afl++ -flto=auto -falign-functions=32 -g -Wno-pointer-sign -Wno-variadic-macros -Wall -Wextra -Wno-pointer-arith -fPIC -I include/ -DAFL_PATH=\"/usr/lib/afl\" -DBIN_PATH=\"/usr/bin\" -DDOC_PATH=\"/usr/share/doc/afl\" -Wall -g -Wno-cast-qual -Wno-variadic-macros -Wno-pointer-sign -I ./include/ -I ./instrumentation/ -DAFL_PATH=\"/usr/lib/afl\" -DBIN_PATH=\"/usr/bin\" -DLLVM_BINDIR=\"/usr/bin\" -DVERSION=\"++4.21c\" -DLLVM_LIBDIR=\"/usr/lib\" -DLLVM_VERSION=\"18.1.8\" -DAFL_CLANG_FLTO=\"-flto=full\" -DAFL_REAL_LD=\"/usr/bin/ld.lld\" -DAFL_CLANG_LDPATH=\"1\" -DAFL_CLANG_FUSELD=\"1\" -DCLANG_BIN=\"/usr/bin/clang\" -DCLANGPP_BIN=\"/usr/bin/clang++\" -DUSE_BINDIR=1 -Wno-unused-function -fdebug-prefix-map="/startdir/src/AFLplusplus-4.21c=llvm_mode" -Wno-deprecated src/afl-cc.c instrumentation/afl-common.o -o afl-cc -DLLVM_MINOR=8 -DLLVM_MAJOR=18 -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,-z,pack-relative-relocs -flto=auto -falign-functions=32 -ldl -lrt -lm -DCFLAGS_OPT=\"\" -lm src/afl-cc.c:1181:52: warning: unused parameter 'argc' [-Wunused-parameter] 1181 | void mode_final_checkout(aflcc_state_t *aflcc, int argc, char **argv) { | ^ src/afl-cc.c:1181:65: warning: unused parameter 'argv' [-Wunused-parameter] 1181 | void mode_final_checkout(aflcc_state_t *aflcc, int argc, char **argv) { | ^ 2 warnings generated. success! success! /usr/bin/clang++ `llvm-config --cxxflags` -fno-rtti -fno-exceptions -fPIC -march=x86-64-v3 -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -mpclmul -Wp,-D_GLIBCXX_ASSERTIONS -g -ffile-prefix-map=/startdir/src=/usr/src/debug/afl++ -flto=auto -falign-functions=32 -Wall -g -I ./include/ -DVERSION=\"++4.21c\" -Wno-variadic-macros -Wno-deprecated-copy-with-dtor -DLLVM_MINOR=8 -DLLVM_MAJOR=18 -Wno-deprecated-declarations -Wl,-znodelete -Wdeprecated -fno-rtti -fPIC -std=c++17 -shared instrumentation/afl-llvm-pass.so.cc -o afl-llvm-pass.so `llvm-config --ldflags` -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,-z,pack-relative-relocs -flto=auto -falign-functions=32 -ldl -lrt -lm instrumentation/afl-llvm-common.o /usr/bin/clang++ `llvm-config --cxxflags` -fno-rtti -fno-exceptions -fPIC -march=x86-64-v3 -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -mpclmul -Wp,-D_GLIBCXX_ASSERTIONS -g -ffile-prefix-map=/startdir/src=/usr/src/debug/afl++ -flto=auto -falign-functions=32 -Wall -g -I ./include/ -DVERSION=\"++4.21c\" -Wno-variadic-macros -Wno-deprecated-copy-with-dtor -DLLVM_MINOR=8 -DLLVM_MAJOR=18 -Wno-deprecated-declarations -Wl,-znodelete -fno-rtti -fPIC -std=c++17 -shared instrumentation/SanitizerCoveragePCGUARD.so.cc -o SanitizerCoveragePCGUARD.so `llvm-config --ldflags` -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,-z,pack-relative-relocs -flto=auto -falign-functions=32 -ldl -lrt -lm -Wno-deprecated-copy-dtor -Wdeprecated instrumentation/afl-llvm-common.o /usr/bin/clang++ `llvm-config --cxxflags` -fno-rtti -fno-exceptions -fPIC -march=x86-64-v3 -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -mpclmul -Wp,-D_GLIBCXX_ASSERTIONS -g -ffile-prefix-map=/startdir/src=/usr/src/debug/afl++ -flto=auto -falign-functions=32 -Wall -g -I ./include/ -DVERSION=\"++4.21c\" -Wno-variadic-macros -Wno-deprecated-copy-with-dtor -DLLVM_MINOR=8 -DLLVM_MAJOR=18 -Wno-deprecated-declarations -Wl,-znodelete -shared instrumentation/split-compares-pass.so.cc -o split-compares-pass.so `llvm-config --ldflags` -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,-z,pack-relative-relocs -flto=auto -falign-functions=32 -ldl -lrt -lm instrumentation/afl-llvm-common.o /usr/bin/clang++ `llvm-config --cxxflags` -fno-rtti -fno-exceptions -fPIC -march=x86-64-v3 -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -mpclmul -Wp,-D_GLIBCXX_ASSERTIONS -g -ffile-prefix-map=/startdir/src=/usr/src/debug/afl++ -flto=auto -falign-functions=32 -Wall -g -I ./include/ -DVERSION=\"++4.21c\" -Wno-variadic-macros -Wno-deprecated-copy-with-dtor -DLLVM_MINOR=8 -DLLVM_MAJOR=18 -Wno-deprecated-declarations -Wl,-znodelete -shared instrumentation/split-switches-pass.so.cc -o split-switches-pass.so `llvm-config --ldflags` -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,-z,pack-relative-relocs -flto=auto -falign-functions=32 -ldl -lrt -lm instrumentation/afl-llvm-common.o /usr/bin/clang++ `llvm-config --cxxflags` -fno-rtti -fno-exceptions -fPIC -march=x86-64-v3 -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -mpclmul -Wp,-D_GLIBCXX_ASSERTIONS -g -ffile-prefix-map=/startdir/src=/usr/src/debug/afl++ -flto=auto -falign-functions=32 -Wall -g -I ./include/ -DVERSION=\"++4.21c\" -Wno-variadic-macros -Wno-deprecated-copy-with-dtor -DLLVM_MINOR=8 -DLLVM_MAJOR=18 -Wno-deprecated-declarations -Wl,-znodelete -shared instrumentation/cmplog-routines-pass.cc -o cmplog-routines-pass.so `llvm-config --ldflags` -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,-z,pack-relative-relocs -flto=auto -falign-functions=32 -ldl -lrt -lm instrumentation/afl-llvm-common.o /usr/bin/clang++ `llvm-config --cxxflags` -fno-rtti -fno-exceptions -fPIC -march=x86-64-v3 -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -mpclmul -Wp,-D_GLIBCXX_ASSERTIONS -g -ffile-prefix-map=/startdir/src=/usr/src/debug/afl++ -flto=auto -falign-functions=32 -Wall -g -I ./include/ -DVERSION=\"++4.21c\" -Wno-variadic-macros -Wno-deprecated-copy-with-dtor -DLLVM_MINOR=8 -DLLVM_MAJOR=18 -Wno-deprecated-declarations -Wl,-znodelete -shared instrumentation/cmplog-instructions-pass.cc -o cmplog-instructions-pass.so `llvm-config --ldflags` -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,-z,pack-relative-relocs -flto=auto -falign-functions=32 -ldl -lrt -lm instrumentation/afl-llvm-common.o /usr/bin/clang++ `llvm-config --cxxflags` -fno-rtti -fno-exceptions -fPIC -march=x86-64-v3 -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -mpclmul -Wp,-D_GLIBCXX_ASSERTIONS -g -ffile-prefix-map=/startdir/src=/usr/src/debug/afl++ -flto=auto -falign-functions=32 -Wall -g -I ./include/ -DVERSION=\"++4.21c\" -Wno-variadic-macros -Wno-deprecated-copy-with-dtor -DLLVM_MINOR=8 -DLLVM_MAJOR=18 -Wno-deprecated-declarations -Wl,-znodelete -shared instrumentation/cmplog-switches-pass.cc -o cmplog-switches-pass.so `llvm-config --ldflags` -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,-z,pack-relative-relocs -flto=auto -falign-functions=32 -ldl -lrt -lm instrumentation/afl-llvm-common.o /usr/bin/clang++ `llvm-config --cxxflags` -fno-rtti -fno-exceptions -fPIC -march=x86-64-v3 -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -mpclmul -Wp,-D_GLIBCXX_ASSERTIONS -g -ffile-prefix-map=/startdir/src=/usr/src/debug/afl++ -flto=auto -falign-functions=32 -Wall -g -I ./include/ -DVERSION=\"++4.21c\" -Wno-variadic-macros -Wno-deprecated-copy-with-dtor -DLLVM_MINOR=8 -DLLVM_MAJOR=18 -Wno-deprecated-declarations -Wl,-znodelete -shared instrumentation/afl-llvm-dict2file.so.cc -o afl-llvm-dict2file.so `llvm-config --ldflags` -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,-z,pack-relative-relocs -flto=auto -falign-functions=32 -ldl -lrt -lm instrumentation/afl-llvm-common.o /usr/bin/clang++ `llvm-config --cxxflags` -fno-rtti -fno-exceptions -fPIC -march=x86-64-v3 -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -mpclmul -Wp,-D_GLIBCXX_ASSERTIONS -g -ffile-prefix-map=/startdir/src=/usr/src/debug/afl++ -flto=auto -falign-functions=32 -Wall -g -I ./include/ -DVERSION=\"++4.21c\" -Wno-variadic-macros -Wno-deprecated-copy-with-dtor -DLLVM_MINOR=8 -DLLVM_MAJOR=18 -Wno-deprecated-declarations -Wl,-znodelete -shared instrumentation/compare-transform-pass.so.cc -o compare-transform-pass.so `llvm-config --ldflags` -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,-z,pack-relative-relocs -flto=auto -falign-functions=32 -ldl -lrt -lm instrumentation/afl-llvm-common.o /usr/bin/clang++ `llvm-config --cxxflags` -fno-rtti -fno-exceptions -fPIC -march=x86-64-v3 -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -mpclmul -Wp,-D_GLIBCXX_ASSERTIONS -g -ffile-prefix-map=/startdir/src=/usr/src/debug/afl++ -flto=auto -falign-functions=32 -Wall -g -I ./include/ -DVERSION=\"++4.21c\" -Wno-variadic-macros -Wno-deprecated-copy-with-dtor -DLLVM_MINOR=8 -DLLVM_MAJOR=18 -Wno-deprecated-declarations -Wl,-znodelete -fno-rtti -fPIC -std=c++17 -shared instrumentation/afl-llvm-lto-instrumentlist.so.cc -o afl-llvm-lto-instrumentlist.so `llvm-config --ldflags` -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,-z,pack-relative-relocs -flto=auto -falign-functions=32 -ldl -lrt -lm instrumentation/afl-llvm-common.o /usr/bin/clang++ `llvm-config --cxxflags` -fno-rtti -fno-exceptions -fPIC -march=x86-64-v3 -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -mpclmul -Wp,-D_GLIBCXX_ASSERTIONS -g -ffile-prefix-map=/startdir/src=/usr/src/debug/afl++ -flto=auto -falign-functions=32 -Wall -g -I ./include/ -DVERSION=\"++4.21c\" -Wno-variadic-macros -Wno-deprecated-copy-with-dtor -DLLVM_MINOR=8 -DLLVM_MAJOR=18 -Wno-deprecated-declarations -Wl,-znodelete -Wno-writable-strings -fno-rtti -fPIC -std=c++17 -shared instrumentation/SanitizerCoverageLTO.so.cc -o SanitizerCoverageLTO.so `llvm-config --ldflags` -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,-z,pack-relative-relocs -flto=auto -falign-functions=32 -ldl -lrt -lm instrumentation/afl-llvm-common.o /usr/bin/clang++ `llvm-config --cxxflags` -fno-rtti -fno-exceptions -fPIC -march=x86-64-v3 -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -mpclmul -Wp,-D_GLIBCXX_ASSERTIONS -g -ffile-prefix-map=/startdir/src=/usr/src/debug/afl++ -flto=auto -falign-functions=32 -Wall -g -I ./include/ -DVERSION=\"++4.21c\" -Wno-variadic-macros -Wno-deprecated-copy-with-dtor -DLLVM_MINOR=8 -DLLVM_MAJOR=18 -Wno-deprecated-declarations -Wl,-znodelete -shared instrumentation/injection-pass.cc -o injection-pass.so `llvm-config --ldflags` -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,-z,pack-relative-relocs -flto=auto -falign-functions=32 -ldl -lrt -lm instrumentation/afl-llvm-common.o /usr/bin/clang -Wall -g -Wno-cast-qual -Wno-variadic-macros -Wno-pointer-sign -I ./include/ -I ./instrumentation/ -DAFL_PATH=\"/usr/lib/afl\" -DBIN_PATH=\"/usr/bin\" -DLLVM_BINDIR=\"/usr/bin\" -DVERSION=\"++4.21c\" -DLLVM_LIBDIR=\"/usr/lib\" -DLLVM_VERSION=\"18.1.8\" -DAFL_CLANG_FLTO=\"-flto=full\" -DAFL_REAL_LD=\"/usr/bin/ld.lld\" -DAFL_CLANG_LDPATH=\"1\" -DAFL_CLANG_FUSELD=\"1\" -DCLANG_BIN=\"/usr/bin/clang\" -DCLANGPP_BIN=\"/usr/bin/clang++\" -DUSE_BINDIR=1 -Wno-unused-function -fdebug-prefix-map="/startdir/src/AFLplusplus-4.21c=llvm_mode" -Wno-deprecated -Wno-unused-result -O0 -flto=full -fPIC -c instrumentation/afl-llvm-rt-lto.o.c -o ./afl-llvm-rt-lto.o [*] Testing the CC wrapper and instrumentation output... unset AFL_USE_ASAN AFL_USE_MSAN AFL_INST_RATIO; ASAN_OPTIONS=detect_leaks=0 AFL_QUIET=1 AFL_PATH=. AFL_LLVM_LAF_ALL=1 ./afl-cc -march=x86-64-v3 -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -mpclmul -g -ffile-prefix-map=/startdir/src=/usr/src/debug/afl++ -flto=auto -falign-functions=32 -g -Wno-pointer-sign -Wno-variadic-macros -Wall -Wextra -Wno-pointer-arith -fPIC -I include/ -DAFL_PATH=\"/usr/lib/afl\" -DBIN_PATH=\"/usr/bin\" -DDOC_PATH=\"/usr/share/doc/afl\" -Wall -g -Wno-cast-qual -Wno-variadic-macros -Wno-pointer-sign -I ./include/ -I ./instrumentation/ -DAFL_PATH=\"/usr/lib/afl\" -DBIN_PATH=\"/usr/bin\" -DLLVM_BINDIR=\"/usr/bin\" -DVERSION=\"++4.21c\" -DLLVM_LIBDIR=\"/usr/lib\" -DLLVM_VERSION=\"18.1.8\" -DAFL_CLANG_FLTO=\"-flto=full\" -DAFL_REAL_LD=\"/usr/bin/ld.lld\" -DAFL_CLANG_LDPATH=\"1\" -DAFL_CLANG_FUSELD=\"1\" -DCLANG_BIN=\"/usr/bin/clang\" -DCLANGPP_BIN=\"/usr/bin/clang++\" -DUSE_BINDIR=1 -Wno-unused-function -fdebug-prefix-map="/startdir/src/AFLplusplus-4.21c=llvm_mode" -Wno-deprecated ./test-instr.c -o test-instr -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,-z,pack-relative-relocs -flto=auto -falign-functions=32 -ldl -lrt -lm ASAN_OPTIONS=detect_leaks=0 ./afl-showmap -m none -q -o .test-instr0 ./test-instr < /dev/null echo 1 | ASAN_OPTIONS=detect_leaks=0 ./afl-showmap -m none -q -o .test-instr1 ./test-instr [+] All right, the instrumentation seems to be working! [+] All done! You can now use './afl-cc' to compile programs. make[1]: Leaving directory '/startdir/src/AFLplusplus-4.21c' make -f GNUmakefile.gcc_plugin make[1]: Entering directory '/startdir/src/AFLplusplus-4.21c' [+] shmat seems to be working. [*] Checking for working 'cc'... [*] Checking for gcc plugin development header files... [*] Checking for './afl-showmap'... [+] All set and ready to build. g++ -march=x86-64-v3 -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -mpclmul -Wp,-D_GLIBCXX_ASSERTIONS -g -ffile-prefix-map=/startdir/src=/usr/src/debug/afl++ -flto=auto -falign-functions=32 -Wall -std=c++11 -fPIC -fno-rtti -fno-exceptions -I"/usr/lib/gcc/x86_64-pc-linux-gnu/14.1.1/plugin"/include -I"/usr/lib/gcc/x86_64-pc-linux-gnu/14.1.1/plugin" -shared instrumentation/afl-gcc-pass.so.cc -o afl-gcc-pass.so g++ -march=x86-64-v3 -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -mpclmul -Wp,-D_GLIBCXX_ASSERTIONS -g -ffile-prefix-map=/startdir/src=/usr/src/debug/afl++ -flto=auto -falign-functions=32 -Wall -std=c++11 -fPIC -fno-rtti -fno-exceptions -I"/usr/lib/gcc/x86_64-pc-linux-gnu/14.1.1/plugin"/include -I"/usr/lib/gcc/x86_64-pc-linux-gnu/14.1.1/plugin" -shared instrumentation/afl-gcc-cmplog-pass.so.cc -o afl-gcc-cmplog-pass.so g++ -march=x86-64-v3 -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -mpclmul -Wp,-D_GLIBCXX_ASSERTIONS -g -ffile-prefix-map=/startdir/src=/usr/src/debug/afl++ -flto=auto -falign-functions=32 -Wall -std=c++11 -fPIC -fno-rtti -fno-exceptions -I"/usr/lib/gcc/x86_64-pc-linux-gnu/14.1.1/plugin"/include -I"/usr/lib/gcc/x86_64-pc-linux-gnu/14.1.1/plugin" -shared instrumentation/afl-gcc-cmptrs-pass.so.cc -o afl-gcc-cmptrs-pass.so ln -sf afl-cc afl-gcc-fast ln -sf afl-cc afl-g++-fast ln -sf afl-cc.8 afl-gcc-fast.8 ln -sf afl-cc.8 afl-g++-fast.8 [*] Testing the CC wrapper and instrumentation output... unset AFL_USE_ASAN AFL_USE_MSAN; ASAN_OPTIONS=detect_leaks=0 AFL_QUIET=1 AFL_INST_RATIO=100 AFL_PATH=. AFL_CC=cc ./afl-gcc-fast -march=x86-64-v3 -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -mpclmul -g -ffile-prefix-map=/startdir/src=/usr/src/debug/afl++ -flto=auto -falign-functions=32 -g -Wno-pointer-sign -Wno-variadic-macros -Wall -Wextra -Wno-pointer-arith -fPIC -I include/ -DAFL_PATH=\"/usr/lib/afl\" -DBIN_PATH=\"/usr/bin\" -DDOC_PATH=\"/usr/share/doc/afl\" -Wall -Iinclude -Wno-pointer-sign -DAFL_PATH=\"/usr/lib/afl\" -DBIN_PATH=\"/usr/bin\" -DGCC_VERSION=\"\" -DGCC_BINDIR=\"\" -Wno-unused-function ./test-instr.c -o test-instr -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,-z,pack-relative-relocs -flto=auto -falign-functions=32 -ldl -lrt -lm -lrt ASAN_OPTIONS=detect_leaks=0 ./afl-showmap -m none -q -o .test-instr0 ./test-instr '../../libAFLQemuDriver.a' 'libAFLDriver.a' -> '../../libAFLDriver.a' make[1]: Leaving directory '/startdir/src/AFLplusplus-4.21c/utils/aflpp_driver' Build Summary: [+] afl-fuzz and supporting tools successfully built [+] LLVM basic mode successfully built [+] LLVM mode successfully built [+] LLVM LTO mode successfully built [+] gcc_mode successfully built ==> Starting check()... [*] Compiling AFL++ for OS Linux on ARCH x86_64 [*] Checking for the default compiler cc... [*] Testing the PATH environment variable... [*] Checking for the ability to compile x86 code... [+] shmat seems to be working. [+] Python 3.12.4 support seems to be working. [+] Everything seems to be working, ready to compile. (cc (GCC) 14.1.1 20240522) make -j -f GNUmakefile.llvm make[1]: Entering directory '/startdir/src/AFLplusplus-4.21c' make[1]: warning: -j0 forced in submake: resetting jobserver mode. [+] llvm_mode detected llvm 10+, enabling neverZero implementation and c++14 [+] llvm_mode detected llvm 16+, enabling c++17 [+] llvm_mode detected llvm 12+, enabling afl-lto LTO implementation GNUmakefile.llvm:228: ld.lld found in a weird location (/usr/bin/ld.lld), but its the same version as LLVM so we will allow it [+] shmat seems to be working. [*] Checking for working 'llvm-config'... [*] Checking for working '/usr/bin/clang'... [*] Checking for matching versions of '/usr/bin/clang' and 'llvm-config' [*] We have llvm-config version 18.1.8 with a clang version 18.1.8, good. [*] Checking for './afl-showmap'... [+] All set and ready to build. [*] Testing the CC wrapper and instrumentation output... unset AFL_USE_ASAN AFL_USE_MSAN AFL_INST_RATIO; ASAN_OPTIONS=detect_leaks=0 AFL_QUIET=1 AFL_PATH=. AFL_LLVM_LAF_ALL=1 ./afl-cc -g -Wno-pointer-sign -Wno-variadic-macros -Wall -Wextra -Wno-pointer-arith -fPIC -I include/ -DAFL_PATH=\"/usr/local/lib/afl\" -DBIN_PATH=\"/usr/local/bin\" -DDOC_PATH=\"/usr/local/share/doc/afl\" -Wall -g -Wno-cast-qual -Wno-variadic-macros -Wno-pointer-sign -I ./include/ -I ./instrumentation/ -DAFL_PATH=\"/usr/local/lib/afl\" -DBIN_PATH=\"/usr/local/bin\" -DLLVM_BINDIR=\"/usr/bin\" -DVERSION=\"++4.21c\" -DLLVM_LIBDIR=\"/usr/lib\" -DLLVM_VERSION=\"18.1.8\" -DAFL_CLANG_FLTO=\"-flto=full\" -DAFL_REAL_LD=\"/usr/bin/ld.lld\" -DAFL_CLANG_LDPATH=\"1\" -DAFL_CLANG_FUSELD=\"1\" -DCLANG_BIN=\"/usr/bin/clang\" -DCLANGPP_BIN=\"/usr/bin/clang++\" -DUSE_BINDIR=1 -Wno-unused-function -fdebug-prefix-map="/startdir/src/AFLplusplus-4.21c=llvm_mode" -Wno-deprecated ./test-instr.c -o test-instr -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,-z,pack-relative-relocs -flto=auto -falign-functions=32 -ldl -lrt -lm ASAN_OPTIONS=detect_leaks=0 ./afl-showmap -m none -q -o .test-instr0 ./test-instr < /dev/null echo 1 | ASAN_OPTIONS=detect_leaks=0 ./afl-showmap -m none -q -o .test-instr1 ./test-instr [+] All right, the instrumentation seems to be working! [+] All done! You can now use './afl-cc' to compile programs. make[1]: Leaving directory '/startdir/src/AFLplusplus-4.21c' make -f GNUmakefile.gcc_plugin make[1]: Entering directory '/startdir/src/AFLplusplus-4.21c' [+] shmat seems to be working. [*] Checking for working 'cc'... [*] Checking for gcc plugin development header files... [*] Checking for './afl-showmap'... [+] All set and ready to build. [*] Testing the CC wrapper and instrumentation output... unset AFL_USE_ASAN AFL_USE_MSAN; ASAN_OPTIONS=detect_leaks=0 AFL_QUIET=1 AFL_INST_RATIO=100 AFL_PATH=. AFL_CC=cc ./afl-gcc-fast -g -Wno-pointer-sign -Wno-variadic-macros -Wall -Wextra -Wno-pointer-arith -fPIC -I include/ -DAFL_PATH=\"/usr/local/lib/afl\" -DBIN_PATH=\"/usr/local/bin\" -DDOC_PATH=\"/usr/local/share/doc/afl\" -Wall -Iinclude -Wno-pointer-sign -DAFL_PATH=\"/usr/local/lib/afl\" -DBIN_PATH=\"/usr/local/bin\" -DGCC_VERSION=\"\" -DGCC_BINDIR=\"\" -Wno-unused-function ./test-instr.c -o test-instr -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,-z,pack-relative-relocs -flto=auto -falign-functions=32 -ldl -lrt -lm -lrt ASAN_OPTIONS=detect_leaks=0 ./afl-showmap -m none -q -o .test-instr0 ./test-instr '../../libdislocator.so' make[1]: Leaving directory '/startdir/src/AFLplusplus-4.21c/utils/libdislocator' make -C utils/libtokencap make[1]: Entering directory '/startdir/src/AFLplusplus-4.21c/utils/libtokencap' cc -g -Wno-pointer-sign -Wno-variadic-macros -Wall -Wextra -Wno-pointer-arith -fPIC -I include/ -DAFL_PATH=\"/usr/local/lib/afl\" -DBIN_PATH=\"/usr/local/bin\" -DDOC_PATH=\"/usr/local/share/doc/afl\" -I ../../include/ -Wall -g -Wno-pointer-sign -shared -fPIC libtokencap.so.c -o libtokencap.so -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,-z,pack-relative-relocs -flto=auto -falign-functions=32 -ldl -lrt -lm "-ldl" cp -f libtokencap.so ../../ make[1]: Leaving directory '/startdir/src/AFLplusplus-4.21c/utils/libtokencap' # -make -C utils/plot_ui cd nyx_mode && ./build_nyx_support.sh ================================================= Nyx build script ================================================= [*] Performing basic sanity checks... [*] Making sure all Nyx is checked out [*] initializing QEMU-Nyx submodule [*] initializing packer submodule [*] initializing libnyx submodule [-] packer not checked out, please install git or check your internet connection. make: [GNUmakefile:747: source-only] Error 1 (ignored) Build Summary: [+] afl-fuzz and supporting tools successfully built [+] LLVM basic mode successfully built [+] LLVM mode successfully built [+] LLVM LTO mode successfully built [+] gcc_mode successfully built [-] nyx_mode could not be built, it is optional, see nyx_mode/README.md for what is needed [*] starting AFL++ test framework ... [*] Testing: afl-gcc, afl-showmap, afl-fuzz, afl-cmin and afl-tmin [+] afl-gcc compilation succeeded [+] afl-gcc instrumentation present and working correctly [+] afl-gcc run reported 11 instrumented locations which is fine [+] afl-gcc hardened mode succeeded and is working [*] running afl-fuzz for afl-gcc, this will take approx 10 seconds [+] afl-fuzz is working correctly with afl-gcc [+] afl-cmin correctly minimized the number of testcases [+] afl-cmin.bash correctly minimized the number of testcases [+] afl-tmin correctly minimized the testcase [*] Testing: afl-clang, afl-showmap, afl-fuzz, afl-cmin and afl-tmin [+] afl-clang compilation succeeded [+] afl-clang instrumentation present and working correctly [+] afl-clang run reported 12 instrumented locations which is fine [+] afl-clang hardened mode succeeded and is working [*] running afl-fuzz for afl-clang, this will take approx 10 seconds [+] afl-fuzz is working correctly with afl-clang [+] afl-cmin correctly minimized the number of testcases [+] afl-cmin.bash correctly minimized the number of testcases [+] afl-tmin correctly minimized the testcase [*] Testing: llvm_mode, afl-showmap, afl-fuzz, afl-cmin and afl-tmin [+] llvm_mode compilation succeeded [+] llvm_mode instrumentation present and working correctly [+] llvm_mode run reported 5 instrumented locations which is fine [+] llvm_mode threadsafe compilation succeeded [+] llvm_mode threadsafe instrumentation present and working correctly [+] llvm_mode run reported 5 threadsafe instrumented locations which is fine [+] llvm_mode shared object with -z defs compilation succeeded [+] llvm_mode test-dlopen compilation succeeded [+] llvm_mode test-dlopen instrumentation present and working correctly [+] llvm_mode test-dlopen run reported 7 instrumented locations which is fine [+] llvm_mode hardened mode succeeded and is working [*] running afl-fuzz for llvm_mode, this will take approx 10 seconds [+] afl-fuzz is working correctly with llvm_mode [*] llvm_mode laf-intel/compcov testing splitting integer types (this might take some time) [+] llvm_mode laf-intel/compcov feature works correctly [*] running afl-fuzz with floating point splitting, this will take max. 45 seconds [+] llvm_mode laf-intel floatingpoint splitting feature works correctly [+] llvm_mode instrumentlist feature works correctly [*] running afl-fuzz for llvm_mode cmplog, this will take approx 10 seconds [+] afl-fuzz is working correctly with llvm_mode cmplog [+] llvm_mode persistent mode feature works correctly [*] Testing: LTO llvm_mode [+] llvm_mode LTO compilation succeeded [+] llvm_mode LTO instrumentation present and working correctly [+] llvm_mode LTO run reported 4 instrumented locations which is fine [+] llvm_mode LTO instrumentlist feature works correctly [+] llvm_mode LTO persistent mode feature works correctly [*] Testing: gcc_plugin [+] gcc_plugin compilation succeeded [+] gcc_plugin instrumentation present and working correctly [+] gcc_plugin run reported 5 instrumented locations which is fine [+] gcc_plugin hardened mode succeeded and is working [*] running afl-fuzz for gcc_plugin, this will take approx 10 seconds [+] afl-fuzz is working correctly with gcc_plugin [+] gcc_plugin instrumentlist feature works correctly [+] gcc_plugin persistent mode feature works correctly [*] Testing: shared library extensions [+] libtokencap did successfully capture tokens [+] libdislocator did successfully detect the memory corruption [*] Testing: qemu_mode [-] qemu_mode is not compiled, cannot test [*] Testing: frida_mode [-] frida_mode is not compiled, cannot test [*] Testing: nyx_mode [-] nyx_mode is not compiled, cannot test [*] Testing: unicorn_mode [-] unicorn_mode is not compiled, cannot test [*] Testing: custom mutator [*] running afl-fuzz for the C mutator, this will take approx 10 seconds [+] afl-fuzz is working correctly with the C mutator [*] running afl-fuzz with multiple custom C mutators, this will take approx 10 seconds CUT------------------------------------------------------------------CUT [+] Enabled environment variable AFL_CUSTOM_MUTATOR_LIBRARY with value ./libexamplemutator.so;./libexamplemutator2.so [+] Enabled environment variable AFL_CUSTOM_MUTATOR_ONLY with value 1 [+] Enabled environment variable AFL_SKIP_CPUFREQ with value 1 [+] Enabled environment variable AFL_I_DONT_CARE_ABOUT_MISSING_CRASHES with value 1 [+] Enabled environment variable AFL_EXIT_ON_TIME with value 60 [+] Enabled environment variable AFL_TRY_AFFINITY with value 1 [+] Enabled environment variable AFL_PATH with value /startdir/src/AFLplusplus-4.21c/test/.. [+] Enabled environment variable AFL_EXIT_WHEN_DONE with value 1 afl-fuzz++4.21c based on afl by Michal Zalewski and a large online community [!] WARNING: Parameters -d and -D are deprecated, a new enhanced deterministic fuzzing is active by default, to disable it use -z [+] AFL++ is maintained by Marc "van Hauser" Heuse, Dominik Maier, Andrea Fioraldi and Heiko "hexcoder" Eißfeldt [+] AFL++ is open source, get it at https://github.com/AFLplusplus/AFLplusplus [+] NOTE: AFL++ >= v3 has changed defaults and behaviours - see README.md [+] Enabled environment variable ASAN_OPTIONS with value detect_leaks=0:allocator_may_return_null=1:abort_on_error=1:symbolize=0 [+] No -M/-S set, autoconfiguring for "-S default" [*] Getting to work... [+] Using exploration-based constant power schedule (EXPLORE) [+] Enabled testcache with 50 MB [+] Generating fuzz data with a length of min=1 max=1048576 [*] Checking core_pattern... [-] Hmm, your system is configured to send core dump notifications to an external utility. This will cause issues: there will be an extended delay between stumbling upon a crash and having this information relayed to the fuzzer via the standard waitpid() API. If you're just testing, set 'AFL_I_DONT_CARE_ABOUT_MISSING_CRASHES=1'. To avoid having crashes misinterpreted as timeouts, please log in as root and temporarily modify /proc/sys/kernel/core_pattern, like so: echo core >/proc/sys/kernel/core_pattern [+] Looks like we're not running on a tty, so I'll be a bit less verbose. [+] You have 12 CPU cores and 53 runnable tasks (utilization: 442%). [!] WARNING: System under apparent load, performance may be spotty. [*] Setting up output directories... [*] Checking CPU core loadout... [+] Found a free CPU core, try binding to #1. [*] Loading custom mutator library from './libexamplemutator.so'... [+] Found 'afl_custom_mutator'. [*] optional symbol 'afl_custom_fuzz_count' not found. [*] optional symbol 'afl_custom_post_process' not found. [*] optional symbol 'afl_custom_init_trim' not found. [*] optional symbol 'afl_custom_trim' not found. [*] optional symbol 'afl_custom_post_trim' not found. [*] optional symbol 'afl_custom_havoc_mutation' not found. [*] optional symbol 'afl_custom_havoc_mutation_probability' not found. [*] optional symbol 'afl_custom_queue_get' not found. [*] optional symbol 'afl_custom_splice_optout' not found. [*] optional symbol 'afl_custom_fuzz_send' not found. [*] optional symbol 'afl_custom_post_run' not found. [*] optional symbol 'afl_custom_queue_new_entry' not found [*] optional symbol 'afl_custom_describe' not found. [+] Custom mutator './libexamplemutator.so' installed successfully. [*] Loading custom mutator library from './libexamplemutator2.so'... [+] Found 'afl_custom_mutator'. [*] optional symbol 'afl_custom_fuzz_count' not found. [*] optional symbol 'afl_custom_post_process' not found. [*] optional symbol 'afl_custom_init_trim' not found. [*] optional symbol 'afl_custom_trim' not found. [*] optional symbol 'afl_custom_post_trim' not found. [*] optional symbol 'afl_custom_havoc_mutation' not found. [*] optional symbol 'afl_custom_havoc_mutation_probability' not found. [*] optional symbol 'afl_custom_queue_get' not found. [*] optional symbol 'afl_custom_splice_optout' not found. [*] optional symbol 'afl_custom_fuzz_send' not found. [*] optional symbol 'afl_custom_post_run' not found. [*] optional symbol 'afl_custom_queue_new_entry' not found [*] optional symbol 'afl_custom_describe' not found. [+] Custom mutator './libexamplemutator2.so' installed successfully. [*] Scanning 'in'... [+] Loaded a total of 1 seeds. [*] Creating hard links for all input files... [*] Validating target binary... [*] Spinning up the fork server... [+] All right - new fork server model v1 is up. [*] Target map size: 9 [*] No auto-generated dictionary tokens to reuse. [*] Attempting dry run with 'id:000000,time:0,execs:0,orig:in'...  len = 6, map size = 2, exec speed = 385 us, hash = 30ef867dcde845e2 [+] All test cases processed. [+] Here are some useful stats:  Test case count : 1 favored, 0 variable, 0 ignored, 1 total  Bitmap range : 2 to 2 bits (average: 2.00 bits)  Exec timing : 385 to 385 us (average: 385 us)  [*] No -t option specified, so I'll use an exec timeout of 20 ms. [+] All set and ready to roll! [*] Fuzzing test case #0 (1 total, 0 crashes saved, state: started :-), mode=explore, perf_score=100, weight=1, favorite=1, was_fuzzed=0, exec_us=385, hits=0, map=2, ascii=0, run_time=0:00:00:00)... [?25h +++ Testing aborted programmatically +++ [!] Time limit was reached [*] Statistics: 0 new corpus items found, 22.22% coverage achieved, 0 crashes saved, 1 timeouts saved, total runtime 0 days, 0 hrs, 0 min, 7 sec [+] We're done here. Have a nice day!  CUT------------------------------------------------------------------CUT [!] afl-fuzz is not working correctly with multiple C mutators [*] running afl-fuzz for the Python mutator, this will take approx 10 seconds CUT------------------------------------------------------------------CUT [+] Enabled environment variable AFL_CUSTOM_MUTATOR_ONLY with value 1 [+] Enabled environment variable AFL_SKIP_CPUFREQ with value 1 [+] Enabled environment variable AFL_I_DONT_CARE_ABOUT_MISSING_CRASHES with value 1 [+] Enabled environment variable AFL_EXIT_ON_TIME with value 60 [+] Enabled environment variable AFL_TRY_AFFINITY with value 1 [+] Enabled environment variable AFL_PATH with value /startdir/src/AFLplusplus-4.21c/test/.. [+] Enabled environment variable AFL_EXIT_WHEN_DONE with value 1 [+] Enabled environment variable AFL_PYTHON_MODULE with value example afl-fuzz++4.21c based on afl by Michal Zalewski and a large online community [+] AFL++ is maintained by Marc "van Hauser" Heuse, Dominik Maier, Andrea Fioraldi and Heiko "hexcoder" Eißfeldt [+] AFL++ is open source, get it at https://github.com/AFLplusplus/AFLplusplus [+] NOTE: AFL++ >= v3 has changed defaults and behaviours - see README.md [+] Enabled environment variable ASAN_OPTIONS with value detect_leaks=0:allocator_may_return_null=1:abort_on_error=1:symbolize=0 [+] No -M/-S set, autoconfiguring for "-S default" [*] Getting to work... [+] Using exploration-based constant power schedule (EXPLORE) [+] Enabled testcache with 50 MB [+] Generating fuzz data with a length of min=1 max=1048576 [*] Checking core_pattern... [-] Hmm, your system is configured to send core dump notifications to an external utility. This will cause issues: there will be an extended delay between stumbling upon a crash and having this information relayed to the fuzzer via the standard waitpid() API. If you're just testing, set 'AFL_I_DONT_CARE_ABOUT_MISSING_CRASHES=1'. To avoid having crashes misinterpreted as timeouts, please log in as root and temporarily modify /proc/sys/kernel/core_pattern, like so: echo core >/proc/sys/kernel/core_pattern [+] Looks like we're not running on a tty, so I'll be a bit less verbose. [+] You have 12 CPU cores and 60 runnable tasks (utilization: 500%). [!] WARNING: System under apparent load, performance may be spotty. [*] Setting up output directories... [*] Checking CPU core loadout... [+] Found a free CPU core, try binding to #1. [*] Loading Python mutator library from 'example'... [+] Python mutator 'example' installed successfully. [*] Scanning 'in'... [+] Loaded a total of 1 seeds. [*] Creating hard links for all input files... [*] Validating target binary... [*] Spinning up the fork server... [+] All right - new fork server model v1 is up. [*] Target map size: 9 [*] No auto-generated dictionary tokens to reuse. [*] Attempting dry run with 'id:000000,time:0,execs:0,orig:in'...  len = 6, map size = 2, exec speed = 586 us, hash = 30ef867dcde845e2 [+] All test cases processed. [+] Here are some useful stats:  Test case count : 1 favored, 0 variable, 0 ignored, 1 total  Bitmap range : 2 to 2 bits (average: 2.00 bits)  Exec timing : 586 to 586 us (average: 586 us)  [*] No -t option specified, so I'll use an exec timeout of 20 ms. [+] All set and ready to roll! [*] Fuzzing test case #0 (1 total, 0 crashes saved, state: started :-), mode=explore, perf_score=100, weight=1, favorite=1, was_fuzzed=0, exec_us=586, hits=0, map=2, ascii=0, run_time=0:00:00:00)... [*] Fuzzing test case #0 (1 total, 0 crashes saved, state: started :-), mode=explore, perf_score=100, weight=1, favorite=1, was_fuzzed=1, exec_us=586, hits=0, map=2, ascii=0, run_time=0:00:00:02)... [*] Fuzzing test case #0 (1 total, 0 crashes saved, state: started :-), mode=explore, perf_score=100, weight=1, favorite=1, was_fuzzed=1, exec_us=586, hits=0, map=2, ascii=0, run_time=0:00:00:04)... [?25h +++ Testing aborted programmatically +++ [!] Time limit was reached [*] Statistics: 0 new corpus items found, 22.22% coverage achieved, 0 crashes saved, 1 timeouts saved, total runtime 0 days, 0 hrs, 0 min, 7 sec [+] We're done here. Have a nice day!  CUT------------------------------------------------------------------CUT [!] afl-fuzz is not working correctly with the Python mutator [*] Execution cmocka Unit-Tests  make[1]: Entering directory '/startdir/src/AFLplusplus-4.21c' [*] Compiling AFL++ for OS Linux on ARCH x86_64 ./test/unittests/unit_maybe_alloc ./test/unittests/unit_preallocable ./test/unittests/unit_list ./test/unittests/unit_rand [==========] tests: Running 3 test(s). [ RUN ] test_contains [ OK ] test_contains [ RUN ] test_foreach [ OK ] test_foreach [ RUN ] test_long_list [ OK ] test_long_list [==========] tests: 3 test(s) run. [ PASSED ] 3 test(s). [==========] tests: Running 2 test(s). [ RUN ] test_rand_0 [==========] tests: Running 6 test(s). [ RUN ] test_pow2 [ OK ] test_pow2 [ RUN ] test_null_allocs [ OK ] test_null_allocs [ RUN ] test_nonpow2_size [ OK ] test_nonpow2_size [ RUN ] test_zero_size [ OK ] test_zero_size [ RUN ] test_unchanged_size [ OK ] test_unchanged_size [ RUN ] test_grow_multiple [ OK ] test_grow_multiple [==========] tests: 6 test(s) run. [ PASSED ] 6 test(s). [==========] tests: Running 2 test(s). [ RUN ] test_alloc_free [ OK ] test_alloc_free [ RUN ] test_prealloc_overflow [ OK ] test_prealloc_overflow [==========] tests: 2 test(s) run. [ PASSED ] 2 test(s). [ OK ] test_rand_0 [ RUN ] test_rand_below [ OK ] test_rand_below [==========] tests: 2 test(s) run. [ PASSED ] 2 test(s). ./test/unittests/unit_hash [==========] tests: Running 1 test(s). [ RUN ] test_hash [ OK ] test_hash [==========] tests: 1 test(s) run. [ PASSED ] 1 test(s). make[1]: Leaving directory '/startdir/src/AFLplusplus-4.21c' [*] 12 test cases completed. [-] not all test cases were executed [!] failure in tests :-( make: *** [GNUmakefile:361: tests] Error 1 ==> ERROR: A failure occurred in check(). Aborting... ==> ERROR: Build failed, check /home/alhp/workspace/chroot/build_e024140c-443e-4221-ae31-3949d837a41b/build