#651259 gjs-console segfaults

Package:
gjs
Source:
gjs
Description:
Mozilla-based javascript bindings for the GNOME platform (cli tool)
Submitter:
Arno Lepisk
Date:
2011-12-07 07:42:12 UTC
Severity:
normal
#651259#5
Date:
2011-12-07 07:33:20 UTC
From:
To:
Dear Maintainer,
when entering the following lines of code into gjs-console the program crashes with a segfault:
const Gtk = imports.gi.Gtk;
Gtk.init([]);

I think this bug might be upstream as I've also tried to compile gjs from source and it crashes
as well (although I don't know if my compiled version picks up anything strange from my default
installed version)

In the same way I've concluded that version 1.29.0 works, but 1.29.15 doesn't (I had to apply the
equivalent of http://git.gnome.org/browse/gjs/commit?id=bee69d642b9a3041511e373abe437a74aa1a6002
to make it compile)
It seems that the commit
http://git.gnome.org/browse/gjs/commit/?id=6c111e16fbaadaa43eae0b38f0b1c5dd73b9abb6 is the first
in which the crash occurs (however, I've only tested with my very simple testcase)

regards
/Arno