GJS crash at launch in Gnome-Shell
System information
What is your operating system and version? OpenMandriva Cooker
What is your version of GJS? 1.64.0 and older like 1.63.3)
If the bug is related to GNOME Shell, what is your version of GNOME Shell? (3.36.0)
Bug information
Steps to reproduce
- Install OpenMandriva Cooker (development release)
- Install Gnome
- Launch gnome and observe crash.
Current behaviour
Coredump observed in journalctl
Stack trace of thread 1286:
#0 0x00007f48d5c5113d _ZN2JS17AddPersistentRootEPNS_14RootingContextENS_8RootKindEPNS_16PersistentRootedIPvEE (libmozjs-68.so.0 + 0x6c713d)
#1 0x00007f48d761c1a8 _ZN13GjsMaybeOwnedIP8JSObjectE4rootEP9JSContextRKS1_PFvN2JS6HandleIS1_EEPvESA_ (libgjs.so.0 + 0x3a1a8)
#2 0x00007f48d761c2ee _ZN14ObjectInstance16switch_to_rootedEP9JSContext (libgjs.so.0 + 0x3a2ee)
#3 0x00007f48d761774c _ZN14ObjectInstance22ensure_uses_toggle_refEP9JSContext (libgjs.so.0 + 0x3574c)
#4 0x00007f48d76179de _ZN10ObjectBase17associate_closureEP9JSContextP9_GClosure (libgjs.so.0 + 0x359de)
#5 0x00007f48d7617ba3 _ZN14ObjectInstance12connect_implEP9JSContextRKN2JS8CallArgsEb (libgjs.so.0 + 0x35ba3)
#6 0x00007f48d7617d0a _ZN10ObjectBase7connectEP9JSContextjPN2JS5ValueE (libgjs.so.0 + 0x35d0a)
#7 0x00007f48d574c0c5 _ZN2js23InternalCallOrConstructEP9JSContextRKN2JS8CallArgsENS_14MaybeConstructE (libmozjs-68.so.0 + 0x1c20c5)
#8 0x00007f48d5738b16 _ZL9InterpretP9JSContextRN2js8RunStateE (libmozjs-68.so.0 + 0x1aeb16)
#9 0x00007f48d5727619 _ZN2js9RunScriptEP9JSContextRNS_8RunStateE (libmozjs-68.so.0 + 0x19d619)
#10 0x00007f48d574e998
_ZN2js13ExecuteKernelEP9JSContextN2JS6HandleIP8JSScriptEER8JSObjectRKNS2_5ValueENS_16AbstractFramePtrEPS9_ (libmozjs-68.so.0 + 0x1c4998)
#11 0x00007f48d574ebc8 _ZN2js7ExecuteEP9JSContextN2JS6HandleIP8JSScriptEER8JSObjectPNS2_5ValueE (libmozjs-68.so.0 + 0x1c4bc8)
#12 0x00007f48d5804fdd _ZL20EvaluateSourceBufferIDsEbP9JSContextN2js9ScopeKindEN2JS6HandleIP8JSObjectEERKNS4_22ReadOnlyCompileOptionsERNS4_10SourceTextIT_EENS4_13MutableHandleINS4_5ValueEEE (libmozjs-68.so.0 + 0x27afdd)
#13 0x00007f48d580571a _ZN2JS8EvaluateEP9JSContextNS_6HandleINS_13StackGCVectorIP8JSObjectN2js15TempAllocPolicyEEEEERKNS_22ReadOnlyCompileOptionsERNS_10SourceTextIDsEENS_13MutableHandleINS_5ValueEEE (libmozjs-68.so.0 + 0x27b71a)
#14 0x00007f48d762a4af _ZN17GjsContextPrivate15eval_with_scopeEN2JS6HandleIP8JSObjectEEPKclS6_NS0_13MutableHandleINS0_5ValueEEE (libgjs.so.0 + 0x484af)
#15 0x00007f48d762a73f _ZN17GjsContextPrivate4evalEPKclS1_PiPP7_GError (libgjs.so.0 + 0x4873f)
#16 0x00007f48d762a9d9 gjs_context_eval (libgjs.so.0 + 0x489d9)
#17 0x00007f48d8551a78 gnome_shell_plugin_start (libgnome-shell.so + 0x23fa78)
#18 0x00007f48d73e9b2b meta_compositor_manage (libmutter-6.so.0 + 0xd6b2b)
#19 0x00007f48d740fe80 meta_run (libmutter-6.so.0 + 0xfce80)
#20 0x0000000000203925 main (gnome-shell + 0x3925)
#21 0x00007f48d7151dbb __libc_start_main (libc.so.6 + 0x26dbb)
#22 0x000000000020334a _start (gnome-shell + 0x334a)
Full journalctl log here: https://gitlab.gnome.org/snippets/1042
Worth to add, this crash in on both gjs 1.64 with mozjs68 and even with unstable gjs 1.63.3 with mozjs60.
No idea how to fix it...