Comment 48 for bug 1714989

Revision history for this message
François-Xavier Thomas (fxt.airinov) wrote : Re: gnome-shell crashed with SIGSEGV in g_type_check_instance_cast() from st_label_set_text() from ffi_call_unix64() [Global App Menu specific?]

I have (what looks like) the same issue with another extension (specifically this commit: https://github.com/projecthamster/hamster-shell-extension/tree/07cea1824291cb818befd5fb473a065abe334bde).

The crash does not always happen (is it a race condition?), but, when it does, it always occurs right when clicking on a button to close a window.

JS and GDB stack traces are below, and I can provide a core dump and other debugging info if necessary.

--------------

JS stack trace :

org.gnome.Shell.desktop[2778]: == Stack trace for context 0x562dad808000 ==
org.gnome.Shell.desktop[2778]: #0 0x7ffdd07c5520 b /<email address hidden>/widgets/panelWidget.js:245 (0x7fa98fe16890 @ 105)
org.gnome.Shell.desktop[2778]: #1 0x7ffdd07c5580 I resource:///org/gnome/gjs/modules/_legacy.js:82 (0x7fa9e83c2c48 @ 71)
org.gnome.Shell.desktop[2778]: #2 0x7ffdd07c5650 b /<email address hidden>/widgets/panelWidget.js:186 (0x7fa98fe16670 @ 208)
org.gnome.Shell.desktop[2778]: #3 0x7ffdd07c56f0 I self-hosted:917 (0x7fa9e83ee4d8 @ 394)
org.gnome.Shell.desktop[2778]: #4 0x7ffdd07c57c0 b resource:///org/gnome/gjs/modules/overrides/Gio.js:90 (0x7fa9e8103670 @ 118)
kernel: gnome-shell[2778]: segfault at 100000016 ip 00007faa120f3e0d sp 00007ffdd07c4e30 error 4 in libgobject-2.0.so.0.5400.1[7faa120be000+52000]

GDB stack trace :

#0 0x00007f4c409ece0d in g_type_check_instance_cast () at /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#1 0x00007f4c3e15a768 in st_label_set_text (label=0x555574a9df60, text=0x55557754b990 "No activity") at ../src/st/st-label.c:331
#2 0x00007f4c3a64be18 in ffi_call_unix64 () at /usr/lib/x86_64-linux-gnu/libffi.so.6
#3 0x00007f4c3a64b87a in ffi_call () at /usr/lib/x86_64-linux-gnu/libffi.so.6
#4 0x00007f4c3f6af3c8 in () at /usr/lib/libgjs.so.0
#5 0x00007f4c3f6b0ca4 in () at /usr/lib/libgjs.so.0
#6 0x00007f4c3763fe6c in () at /usr/lib/x86_64-linux-gnu/libmozjs-52.so.0
#7 0x00007f4c37632eca in () at /usr/lib/x86_64-linux-gnu/libmozjs-52.so.0
#8 0x00007f4c3763f6d6 in () at /usr/lib/x86_64-linux-gnu/libmozjs-52.so.0
#9 0x00007f4c3763fcaf in () at /usr/lib/x86_64-linux-gnu/libmozjs-52.so.0
#10 0x00007f4c3763ff89 in () at /usr/lib/x86_64-linux-gnu/libmozjs-52.so.0
#11 0x00007f4c37433d09 in () at /usr/lib/x86_64-linux-gnu/libmozjs-52.so.0