segfault when searching for locations in gclue_simple_finalize
Submitted by Hashem Nasarat
Link to original bug (#762484)
Description
This most often happens when I type in the routing sidebar to/from GtkEntrys and alternate between typing quickly and hitting enter (so the remote search popover appears), then deleting what I just typed, and typing slowly (so the local search popover appears).
Program received signal SIGSEGV, Segmentation fault.
0x00007ffff52b7c1d in g_type_check_instance_is_fundamentally_a (type_instance=0x2447c60, fundamental_type=80) at gtype.c:4034
4034 return node && (NODE_FUNDAMENTAL_TYPE(node) == fundamental_type);
#0 0x00007ffff52b7c1d in g_type_check_instance_is_fundamentally_a (type_instance=0x2447c60, fundamental_type=80) at gtype.c:4034
#1 0x00007ffff529d935 in g_object_unref (_object=0x2447c60) at gobject.c:3080
#2 0x00007fff503e5a1f in gclue_simple_finalize (object=0x242d160) at gclue-simple.c:102
#3 0x00007ffff529dbfd in g_object_unref (_object=0x242d160) at gobject.c:3183
#4 0x00007ffff529d80f in g_object_remove_toggle_ref (object=0x242d160, notify=0x7ffff7b785e0 <wrapped_gobj_toggle_notify(gpointer, GObject*, gboolean)>, data=0x0) at gobject.c:3030
#5 0x00007ffff7b77e1e in release_native_object (priv=0x7fff78001b60) at gi/object.cpp:1110
#6 0x00007ffff7b77ee0 in object_instance_finalize (fop=<optimized out>, obj=0x7fffe29355e0) at gi/object.cpp:1436
#7 0x00007ffff49cce04 in bool FinalizeTypedArenas<JSObject>(js::FreeOp*, js::gc::ArenaHeader**, js::gc::ArenaList&, js::gc::AllocKind, js::SliceBudget&) [clone .isra.202] () from /lib64/libmozjs-24.so
#8 0x00007ffff49cd2d6 in js::gc::ArenaLists::queueObjectsForSweep(js::FreeOp*) () from /lib64/libmozjs-24.so
#9 0x00007ffff49cd8c8 in BeginSweepingZoneGroup(JSRuntime*) () from /lib64/libmozjs-24.so
#10 0x00007ffff49d0945 in IncrementalCollectSlice(JSRuntime*, long, JS::gcreason::Reason, js::JSGCInvocationKind) () from /lib64/libmozjs-24.so
#11 0x00007ffff49d1b8d in GCCycle(JSRuntime*, bool, long, js::JSGCInvocationKind, JS::gcreason::Reason) () from /lib64/libmozjs-24.so
#12 0x00007ffff49d1f9b in Collect(JSRuntime*, bool, long, js::JSGCInvocationKind, JS::gcreason::Reason) [clone .part.219] () from /lib64/libmozjs-24.so
#13 0x00007ffff7b67abe in gjs_gc_if_needed (context=0x6489c0) at gjs/jsapi-util.cpp:1199
#14 0x00007ffff7b60e54 in trigger_gc_if_needed (user_data=0x62a000) at gjs/context.cpp:539
#15 0x00007ffff4fb05b0 in g_idle_dispatch (source=0x2b45dd0, callback=0x7ffff7b60e30 <trigger_gc_if_needed(gpointer)>, user_data=0x62a000) at gmain.c:5441
#16 0x00007ffff4fadbf8 in g_main_dispatch (context=0x6dcc00) at gmain.c:3154
#17 0x00007ffff4faea3c in g_main_context_dispatch (context=0x6dcc00) at gmain.c:3769
#18 0x00007ffff4faec20 in g_main_context_iterate (context=0x6dcc00, block=1, dispatch=1, self=0x6bcf80) at gmain.c:3840
#19 0x00007ffff4faece4 in g_main_context_iteration (context=0x6dcc00, may_block=1) at gmain.c:3901
#20 0x00007ffff55b2fdd in g_application_run (application=0x72b0f0, argc=1, argv=0xa27530) at gapplication.c:2381
#21 0x00007ffff5ebcd30 in ffi_call_unix64 () from /lib64/libffi.so.6
#22 0x00007ffff5ebc79b in ffi_call () from /lib64/libffi.so.6
#23 0x00007ffff7b7477b in gjs_invoke_c_function (context=context@entry=0x6489c0, function=function@entry=0xa2ac00, obj=obj@entry=0x7fffd2f61ee0, js_argc=js_argc@entry=1, js_argv=js_argv@entry=0x688de8,
js_rval=js_rval@entry=0x7fffffffc540, r_value=0x0) at gi/function.cpp:999
#24 0x00007ffff7b75c3f in function_call (context=0x6489c0, js_argc=1, vp=0x688dd8) at gi/function.cpp:1323
#25 0x00007ffff48b425c in js::Invoke(JSContext*, JS::CallArgs, js::MaybeConstruct) () from /lib64/libmozjs-24.so
#26 0x00007ffff48b51de in Interpret(JSContext*, js::RunState&) () from /lib64/libmozjs-24.so
#27 0x00007ffff48bd2a8 in js::RunScript(JSContext*, js::RunState&) () from /lib64/libmozjs-24.so
#28 0x00007ffff48be425 in js::Execute(JSContext*, JS::Handle<JSScript*>, JSObject&, JS::Value*) () from /lib64/libmozjs-24.so
#29 0x00007ffff496d4ed in JS::Evaluate(JSContext*, JS::Handle<JSObject*>, JS::CompileOptions, unsigned short const*, unsigned long, JS::Value*) () from /lib64/libmozjs-24.so
#30 0x00007ffff496d5fc in JS::Evaluate(JSContext*, JS::Handle<JSObject*>, JS::CompileOptions, char const*, unsigned long, JS::Value*) () from /lib64/libmozjs-24.so
#31 0x00007ffff7b67de1 in gjs_eval_with_scope (context=0x6489c0, object=0x7fffe2936160, object@entry=0x0,
script=0x6252bd "imports.package.start({ name: \"gnome-maps\",\n", ' ' <repeats 24 times>, "version: \"3.19.4\",\n", ' ' <repeats 24 times>, "prefix: \"/home/hashem/sources/gnome-install\",\n", ' ' <repeats 24 times>, "libdir: \"/home/hash"...,
script@entry=0x625290 "#!/home/hashem/sources/gnome-install/bin/gjs\nimports.package.start({ name: \"gnome-maps\",\n", ' ' <repeats 24 times>, "version: \"3.19.4\",\n", ' ' <repeats 24 times>, "prefix: \"/home/hashem/sources/gnome-install\""..., script_len=234, script_len@entry=279, filename=filename@entry=0x7fffffffd5e4 "/home/hashem/sources/gnome-install/bin/gnome-maps", retval_p=retval_p@entry=0x7fffffffcf70)
at gjs/jsapi-util.cpp:1325
#32 0x00007ffff7b61033 in gjs_context_eval (js_context=js_context@entry=0x62a000,
script=0x625290 "#!/home/hashem/sources/gnome-install/bin/gjs\nimports.package.start({ name: \"gnome-maps\",\n", ' ' <repeats 24 times>, "version: \"3.19.4\",\n", ' ' <repeats 24 times>, "prefix: \"/home/hashem/sources/gnome-install\""..., script_len=279, filename=filename@entry=0x7fffffffd5e4 "/home/hashem/sources/gnome-install/bin/gnome-maps", exit_status_p=exit_status_p@entry=0x7fffffffcfe4,
error=error@entry=0x7fffffffcfe8) at gjs/context.cpp:645
#33 0x00000000004012f2 in main (argc=1, argv=0x7fffffffd110) at gjs/console.cpp:146