GNOME Bugzilla – Bug 739678
Crash instantiating a Javascript defined GObject from C
Last modified: 2014-11-08 02:10:32 UTC
Created attachment 290044 [details] test.js Using gjs and gom from master, run the attached test.js. It crashes when instantiating an "Item" object (a search result). $ gdb --args gjs test.js (gdb) run Starting program: /home/hadess/Projects/gnome-install/bin/gjs test.js [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib64/libthread_db.so.1". [New Thread 0x7fffe560c700 (LWP 12709)] [New Thread 0x7fffe4e0b700 (LWP 12710)] [New Thread 0x7fffe2f64700 (LWP 12711)] [New Thread 0x7fffe2209700 (LWP 12712)] 0 http://www.gnome.org New item ID: 12 URL: http://www.gnome.org [Thread 0x7fffe2209700 (LWP 12712) exited] [New Thread 0x7fffe1a08700 (LWP 12713)] Program received signal SIGSEGV, Segmentation fault. 0x00007ffff7b7dca2 in gjs_object_custom_init (instance=0x71cb00, klass=0x702b20) at gi/object.cpp:2486 2486 object = (JSObject*) object_init_list->data; (gdb) bt
+ Trace 234307
2481 JSContext *context; 2482 JSObject *object; 2483 ObjectInstance *priv; 2484 jsval v, r; 2485 2486 object = (JSObject*) object_init_list->data; 2487 priv = (ObjectInstance*) JS_GetPrivate(object); 2488 2489 if (priv->gtype != G_TYPE_FROM_INSTANCE (instance)) { 2490 /* This is not the most derived instance_init function, (gdb) p object_init_list $1 = (GSList *) 0x0
Thanks for the bug report. This particular bug has already been reported into our bug tracking system, but please feel free to report any further bugs you find. *** This bug has been marked as a duplicate of bug 681254 ***