Bug 340657 - Plasma etc. crash on openSUSE 13.2 [KSharedDataCache]
Summary: Plasma etc. crash on openSUSE 13.2 [KSharedDataCache]
Status: RESOLVED DOWNSTREAM
Alias: None
Product: kdelibs
Classification: Unmaintained
Component: kshareddatacache (show other bugs)
Version: unspecified
Platform: openSUSE Linux
: NOR crash
Target Milestone: ---
Assignee: kdelibs bugs
URL:
Keywords: drkonqi
: 340634 340651 340654 340669 340775 340786 340791 340822 340826 340827 340898 340911 340930 340955 340975 341027 341030 341168 341249 341295 341371 341399 341431 341648 341800 342770 343571 344927 356427 (view as bug list)
Depends on:
Blocks:
 
Reported: 2014-11-05 06:45 UTC by Mike
Modified: 2015-12-10 06:46 UTC (History)
30 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
New crash information added by DrKonqi (10.34 KB, text/plain)
2014-11-18 10:12 UTC, William Valencia
Details
New crash information added by DrKonqi (12.22 KB, text/plain)
2014-11-20 08:26 UTC, josua.mayer97
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mike 2014-11-05 06:45:44 UTC
Application: kwin (4.11.12)
KDE Platform Version: 4.14.2
Qt Version: 4.8.6
Operating System: Linux 3.16.6-2-desktop x86_64
Distribution: "openSUSE 13.2 (Harlequin) (x86_64)"

-- Information about the crash:
- What I was doing when the application crashed: i was opening dolphin when crash and somtimes kwin or another things crashed i dont know why does  it happen

The crash can be reproduced sometimes.

-- Backtrace:
Application: KWin (kwin), signal: Bus error
Using host libthread_db library "/lib64/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f54f9a36800 (LWP 29083))]

Thread 2 (Thread 0x7f54dadca700 (LWP 29096)):
#0  0x00007f54f323505f in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libpthread.so.0
#1  0x00007f54f84628cb in  () at /usr/lib64/libQtScript.so.4
#2  0x00007f54f8462909 in  () at /usr/lib64/libQtScript.so.4
#3  0x00007f54f32310a4 in start_thread () at /lib64/libpthread.so.0
#4  0x00007f54f92617fd in clone () at /lib64/libc.so.6

Thread 1 (Thread 0x7f54f9a36800 (LWP 29083)):
[KCrash Handler]
#5  0x00007f54f920c6c9 in __memcpy_sse2_unaligned () at /lib64/libc.so.6
#6  0x00007f54f3dcc2df in KSharedDataCache::insert(QString const&, QByteArray const&) () at /usr/lib64/libkdecore.so.5
#7  0x00007f54f7f14f71 in KImageCache::insertImage(QString const&, QImage const&) () at /usr/lib64/libkdeui.so.5
#8  0x00007f54f7f15119 in KImageCache::insertPixmap(QString const&, QPixmap const&) () at /usr/lib64/libkdeui.so.5
#9  0x00007f54f792658f in  () at /usr/lib64/libplasma.so.3
#10 0x00007f54f792db59 in  () at /usr/lib64/libplasma.so.3
#11 0x00007f54f35dd1fa in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () at /usr/lib64/libQtCore.so.4
#12 0x00007f54f35e13b1 in QObject::event(QEvent*) () at /usr/lib64/libQtCore.so.4
#13 0x00007f54f274576c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /usr/lib64/libQtGui.so.4
#14 0x00007f54f274bcad in QApplication::notify(QObject*, QEvent*) () at /usr/lib64/libQtGui.so.4
#15 0x00007f54f7eb5bda in KApplication::notify(QObject*, QEvent*) () at /usr/lib64/libkdeui.so.5
#16 0x00007f54f35c92ad in QCoreApplication::notifyInternal(QObject*, QEvent*) () at /usr/lib64/libQtCore.so.4
#17 0x00007f54f35f8cbc in  () at /usr/lib64/libQtCore.so.4
#18 0x00007f54f35f9d18 in QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQtCore.so.4
#19 0x00007f54f27e2f96 in  () at /usr/lib64/libQtGui.so.4
#20 0x00007f54f35c7e6f in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQtCore.so.4
#21 0x00007f54f35c8165 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQtCore.so.4
#22 0x00007f54f35cd5b9 in QCoreApplication::exec() () at /usr/lib64/libQtCore.so.4
#23 0x00007f54f95a27a3 in kdemain () at /usr/lib64/libkdeinit4_kwin.so
#24 0x00007f54f919db05 in __libc_start_main () at /lib64/libc.so.6
#25 0x000000000040075e in _start ()

