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 730287 - gi library init functions segfault if arguments non null
gi library init functions segfault if arguments non null
Status: RESOLVED OBSOLETE
Product: gjs
Classification: Bindings
Component: general
1.40.x
Other Linux
: Normal major
: ---
Assigned To: gjs-maint
gjs-maint
Depends on:
Blocks:
 
 
Reported: 2014-05-17 00:39 UTC by Matt Watson
Modified: 2018-01-27 11:57 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Matt Watson 2014-05-17 00:39:42 UTC
The following two line programs all segfault immediately...

const Clutter = imports.gi.Clutter;
Clutter.init(ARGV);

const Gtk = imports.gi.Gtk;
Gtk.init(ARGV);

Suspect there some introspection challenges with handling the char ***argv in the function signatures. But a segfault isn't too friendly.
Comment 1 Philip Chimento 2017-01-23 20:28:28 UTC
I discovered in the Debian bug tracker [1] that this used to work, but was broken by commit 6c111e16fbaadaa43eae0b38f0b1c5dd73b9abb6.

[1] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=651259
Comment 2 GNOME Infrastructure Team 2018-01-27 11:57:58 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/gjs/issues/88.