Bug 241126

Summary: crash after clicking on main menu
Product: [Frameworks and Libraries] kdelibs Reporter: Geraldo Augusto Vecchiato <geraldoav>
Component: kdeuiAssignee: kdelibs bugs <kdelibs-bugs>
Status: RESOLVED FIXED    
Severity: crash CC: cfeck, kde, mpyne
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In: 4.5.0

Description Geraldo Augusto Vecchiato 2010-06-08 21:38:56 UTC
Application: plasma-desktop (0.3)
KDE Platform Version: 4.4.4 (KDE 4.4.4)
Qt Version: 4.6.2
Operating System: Linux 2.6.33-ARCH x86_64
Distribution (Platform): Archlinux Packages

-- Information about the crash:
the crash occurred after clicking the main menu. The following applications were open at the time of failure: Firefox, konsole, kwrite, pidgin, skype, amsn, kwallet, netbeans and audacious. At the time I was testing CUPS. After the failure of AMSN icon left of the notification area and go alone into a small window. The day before the notification area disappeared from the main bar, so I imagine that the problem might be related to it.

 -- Backtrace:
Application: Espaço de trabalho do Plasma (kdeinit4), signal: Bus error
[Current thread is 1 (Thread 0x7f0daab82760 (LWP 3234))]

Thread 5 (Thread 0x7f0d931bf710 (LWP 4070)):
#0  0x00007f0da8e7443c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007f0da90f726b in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#2  0x00007f0da01bd05e in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned(ThreadWeaver::Thread*) () from /usr/lib/libthreadweaver.so.4
#3  0x00007f0da01bf373 in ThreadWeaver::WorkingHardState::applyForWork(ThreadWeaver::Thread*, ThreadWeaver::Job*) () from /usr/lib/libthreadweaver.so.4
#4  0x00007f0da01be26f in ThreadWeaver::ThreadRunHelper::run(ThreadWeaver::WeaverImpl*, ThreadWeaver::Thread*) () from /usr/lib/libthreadweaver.so.4
#5  0x00007f0da01be2f8 in ThreadWeaver::Thread::run() () from /usr/lib/libthreadweaver.so.4
#6  0x00007f0da90f6ba5 in ?? () from /usr/lib/libQtCore.so.4
#7  0x00007f0da8e6fcb0 in start_thread () from /lib/libpthread.so.0
#8  0x00007f0da7c7878d in clone () from /lib/libc.so.6
#9  0x0000000000000000 in ?? ()

Thread 4 (Thread 0x7f0d82c87710 (LWP 4071)):
#0  0x00007f0da8e7443c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007f0da90f726b in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#2  0x00007f0da01bd05e in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned(ThreadWeaver::Thread*) () from /usr/lib/libthreadweaver.so.4
#3  0x00007f0da01bf373 in ThreadWeaver::WorkingHardState::applyForWork(ThreadWeaver::Thread*, ThreadWeaver::Job*) () from /usr/lib/libthreadweaver.so.4
#4  0x00007f0da01bf38c in ThreadWeaver::WorkingHardState::applyForWork(ThreadWeaver::Thread*, ThreadWeaver::Job*) () from /usr/lib/libthreadweaver.so.4
#5  0x00007f0da01be26f in ThreadWeaver::ThreadRunHelper::run(ThreadWeaver::WeaverImpl*, ThreadWeaver::Thread*) () from /usr/lib/libthreadweaver.so.4
#6  0x00007f0da01be2f8 in ThreadWeaver::Thread::run() () from /usr/lib/libthreadweaver.so.4
#7  0x00007f0da90f6ba5 in ?? () from /usr/lib/libQtCore.so.4
#8  0x00007f0da8e6fcb0 in start_thread () from /lib/libpthread.so.0
#9  0x00007f0da7c7878d in clone () from /lib/libc.so.6
#10 0x0000000000000000 in ?? ()

