Bug 286234

Summary: Plasma crash when viewing nepomuk stats via mouseover
Product: [Frameworks and Libraries] kdelibs Reporter: Kinkie <gkinkie>
Component: kshareddatacacheAssignee: kdelibs bugs <kdelibs-bugs>
Status: RESOLVED UNMAINTAINED    
Severity: crash CC: mpyne, mschiff
Priority: NOR Keywords: triaged
Version: unspecified   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:

Description Kinkie 2011-11-09 23:20:33 UTC
Application: plasma-desktop (0.4)
KDE Platform Version: 4.7.2 (4.7.2)
Qt Version: 4.7.4
Operating System: Linux 3.0.0-12-generic x86_64
Distribution: Ubuntu 11.10

-- Information about the crash:
While I was trying to get the mouseover window from the nepomuk systray widget, plasma crashed.

The crash can be reproduced some of the time.

-- Backtrace:
Application: Plasma Desktop Shell (plasma-desktop), signal: Aborted
[Current thread is 1 (Thread 0x7f2a5f4f77a0 (LWP 1871))]

Thread 3 (Thread 0x7f2a3e859700 (LWP 1872)):
#0  0xffffffffff60017b in ?? ()
#1  0x00007f2a3e858ad0 in ?? ()
#2  0x00007fff753ff7e7 in ?? ()
Backtrace stopped: previous frame identical to this frame (corrupt stack?)

Thread 2 (Thread 0x7f2a34ccb700 (LWP 1876)):
#0  __lll_lock_wait_private () at ../nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.S:97
#1  0x00007f2a5ed859df in _L_lock_10501 () from /lib/x86_64-linux-gnu/libc.so.6
#2  0x00007f2a5ed83d71 in __GI___libc_free (mem=0x7f2a5f0a11c0) at malloc.c:3736
#3  0x00007f2a533634e1 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007f2a5bfcec37 in QEventDispatcherGlib::~QEventDispatcherGlib() () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#5  0x00007f2a5bfcee49 in QEventDispatcherGlib::~QEventDispatcherGlib() () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#6  0x00007f2a5bebbe34 in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#7  0x00007f2a5bebcd0d in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#8  0x00007f2a53e74efc in start_thread (arg=0x7f2a34ccb700) at pthread_create.c:304
#9  0x00007f2a5ede889d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#10 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f2a5f4f77a0 (LWP 1871)):
[KCrash Handler]
#6  0x00007f2a5ed3d3a5 in __GI_raise (sig=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#7  0x00007f2a5ed40b0b in __GI_abort () at abort.c:92
#8  0x00007f2a5ed75113 in __libc_message (do_abort=2, fmt=0x7f2a5ee660d8 "*** glibc detected *** %s: %s: 0x%s ***\n") at ../sysdeps/unix/sysv/linux/libc_fatal.c:189
#9  0x00007f2a5ed7fa96 in malloc_printerr (action=3, str=0x7f2a5ee662a0 "free(): invalid next size (normal)", ptr=<optimized out>) at malloc.c:6283
#10 0x00007f2a5ed83d7c in __GI___libc_free (mem=<optimized out>) at malloc.c:3738
#11 0x00007f2a5b520e8a in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#12 0x00007f2a5b486f21 in QPaintEngine::~QPaintEngine() () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#13 0x00007f2a5b50b159 in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#14 0x00007f2a5b410141 in QImageData::~QImageData() () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#15 0x00007f2a5b410273 in QImage::~QImage() () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#16 0x00007f2a5b43920f in QRasterPixmapData::~QRasterPixmapData() () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#17 0x00007f2a5b439249 in QRasterPixmapData::~QRasterPixmapData() () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#18 0x00007f2a5b429ef9 in QPixmap::~QPixmap() () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#19 0x00007f2a5b429f29 in QPixmap::~QPixmap() () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#20 0x00007f2a5ccb8d66 in ?? () from /usr/lib/libkdeui.so.5
#21 0x00007f2a5ccb8e93 in ?? () from /usr/lib/libkdeui.so.5
#22 0x00007f2a5ccb85bf in KImageCache::insertPixmap(QString const&, QPixmap const&) () from /usr/lib/libkdeui.so.5
#23 0x00007f2a5e9aac7f in ?? () from /usr/lib/libplasma.so.3
#24 0x00007f2a5e9b168d in Plasma::Theme::qt_metacall(QMetaObject::Call, int, void**) () from /usr/lib/libplasma.so.3
#25 0x00007f2a5bfb6eba in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#26 0x00007f2a5bfba789 in QObject::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#27 0x00007f2a5b354424 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#28 0x00007f2a5b359291 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#29 0x00007f2a5cc52126 in KApplication::notify(QObject*, QEvent*) () from /usr/lib/libkdeui.so.5
#30 0x00007f2a5bfa3afc in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#31 0x00007f2a5bfd0d62 in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#32 0x00007f2a5bfce538 in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#33 0x00007f2a53367a5d in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#34 0x00007f2a53368258 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#35 0x00007f2a53368429 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#36 0x00007f2a5bfceed6 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#37 0x00007f2a5b3fc07e in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#38 0x00007f2a5bfa2cf2 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#39 0x00007f2a5bfa2ef7 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#40 0x00007f2a5bfa7789 in QCoreApplication::exec() () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#41 0x00007f2a5f0e71a3 in kdemain () from /usr/lib/kde4/libkdeinit/libkdeinit4_plasma-desktop.so
#42 0x00007f2a5ed2830d in __libc_start_main (main=0x400640, argc=1, ubp_av=0x7fff7534c708, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fff7534c6f8) at libc-start.c:226
#43 0x0000000000400671 in _start ()

