You are not logged in.
This looks promising
https://bugzilla.gnome.org/show_bug.cgi?id=783935
Offline
Awesome; thanks to your finding i was able to compile gjs as debug:
packages/gjs/trunk$ svn diff PKGBUILD
Index: PKGBUILD
===================================================================
--- PKGBUILD (révision 300688)
+++ PKGBUILD (copie de travail)
@@ -26,7 +26,8 @@
build() {
cd $pkgname
- ./configure --prefix=/usr --disable-static --libexecdir=/usr/lib
+ export CXXFLAGS='-g -O0'
+ ./configure --prefix=/usr --disable-static --libexecdir=/usr/lib --enable-debug-symbols=-gdwarf-2
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
make
}
After a crash:
$ coredumpctl -1
TIME PID UID GID SIG COREFILE EXE
Mon 2017-07-17 15:34:49 CEST 27368 1000 1000 11 present /usr/bin/gnome-shell
$ coredumpctl gdb 27368
Program terminated with signal SIGSEGV, Segmentation fault.
#0 js::GCMethods<JSObject*>::needsPostBarrier (v=0x7fbc0a9548c0) at /usr/include/mozjs-38/js/RootingAPI.h:663
663 return v != nullptr && gc::IsInsideNursery(reinterpret_cast<gc::Cell*>(v));
[Current thread is 1 (Thread 0x7fbc7c3d69c0 (LWP 27368))]
(gdb) bt
#0 0x00007fbc7b997945 in js::GCMethods<JSObject*>::needsPostBarrier(JSObject*) (v=0x7fbc0a9548c0) at /usr/include/mozjs-38/js/RootingAPI.h:663
#1 0x00007fbc7b997945 in JS::Heap<JSObject*>::set(JSObject*) (newPtr=0x0, this=0x254c260) at /usr/include/mozjs-38/js/RootingAPI.h:296
#2 0x00007fbc7b997945 in JS::Heap<JSObject*>::operator=(JSObject* const&) (p=<optimized out>, this=0x254c260) at /usr/include/mozjs-38/js/RootingAPI.h:266
#3 0x00007fbc7b997945 in GjsMaybeOwned<JSObject*>::reset() (this=0x254c250) at ./gjs/jsapi-util-root.h:267
#4 0x00007fbc7b997945 in closure_clear_idle(void*) (data=0x254c220) at gi/closure.cpp:133
#5 0x00007fbc79abd8c5 in g_main_context_dispatch () at /usr/lib/libglib-2.0.so.0
#6 0x00007fbc79abdc88 in () at /usr/lib/libglib-2.0.so.0
#7 0x00007fbc79abdfa2 in g_main_loop_run () at /usr/lib/libglib-2.0.so.0
#8 0x00007fbc7b27508c in meta_run () at /usr/lib/libmutter-0.so.0
#9 0x0000000000401ff7 in main ()
Offline
Thanks for the most promising thread I could find on this problem. I've been affected by this off and on over the past year.
For what it might be worth: the bt posted above showed me that libmozjs is involved in these freezes.
I noticed that when I have firefox running - and I have gnome-shell-integration installed as an add-on on my platforms and I also use gnome-shell-extension taskbar - these segfaults are catastrophic - meaning they cause me to have to restart lightdm (or gdm - I've used both). gnome-shell isn't auto-restarted in that case. I haven't root caused that yet - nor has anyone, I think.
I stopped using firefox for the past few hours - I had generally only been using firefox for gnome-shell-integration and the purpose of management of the gnome extensions, otherwise I use chrome for general browsing, so no big for me to stop using it for now.
I've seen twice now without using firefox that I still get the segfaults from libgjs.so.0, but gnome-shell auto restarts cleanly - it looks a lot like the behavior seen with a controlled restart using Alt-F2 <r>, for example.
I'll keep watching it. My first order of business is to stop the catastrophes where I need to restart the display manager. If it means not keeping firefox running for now - I'll live with it.
This bug with libgjs dates way back - there seem to be many bug reports that taper off to no resolution.
Again - this back-trace with symbols is a big help - thanks for posting that and the link to the bugzilla-gnome work.
Offline
gjs patch has ben included in 1.48.6-1 (no need to patch it anymore) but i'm still getting some crashes.
Offline