Bug#1026103: aflplusplus: FTBFS on s390x

2023-01-16 Thread Adrian Bunk
On Sun, Jan 15, 2023 at 12:12:39AM +0100, Bastian Germann wrote:
>...
> So the issue is
> [!] LTO llvm_mode failed
> [!] llvm_mode LTO instrumentlist feature compilation failed
> [!] llvm_mode LTO persistent mode feature compilation failed

The Ubuntu diff contains a change that was likely done to workaround 
this issue:

aflplusplus (4.04c-2ubuntu2) lunar; urgency=medium

  * Disable lld support on s390x for now, making the build fail.

 -- Gianfranco Costamagna   Wed, 21 Dec 2022 10:40:50 
+0100

cu
Adrian



Bug#1026103: aflplusplus: FTBFS on s390x

2023-01-14 Thread Bastian Germann

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



Bug#1026103: aflplusplus: FTBFS on s390x

2022-12-14 Thread Kurt Roeckx
Source: aflplusplus
Version: 4.04c-2
Severity: serious

Hi,

Your package is failing to build on s390x:
[*] Compiling afl++ for OS Linux on ARCH s390x
./test/unittests/unit_maybe_alloc
[==] 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
[==] 6 test(s) run.
[  PASSED  ] 6 test(s).
./test/unittests/unit_preallocable
[==] Running 2 test(s).
[ RUN  ] test_alloc_free
[   OK ] test_alloc_free
[ RUN  ] test_prealloc_overflow
[   OK ] test_prealloc_overflow
[==] 2 test(s) run.
[  PASSED  ] 2 test(s).
./test/unittests/unit_list
[==] Running 3 test(s).
[ RUN  ] test_contains
[   OK ] test_contains
[ RUN  ] test_foreach
[   OK ] test_foreach
[ RUN  ] test_long_list
[   OK ] test_long_list
[==] 3 test(s) run.
[  PASSED  ] 3 test(s).
./test/unittests/unit_rand
[==] Running 2 test(s).
[ RUN  ] test_rand_0
[   OK ] test_rand_0
[ RUN  ] test_rand_below
[   OK ] test_rand_below
[==] 2 test(s) run.
[  PASSED  ] 2 test(s).
./test/unittests/unit_hash
[==] Running 1 test(s).
[ RUN  ] test_hash
[   OK ] test_hash
[==] 1 test(s) run.
[  PASSED  ] 1 test(s).
make[3]: Leaving directory '/<>'
␛[1;90m[*] 10 test cases completed.␛[0m
␛[1;93m[-] not all test cases were executed
␛[0;31m[!] failure in tests :-(␛[0m
make[2]: *** [GNUmakefile:343: tests] Error 1

It's not at all clear why it says: "failure in tests". All the test seem
to pass. Other architectures also have the "not all test cases were
executed" message.

I've tried to build it again on the buildds, but it failed the same way.


Kurt