Reported using DrKonqi
Comment 1 Thomas Lübking 2014-11-05 08:30:31 UTC
W/ 99% chance your /var partition is full.
Comment 2 Mike 2014-11-06 00:55:33 UTC
My partition  /var is almost clear because I've installed opensuse with kde 4.14.2 the same day that i had problems
Comment 3 Christoph Feck 2014-11-16 20:26:25 UTC
*** Bug 340634 has been marked as a duplicate of this bug. ***
Comment 4 Christoph Feck 2014-11-16 20:26:47 UTC
*** Bug 340651 has been marked as a duplicate of this bug. ***
Comment 5 Christoph Feck 2014-11-16 20:27:14 UTC
*** Bug 340654 has been marked as a duplicate of this bug. ***
Comment 6 Christoph Feck 2014-11-16 20:28:23 UTC
*** Bug 340669 has been marked as a duplicate of this bug. ***
Comment 7 Christoph Feck 2014-11-16 20:31:45 UTC
*** Bug 340775 has been marked as a duplicate of this bug. ***
Comment 8 Christoph Feck 2014-11-16 20:33:06 UTC
*** Bug 340786 has been marked as a duplicate of this bug. ***
Comment 9 Christoph Feck 2014-11-16 20:33:51 UTC
*** Bug 340791 has been marked as a duplicate of this bug. ***
Comment 10 Christoph Feck 2014-11-16 20:34:33 UTC
*** Bug 340822 has been marked as a duplicate of this bug. ***
Comment 11 Christoph Feck 2014-11-16 20:35:51 UTC
*** Bug 340826 has been marked as a duplicate of this bug. ***
Comment 12 Christoph Feck 2014-11-16 20:36:17 UTC
*** Bug 340827 has been marked as a duplicate of this bug. ***
Comment 13 Christoph Feck 2014-11-16 20:39:18 UTC
*** Bug 340898 has been marked as a duplicate of this bug. ***
Comment 14 Christoph Feck 2014-11-16 20:40:31 UTC
*** Bug 340911 has been marked as a duplicate of this bug. ***
Comment 15 Christoph Feck 2014-11-16 20:41:27 UTC
*** Bug 340955 has been marked as a duplicate of this bug. ***
Comment 16 Christoph Feck 2014-11-16 20:42:09 UTC
*** Bug 340975 has been marked as a duplicate of this bug. ***
Comment 17 Christoph Feck 2014-11-16 20:42:52 UTC
*** Bug 341027 has been marked as a duplicate of this bug. ***
Comment 18 Christoph Feck 2014-11-16 20:43:14 UTC
*** Bug 341030 has been marked as a duplicate of this bug. ***
Comment 19 Christoph Feck 2014-11-16 20:50:06 UTC
First, sorry for the flood, but I noticed a pattern here (all from openSUSE 13.2).

This could be related to switching to btrfs file system. I have no idea if btrfs supports the same file pre-allocation calls that ext4 does.

