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
Comments
I also experience this issue lately. Here are the occurences (based on
Here is my output of
I also can't give a way to reproduce this error, seems very random to me. The applets I use are IcingTaskManager and Weather. |
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. |
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 |
@mcarans without a full backtrace (complete with cjs debug symbols) this issue is unlikely to be traced and fixed. |
How do I produce a backtrace? |
@mtwebster Can you guide them on how to produce a useful backtrace as this process is automatic in fedora :-) |
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? |
You can use this script[0] to dump a backtrace when cinnamon crashes without needing a second computer. Run it as [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. |
I am not sure if this gives what you need:
|
This commit should fix the issue
@clem could you tag cjs please? |
Does 3.4-maintenance branch have that fix (as that branch as of 6 days ago is what I have installed currently)? |
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.
|
@tetious can you provide the output of the following (just a couple of sanity checks):
and (assuming you're on mint or debian-based - I want to make sure only the correct versions are there)
Thanks |
Here you go!
|
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. |
Here is the stacktrace:
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. |
@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. |
I have this same trouble. Cinnamon crashes with SIGSEGV today in twice. Mint 18.2.
Backtrace:
|
Please try these - download all of them first, then run, from the directory they're in,
(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 If anyone needs them I'll do some 32-bit ones also. |
Anyone who hasn't yet, please report what graphics hardware and driver you're on |
For me it is VMware:
|
Dell E6500 notebook
|
nvidia GTX 950 with the binary/proprietary drivers (375.66-0ubuntu0.16.04.1)
|
Unfortunately I still get the crashes with these packages: https://dl.dropboxusercontent.com/u/8201170/libcjs-dev_3.4.3_amd64.deb I have started cin_debug and will give you a trace next time it happens. |
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 the problem is not frequent. but on my Debian Sid Cinnamon 3.4.6 with kernel 4.12.0-2 no crash. |
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. |
I do not use Icing and yet I also crash. and on Sid I use 4.12 kernel and no crash. |
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. |
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 |
I've not had a crash with kernel 4.11 so far. Hope it stays that way. |
Spoke too soon lol. Just had a crash. Will try the new cjs files. |
Same here. I get random crashes in Sabayon Gentoo with kernel 4.12 in cinnamon v3.4.6.
Video card
I've just removed the network applet to check if this is still crashing. |
Also getting this issue on Fedora 26:
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. |
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. |
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. |
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. |
Same here. I get random crashes in Linux mint 18.2 the dsisaster is here :( 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 |
If anyone is still running into crashes, please try the patched version of CJS I linked to earlier. |
Thx, I haven't had a crash using the patched cjs files for more than a week. Hoping it stays that way! |
Still no crashes - looking good! :-) |
@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. |
I did not get what you mean. |
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. |
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:
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:
In our example above, we've got:
We'll substract the loading address from the ip to get the offset...
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:
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. |
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...
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. |
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
The text was updated successfully, but these errors were encountered: