After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 677534 - test-failure: g_signal_emit_by_name all-types-generic
test-failure: g_signal_emit_by_name all-types-generic
Status: RESOLVED OBSOLETE
Product: glib
Classification: Platform
Component: gobject
2.32.x
Other Mac OS
: Normal normal
: ---
Assigned To: gtkdev
gtkdev
Depends on:
Blocks:
 
 
Reported: 2012-06-06 07:54 UTC by Daniel Macks
Modified: 2018-05-24 14:16 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Daniel Macks 2012-06-06 07:54:17 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.
Comment 1 Daniel Macks 2012-06-07 07:29:12 UTC
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)...
Comment 2 Philip Withnall 2018-02-15 14:40:53 UTC
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)?
Comment 3 GNOME Infrastructure Team 2018-05-24 14:16:20 UTC
-- 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.