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 688444 - g_value_transform() fail while convert negative int to char on e500mc platform
g_value_transform() fail while convert negative int to char on e500mc platform
Status: RESOLVED DUPLICATE of bug 659870
Product: glib
Classification: Platform
Component: gobject
2.30.x
Other Linux
: Normal major
: ---
Assigned To: gtkdev
gtkdev
Depends on:
Blocks:
 
 
Reported: 2012-11-16 09:57 UTC by gary.yao
Modified: 2012-11-16 14:20 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description gary.yao 2012-11-16 09:57:40 UTC
gobject/tests/param will failed at test_value_transform() On e500mc, e500v2 and ppc476 embedded platform, since negative int transform to char fail by g_value_transform(). Here blow is the log:

ERROR:param.c:148:test_value_transform: assertion failed (g_value_get_char (&dest) == -124): (132 == -124)

ERROR:param.c:198:test_value_transform: assertion failed (g_value_get_char (&dest) == -124): (132 == -124)
Aborted

ERROR:param.c:248:test_value_transform: assertion failed (g_value_get_char (&dest) == -124): (132 == -124)
Aborted

ERROR:param.c:273:test_value_transform: assertion failed (g_value_get_char (&dest) == -124): (132 == 18446744073709551492)
Aborted

ERROR:param.c:298:test_value_transform: assertion failed (g_value_get_char (&dest) == -124): (132 == -124)
Aborted

ERROR:param.c:323:test_value_transform: assertion failed (g_value_get_char (&dest) == -124): (132 == -124)
Aborted

According the logs, not only fail at negative int to char, but also fail at LONG  , UINT64, FLOAT and DOUBLE  convert to char.
Comment 1 Dan Winship 2012-11-16 14:20:01 UTC
this was fixed in 2.32

*** This bug has been marked as a duplicate of bug 659870 ***