Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Segfault in libcjs.so - Cinnamon crash #6755

Closed
mcarans opened this issue Aug 2, 2017 · 84 comments
Closed

Segfault in libcjs.so - Cinnamon crash #6755

mcarans opened this issue Aug 2, 2017 · 84 comments

Comments

@mcarans
Copy link

mcarans commented Aug 2, 2017

 * Cinnamon version (cinnamon --version) - 3.4.4
 * Distribution - Mint 18.2
 * Graphics hardware *and* driver used
 * 32 or 64 bit

Output of "inxi -F && dmesg | grep -i error"
System:    Host: Holly Kernel: 4.10.0-28-generic x86_64 (64 bit)
           Desktop: Cinnamon 3.4.4  Distro: Linux Mint 18.2 Sonya
Machine:   System: ASUSTeK (portable) product: UX303UA v: 1.0
           Mobo: ASUSTeK model: UX303UA v: 1.0
           Bios: American Megatrends v: UX303UA.300 date: 07/01/2016
CPU:       Dual core Intel Core i7-6500U (-HT-MCP-) cache: 4096 KB 
           clock speeds: max: 3100 MHz 1: 499 MHz 2: 530 MHz 3: 499 MHz
           4: 499 MHz
Graphics:  Card: Intel Sky Lake Integrated Graphics
           Display Server: X.Org 1.18.4 driver: intel
           Resolution: 2560x1440@59.95hz
           GLX Renderer: Mesa DRI Intel HD Graphics 520 (Skylake GT2)
           GLX Version: 3.0 Mesa 17.0.7
Audio:     Card Intel Sunrise Point-LP HD Audio driver: snd_hda_intel
           Sound: Advanced Linux Sound Architecture v: k4.10.0-28-generic
Network:   Card: Intel Wireless 7265 driver: iwlwifi
           IF: wlp1s0 state: up mac: 48:45:20:2f:35:0a
Drives:    HDD Total Size: 384.4GB (16.7% used)
           ID-1: /dev/sda model: HFS256G32MND size: 256.1GB
           ID-2: USB /dev/sdb model: Flash_Drive_FIT size: 128.3GB
Partition: ID-1: / size: 101G used: 30G (31%) fs: ext4 dev: /dev/sda3
           ID-2: swap-1 size: 16.43GB used: 0.00GB (0%) fs: swap dev: /dev/sda4
RAID:      No RAID devices: /proc/mdstat, md_mod kernel module present
Sensors:   System Temperatures: cpu: 48.5C mobo: N/A
           Fan Speeds (in rpm): cpu: 2200
Info:      Processes: 258 Uptime: 5:04 Memory: 4116.8/11445.7MB
           Client: Shell (bash) inxi: 2.2.35 
[    0.209414] acpi PNP0A08:00: _OSC failed (AE_ERROR); disabling ASPM
[    3.374626] EXT4-fs (sda3): re-mounted. Opts: errors=remount-ro
[    3.526870] tpm_crb: probe of MSFT0101:00 failed with error -16
[    3.608553] iwlwifi 0000:01:00.0: Direct firmware load for iwlwifi-7265D-26.ucode failed with error -2
[    3.608955] iwlwifi 0000:01:00.0: Direct firmware load for iwlwifi-7265D-25.ucode failed with error -2
[    3.609399] iwlwifi 0000:01:00.0: Direct firmware load for iwlwifi-7265D-24.ucode failed with error -2
[    3.609412] iwlwifi 0000:01:00.0: Direct firmware load for iwlwifi-7265D-23.ucode failed with error -2
[ 4947.459104] cinnamon[2868]: segfault at 7f2611ffffe8 ip 00007f2667dda305 sp 00007fffb416b9d0 error 4 in libcjs.so.0.0.0[7f2667db1000+c1000]
[14207.718343] cinnamon[11298]: segfault at 7ff1f87fffe8 ip 00007ff25307f305 sp 00007ffca485d0a0 error 4 in libcjs.so.0.0.0[7ff253056000+c1000]

Issue
segfault in libcjs.so

Steps to reproduce
Hard to reproduce consistently but more likely to happen when switching windows

Expected behaviour
No crash

Other information

@SethosII
Copy link

SethosII commented Aug 2, 2017

I also experience this issue lately.

Here are the occurences (based on /var/log/kern.log):

Jul 31 15:21:19 LEX-072 kernel: [10725.273384] cinnamon[1823]: segfault at 7fc4b29fffe8 ip 00007fc4f3354305 sp 00007fff7b4dd540 error 4 in libcjs.so.0.0.0[7fc4f332b000+c1000]
Aug  1 08:24:58 LEX-072 kernel: [ 5347.226812] cinnamon[1743]: segfault at 7f24eddfffe8 ip 00007f25558a5305 sp 00007ffcd62c72d0 error 4 in libcjs.so.0.0.0[7f255587c000+c1000]
Aug  1 09:15:11 LEX-072 kernel: [ 8360.702879] cinnamon[4119]: segfault at 7f8fab1fffe8 ip 00007f90077c9305 sp 00007ffd6ba952f0 error 4 in libcjs.so.0.0.0[7f90077a0000+c1000]
Aug  2 12:20:56 LEX-072 kernel: [15538.051488] cinnamon[1692]: segfault at 7fc666dfffe8 ip 00007fc6c2ca8305 sp 00007ffe03979730 error 4 in libcjs.so.0.0.0[7fc6c2c7f000+c1000]

Here is my output of inxi -F && dmesg | grep -i error:

System:    Host: LEX-072 Kernel: 4.10.0-28-generic x86_64 (64 bit) Desktop: Cinnamon 3.4.4
           Distro: Linux Mint 18.2 Sonya
Machine:   System: VMware product: VMware Virtual Platform
           Mobo: Intel model: 440BX Desktop Reference Platform Bios: Phoenix v: 6.00 date: 07/02/2015
CPU:       Quad core Intel Core i5-5200U (-MCP-) cache: 3072 KB 
           clock speeds: max: 2194 MHz 1: 2194 MHz 2: 2194 MHz 3: 2194 MHz 4: 2194 MHz
Graphics:  Card: VMware SVGA II Adapter
           Display Server: X.Org 1.18.4 drivers: vmware (unloaded: fbdev,vesa) Resolution: 2556x1249@60.00hz
           GLX Renderer: Gallium 0.4 on SVGA3D; build GLX Version: 3.0 Mesa 17.0.7
Audio:     Card Ensoniq ES1371 / Creative Labs CT2518/ES1373 driver: snd_ens1371
           Sound: Advanced Linux Sound Architecture v: k4.10.0-28-generic
Network:   Card: Intel 82545EM Gigabit Ethernet Controller (Copper) driver: e1000
           IF: ens33 state: up speed: 1000 Mbps duplex: full mac: 00:0c:29:e8:f4:57
Drives:    HDD Total Size: 21.5GB (62.2% used) ID-1: /dev/sda model: VMware_Virtual_S size: 21.5GB
Partition: ID-1: / size: 20G used: 13G (68%) fs: ext4 dev: /dev/sda1
RAID:      No RAID devices: /proc/mdstat, md_mod kernel module present
Sensors:   System Temperatures: cpu: 100.0C mobo: N/A
           Fan Speeds (in rpm): cpu: N/A
Info:      Processes: 272 Uptime: 5:27 Memory: 1723.3/3931.1MB Client: Shell (bash) inxi: 2.2.35 
[    8.917191] EXT4-fs (sda1): re-mounted. Opts: errors=remount-ro,user_xattr,acl
[15538.051488] cinnamon[1692]: segfault at 7fc666dfffe8 ip 00007fc6c2ca8305 sp 00007ffe03979730 error 4 in libcjs.so.0.0.0[7fc6c2c7f000+c1000]

I also can't give a way to reproduce this error, seems very random to me.

The applets I use are IcingTaskManager and Weather.

@linuxmint linuxmint deleted a comment Aug 3, 2017
@mcarans
Copy link
Author

mcarans commented Aug 3, 2017

I am also using Icing Task Manager, but even when I disabled it for a while, I still got the crash, so don't think it is related to that applet.

@mcarans
Copy link
Author

mcarans commented Aug 3, 2017

Author of Icing Task Manager confirmed it is not in Icing causing the crash and referred to this upstream issue: GJS crash in needsPostBarrier, possible access from wrong thread

@leigh123linux
Copy link
Contributor

linuxmint/cjs#49

@leigh123linux
Copy link
Contributor

@mcarans without a full backtrace (complete with cjs debug symbols) this issue is unlikely to be traced and fixed.

@mcarans
Copy link
Author

mcarans commented Aug 4, 2017

How do I produce a backtrace?

@leigh123linux
Copy link
Contributor

@leigh123linux
Copy link
Contributor

@mtwebster Can you guide them on how to produce a useful backtrace as this process is automatic in fedora :-)

@mcarans
Copy link
Author

mcarans commented Aug 4, 2017

The link above talks about using another computer to ssh. Is there any simple way to get a backtrace that doesn't involve using another computer?

