enkore / j4-dmenu-desktop

A fast desktop menu
GNU General Public License v3.0
673 stars 69 forks source link

tests fail on non x86_64 and x86 #162

Closed ibotty closed 4 months ago

ibotty commented 4 months ago

See https://kojipkgs.fedoraproject.org//work/tasks/734/117330734/build.log for a build log. https://koji.fedoraproject.org/koji/taskinfo?taskID=117330422 for other logs.

I'll inline the relevant log.

+ /usr/bin/meson test -C redhat-linux-build --num-processes 12 --print-errorlogs
ninja: Entering directory `/builddir/build/BUILD/j4-dmenu-desktop-7da7e1d2108c1b16817ba0212386f47e19e3b954/redhat-linux-build'
ninja: no work to do.
1/1 j4-dmenu-tests FAIL            0.03s   exit status 2
>>> ASAN_OPTIONS=halt_on_error=1:abort_on_error=1:print_summary=1 UBSAN_OPTIONS=halt_on_error=1:abort_on_error=1:print_summary=1:print_stacktrace=1 MALLOC_PERTURB_=224 /builddir/build/BUILD/j4-dmenu-desktop-7da7e1d2108c1b16817ba0212386f47e19e3b954/redhat-linux-build/tests/j4-dmenu-tests
――――――――――――――――――――――――――――――――――――― ✀  ―――――――――――――――――――――――――――――――――――――
Randomness seeded to: 2932039167
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
j4-dmenu-tests is a Catch2 v3.5.4 host application.
Run with -? for options
-------------------------------------------------------------------------------
Test conversion from v0 to v1
-------------------------------------------------------------------------------
../tests/TestHistoryManager.cc:127
...............................................................................
../tests/TestHistoryManager.cc:159: FAILED:
  REQUIRE_THROWS_AS( HistoryManager(tmpfile.get_name()), v0_version_error )
due to unexpected exception with message:
  History file '/tmp/j4dd-history-unit-test-kGl9Nw' is malformed!
-------------------------------------------------------------------------------
Test imperfect conversion from history v0 to v1
-------------------------------------------------------------------------------
../tests/TestHistoryManager.cc:181
...............................................................................
../tests/TestHistoryManager.cc:209: FAILED:
  REQUIRE_THROWS_AS( HistoryManager(tmpfile.get_name()), v0_version_error )
due to unexpected exception with message:
  History file '/tmp/j4dd-history-unit-test-OfcsNV' is malformed!
===============================================================================
test cases:  60 |  58 passed | 2 failed
assertions: 189 | 187 passed | 2 failed
――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――
Summary of Failures:
1/1 j4-dmenu-tests FAIL            0.03s   exit status 2
Ok:                 0   
Expected Fail:      0   
Fail:               1   
Unexpected Pass:    0   
Skipped:            0   
Timeout:            0   
Full log written to /builddir/build/BUILD/j4-dmenu-desktop-7da7e1d2108c1b16817ba0212386f47e19e3b954/redhat-linux-build/meson-logs/testlog.txt
meator commented 4 months ago

I can reproduce using qemu-aarch64-static. But I don't have a aarch64 machine at hand, so debugging this will be difficult.

ibotty commented 4 months ago

Yeah, me neither. Good luck!

meator commented 4 months ago

Through advanced use of QEMU, nonnative chroots, special chroot installs of my distro, advanced gdb configuration using multiarch and more, I was able to uncover the bug. The commit isn't that impressive, but the debugging process was certainly interesting. I didn't even know that it's possible to attach x86_64 gdb to an aarch64 program, but I do now.

Thanks for the bug report!

ibotty commented 4 months ago

Wow. That sounds like something worthwhile to write about. Thank you for developing this tool. I am enjoying it every day.

ibotty commented 4 months ago

Just confirming that the builds pass now: https://koji.fedoraproject.org/koji/taskinfo?taskID=117418755

I'll refrain from doing a fedora release until you release 3.0 though.