If this is reproducible, please try (re)moving /var/tmp/kdecache-user/*.kcache files.

Adding Hrvoje from openSUSE KDE team.
Comment 20 Hrvoje Senjan 2014-11-16 22:21:28 UTC
i have really little knowledge about BTRFS, and what does it do differently vs. ext4.
from quick google it would appear it supports posix_fallocate fine..

however, i've stumbled upon this thread http://www.spinics.net/lists/linux-btrfs/msg38740.html which indicates some problems with mmap usage + btrfs + kernel 3.16 < 3.17.2

will try to investigate with other folks do they have some ideas what could go wrong (and does openSUSE carries some specific patches wrt. btrfs)
Comment 21 Christoph Feck 2014-11-16 23:32:50 UTC
*** Bug 340930 has been marked as a duplicate of this bug. ***
Comment 22 Christoph Feck 2014-11-16 23:48:41 UTC
Thanks for the link, the fallocate+mmap pattern mentioned there is indeed the same usage pattern as in kshareddatacache.

Can anyone confirm that using btrfs with 3.17.2 kernel fixes the issue?

openSUSE offers newer kernel builds for testing, see http://download.opensuse.org/repositories/Kernel:/stable/standard/
Comment 23 George Yunaev 2014-11-17 01:42:33 UTC
I can confirm that switching rootfs back to ext4 fixes the issue completely with exactly the same software/hardware configuration, so the issue is indeed btrfs-related.
Comment 24 boblovgren55 2014-11-17 13:40:45 UTC
I can also confirm that switching the rootfs back to ext4 resolves the issue with the same hardware configuration. I have just reinstalled openSUSE 13.2 x64, using btrfs on the rootfs. I immediately updated to the 3.17.3-1.g76fe48f-desktop kernel once I was in KDE. I will report back with any findings.
Comment 25 boblovgren55 2014-11-17 21:44:10 UTC
It looks like the problem is fixed with the 3.17.3 kernel I installed. I would have had a crash by now, which seemed to happen more often with heavy disk activity. I have performed tests using rsync on my system, and no crashes have occurred.
Comment 26 Hrvoje Senjan 2014-11-17 23:18:17 UTC
if i correctly compared patches mentioned in that thread, they are also backported into 3.16 branch (so, present with kernel 3.16.7; openSUSE 13.2 release has 3.16.6)

will open a report at openSUSE bugzilla so our kernel team can take a look and either backport also, or just update to 3.16.7.
Comment 27 William Valencia 2014-11-18 10:12:58 UTC
Created attachment 89625 [details]
New crash information added by DrKonqi

plasma-desktop (4.11.12) on KDE Platform 4.14.2 using Qt 4.8.6

- What I was doing when the application crashed: I was copying multiple files from usb external disk using dolphin.

- Unusual behavior I noticed: crash desktop, only apps are running

-- Backtrace (Reduced):
#7  0x00007f4c3408405c in qstrncmp (len=<optimized out>, str2=<optimized out>, str1=<optimized out>) at /usr/include/QtCore/qbytearray.h:104
#8  findNamedEntry (key=..., this=0x7f4c12fd7000) at /usr/src/debug/kdelibs-4.14.2/kdecore/util/kshareddatacache.cpp:790
#9  KSharedDataCache::find (this=this@entry=0xbc77b0, key=..., destination=destination@entry=0x7fffdd0f8590) at /usr/src/debug/kdelibs-4.14.2/kdecore/util/kshareddatacache.cpp:1613
#10 0x00007f4c348fc975 in KImageCache::findPixmap (this=0xbc77b0, key=..., destination=destination@entry=0x7fffdd0f85f0) at /usr/src/debug/kdelibs-4.14.2/kdeui/util/kimagecache.cpp:150
#11 0x00007f4c2880fd33 in Plasma::Theme::findInCache (this=0xcacd00, key=..., pix=...) at /usr/src/debug/kdelibs-4.14.2/plasma/theme.cpp:1045
Comment 28 josua.mayer97 2014-11-20 08:26:53 UTC
Created attachment 89643 [details]
New crash information added by DrKonqi

plasma-desktop (4.11.12) on KDE Platform 4.14.2 using Qt 4.8.6

- What I was doing when the application crashed:

Copied some files, ahd dolphin open, fresh installation: crash
then crash every login

-- Backtrace (Reduced):
#7  0x00007fa9e11d105c in qstrncmp (len=<optimized out>, str2=<optimized out>, str1=<optimized out>) at /usr/include/QtCore/qbytearray.h:104
#8  findNamedEntry (key=..., this=0x7fa9be894000) at /usr/src/debug/kdelibs-4.14.2/kdecore/util/kshareddatacache.cpp:790
#9  KSharedDataCache::find (this=this@entry=0xa42ef0, key=..., destination=destination@entry=0x7fff2fb7ed40) at /usr/src/debug/kdelibs-4.14.2/kdecore/util/kshareddatacache.cpp:1613
#10 0x00007fa9e1a49975 in KImageCache::findPixmap (this=0xa42ef0, key=..., destination=destination@entry=0x7fff2fb7eda0) at /usr/src/debug/kdelibs-4.14.2/kdeui/util/kimagecache.cpp:150
#11 0x00007fa9d595cd33 in Plasma::Theme::findInCache (this=0xa92ea0, key=..., pix=...) at /usr/src/debug/kdelibs-4.14.2/plasma/theme.cpp:1045
Comment 29 Vivek Bhat 2014-11-20 17:00:02 UTC
I can confirm that after upgrading to kernel 3.17.3, I do not have crash since 2-3 days.
Comment 30 Thomas Lübking 2014-11-21 22:31:22 UTC
*** Bug 341168 has been marked as a duplicate of this bug. ***
Comment 31 Christoph Feck 2014-11-25 11:33:19 UTC
*** Bug 341249 has been marked as a duplicate of this bug. ***
Comment 32 Thomas Lübking 2014-11-26 21:31:48 UTC
*** Bug 341295 has been marked as a duplicate of this bug. ***
Comment 33 Christoph Feck 2014-11-28 18:52:09 UTC
*** Bug 341371 has been marked as a duplicate of this bug. ***
Comment 34 Hrvoje Senjan 2014-11-28 19:35:03 UTC
downstream report @ https://bugzilla.suse.com/show_bug.cgi?id=905832

if someone can check https://bugzilla.suse.com/show_bug.cgi?id=905832#c5 please report success or failure there..

TIA
Comment 35 Thomas Lübking 2014-11-29 12:16:44 UTC
*** Bug 341399 has been marked as a duplicate of this bug. ***
Comment 36 Christoph Feck 2014-12-01 07:12:43 UTC
*** Bug 341431 has been marked as a duplicate of this bug. ***
Comment 37 Christoph Feck 2014-12-08 12:44:01 UTC
*** Bug 341648 has been marked as a duplicate of this bug. ***
Comment 38 g.christoph 2014-12-08 15:58:06 UTC
I had this bug with openSuSE 13.2 - kernel 3.16-6 to 3.16.7
After i made a backup of my home-dir, I got an erro, that some files could not be copied.
I made a recovery-boot and I started making a xfs_repair -L /dev/sdaX (where X is my partition of the home-dir; and yes I have had a backup of my home).
After 2 times of starting the xfs_repair command, my crash is gone and KDE is starting without problems.
Don't no if this is the solution, but for me it helped.

Grettings
Gerald
Comment 39 Christoph Feck 2014-12-12 12:42:28 UTC
*** Bug 341800 has been marked as a duplicate of this bug. ***
Comment 40 Christoph Feck 2015-01-14 15:51:36 UTC
*** Bug 342770 has been marked as a duplicate of this bug. ***
Comment 41 Christoph Feck 2015-01-30 22:09:22 UTC
*** Bug 343571 has been marked as a duplicate of this bug. ***
Comment 42 Christoph Feck 2015-03-08 11:21:57 UTC
*** Bug 344927 has been marked as a duplicate of this bug. ***
Comment 43 Myriam Schweingruber 2015-12-10 06:46:26 UTC
*** Bug 356427 has been marked as a duplicate of this bug. ***