Also this crash did not occur with Mint 18.1 and earlier, so can I downgrade CJS to see if that helps or will that cause other problems?

@itzexor
Copy link
Contributor

itzexor commented Aug 4, 2017

You can use this script[0] to dump a backtrace when cinnamon crashes without needing a second computer. Run it as ./cin-debug cinnamon and it will prompt you for password because root privs are required to attach the debugger to a running process. After cinnamon crashes there will be a log in your home directory with the backtrace.

[0] https://raw.githubusercontent.com/linuxmint/Cinnamon/master/utils/cin-debug

Note: the libcjs-dbg package was only recently added to cjs for dpkg-based distros, so I'm not sure that debug symbols are currently available in Mint. You may need to build cjs manually to get them. Without debug symbols the produced backtrace will be unusable.

@mcarans
Copy link
Author

mcarans commented Aug 9, 2017

I am not sure if this gives what you need:

Thread 1 "cinnamon" received signal SIGSEGV, Segmentation fault.

Thread 12 (Thread 0x7f67c169f700 (LWP 9116)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f67c8d436c0 in PR_WaitCondVar () from /usr/lib/x86_64-linux-gnu/libnspr4.so
#2  0x00007f67cec25eb1 in ?? () from /usr/lib/x86_64-linux-gnu/libjs.so.0
#3  0x00007f67c8d490a8 in ?? () from /usr/lib/x86_64-linux-gnu/libnspr4.so
#4  0x00007f67d70d46ba in start_thread (arg=0x7f67c169f700) at pthread_create.c:333
#5  0x00007f67d6e0a3dd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 11 (Thread 0x7f67c1720700 (LWP 9115)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f67c8d436c0 in PR_WaitCondVar () from /usr/lib/x86_64-linux-gnu/libnspr4.so
#2  0x00007f67cec25eb1 in ?? () from /usr/lib/x86_64-linux-gnu/libjs.so.0
#3  0x00007f67c8d490a8 in ?? () from /usr/lib/x86_64-linux-gnu/libnspr4.so
#4  0x00007f67d70d46ba in start_thread (arg=0x7f67c1720700) at pthread_create.c:333
#5  0x00007f67d6e0a3dd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 10 (Thread 0x7f67c17a1700 (LWP 9114)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f67c8d436c0 in PR_WaitCondVar () from /usr/lib/x86_64-linux-gnu/libnspr4.so
#2  0x00007f67cec25eb1 in ?? () from /usr/lib/x86_64-linux-gnu/libjs.so.0
#3  0x00007f67c8d490a8 in ?? () from /usr/lib/x86_64-linux-gnu/libnspr4.so
#4  0x00007f67d70d46ba in start_thread (arg=0x7f67c17a1700) at pthread_create.c:333
#5  0x00007f67d6e0a3dd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 9 (Thread 0x7f67c1822700 (LWP 9113)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f67c8d436c0 in PR_WaitCondVar () from /usr/lib/x86_64-linux-gnu/libnspr4.so
#2  0x00007f67cec25eb1 in ?? () from /usr/lib/x86_64-linux-gnu/libjs.so.0
#3  0x00007f67c8d490a8 in ?? () from /usr/lib/x86_64-linux-gnu/libnspr4.so
#4  0x00007f67d70d46ba in start_thread (arg=0x7f67c1822700) at pthread_create.c:333
#5  0x00007f67d6e0a3dd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 8 (Thread 0x7f67c18a3700 (LWP 9112)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f67c8d436c0 in PR_WaitCondVar () from /usr/lib/x86_64-linux-gnu/libnspr4.so
#2  0x00007f67cec25eb1 in ?? () from /usr/lib/x86_64-linux-gnu/libjs.so.0
#3  0x00007f67c8d490a8 in ?? () from /usr/lib/x86_64-linux-gnu/libnspr4.so
#4  0x00007f67d70d46ba in start_thread (arg=0x7f67c18a3700) at pthread_create.c:333
#5  0x00007f67d6e0a3dd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 7 (Thread 0x7f67c1924700 (LWP 9111)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f67c8d436c0 in PR_WaitCondVar () from /usr/lib/x86_64-linux-gnu/libnspr4.so
#2  0x00007f67cec25eb1 in ?? () from /usr/lib/x86_64-linux-gnu/libjs.so.0
#3  0x00007f67c8d490a8 in ?? () from /usr/lib/x86_64-linux-gnu/libnspr4.so
#4  0x00007f67d70d46ba in start_thread (arg=0x7f67c1924700) at pthread_create.c:333
#5  0x00007f67d6e0a3dd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 6 (Thread 0x7f67c19a5700 (LWP 9110)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f67c8d436c0 in PR_WaitCondVar () from /usr/lib/x86_64-linux-gnu/libnspr4.so
#2  0x00007f67cec25eb1 in ?? () from /usr/lib/x86_64-linux-gnu/libjs.so.0
#3  0x00007f67c8d490a8 in ?? () from /usr/lib/x86_64-linux-gnu/libnspr4.so
#4  0x00007f67d70d46ba in start_thread (arg=0x7f67c19a5700) at pthread_create.c:333
#5  0x00007f67d6e0a3dd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 5 (Thread 0x7f67c1a26700 (LWP 9109)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f67c8d436c0 in PR_WaitCondVar () from /usr/lib/x86_64-linux-gnu/libnspr4.so
#2  0x00007f67cec25eb1 in ?? () from /usr/lib/x86_64-linux-gnu/libjs.so.0
#3  0x00007f67c8d490a8 in ?? () from /usr/lib/x86_64-linux-gnu/libnspr4.so
#4  0x00007f67d70d46ba in start_thread (arg=0x7f67c1a26700) at pthread_create.c:333
#5  0x00007f67d6e0a3dd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 4 (Thread 0x7f67c2227700 (LWP 9108)):
#0  0x00007f67d6dfe70d in poll () at ../sysdeps/unix/syscall-template.S:84
#1  0x00007f67d733438c in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f67d733449c in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f67c222f28d in ?? () from /usr/lib/x86_64-linux-gnu/gio/modules/libdconfsettings.so
#4  0x00007f67d735abb5 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007f67d70d46ba in start_thread (arg=0x7f67c2227700) at pthread_create.c:333
#6  0x00007f67d6e0a3dd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 3 (Thread 0x7f67c3ff9700 (LWP 9107)):
#0  0x00007f67d6dfe70d in poll () at ../sysdeps/unix/syscall-template.S:84
#1  0x00007f67d733438c in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f67d7334712 in g_main_loop_run () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f67d79329d6 in ?? () from /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0
#4  0x00007f67d735abb5 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007f67d70d46ba in start_thread (arg=0x7f67c3ff9700) at pthread_create.c:333
#6  0x00007f67d6e0a3dd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 2 (Thread 0x7f67c47fa700 (LWP 9106)):
#0  0x00007f67d6dfe70d in poll () at ../sysdeps/unix/syscall-template.S:84
#1  0x00007f67d733438c in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f67d733449c in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f67d73344d9 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007f67d735abb5 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007f67d70d46ba in start_thread (arg=0x7f67c47fa700) at pthread_create.c:333
#6  0x00007f67d6e0a3dd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 1 (Thread 0x7f67d8d2eac0 (LWP 9105)):
#0  js::GCMethods<JSObject*>::needsPostBarrier (v=0x7f6784e42780) at /usr/include/mozjs-38/js/RootingAPI.h:663
#1  JS::Heap<JSObject*>::set (newPtr=0x0, this=0x56001d3a7848) at /usr/include/mozjs-38/js/RootingAPI.h:296
#2  JS::Heap<JSObject*>::operator= (p=<optimised out>, this=0x56001d3a7848) at /usr/include/mozjs-38/js/RootingAPI.h:266
#3  GjsMaybeOwned<JSObject*>::reset (this=0x56001d3a7838) at ./cjs/jsapi-util-root.h:267
#4  closure_clear_idle (data=0x56001d3a7810) at gi/closure.cpp:131
#5  0x00007f67d733404a in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#6  0x00007f67d73343f0 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#7  0x00007f67d7334712 in g_main_loop_run () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#8  0x00007f67d8718988 in meta_run () from /usr/lib/x86_64-linux-gnu/libmuffin.so.0
#9  0x000056001ca31992 in ?? ()
#10 0x00007f67d6d23830 in __libc_start_main (main=0x56001ca31540, argc=2, argv=0x7fffd8dfef78, init=<optimised out>, fini=<optimised out>, rtld_fini=<optimised out>, stack_end=0x7fffd8dfef68) at ../csu/libc-start.c:291
#11 0x000056001ca31a89 in ?? ()

@leigh123linux
Copy link
Contributor

@mcarans

This commit should fix the issue

linuxmint/cjs@57c3b9e

#0  js::GCMethods<JSObject*>::needsPostBarrier (v=0x7f6784e42780) at /usr/include/mozjs-38/js/RootingAPI.h:663
#1  JS::Heap<JSObject*>::set (newPtr=0x0, this=0x56001d3a7848) at /usr/include/mozjs-38/js/RootingAPI.h:296
#2  JS::Heap<JSObject*>::operator= (p=<optimised out>, this=0x56001d3a7848) at /usr/include/mozjs-38/js/RootingAPI.h:266
#3  GjsMaybeOwned<JSObject*>::reset (this=0x56001d3a7838) at ./cjs/jsapi-util-root.h:267

@clem could you tag cjs please?

@mcarans
Copy link
Author

mcarans commented Aug 9, 2017

Does 3.4-maintenance branch have that fix (as that branch as of 6 days ago is what I have installed currently)?

@tetious
Copy link

tetious commented Aug 10, 2017

I'm seeing this crash too, with cjs/libcjs 3.4.4 which should have the mentioned fix. So I don't think it is fixed.

cinnamon[2181]: segfault at 7fba62dfffe8 ip 00007fbac7c22555 sp 00007ffd826ba140 error 4 in libcjs.so.0.0.0[7fbac7bf9000+c2000]

@mtwebster
Copy link
Member

mtwebster commented Aug 10, 2017

@tetious can you provide the output of the following (just a couple of sanity checks):

cd /
find . -name "libcjs*" 2>/dev/null

and (assuming you're on mint or debian-based - I want to make sure only the correct versions are there)

dpkg --list | grep cjs

Thanks

@tetious
Copy link

tetious commented Aug 10, 2017

Here you go!

./var/lib/dpkg/info/libcjs0f.shlibs
./var/lib/dpkg/info/libcjs0f.triggers
./var/lib/dpkg/info/libcjs0f.md5sums
./var/lib/dpkg/info/libcjs0f.list
./var/cache/apt/archives/libcjs0f_3.4.4+sonya_amd64.deb
./var/cache/apt/archives/libcjs0f_3.4.3+sonya_amd64.deb
./usr/share/doc/libcjs0f
./usr/lib/libcjs.so.0.0.0
./usr/lib/libcjs.so.0
ii  cjs                                         3.4.4+sonya                                  amd64        Mozilla-based javascript bindings for the Cinnamon platform
ii  libcjs0f                                    3.4.4+sonya                                  amd64        Mozilla-based javascript bindings for the Cinnamon platform

@mcarans
Copy link
Author

mcarans commented Aug 14, 2017

I had the libcjs crash again this morning running 3.4.4+sonya. I will try to capture the stacktrace with the script @itzexor provided the next time it happens.

@mcarans
Copy link
Author

mcarans commented Aug 14, 2017

Here is the stacktrace:

Thread 1 "cinnamon" received signal SIGSEGV, Segmentation fault.

Thread 12 (Thread 0x7f47935fa700 (LWP 11401)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f479ece76c0 in PR_WaitCondVar () from /usr/lib/x86_64-linux-gnu/libnspr4.so
#2  0x00007f47a4bc9eb1 in ?? () from /usr/lib/x86_64-linux-gnu/libjs.so.0
#3  0x00007f479eced0a8 in ?? () from /usr/lib/x86_64-linux-gnu/libnspr4.so
#4  0x00007f47ad0786ba in start_thread (arg=0x7f47935fa700) at pthread_create.c:333
#5  0x00007f47acdae3dd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 11 (Thread 0x7f479367b700 (LWP 11400)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f479ece76c0 in PR_WaitCondVar () from /usr/lib/x86_64-linux-gnu/libnspr4.so
#2  0x00007f47a4bc9eb1 in ?? () from /usr/lib/x86_64-linux-gnu/libjs.so.0
#3  0x00007f479eced0a8 in ?? () from /usr/lib/x86_64-linux-gnu/libnspr4.so
#4  0x00007f47ad0786ba in start_thread (arg=0x7f479367b700) at pthread_create.c:333
#5  0x00007f47acdae3dd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 10 (Thread 0x7f47936fc700 (LWP 11399)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f479ece76c0 in PR_WaitCondVar () from /usr/lib/x86_64-linux-gnu/libnspr4.so
#2  0x00007f47a4bc9eb1 in ?? () from /usr/lib/x86_64-linux-gnu/libjs.so.0
#3  0x00007f479eced0a8 in ?? () from /usr/lib/x86_64-linux-gnu/libnspr4.so
#4  0x00007f47ad0786ba in start_thread (arg=0x7f47936fc700) at pthread_create.c:333
#5  0x00007f47acdae3dd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 9 (Thread 0x7f479377d700 (LWP 11398)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f479ece76c0 in PR_WaitCondVar () from /usr/lib/x86_64-linux-gnu/libnspr4.so
#2  0x00007f47a4bc9eb1 in ?? () from /usr/lib/x86_64-linux-gnu/libjs.so.0
#3  0x00007f479eced0a8 in ?? () from /usr/lib/x86_64-linux-gnu/libnspr4.so
#4  0x00007f47ad0786ba in start_thread (arg=0x7f479377d700) at pthread_create.c:333
#5  0x00007f47acdae3dd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 8 (Thread 0x7f47937fe700 (LWP 11397)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f479ece76c0 in PR_WaitCondVar () from /usr/lib/x86_64-linux-gnu/libnspr4.so
#2  0x00007f47a4bc9eb1 in ?? () from /usr/lib/x86_64-linux-gnu/libjs.so.0
#3  0x00007f479eced0a8 in ?? () from /usr/lib/x86_64-linux-gnu/libnspr4.so
#4  0x00007f47ad0786ba in start_thread (arg=0x7f47937fe700) at pthread_create.c:333
#5  0x00007f47acdae3dd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 7 (Thread 0x7f47980c9700 (LWP 11396)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f479ece76c0 in PR_WaitCondVar () from /usr/lib/x86_64-linux-gnu/libnspr4.so
#2  0x00007f47a4bc9eb1 in ?? () from /usr/lib/x86_64-linux-gnu/libjs.so.0
#3  0x00007f479eced0a8 in ?? () from /usr/lib/x86_64-linux-gnu/libnspr4.so
#4  0x00007f47ad0786ba in start_thread (arg=0x7f47980c9700) at pthread_create.c:333
#5  0x00007f47acdae3dd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 6 (Thread 0x7f479814a700 (LWP 11395)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f479ece76c0 in PR_WaitCondVar () from /usr/lib/x86_64-linux-gnu/libnspr4.so
#2  0x00007f47a4bc9eb1 in ?? () from /usr/lib/x86_64-linux-gnu/libjs.so.0
#3  0x00007f479eced0a8 in ?? () from /usr/lib/x86_64-linux-gnu/libnspr4.so
#4  0x00007f47ad0786ba in start_thread (arg=0x7f479814a700) at pthread_create.c:333
#5  0x00007f47acdae3dd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 5 (Thread 0x7f47981cb700 (LWP 11394)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f479ece76c0 in PR_WaitCondVar () from /usr/lib/x86_64-linux-gnu/libnspr4.so
#2  0x00007f47a4bc9eb1 in ?? () from /usr/lib/x86_64-linux-gnu/libjs.so.0
#3  0x00007f479eced0a8 in ?? () from /usr/lib/x86_64-linux-gnu/libnspr4.so
#4  0x00007f47ad0786ba in start_thread (arg=0x7f47981cb700) at pthread_create.c:333
#5  0x00007f47acdae3dd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 4 (Thread 0x7f4793fff700 (LWP 11393)):
#0  0x00007f47acda270d in poll () at ../sysdeps/unix/syscall-template.S:84
#1  0x00007f47ad2d838c in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f47ad2d849c in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f47981d328d in ?? () from /usr/lib/x86_64-linux-gnu/gio/modules/libdconfsettings.so
#4  0x00007f47ad2febb5 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007f47ad0786ba in start_thread (arg=0x7f4793fff700) at pthread_create.c:333
#6  0x00007f47acdae3dd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 3 (Thread 0x7f4799f9d700 (LWP 11392)):
#0  0x00007f47acda270d in poll () at ../sysdeps/unix/syscall-template.S:84
#1  0x00007f47ad2d838c in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f47ad2d8712 in g_main_loop_run () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f47ad8d69d6 in ?? () from /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0
#4  0x00007f47ad2febb5 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007f47ad0786ba in start_thread (arg=0x7f4799f9d700) at pthread_create.c:333
#6  0x00007f47acdae3dd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 2 (Thread 0x7f479a79e700 (LWP 11391)):
#0  0x00007f47acda270d in poll () at ../sysdeps/unix/syscall-template.S:84
#1  0x00007f47ad2d838c in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f47ad2d849c in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f47ad2d84d9 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007f47ad2febb5 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007f47ad0786ba in start_thread (arg=0x7f479a79e700) at pthread_create.c:333
#6  0x00007f47acdae3dd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 1 (Thread 0x7f47aecd2ac0 (LWP 11390)):
#0  js::GCMethods<JSObject*>::needsPostBarrier (v=0x7f474bf2aec0) at /usr/include/mozjs-38/js/RootingAPI.h:663
#1  JS::Heap<JSObject*>::set (newPtr=0x0, this=0x55d9c7e2f7a8) at /usr/include/mozjs-38/js/RootingAPI.h:296
#2  JS::Heap<JSObject*>::operator= (p=<optimised out>, this=0x55d9c7e2f7a8) at /usr/include/mozjs-38/js/RootingAPI.h:266
#3  GjsMaybeOwned<JSObject*>::reset (this=0x55d9c7e2f798) at ./cjs/jsapi-util-root.h:267
#4  closure_clear_idle (data=0x55d9c7e2f770) at gi/closure.cpp:131
#5  0x00007f47ad2d804a in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#6  0x00007f47ad2d83f0 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#7  0x00007f47ad2d8712 in g_main_loop_run () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#8  0x00007f47ae6bca28 in meta_run () from /usr/lib/x86_64-linux-gnu/libmuffin.so.0
#9  0x000055d9c4ff8992 in ?? ()
#10 0x00007f47accc7830 in __libc_start_main (main=0x55d9c4ff8540, argc=3, argv=0x7ffcf8deffc8, init=<optimised out>, fini=<optimised out>, rtld_fini=<optimised out>, stack_end=0x7ffcf8deffb8) at ../csu/libc-start.c:291
#11 0x000055d9c4ff8a89 in ?? ()

I guess the ?? means there aren't debug symbols - if you need them, please tell me the steps to compile a debug version of what you need.

@leigh123linux
Copy link
Contributor

@mcarans The backtrace is complete enough.

@mtwebster Is it possible to provide some cjs deb packages including the fix from https://bugzilla.gnome.org/show_bug.cgi?id=785657#c7 for testing.

@naith
Copy link

naith commented Aug 14, 2017

I have this same trouble. Cinnamon crashes with SIGSEGV today in twice. Mint 18.2.

ii  cjs                                          3.4.4+sonya                                  amd64        Mozilla-based javascript bindings for the Cinnamon platform
ii  libcjs0f                                     3.4.4+sonya                                  amd64        Mozilla-based javascript bindings for the Cinnamon platform

Backtrace:

removed useless backtrace

@mtwebster
Copy link
Member

Please try these - download all of them first, then run, from the directory they're in,

sudo dpkg -i *cjs*.deb

(make sure these are the only cjs packages in that folder also)

https://dl.dropboxusercontent.com/u/8201170/libcjs-dev_3.4.3_amd64.deb
https://dl.dropboxusercontent.com/u/8201170/libcjs-dbg_3.4.3_amd64.deb
https://dl.dropboxusercontent.com/u/8201170/libcjs0f_3.4.3_amd64.deb
https://dl.dropboxusercontent.com/u/8201170/cjs_3.4.3_amd64.deb

If anyone needs them I'll do some 32-bit ones also.

@mtwebster
Copy link
Member

Anyone who hasn't yet, please report what graphics hardware and driver you're on

@SethosII
Copy link

For me it is VMware:

> lshw -c video
  *-display               
       description: VGA compatible controller
       product: SVGA II Adapter
       vendor: VMware
       physical id: f
       bus info: pci@0000:00:0f.0
       version: 00
       width: 32 bits
       clock: 33MHz
       capabilities: vga_controller bus_master cap_list rom
       configuration: driver=vmwgfx latency=64
       resources: irq:16 ioport:1070(size=16) memory:e8000000-efffffff memory:fe000000-fe7fffff memory:c0000-dffff
> modinfo vmwgfx
filename:       /lib/modules/4.11.0-13-generic/kernel/drivers/gpu/drm/vmwgfx/vmwgfx.ko
version:        2.12.0.0
license:        GPL and additional rights
description:    Standalone drm driver for the VMware SVGA device
author:         VMware Inc. and others
srcversion:     8BD244F277F2196E072E3C6
alias:          pci:v000015ADd00000405sv*sd*bc*sc*i*
depends:        ttm,drm,drm_kms_helper
intree:         Y
vermagic:       4.11.0-13-generic SMP mod_unload 
parm:           enable_fbdev:Enable vmwgfx fbdev (int)
parm:           force_dma_api:Force using the DMA API for TTM pages (int)
parm:           restrict_iommu:Try to limit IOMMU usage for TTM pages (int)
parm:           force_coherent:Force coherent TTM pages (int)
parm:           restrict_dma_mask:Restrict DMA mask to 44 bits with IOMMU (int)
parm:           assume_16bpp:Assume 16-bpp when filtering modes (int)

@naith
Copy link

naith commented Aug 15, 2017

Dell E6500 notebook

~ $ sudo lshw -class video
  *-display:0             
       description: VGA compatible controller
       product: Mobile 4 Series Chipset Integrated Graphics Controller
       vendor: Intel Corporation
       physical id: 2
       bus info: pci@0000:00:02.0
       version: 07
       width: 64 bits
       clock: 33MHz
       capabilities: msi pm vga_controller bus_master cap_list rom
       configuration: driver=i915 latency=0
       resources: irq:30 memory:f6c00000-f6ffffff memory:e0000000-efffffff ioport:ef98(size=8) memory:c0000-dffff
  *-display:1 UNCLAIMED
       description: Display controller
       product: Mobile 4 Series Chipset Integrated Graphics Controller
       vendor: Intel Corporation
       physical id: 2.1
       bus info: pci@0000:00:02.1
       version: 07
       width: 64 bits
       clock: 33MHz
       capabilities: pm bus_master cap_list
       configuration: latency=0
       resources: memory:f6b00000-f6bfffff

~ $ modinfo i915
filename:       /lib/modules/4.10.0-32-generic/kernel/drivers/gpu/drm/i915/i915.ko
license:        GPL and additional rights
description:    Intel Graphics
author:         Intel Corporation
author:         Tungsten Graphics, Inc.
firmware:       i915/bxt_dmc_ver1_07.bin
firmware:       i915/skl_dmc_ver1_26.bin
firmware:       i915/kbl_dmc_ver1_01.bin
firmware:       i915/skl_guc_ver6_1.bin
srcversion:     F0E9CF22A8DCA43307F94E0
alias:          pci:v00008086d0000593Bsv*sd*bc03sc*i*
alias:          pci:v00008086d00005927sv*sd*bc03sc*i*
alias:          pci:v00008086d00005926sv*sd*bc03sc*i*
alias:          pci:v00008086d00005923sv*sd*bc03sc*i*
alias:          pci:v00008086d0000591Dsv*sd*bc03sc*i*
alias:          pci:v00008086d0000591Asv*sd*bc03sc*i*
alias:          pci:v00008086d0000591Bsv*sd*bc03sc*i*
alias:          pci:v00008086d00005912sv*sd*bc03sc*i*
alias:          pci:v00008086d0000591Esv*sd*bc03sc*i*
alias:          pci:v00008086d00005921sv*sd*bc03sc*i*
alias:          pci:v00008086d00005916sv*sd*bc03sc*i*
alias:          pci:v00008086d0000590Asv*sd*bc03sc*i*
alias:          pci:v00008086d0000590Bsv*sd*bc03sc*i*
alias:          pci:v00008086d00005908sv*sd*bc03sc*i*
alias:          pci:v00008086d00005902sv*sd*bc03sc*i*
alias:          pci:v00008086d0000590Esv*sd*bc03sc*i*
alias:          pci:v00008086d00005906sv*sd*bc03sc*i*
alias:          pci:v00008086d00005917sv*sd*bc03sc*i*
alias:          pci:v00008086d00005915sv*sd*bc03sc*i*
alias:          pci:v00008086d00005913sv*sd*bc03sc*i*
alias:          pci:v00008086d00005A85sv*sd*bc03sc*i*
alias:          pci:v00008086d00005A84sv*sd*bc03sc*i*
alias:          pci:v00008086d00001A85sv*sd*bc03sc*i*
alias:          pci:v00008086d00001A84sv*sd*bc03sc*i*
alias:          pci:v00008086d00000A84sv*sd*bc03sc*i*
alias:          pci:v00008086d0000193Asv*sd*bc03sc*i*
alias:          pci:v00008086d0000193Dsv*sd*bc03sc*i*
alias:          pci:v00008086d0000193Bsv*sd*bc03sc*i*
alias:          pci:v00008086d00001932sv*sd*bc03sc*i*
alias:          pci:v00008086d0000192Asv*sd*bc03sc*i*
alias:          pci:v00008086d0000192Bsv*sd*bc03sc*i*
alias:          pci:v00008086d00001927sv*sd*bc03sc*i*
alias:          pci:v00008086d00001926sv*sd*bc03sc*i*
alias:          pci:v00008086d00001923sv*sd*bc03sc*i*
alias:          pci:v00008086d0000191Dsv*sd*bc03sc*i*
alias:          pci:v00008086d0000191Asv*sd*bc03sc*i*
alias:          pci:v00008086d0000191Bsv*sd*bc03sc*i*
alias:          pci:v00008086d00001912sv*sd*bc03sc*i*
alias:          pci:v00008086d0000191Esv*sd*bc03sc*i*
alias:          pci:v00008086d00001921sv*sd*bc03sc*i*
alias:          pci:v00008086d00001916sv*sd*bc03sc*i*
alias:          pci:v00008086d0000190Asv*sd*bc03sc*i*
alias:          pci:v00008086d0000190Bsv*sd*bc03sc*i*
alias:          pci:v00008086d00001902sv*sd*bc03sc*i*
alias:          pci:v00008086d0000190Esv*sd*bc03sc*i*
alias:          pci:v00008086d00001906sv*sd*bc03sc*i*
alias:          pci:v00008086d000022B3sv*sd*bc03sc*i*
alias:          pci:v00008086d000022B2sv*sd*bc03sc*i*
alias:          pci:v00008086d000022B1sv*sd*bc03sc*i*
alias:          pci:v00008086d000022B0sv*sd*bc03sc*i*
alias:          pci:v00008086d0000163Dsv*sd*bc03sc*i*
alias:          pci:v00008086d0000163Asv*sd*bc03sc*i*
alias:          pci:v00008086d0000163Esv*sd*bc03sc*i*
alias:          pci:v00008086d0000163Bsv*sd*bc03sc*i*
alias:          pci:v00008086d00001636sv*sd*bc03sc*i*
alias:          pci:v00008086d00001632sv*sd*bc03sc*i*
alias:          pci:v00008086d0000162Dsv*sd*bc03sc*i*
alias:          pci:v00008086d0000162Asv*sd*bc03sc*i*
alias:          pci:v00008086d0000162Esv*sd*bc03sc*i*
alias:          pci:v00008086d0000162Bsv*sd*bc03sc*i*
alias:          pci:v00008086d00001626sv*sd*bc03sc*i*
alias:          pci:v00008086d00001622sv*sd*bc03sc*i*
alias:          pci:v00008086d0000161Dsv*sd*bc03sc*i*
alias:          pci:v00008086d0000161Asv*sd*bc03sc*i*
alias:          pci:v00008086d0000160Dsv*sd*bc03sc*i*
alias:          pci:v00008086d0000160Asv*sd*bc03sc*i*
alias:          pci:v00008086d0000161Esv*sd*bc03sc*i*
alias:          pci:v00008086d0000161Bsv*sd*bc03sc*i*
alias:          pci:v00008086d00001616sv*sd*bc03sc*i*
alias:          pci:v00008086d00001612sv*sd*bc03sc*i*
alias:          pci:v00008086d0000160Esv*sd*bc03sc*i*
alias:          pci:v00008086d0000160Bsv*sd*bc03sc*i*
alias:          pci:v00008086d00001606sv*sd*bc03sc*i*
alias:          pci:v00008086d00001602sv*sd*bc03sc*i*
alias:          pci:v00008086d00000155sv*sd*bc03sc*i*
alias:          pci:v00008086d00000157sv*sd*bc03sc*i*
alias:          pci:v00008086d00000F33sv*sd*bc03sc*i*
alias:          pci:v00008086d00000F32sv*sd*bc03sc*i*
alias:          pci:v00008086d00000F31sv*sd*bc03sc*i*
alias:          pci:v00008086d00000F30sv*sd*bc03sc*i*
alias:          pci:v00008086d00000D26sv*sd*bc03sc*i*
alias:          pci:v00008086d00000D16sv*sd*bc03sc*i*
alias:          pci:v00008086d00000D06sv*sd*bc03sc*i*
alias:          pci:v00008086d00000A2Esv*sd*bc03sc*i*
alias:          pci:v00008086d00000A1Esv*sd*bc03sc*i*
alias:          pci:v00008086d00000A0Esv*sd*bc03sc*i*
alias:          pci:v00008086d00000A26sv*sd*bc03sc*i*
alias:          pci:v00008086d00000A16sv*sd*bc03sc*i*
alias:          pci:v00008086d00000A06sv*sd*bc03sc*i*
alias:          pci:v00008086d00000C26sv*sd*bc03sc*i*
alias:          pci:v00008086d00000C16sv*sd*bc03sc*i*
alias:          pci:v00008086d00000C06sv*sd*bc03sc*i*
alias:          pci:v00008086d00000426sv*sd*bc03sc*i*
alias:          pci:v00008086d00000416sv*sd*bc03sc*i*
alias:          pci:v00008086d00000406sv*sd*bc03sc*i*
alias:          pci:v00008086d00000D2Esv*sd*bc03sc*i*
alias:          pci:v00008086d00000D1Esv*sd*bc03sc*i*
alias:          pci:v00008086d00000D0Esv*sd*bc03sc*i*
alias:          pci:v00008086d00000D2Bsv*sd*bc03sc*i*
alias:          pci:v00008086d00000D1Bsv*sd*bc03sc*i*
alias:          pci:v00008086d00000D0Bsv*sd*bc03sc*i*
alias:          pci:v00008086d00000D2Asv*sd*bc03sc*i*
alias:          pci:v00008086d00000D1Asv*sd*bc03sc*i*
alias:          pci:v00008086d00000D0Asv*sd*bc03sc*i*
alias:          pci:v00008086d00000D22sv*sd*bc03sc*i*
alias:          pci:v00008086d00000D12sv*sd*bc03sc*i*
alias:          pci:v00008086d00000D02sv*sd*bc03sc*i*
alias:          pci:v00008086d00000A2Bsv*sd*bc03sc*i*
alias:          pci:v00008086d00000A1Bsv*sd*bc03sc*i*
alias:          pci:v00008086d00000A0Bsv*sd*bc03sc*i*
alias:          pci:v00008086d00000A2Asv*sd*bc03sc*i*
alias:          pci:v00008086d00000A1Asv*sd*bc03sc*i*
alias:          pci:v00008086d00000A0Asv*sd*bc03sc*i*
alias:          pci:v00008086d00000A22sv*sd*bc03sc*i*
alias:          pci:v00008086d00000A12sv*sd*bc03sc*i*
alias:          pci:v00008086d00000A02sv*sd*bc03sc*i*
alias:          pci:v00008086d00000C2Esv*sd*bc03sc*i*
alias:          pci:v00008086d00000C1Esv*sd*bc03sc*i*
alias:          pci:v00008086d00000C0Esv*sd*bc03sc*i*
alias:          pci:v00008086d00000C2Bsv*sd*bc03sc*i*
alias:          pci:v00008086d00000C1Bsv*sd*bc03sc*i*
alias:          pci:v00008086d00000C0Bsv*sd*bc03sc*i*
alias:          pci:v00008086d00000C2Asv*sd*bc03sc*i*
alias:          pci:v00008086d00000C1Asv*sd*bc03sc*i*
alias:          pci:v00008086d00000C0Asv*sd*bc03sc*i*
alias:          pci:v00008086d00000C22sv*sd*bc03sc*i*
alias:          pci:v00008086d00000C12sv*sd*bc03sc*i*
alias:          pci:v00008086d00000C02sv*sd*bc03sc*i*
alias:          pci:v00008086d0000042Esv*sd*bc03sc*i*
alias:          pci:v00008086d0000041Esv*sd*bc03sc*i*
alias:          pci:v00008086d0000040Esv*sd*bc03sc*i*
alias:          pci:v00008086d0000042Bsv*sd*bc03sc*i*
alias:          pci:v00008086d0000041Bsv*sd*bc03sc*i*
alias:          pci:v00008086d0000040Bsv*sd*bc03sc*i*
alias:          pci:v00008086d0000042Asv*sd*bc03sc*i*
alias:          pci:v00008086d0000041Asv*sd*bc03sc*i*
alias:          pci:v00008086d0000040Asv*sd*bc03sc*i*
alias:          pci:v00008086d00000422sv*sd*bc03sc*i*
alias:          pci:v00008086d00000412sv*sd*bc03sc*i*
alias:          pci:v00008086d00000402sv*sd*bc03sc*i*
alias:          pci:v00008086d0000016Asv*sd*bc03sc*i*
alias:          pci:v00008086d0000015Asv*sd*bc03sc*i*
alias:          pci:v00008086d00000162sv*sd*bc03sc*i*
alias:          pci:v00008086d00000152sv*sd*bc03sc*i*
alias:          pci:v00008086d00000166sv*sd*bc03sc*i*
alias:          pci:v00008086d00000156sv*sd*bc03sc*i*
alias:          pci:v00008086d0000016Asv0000152Dsd00008990bc03sc*i*
alias:          pci:v00008086d00000126sv*sd*bc03sc*i*
alias:          pci:v00008086d00000116sv*sd*bc03sc*i*
alias:          pci:v00008086d00000106sv*sd*bc03sc*i*
alias:          pci:v00008086d0000010Asv*sd*bc03sc*i*
alias:          pci:v00008086d00000122sv*sd*bc03sc*i*
alias:          pci:v00008086d00000112sv*sd*bc03sc*i*
alias:          pci:v00008086d00000102sv*sd*bc03sc*i*
alias:          pci:v00008086d00000046sv*sd*bc03sc*i*
alias:          pci:v00008086d00000042sv*sd*bc03sc*i*
alias:          pci:v00008086d0000A011sv*sd*bc03sc*i*
alias:          pci:v00008086d0000A001sv*sd*bc03sc*i*
alias:          pci:v00008086d00002E92sv*sd*bc03sc*i*
alias:          pci:v00008086d00002E42sv*sd*bc03sc*i*
alias:          pci:v00008086d00002E32sv*sd*bc03sc*i*
alias:          pci:v00008086d00002E22sv*sd*bc03sc*i*
alias:          pci:v00008086d00002E12sv*sd*bc03sc*i*
alias:          pci:v00008086d00002E02sv*sd*bc03sc*i*
alias:          pci:v00008086d00002A42sv*sd*bc03sc*i*
alias:          pci:v00008086d00002A12sv*sd*bc03sc*i*
alias:          pci:v00008086d00002A02sv*sd*bc03sc*i*
alias:          pci:v00008086d000029D2sv*sd*bc03sc*i*
alias:          pci:v00008086d000029C2sv*sd*bc03sc*i*
alias:          pci:v00008086d000029B2sv*sd*bc03sc*i*
alias:          pci:v00008086d000029A2sv*sd*bc03sc*i*
alias:          pci:v00008086d00002992sv*sd*bc03sc*i*
alias:          pci:v00008086d00002982sv*sd*bc03sc*i*
alias:          pci:v00008086d00002972sv*sd*bc03sc*i*
alias:          pci:v00008086d000027AEsv*sd*bc03sc*i*
alias:          pci:v00008086d000027A2sv*sd*bc03sc*i*
alias:          pci:v00008086d00002772sv*sd*bc03sc*i*
alias:          pci:v00008086d00002592sv*sd*bc03sc*i*
alias:          pci:v00008086d0000258Asv*sd*bc03sc*i*
alias:          pci:v00008086d00002582sv*sd*bc03sc*i*
alias:          pci:v00008086d00002572sv*sd*bc03sc*i*
alias:          pci:v00008086d0000358Esv*sd*bc03sc*i*
alias:          pci:v00008086d00003582sv*sd*bc03sc*i*
alias:          pci:v00008086d00002562sv*sd*bc03sc*i*
alias:          pci:v00008086d00003577sv*sd*bc03sc*i*
depends:        drm_kms_helper,drm,video,i2c-algo-bit
intree:         Y
vermagic:       4.10.0-32-generic SMP mod_unload 
parm:           modeset:Use kernel modesetting [KMS] (0=disable, 1=on, -1=force vga console preference [default]) (int)
parm:           panel_ignore_lid:Override lid status (0=autodetect, 1=autodetect disabled [default], -1=force lid closed, -2=force lid open) (int)
parm:           semaphores:Use semaphores for inter-ring sync (default: -1 (use per-chip defaults)) (int)
parm:           enable_rc6:Enable power-saving render C-state 6. Different stages can be selected via bitmask values (0 = disable; 1 = enable rc6; 2 = enable deep rc6; 4 = enable deepest rc6). For example, 3 would enable rc6 and deep rc6, and 7 would enable everything. default: -1 (use per-chip default) (int)
parm:           enable_dc:Enable power-saving display C-states. (-1=auto [default]; 0=disable; 1=up to DC5; 2=up to DC6) (int)
parm:           enable_fbc:Enable frame buffer compression for power savings (default: -1 (use per-chip default)) (int)
parm:           lvds_channel_mode:Specify LVDS channel mode (0=probe BIOS [default], 1=single-channel, 2=dual-channel) (int)
parm:           lvds_use_ssc:Use Spread Spectrum Clock with panels [LVDS/eDP] (default: auto from VBT) (int)
parm:           vbt_sdvo_panel_type:Override/Ignore selection of SDVO panel mode in the VBT (-2=ignore, -1=auto [default], index in VBT BIOS table) (int)
parm:           reset:Attempt GPU resets (default: true) (bool)
parm:           error_capture:Record the GPU state following a hang. This information in /sys/class/drm/card<N>/error is vital for triaging and debugging hangs. (bool)
parm:           enable_hangcheck:Periodically check GPU activity for detecting hangs. WARNING: Disabling this can cause system wide hangs. (default: true) (bool)
parm:           enable_ppgtt:Override PPGTT usage. (-1=auto [default], 0=disabled, 1=aliasing, 2=full, 3=full with extended address space) (int)
parm:           enable_execlists:Override execlists usage. (-1=auto [default], 0=disabled, 1=enabled) (int)
parm:           enable_psr:Enable PSR (0=disabled, 1=enabled - link mode chosen per-platform, 2=force link-standby mode, 3=force link-off mode) Default: -1 (use per-chip default) (int)
parm:           alpha_support:Enable alpha quality driver support for latest hardware. See also CONFIG_DRM_I915_ALPHA_SUPPORT. (int)
parm:           disable_power_well:Disable display power wells when possible (-1=auto [default], 0=power wells always on, 1=power wells disabled when possible) (int)
parm:           enable_ips:Enable IPS (default: true) (int)
parm:           fastboot:Try to skip unnecessary mode sets at boot time (default: false) (bool)
parm:           prefault_disable:Disable page prefaulting for pread/pwrite/reloc (default:false). For developers only. (bool)
parm:           load_detect_test:Force-enable the VGA load detect code for testing (default:false). For developers only. (bool)
parm:           force_reset_modeset_test:Force a modeset during gpu reset for testing (default:false). For developers only. (bool)
parm:           invert_brightness:Invert backlight brightness (-1 force normal, 0 machine defaults, 1 force inversion), please report PCI device ID, subsystem vendor and subsystem device ID to dri-devel@lists.freedesktop.org, if your machine needs it. It will then be included in an upcoming module version. (int)
parm:           disable_display:Disable display (default: false) (bool)
parm:           enable_cmd_parser:Enable command parsing (1=enabled [default], 0=disabled) (int)
parm:           use_mmio_flip:use MMIO flips (-1=never, 0=driver discretion [default], 1=always) (int)
parm:           mmio_debug:Enable the MMIO debug code for the first N failures (default: off). This may negatively affect performance. (int)
parm:           verbose_state_checks:Enable verbose logs (ie. WARN_ON()) in case of unexpected hw state conditions. (bool)
parm:           nuclear_pageflip:Force atomic modeset functionality; asynchronous mode is not yet supported. (default: false). (bool)
parm:           edp_vswing:Ignore/Override vswing pre-emph table selection from VBT (0=use value from vbt [default], 1=low power swing(200mV),2=default swing(400mV)) (int)
parm:           enable_guc_loading:Enable GuC firmware loading (-1=auto, 0=never [default], 1=if available, 2=required) (int)
parm:           enable_guc_submission:Enable GuC submission (-1=auto, 0=never [default], 1=if available, 2=required) (int)
parm:           guc_log_level:GuC firmware logging level (-1:disabled (default), 0-3:enabled) (int)
parm:           enable_dp_mst:Enable multi-stream transport (MST) for new DisplayPort sinks. (default: true) (bool)
parm:           inject_load_failure:Force an error after a number of failure check points (0:disabled (default), N:force failure at the Nth failure check point) (uint)
parm:           enable_dpcd_backlight:Enable support for DPCD backlight control (default:false) (bool)
parm:           enable_gvt:Enable support for Intel GVT-g graphics virtualization host support(default:false) (bool)

@tetious
Copy link

tetious commented Aug 15, 2017

nvidia GTX 950 with the binary/proprietary drivers (375.66-0ubuntu0.16.04.1)

  *-display               
       description: VGA compatible controller
       product: GM206 [GeForce GTX 950]
       vendor: NVIDIA Corporation
       physical id: 0
       bus info: pci@0000:01:00.0
       version: a1
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress vga_controller bus_master cap_list rom
       configuration: driver=nvidia latency=0
       resources: irq:130 memory:de000000-deffffff memory:c0000000-cfffffff memory:d0000000-d1ffffff ioport:e000(size=128) memory:c0000-dffff

@mcarans
Copy link
Author

mcarans commented Aug 16, 2017

@melmelissa
Copy link

Hello.

Problem so present on ArchLinux with Cinnamon 3.4.6 and kernel 4.9.51-1-lts

I have crash regular but impossible to know what activates starts them.

The got out of it error is
cinnamon[3483]: segfault at 7fddbb5fffe8 ip 00007fde28c4cc45 sp 00007ffec5bf9f80 error 4 in libcjs.so.0.0.0[7fde28c24000+c2000]

the problem is not frequent.
some days no crash.
and on other days, it will crash every hour.
it is very random and therefore difficult to find a precise answer.

but on my Debian Sid Cinnamon 3.4.6 with kernel 4.12.0-2 no crash.
would be due to a kernel too old, less than 4.12?

@mcarans
Copy link
Author

mcarans commented Sep 26, 2017

Someone was suggesting to me to use 4.12 kernel here: https://www.reddit.com/r/linuxmint/comments/6r3nda/mint_182_cinnamon_random_crashes_libcjsoso/

I will test first with 4.11 to see how that goes.

@melmelissa
Copy link

I do not use Icing and yet I also crash.

and on Sid I use 4.12 kernel and no crash.
while under ArchLinux I use the kernel 4.9.51-lts and I have irregular crashes of Cinnamon.
some days everything is fine, and other days (like yesterday) I crash every hour ....
it is very random.

@chuued
Copy link

chuued commented Sep 26, 2017

Still crashing here using ArchLinux with kernel 4.12.13-1-ARCH and Cinnamon 3.4.6-1.

Icing Task Manager, NUMA not installed.

It doesn't happen as frequently as experienced by some and there is no apparent pattern to when it crashed. Sometimes it goes multiple days with no problem, other times I see a few in one day.

@jaszhix
Copy link
Contributor

jaszhix commented Sep 29, 2017

I applied some upstream patches related to the closure bugs. To test this build, extract the zip file in its own directory. From a terminal inside that directory, run sudo dpkg -i *cjs*.deb.

cjs_3.4.3.zip

@mcarans
Copy link
Author

mcarans commented Sep 29, 2017

I've not had a crash with kernel 4.11 so far. Hope it stays that way.

@mcarans
Copy link
Author

mcarans commented Sep 29, 2017

Spoke too soon lol. Just had a crash. Will try the new cjs files.

@nicolas33
Copy link

Same here. I get random crashes in Sabayon Gentoo with kernel 4.12 in cinnamon v3.4.6.

cinnamon[3077]: segfault at 7f134a8fffe8 ip 00007f13a03befb5 sp 00007fffd029a2b0 error 4 in libcjs.so.0.0.0[7f13a0393000+c2000]

Video card VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] RV635/M86 [Mobility Radeon HD 3650] (prog-if 00 [VGA controller]) with radeon kernel driver.

Package: gnome-extra/cjs-3.4.4.

I've just removed the network applet to check if this is still crashing.

@bizuno
Copy link

bizuno commented Oct 3, 2017

Also getting this issue on Fedora 26:

inxi -F && dmesg | grep -i error
System:    Host: zen Kernel: 4.12.14-300.fc26.x86_64 x86_64 bits: 64 Desktop: Cinnamon 3.4.6
           Distro: Fedora release 26 (Twenty Six)
Machine:   Device: laptop System: www.51nb.com product: X62 v: V10 serial: N/A
           Mobo: INTEL model: CRESCENTBAY v: X62. serial: N/A UEFI [Legacy]: 51NB v: 5.011 date: 12/10/2016
Battery    BAT0: charge: 60.5 Wh 96.5% condition: 62.7/65.1 Wh (96%)
CPU:       Dual core Intel Core i7-5500U (-HT-MCP-) cache: 4096 KB
           clock speeds: max: 3000 MHz 1: 1201 MHz 2: 1028 MHz 3: 1009 MHz 4: 1000 MHz
Graphics:  Card: Intel HD Graphics 5500
           Display Server: x11 (X.org 119.3 ) drivers: modesetting (unloaded: fbdev,vesa)
           Resolution: 1400x1050@50.00hz
           OpenGL: renderer: Mesa DRI Intel HD Graphics 5500 (Broadwell GT2) version: 4.5 Mesa 17.1.7
Audio:     Card-1 Intel Wildcat Point-LP High Definition Audio Controller driver: snd_hda_intel
           Card-2 Intel Broadwell-U Audio Controller driver: snd_hda_intel
           Sound: Advanced Linux Sound Architecture v: k4.12.14-300.fc26.x86_64
Network:   Card-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller driver: r8169
           IF: enp2s0 state: down mac: 00:e1:6c:17:00:06
           Card-2: Intel Wireless 8265 / 8275 driver: iwlwifi
           IF: wlp3s0 state: up mac: 34:13:e8:60:2a:2a
Drives:    HDD Total Size: 1256.3GB (4.7% used)
           ID-1: /dev/sda model: Samsung_SSD_850 size: 256.1GB
           ID-2: /dev/sdb model: Samsung_SSD_850 size: 1000.2GB
Partition: ID-1: / size: 217G used: 40G (20%) fs: ext4 dev: /dev/dm-1
           ID-2: /boot size: 976M used: 274M (31%) fs: ext4 dev: /dev/sda1
           ID-3: swap-1 size: 17.18GB used: 0.00GB (0%) fs: swap dev: /dev/dm-2
RAID:      No RAID devices: /proc/mdstat, md_mod kernel module present
Sensors:   System Temperatures: cpu: 54.0C mobo: 54.0C
           Fan Speeds (in rpm): cpu: N/A
Info:      Processes: 252 Uptime: 20:45 Memory: 1933.3/32160.8MB Client: Shell (bash) inxi: 2.3.38 
[    0.783270] RAS: Correctable Errors collector initialized.
[   11.951118] iwlwifi 0000:03:00.0: Direct firmware load for iwlwifi-8265-30.ucode failed with error -2
[   11.951249] iwlwifi 0000:03:00.0: Direct firmware load for iwlwifi-8265-29.ucode failed with error -2
[   11.951266] iwlwifi 0000:03:00.0: Direct firmware load for iwlwifi-8265-28.ucode failed with error -2
[11937.950235] cinnamon[2456]: segfault at 7f2ccccfffe8 ip 00007f2d059f8f85 sp 00007fffd0d0ed30 error 4 in libcjs.so.0.0.0[7f2d059cf000+c1000]

The third party applets I'm using are:

Typically happens when I leave the laptop on, afk and come back and login to see that Cinnamon has crashed.

@jessewriter
Copy link

my cinnamon crashes seemed to stop after I removed any cpu monitor applets and downgraded libreoffice. not sure which or if both were the causes. i have been working on a simple cpu monitoring script since I do find that information useful but the available options fail.

@nicolas33
Copy link

I've not seen a crash since I've removed the network data monitor, 3 days ago. If any new crash happen I'll report it.
I don't use libreoffice much and I'm sure I've had crashes while libreoffice was not started at all.

@bizuno
Copy link

bizuno commented Oct 5, 2017

Yeah that does seem to be the case - I removed the Simple CPU Monitor and replaced it with the CPU Frequency Applet, I don't appear to have any more crashes.

@dimoni68
Copy link

dimoni68 commented Oct 8, 2017

Same here. I get random crashes in Linux mint 18.2 the dsisaster is here :(
oct 08 11:11:12 dimoserver kernel: cinnamon[1826]: segfault at 7f1a60ffffe8 ip 00007f1ab0cc6555 sp 00007ffd5c901900 error 4 in libcjs.so.0.0.0[7f1ab0c9d000+c2000]
this ocur 2, 3 , 10, 30 times at day
inxi
dimoni@dimoserver ~ $ inxi -Fxz System: Host: dimoserver Kernel: 4.4.0-96-generic x86_64 (64 bit gcc: 5.4.0) Desktop: Cinnamon 3.4.6 (Gtk 3.18.9-1ubuntu3.3) Distro: Linux Mint 18.2 Sonya Machine: Mobo: ASRock model: N68C-S UCC Bios: American Megatrends v: P1.60 date: 09/19/2011 CPU: Dual core AMD Athlon 4850e (-MCP-) cache: 1024 KB flags: (lm nx sse sse2 sse3 svm) bmips: 8839 clock speeds: max: 2500 MHz 1: 2200 MHz 2: 2200 MHz Graphics: Card: NVIDIA GT218 [GeForce 210] bus-ID: 02:00.0 Display Server: X.Org 1.18.4 drivers: nvidia (unloaded: fbdev,vesa,nouveau) Resolution: 1280x1024@75.02hz, 1280x1024@60.02hz GLX Renderer: GeForce 210/PCIe/SSE2 GLX Version: 3.3.0 NVIDIA 340.102 Direct Rendering: Yes Audio: Card-1 NVIDIA MCP61 High Definition Audio driver: snd_hda_intel bus-ID: 00:05.0 Card-2 NVIDIA High Definition Audio Controller driver: snd_hda_intel bus-ID: 02:00.1 Sound: Advanced Linux Sound Architecture v: k4.4.0-96-generic Network: Card: NVIDIA MCP61 Ethernet driver: forcedeth port: d480 bus-ID: 00:07.0 IF: enp0s7 state: up speed: 100 Mbps duplex: full mac: <filter> Drives: HDD Total Size: 1120.2GB (78.2% used) ID-1: /dev/sda model: KINGSTON_SV300S3 size: 120.0GB ID-2: /dev/sdb model: Hitachi_HDS72101 size: 1000.2GB Partition: ID-1: / size: 20G used: 13G (64%) fs: ext4 dev: /dev/sda2 ID-2: /home size: 66G used: 39G (60%) fs: ext4 dev: /dev/sda4 ID-3: /boot size: 4.8G used: 2.7G (56%) fs: ext4 dev: /dev/sda1 RAID: No RAID devices: /proc/mdstat, md_mod kernel module present Sensors: System Temperatures: cpu: 42.5C mobo: 39.0C gpu: 0.0:69C Fan Speeds (in rpm): cpu: 2250 fan-1: 2481 fan-3: 2376 fan-4: 0 fan-5: 0 Info: Processes: 197 Uptime: 7:30 Memory: 1888.6/7983.3MB Init: systemd runlevel: 5 Gcc sys: 5.4.0 Client: Shell (bash 4.3.481) inxi: 2.2.35 dimoni@dimoserver ~ $

In 18.1 nothing happens, and works flawosly. transition to ligthdm from mdm whith nividia grafics has and horror for my machine and for my

glass.log for the aplets/ deslesk
info t=2017-10-08T09:11:28.866Z Cinnamon.AppSystem.get_default() started in 164 ms info t=2017-10-08T09:11:28.877Z loading user theme: /usr/share/themes/Mint-Y-Dark/cinnamon/cinnamon.css info t=2017-10-08T09:11:28.913Z added icon directory: /usr/share/themes/Mint-Y-Dark/cinnamon info t=2017-10-08T09:11:29.453Z PlacesManager: Updating devices info t=2017-10-08T09:11:29.627Z loaded at Sun Oct 08 2017 11:11:29 GMT+0200 (CEST) info t=2017-10-08T09:11:31.243Z Loaded applet menu@cinnamon.org in 1609 ms info t=2017-10-08T09:11:31.275Z Loaded applet show-desktop@cinnamon.org in 28 ms info t=2017-10-08T09:11:31.463Z Role locked: panellauncher info t=2017-10-08T09:11:31.464Z Loaded applet panel-launchers@cinnamon.org in 184 ms info t=2017-10-08T09:11:31.501Z Loaded applet window-list@cinnamon.org in 33 ms info t=2017-10-08T09:11:31.525Z Role locked: notifications info t=2017-10-08T09:11:31.534Z Loaded applet notifications@cinnamon.org in 29 ms info t=2017-10-08T09:11:31.586Z Loaded applet user@cinnamon.org in 49 ms info t=2017-10-08T09:11:31.621Z Loaded applet removable-drives@cinnamon.org in 31 ms info t=2017-10-08T09:11:31.666Z Loaded applet keyboard@cinnamon.org in 40 ms info t=2017-10-08T09:11:31.794Z Loaded applet network@cinnamon.org in 121 ms info t=2017-10-08T09:11:31.899Z Loaded applet sound@cinnamon.org in 101 ms info t=2017-10-08T09:11:31.954Z Loaded applet power@cinnamon.org in 50 ms info t=2017-10-08T09:11:31.977Z Loaded applet systray@cinnamon.org in 19 ms info t=2017-10-08T09:11:32.029Z Loaded applet calendar@cinnamon.org in 48 ms info t=2017-10-08T09:11:32.050Z Loaded applet windows-quick-list@cinnamon.org in 18 ms info t=2017-10-08T09:11:32.116Z Loaded applet weather@mockturtl in 64 ms info t=2017-10-08T09:11:32.133Z Loaded applet uptime@vatanuki.kun in 15 ms info t=2017-10-08T09:11:32.169Z Loaded applet cpufreq@mtwebster in 34 ms info t=2017-10-08T09:11:32.218Z Loaded applet sysmonitor@orcus in 47 ms info t=2017-10-08T09:11:32.219Z AppletManager.init() started in 2590 ms info t=2017-10-08T09:11:32.236Z Loaded desklet clockTow@armandobs14 in 16 ms info t=2017-10-08T09:11:32.248Z Config file /home/dimoni/.local/share/cinnamon/desklets/TimeAndDate@nightflame/metadata.json info t=2017-10-08T09:11:32.259Z Loaded desklet TimeAndDate@nightflame in 20 ms info t=2017-10-08T09:11:32.267Z Cinnamon took 3577 ms to start info t=2017-10-08T09:11:34.143Z Hiding systray: network info t=2017-10-08T09:11:34.150Z Adding systray: mintupdate.py (24x24px) info t=2017-10-08T09:11:34.156Z Adding systray: vino-app-indicator (24x24px) info t=2017-10-08T09:11:34.171Z Adding systray: indicator-solaar (24x24px)

@jaszhix
Copy link
Contributor

jaszhix commented Oct 8, 2017

If anyone is still running into crashes, please try the patched version of CJS I linked to earlier.

@mcarans
Copy link
Author

mcarans commented Oct 9, 2017

Thx, I haven't had a crash using the patched cjs files for more than a week. Hoping it stays that way!

@mcarans
Copy link
Author

mcarans commented Oct 12, 2017

Still no crashes - looking good! :-)

@jaszhix
Copy link
Contributor

jaszhix commented Oct 14, 2017

@melmelissa The version is behind the current release because cjs master is tagged at 3.4.3, but it's based on the current version with additional patches.

@nicolas33
Copy link

The version is behind the current release because cjs master is tagged at 3.4.3, but it's based on the current version with additional patches.

I did not get what you mean.

@jaszhix
Copy link
Contributor

jaszhix commented Oct 15, 2017

I'm referring to the maintenance branch and master (development) branch on the CJS repository. Master is basically even with the maintenance branch except it has an older release tag and changelog entry.

Also, if you use the patch and it resolves the issue, you will need to hold back CJS updates until v3.4.5 releases.

@linuxmint linuxmint locked and limited conversation to collaborators Oct 15, 2017
@linuxmint linuxmint unlocked this conversation Oct 19, 2017
@mcarans
Copy link
Author

mcarans commented Oct 19, 2017

For me it seems to be resolved using Ubuntu's kernel 4.11 and @jaszhix CJS patch.

@linuxmint linuxmint deleted a comment from melmelissa Oct 19, 2017
@linuxmint linuxmint deleted a comment from leigh123linux Oct 19, 2017
@linuxmint linuxmint deleted a comment from melmelissa Oct 19, 2017
@linuxmint linuxmint deleted a comment from melmelissa Oct 19, 2017
@clefebvre
Copy link
Member

clefebvre commented Oct 19, 2017

Hi everyone,

We've got a PR at linuxmint/cjs#55 which might help solve a CJS crash.

However, I'd like to catch your attention on the fact that we're dealing with different issues here.

To you, it might look like you're all affected by the same bug, but you're not. That's why some of you no longer see crashes after you removed a particular applets, while other people still experience crashes without it.

Here's a bit of info on how to identify your issue a little bit better.

After the crash, say dmesg tells you:

[ 4947.459104] cinnamon[2868]: segfault at 7f2611ffffe8 ip 00007f2667dda305 sp 00007fffb416b9d0 error 4 in libcjs.so.0.0.0[7f2667db1000+c1000]

In that line we can see that Cinnamon crashed due to a segfault in the shared library libcjs.so.0.0.0. We also get information about memory addresses for the Cinnamon process and the shared library.

We look at two addresses in particular here:

  • ip, the instruction pointer in the main program
  • the loading address of the shared library (the first number in the brackets after the name of the lib).

In our example above, we've got:

ip: 00007f2667dda305
loading address: 7f2667db1000

We'll substract the loading address from the ip to get the offset...

00007f2667dda305 - 7f2667db1000 = 29305

I don't expect you to know how to substract in Hexadecimal... even if you're good at Maths.. so to do this just launch the Calculator, set it to Advanced Mode and change its base (using the combo box) to Hexadecimal.

Now that's we've got our offset, we can ask addr2line what's under it in our shared library:

addr2line -e /usr/lib/libcjs.so.0.0.0 29305 -fCi
gjs_typecheck_boxed

And there we have it... that particular crash corresponds to a call to gjs_typecheck_boxed in libcjs.

After doing a bit of research we can find upstream bug reports about this... and not just a generic "hey, CJS crashed..." but something specific.

In this particular example, we're dealing with a notorious needsPostBarrier crash.. which is described in GJS at https://bugzilla.gnome.org/show_bug.cgi?id=783935.

I'll do a bit of math and create separate issues for the crashes you reported.

@clefebvre
Copy link
Member

clefebvre commented Oct 19, 2017

I created an issue at:

Crash in gjs_typecheck_boxed - needsPostBarrier: linuxmint/cjs#56

This bug is the one experienced by most of you here and it's the one which @jaszhix is attempting to fix in the current PR.

I've added information over at https://github.com/linuxmint/cjs/blob/master/README.md on how to report bugs against CJS. I've done the maths from your various dmesg reports.. and I'm seeing quite a few different issues...

clem@airtop ~/Sandbox/cjs $ addr2line -e /usr/lib/libcjs.so.0.0.0 29555 -fCi
gjs_typecheck_boxed
??:?
clem@airtop ~/Sandbox/cjs $ addr2line -e /usr/lib/libcjs.so.0.0.0 35CB5 -fCi
gjs_create_ns
??:?
clem@airtop ~/Sandbox/cjs $ addr2line -e /usr/lib/libcjs.so.0.0.0 28C45 -fCi
gjs_define_boxed_class
??:?
clem@airtop ~/Sandbox/cjs $ addr2line -e /usr/lib/libcjs.so.0.0.0 2BFB5 -fCi
gjs_fundamental_ref
??:?

These different issues need to be reported in isolation, against CJS over at https://github.com/linuxmint/cjs/issues.

It's likely they're not related to the main issue (the one occurring gjs_typecheck_boxed) and so they likely won't be fixed once @jaszhix's PR is merged.

Please check CJS's README.md and report them accurately over there, with as much information as you can so we can have an idea of probable causes and how to reproduce them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests