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 765465 - test_utf8_inout fails with gobject-introspection-1.48.0
test_utf8_inout fails with gobject-introspection-1.48.0
Status: RESOLVED DUPLICATE of bug 761068
Product: gjs
Classification: Bindings
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gjs-maint
gjs-maint
Depends on:
Blocks:
 
 
Reported: 2016-04-23 13:14 UTC by 宋文武
Modified: 2016-07-14 00:18 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description 宋文武 2016-04-23 13:14:20 UTC
When build gjs with gobject-introspection-1.48.0, the testUtf8 in
testEverythingBasic.js fails with:

 Gjs-WARNING **: JS ERROR: Error: Failed to convert UTF-8 string to JS string:
 Invalid byte sequence in conversion input

I find it passing a dangling pointer as utf8_string to the gjs_string_from_utf8 function.

Build gjs with gobject-introspection-1.46.0 doesn't have this issue.
(glib version is 2.48.0 in both cases)

I also use python3 with pygobject to call test_utf8_inout in the Regress.typelib,
and it work fine.
Comment 1 Michael Biebl 2016-05-11 19:09:17 UTC
I can confirm this issue on an up-to-date Debian unstable system.
I'm getting
Gjs-Message: JS LOG: running test testUtf8
Gjs-Message: JS LOG: Expected nonconst ♥ utf8 (string) but was  (string)
Comment 2 Colin Walters 2016-05-11 19:14:09 UTC
This is from https://bugzilla.gnome.org/show_bug.cgi?id=736517
Comment 3 Philip Chimento 2016-07-14 00:18:38 UTC
I believe this is the same failure as another bug that has more discussion as to what its cause is.

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