https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119607
--- Comment #16 from Sam James <sjames at gcc dot gnu.org> --- https://gitlab.gnome.org/GNOME/glib/-/issues/1672 references the assertion not being atomic at least: > Unsynchronized read of ref_count in g_closure_ref / g_closure_unref from > assertion. Looks like gvariant also had similar problems before: https://gitlab.gnome.org/GNOME/glib/-/commit/6d108587a4896357be3ca42a43d22c825af62e91.