GNOME Bugzilla – Bug 677534
test-failure: g_signal_emit_by_name all-types-generic
Last modified: 2018-05-24 14:16:20 UTC
glib-2.32.3 on OS X 10.6 (xcode 4.2), building in 32-bit mode (passing "-arch i386" as a compiler flag)... TEST: signals... (pid=23683) /gobject/signals/all-types: ** ERROR:signals.c:657:all_types_handler: assertion failed (ul == G_MAXULONG - 999): (668207 == 4294966296) FAIL GTester: last random seed: R02S698e3a8f250a43a32f544adb899878fb I hacked on gobject/tests/signals.c a bit to see where it's happening, and the failure comes in the test_all_types call to: g_signal_emit_by_name (test, "all-types-generic", i, b, c, uc, ui, l, ul, e, f, fl, db, str, param, bytes, ptr, test, var, i64, ui64); All of the other g_signal_emit_by_name succeed there, just the all-types-generic is the problem. I littered all_types_handler() with g_print, and the following is either a notable pattern for debugging it or a funky red-herring: g_print("l %li == %i\n", l, -1117); g_print("ul %li == %li\n", ul, G_MAXULONG - 999); g_print("e %i == %i\n", e, 1); to parallel the: g_assert_cmpint (l, ==, -1117); g_assert_cmpuint (ul, ==, G_MAXULONG - 999); g_assert_cmpint (e, ==, 1); in the vicinity of the failure. I tried lots of different orders of magnitude values for ul (by resetting G_MAXULONG or by simply hardcoding the value directly instead of a contant macro). In every case, this one signal has some stray value stuffed in the "ul" slot, with "e" receiving what "ul" should have been: g_print gives for example: l -1117 == -1117 ul -1881084243 == -1000 e -1000 == 1 Whatever is passed in for ul g_signal_emit_by_name is shifted to the next parameter.
Also in signals... /gobject/signals/generic-marshaller-1: ** ERROR:signals.c:385:on_generic_marshaller_1: assertion failed: (v_pointer == NULL) Interestingly, both of these (and indeed the whole /gobject/signals/ test suite) pass on 64-bit mode on 10.6 (passing "-arch x86_64" as a compiler flag instead of -arch i386)...
Apologies for the delay in getting to this. Do you know if this is still an issue with the latest GLib releases on a representative system (if such a system still exists — Apple have moved fairly aggressively to 64-bit everything)?
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/glib/issues/554.