Thread 3 (Thread 0x7f0d82486710 (LWP 4072)):
#0  0x00007f0da8e7443c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007f0da90f726b in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#2  0x00007f0da01bd05e in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned(ThreadWeaver::Thread*) () from /usr/lib/libthreadweaver.so.4
#3  0x00007f0da01bf373 in ThreadWeaver::WorkingHardState::applyForWork(ThreadWeaver::Thread*, ThreadWeaver::Job*) () from /usr/lib/libthreadweaver.so.4
#4  0x00007f0da01bf38c in ThreadWeaver::WorkingHardState::applyForWork(ThreadWeaver::Thread*, ThreadWeaver::Job*) () from /usr/lib/libthreadweaver.so.4
#5  0x00007f0da01bf38c in ThreadWeaver::WorkingHardState::applyForWork(ThreadWeaver::Thread*, ThreadWeaver::Job*) () from /usr/lib/libthreadweaver.so.4
#6  0x00007f0da01be26f in ThreadWeaver::ThreadRunHelper::run(ThreadWeaver::WeaverImpl*, ThreadWeaver::Thread*) () from /usr/lib/libthreadweaver.so.4
#7  0x00007f0da01be2f8 in ThreadWeaver::Thread::run() () from /usr/lib/libthreadweaver.so.4
#8  0x00007f0da90f6ba5 in ?? () from /usr/lib/libQtCore.so.4
#9  0x00007f0da8e6fcb0 in start_thread () from /lib/libpthread.so.0
#10 0x00007f0da7c7878d in clone () from /lib/libc.so.6
#11 0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7f0d81c85710 (LWP 4073)):
#0  0x00007f0da8e7443c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007f0da90f726b in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#2  0x00007f0da01bd05e in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned(ThreadWeaver::Thread*) () from /usr/lib/libthreadweaver.so.4
#3  0x00007f0da01bf373 in ThreadWeaver::WorkingHardState::applyForWork(ThreadWeaver::Thread*, ThreadWeaver::Job*) () from /usr/lib/libthreadweaver.so.4
#4  0x00007f0da01be26f in ThreadWeaver::ThreadRunHelper::run(ThreadWeaver::WeaverImpl*, ThreadWeaver::Thread*) () from /usr/lib/libthreadweaver.so.4
#5  0x00007f0da01be2f8 in ThreadWeaver::Thread::run() () from /usr/lib/libthreadweaver.so.4
#6  0x00007f0da90f6ba5 in ?? () from /usr/lib/libQtCore.so.4
#7  0x00007f0da8e6fcb0 in start_thread () from /lib/libpthread.so.0
#8  0x00007f0da7c7878d in clone () from /lib/libc.so.6
#9  0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f0daab82760 (LWP 3234)):
[KCrash Handler]
#5  0x00007f0da7c29b6b in memcpy () from /lib/libc.so.6
#6  0x00007f0da976e192 in (anonymous namespace)::KPCMemoryDevice::writeData(char const*, long long) () from /usr/lib/libkdeui.so.5
#7  0x00007f0da9178c2c in QIODevice::write(char const*, long long) () from /usr/lib/libQtCore.so.4
#8  0x00007f0da9165d0a in QDataStream::writeRawData(char const*, int) () from /usr/lib/libQtCore.so.4
#9  0x00007f0da9165d66 in QDataStream::writeBytes(char const*, unsigned int) () from /usr/lib/libQtCore.so.4
#10 0x00007f0da9772c20 in KPixmapCache::Private::writeData(QString const&, QPixmap const&) () from /usr/lib/libkdeui.so.5
#11 0x00007f0da9774d13 in KPixmapCache::insert(QString const&, QPixmap const&) () from /usr/lib/libkdeui.so.5
#12 0x00007f0da96d213b in KIconCache::insert(QString const&, QPixmap const&, QString const&) () from /usr/lib/libkdeui.so.5
#13 0x00007f0da96c940e in KIconLoader::loadIcon(QString const&, KIconLoader::Group, int, int, QStringList const&, QString*, bool) const () from /usr/lib/libkdeui.so.5
#14 0x00007f0da96c256d in KIconEngine::pixmap(QSize const&, QIcon::Mode, QIcon::State) () from /usr/lib/libkdeui.so.5
#15 0x00007f0da845e1c5 in QIcon::pixmap(QSize const&, QIcon::Mode, QIcon::State) const () from /usr/lib/libQtGui.so.4
#16 0x00007f0d96220101 in LauncherApplet::Private::initToolTip() () from /usr/lib/kde4/plasma_applet_launcher.so
#17 0x00007f0d9622068c in LauncherApplet::qt_metacall(QMetaObject::Call, int, void**) () from /usr/lib/kde4/plasma_applet_launcher.so
#18 0x00007f0da91e7e8f in QMetaMethod::invoke(QObject*, Qt::ConnectionType, QGenericReturnArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument) const () from /usr/lib/libQtCore.so.4
#19 0x00007f0da91e84f8 in QMetaObject::invokeMethod(QObject*, char const*, Qt::ConnectionType, QGenericReturnArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument) () from /usr/lib/libQtCore.so.4
#20 0x00007f0da1db0a28 in Plasma::ToolTipManagerPrivate::showToolTip() () from /usr/lib/libplasma.so.3
#21 0x00007f0da1db0f25 in Plasma::ToolTipManager::qt_metacall(QMetaObject::Call, int, void**) () from /usr/lib/libplasma.so.3
#22 0x00007f0da91f362f in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4
#23 0x00007f0da91f0bee in QObject::event(QEvent*) () from /usr/lib/libQtCore.so.4
#24 0x00007f0da83bce84 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#25 0x00007f0da83c0f6a in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#26 0x00007f0da96fbf66 in KApplication::notify(QObject*, QEvent*) () from /usr/lib/libkdeui.so.5
#27 0x00007f0da91df79c in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/libQtCore.so.4
#28 0x00007f0da920a9b2 in ?? () from /usr/lib/libQtCore.so.4
#29 0x00007f0da9207958 in ?? () from /usr/lib/libQtCore.so.4
#30 0x00007f0da4891b33 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#31 0x00007f0da4892310 in g_main_context_iterate () from /usr/lib/libglib-2.0.so.0
#32 0x00007f0da48925ad in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#33 0x00007f0da920800f in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#34 0x00007f0da845c4be in ?? () from /usr/lib/libQtGui.so.4
#35 0x00007f0da91deb82 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#36 0x00007f0da91dedbc in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#37 0x00007f0da91e30eb in QCoreApplication::exec() () from /usr/lib/libQtCore.so.4
#38 0x00007f0d9de6d2cd in kdemain () from /usr/lib/libkdeinit4_plasma-desktop.so
#39 0x0000000000406693 in _start ()

Reported using DrKonqi
Comment 1 Nicolas L. 2010-06-09 00:38:33 UTC
please install the debug packages for 

kdelibs
qt4


and give a new backtrace
Comment 2 Nicolas L. 2010-06-16 10:03:06 UTC
please install the debug packages for 

kdelibs
qt4


and give a new backtrace
Comment 3 Christoph Feck 2010-10-14 00:27:51 UTC
(I quickly reviewed the backtrace of this crash, and it appears to be caused by KIconCache memory corruption. If this is not the case, please reopen.)

Closing all KIconCache crashes as fixed, because the KIconLoader in KDE SC 4.5 now uses KSharedDataCache to cache icons, and it is believed that the new class is less prone to random crashes or memory corruption.

If you still can reproduce a crash with version 4.5, please report it separately. If you cannot upgrade to 4.5 yet, you should be able to work around this crash by deleting the icon cache files in /var/tmp/kdecache-<user>/kpc