Possible duplicates by query: bug 286217, bug 285571, bug 285198, bug 284455, bug 284119.

Reported using DrKonqi
Comment 1 Michael Pyne 2011-11-10 23:24:10 UTC
I understand that KImageCache appears in the backtrace, but KSharedDataCache does not (in fact kdecore.so doesn't show up at all anywhere near the relevant stack frames). The bug seems more likely to be in either Qt's graphics engine or Plasma code generating the QPixmap (based just on what I can see from the backtrace).

Reporter: It would be easier to see what's going on if you can install debugging symbols for Qt and kdelibs and then try to get a backtrace again (if you're able to reproduce the bug).

If it is a KSharedDataCache bug, removing /var/tmp/kdecache-$USER/*.kcache and restarting KDE might help.
Comment 2 Kinkie 2011-11-10 23:59:47 UTC
ok for qt debug; I have a bit of more difficulty in finding the right package(s), I'm running kubuntu Oneiric (11.10). Can you help me?

Thanks
Comment 3 Michael Pyne 2011-11-11 15:28:30 UTC
I don't run Kubuntu most of the time, but my understanding is that you want kdelibs5-dbg and kdebase-runtime-dbg packages. Plasma in addition needs kdebase-workspace-dbg. Also, I had thought the crash notifier had an option to find/install debug packages for you automatically, based on reading [1].

Please also read the the debugging pages at [2] as it may help you with Kubuntu-specific required packages for proper debugging (for this bug and others in the future ;)

[1] http://apachelog.wordpress.com/2010/03/09/opportunistic-kdekubuntu-debugging/
[2] https://wiki.kubuntu.org/Kubuntu/Bugs/Reporting
[2] https://wiki.kubuntu.org/DebuggingKDE

Also don't forget the tip about removing *.kcache files in my first comment; although I'm pretty sure this isn't a KSharedDataCache bug, knowing whether you still have this problem or not after removing those files **AND** restarting KDE is very useful information for trying to narrow down the problem space.
Comment 4 Michael Pyne 2012-05-19 23:34:53 UTC
Still waiting to see if removing *.kcache files helped and waiting for a backtrace with debugging info.

Regardless some more KSharedDataCache sanity checks will be going in for KDE 4.8.4 which may help.
Comment 5 Vishesh Handa 2012-05-22 18:09:21 UTC
*** Bug 296858 has been marked as a duplicate of this bug. ***
Comment 6 Andrew Crouthamel 2018-09-23 02:42:30 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information as soon as possible and set the bug status as REPORTED. Due to regular bug tracker maintenance, if the bug is still in NEEDSINFO status with no change in 30 days, the bug will be closed as RESOLVED > WORKSFORME due to lack of needed information.

For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please set the bug status as REPORTED so that the KDE team knows that the bug is ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 7 Andrew Crouthamel 2018-09-26 04:09:39 UTC
Hi there, this bug has been identified to be related to nepomuk, the semantic searching system in prior versions of KDE. Please note that nepomuk has been replaced by Baloo. I'm going to close this bug due to the use of the new Baloo system. Please do file a new bug for frameworks-baloo if you happen to continue having issues with search.