Test failure with GLib 2.76.0
After updating to GLib 2.76.0, lfb-integration test crashes:
6/6 lfb-integration FAIL 0.18s killed by signal 6 SIGABRT
>>> G_TEST_BUILDDIR=/build/source/build/tests XDG_CONFIG_DIRS=/build/source/tests MALLOC_CHECK_=2 G_DEBUG=gc-friendly,fatal-warnings G_TEST_SRCDIR=/build/source/tests XDG_CONFIG_HOME=/build/source/tests/data/user-config MALLOC_PERTURB_=87 PYTHONDONTWRITEBYTECODE=yes GSETTINGS_BACKEND=memory GSETTINGS_SCHEMA_DIR=/build/source/build/data LD_LIBRARY_PATH=/build/source/build/libfeedback /build/source/build/tests/test-lfb-integration
✀
stdout:
TAP version 13
# random seed: R02Sb7716a918269f3c28d16d71a57ea01de
1..6
# Start of feedbackd tests
# Start of lfb-integration tests
# GLib-GIO-DEBUG: Using cross-namespace EXTERNAL authentication (this will deadlock if server is GDBus < 2.73.3)
not ok /feedbackd/lfb-integration/event_sync - ERROR:../tests/test-lfb-integration.c:87:test_lfb_integration_event_sync: assertion failed (err == NULL): GDBus.Error:org.freedesktop.DBus.Error.NoReply: Message recipient disconnected from message bus without replying (g-dbus-error-quark, 4)
Bail out!
stderr:
dbus-daemon[857]: [session uid=1000 pid=857] Activating service name='org.sigxcpu.Feedback' requested by ':1.0' (uid=1000 pid=850 comm="/build/source/build/tests/test-lfb-integration" label="kernel")
+ exec /build/source/build/src/feedbackd
dbus-daemon[857]: [session uid=1000 pid=857] Successfully activated service 'org.sigxcpu.Feedback'
0# (anonymous namespace)::segabort_handler(int) in /nix/store/ckgi9ql2xm627afl9fh529hg2vbgfn0r-libsegfault-unstable-2022-11-13/lib/libsegfault.so
1# 0x00007FFFF783DBF0 in /nix/store/76l4v99sk83ylfwkz8wmwrm4s8h73rhd-glibc-2.35-224/lib/libc.so.6
2# fbd_event_run_feedbacks at ../src/fbd-event.c:397
3# fbd_feedback_manager_handle_trigger_feedback at ../src/fbd-feedback-manager.c:402
4# ffi_call_unix64 in /nix/store/m0fsvgc5hrn3yjwsl9fvj5m6pyjk2il2-libffi-3.4.4/lib/libffi.so.8
5# ffi_call_int in /nix/store/m0fsvgc5hrn3yjwsl9fvj5m6pyjk2il2-libffi-3.4.4/lib/libffi.so.8
6# ffi_call in /nix/store/m0fsvgc5hrn3yjwsl9fvj5m6pyjk2il2-libffi-3.4.4/lib/libffi.so.8
7# g_cclosure_marshal_generic in /nix/store/bd9wr9186mk3wzxiww1rk7a3maaqgn8h-glib-2.74.5/lib/libgobject-2.0.so.0
8# g_closure_invoke in /nix/store/bd9wr9186mk3wzxiww1rk7a3maaqgn8h-glib-2.74.5/lib/libgobject-2.0.so.0
9# signal_emit_unlocked_R.isra.0 in /nix/store/bd9wr9186mk3wzxiww1rk7a3maaqgn8h-glib-2.74.5/lib/libgobject-2.0.so.0
10# _lfb_gdbus_feedback_skeleton_handle_method_call at data/lfb-gdbus.c:1328
11# g_dbus_interface_method_dispatch_helper in /nix/store/bd9wr9186mk3wzxiww1rk7a3maaqgn8h-glib-2.74.5/lib/libgio-2.0.so.0
12# call_in_idle_cb in /nix/store/bd9wr9186mk3wzxiww1rk7a3maaqgn8h-glib-2.74.5/lib/libgio-2.0.so.0
13# g_main_context_dispatch in /nix/store/bd9wr9186mk3wzxiww1rk7a3maaqgn8h-glib-2.74.5/lib/libglib-2.0.so.0
14# g_main_context_iterate.constprop.0 in /nix/store/bd9wr9186mk3wzxiww1rk7a3maaqgn8h-glib-2.74.5/lib/libglib-2.0.so.0
15# g_main_loop_run in /nix/store/bd9wr9186mk3wzxiww1rk7a3maaqgn8h-glib-2.74.5/lib/libglib-2.0.so.0
16# main at ../src/fbd.c:123
17# __libc_start_call_main in /nix/store/76l4v99sk83ylfwkz8wmwrm4s8h73rhd-glibc-2.35-224/lib/libc.so.6
18# __libc_start_main_impl in /nix/store/76l4v99sk83ylfwkz8wmwrm4s8h73rhd-glibc-2.35-224/lib/libc.so.6
19# _start in /build/source/build/src/feedbackd
**
ERROR:../tests/test-lfb-integration.c:87:test_lfb_integration_event_sync: assertion failed (err == NULL): GDBus.Error:org.freedesktop.DBus.Error.NoReply: Message recipient disconnected from message bus without replying (g-dbus-error-quark, 4)
0# (anonymous namespace)::segabort_handler(int) in /nix/store/ckgi9ql2xm627afl9fh529hg2vbgfn0r-libsegfault-unstable-2022-11-13/lib/libsegfault.so
1# 0x00007FFFF7A3DBF0 in /nix/store/76l4v99sk83ylfwkz8wmwrm4s8h73rhd-glibc-2.35-224/lib/libc.so.6
2# __pthread_kill_implementation in /nix/store/76l4v99sk83ylfwkz8wmwrm4s8h73rhd-glibc-2.35-224/lib/libc.so.6
3# gsignal in /nix/store/76l4v99sk83ylfwkz8wmwrm4s8h73rhd-glibc-2.35-224/lib/libc.so.6
4# abort in /nix/store/76l4v99sk83ylfwkz8wmwrm4s8h73rhd-glibc-2.35-224/lib/libc.so.6
5# g_assertion_message_expr.cold in /nix/store/bd9wr9186mk3wzxiww1rk7a3maaqgn8h-glib-2.74.5/lib/libglib-2.0.so.0
6# g_assertion_message_error in /nix/store/bd9wr9186mk3wzxiww1rk7a3maaqgn8h-glib-2.74.5/lib/libglib-2.0.so.0
7# test_lfb_integration_event_sync at ../tests/test-lfb-integration.c:87
8# g_test_run_suite_internal in /nix/store/bd9wr9186mk3wzxiww1rk7a3maaqgn8h-glib-2.74.5/lib/libglib-2.0.so.0
9# g_test_run_suite_internal in /nix/store/bd9wr9186mk3wzxiww1rk7a3maaqgn8h-glib-2.74.5/lib/libglib-2.0.so.0
10# g_test_run_suite_internal in /nix/store/bd9wr9186mk3wzxiww1rk7a3maaqgn8h-glib-2.74.5/lib/libglib-2.0.so.0
11# g_test_run_suite in /nix/store/bd9wr9186mk3wzxiww1rk7a3maaqgn8h-glib-2.74.5/lib/libglib-2.0.so.0
12# g_test_run in /nix/store/bd9wr9186mk3wzxiww1rk7a3maaqgn8h-glib-2.74.5/lib/libglib-2.0.so.0
13# main at ../tests/test-lfb-integration.c:369
14# __libc_start_call_main in /nix/store/76l4v99sk83ylfwkz8wmwrm4s8h73rhd-glibc-2.35-224/lib/libc.so.6
15# __libc_start_main_impl in /nix/store/76l4v99sk83ylfwkz8wmwrm4s8h73rhd-glibc-2.35-224/lib/libc.so.6
16# _start in /build/source/build/tests/test-lfb-integration
cleaning up pid 857
I have bisected this to https://gitlab.gnome.org/GNOME/glib/commit/45b5a6c1e56d5b73cc5ed798ef59a5601e56c170, the removal of slice allocator.
Also opened an issue against GLib: https://gitlab.gnome.org/GNOME/glib/-/issues/2937