On Wed, 14 Dec 2022 19:54:24 +0100 Kurt Roeckx wrote:
It's not at all clear why it says: "failure in tests".
The pasted tests are only the cmocka tests.
The test failure is in the "afl++ test framework".
Its log says:
[*] starting afl++ test framework ...
[*] Testing: afl-gcc, afl-showmap, afl-fuzz, afl-cmin and afl-tmin
[*] not an intel platform, skipped tests of afl-gcc
[*] 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 4 instrumented locations which is fine
[+] llvm_mode threadsafe compilation succeeded
[+] llvm_mode threadsafe instrumentation present and working correctly
[+] llvm_mode run reported 4 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 6 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
[+] afl-cmin correctly minimized the number of testcases
[+] afl-cmin.bash correctly minimized the number of testcases
[+] afl-tmin correctly minimized the testcase
[*] 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
[!] LTO llvm_mode failed
[!] llvm_mode LTO instrumentlist feature compilation failed
[!] llvm_mode LTO persistent mode feature compilation failed
[*] Testing: gcc_plugin
[+] gcc_plugin compilation succeeded
[+] gcc_plugin instrumentation present and working correctly
[+] gcc_plugin run reported 4 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: 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
[+] afl-fuzz is working correctly with multiple C mutators
[*] running afl-fuzz for the Python mutator, this will take approx 10 seconds
[+] afl-fuzz is working correctly with the Python mutator
So the issue is
[!] LTO llvm_mode failed
[!] llvm_mode LTO instrumentlist feature compilation failed
[!] llvm_mode LTO persistent mode feature compilation failed