Bug 295091

Summary: Kontact crash when delete email
Product: [Applications] kontact Reporter: Martin Zahnd <martin>
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED DUPLICATE    
Severity: crash CC: branislav.klocok
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:

Description Martin Zahnd 2012-02-29 20:30:01 UTC
Application: kontact (4.8.0)
KDE Platform Version: 4.8.00 (4.8.0 "release 5"
Qt Version: 4.8.0
Operating System: Linux 3.1.9-1.4-desktop x86_64
Distribution: "openSUSE 12.1 (x86_64)"

-- Information about the crash:
- What I was doing when the application crashed:
a) open Kontakt , Email Tab, receive some new Email
b) delete first new received email
Kontact crashed.
When reopen Kontact a second time, it works.
Maybe Akonadi Problem?

The crash can be reproduced some of the time.

-- Backtrace:
Application: Kontact (kontact), signal: Segmentation fault
[Current thread is 1 (Thread 0x7fe1691d4760 (LWP 4191))]

Thread 5 (Thread 0x7fe150876700 (LWP 4192)):
#0  0x00007fe161064e6c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007fe1659f0c12 in ?? () from /usr/lib64/libQtWebKit.so.4
#2  0x00007fe1659f0c49 in ?? () from /usr/lib64/libQtWebKit.so.4
#3  0x00007fe161060f05 in start_thread () from /lib64/libpthread.so.0
#4  0x00007fe1666e063d in clone () from /lib64/libc.so.6

Thread 4 (Thread 0x7fe14ff55700 (LWP 4193)):
#0  0x00007fe1666d7523 in poll () from /lib64/libc.so.6
#1  0x00007fe160b51a98 in ?? () from /usr/lib64/libglib-2.0.so.0
#2  0x00007fe160b51f59 in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#3  0x00007fe166e4e956 in QEventDispatcherGlib::processEvents (this=0x7fe1480008c0, flags=<optimized out>) at kernel/qeventdispatcher_glib.cpp:426
#4  0x00007fe166e1e682 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#5  0x00007fe166e1e8d7 in QEventLoop::exec (this=0x7fe14ff54e20, flags=...) at kernel/qeventloop.cpp:204
#6  0x00007fe166d1f537 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:501
#7  0x00007fe166d2255b in QThreadPrivate::start (arg=0x770430) at thread/qthread_unix.cpp:298
#8  0x00007fe161060f05 in start_thread () from /lib64/libpthread.so.0
#9  0x00007fe1666e063d in clone () from /lib64/libc.so.6

Thread 3 (Thread 0x7fe10391f700 (LWP 4197)):
[KCrash Handler]
#6  0x00007fe15a5cd6e5 in lockInline (this=0x630838) at /usr/include/QtCore/qmutex.h:187
#7  QMutexLocker (m=0x630838, this=0x7fe10391e4b0) at /usr/include/QtCore/qmutex.h:109
#8  Soprano::Error::ErrorCache::clearError (this=0x7fe0fc003540) at /usr/src/debug/soprano-2.7.4/soprano/error.cpp:238
#9  0x00007fe15a5cde48 in Soprano::Error::ErrorCache::setError (this=0x7fe0fc003540, error=...) at /usr/src/debug/soprano-2.7.4/soprano/error.cpp:225
#10 0x00007fe15a35ef7f in Soprano::Client::DBusModel::executeQuery (this=0x7fe0fc003530, query=<optimized out>, language=<optimized out>, userQueryLanguage=<optimized out>) at /usr/src/debug/soprano-2.7.4/client/dbus/dbusmodel.cpp:112
#11 0x00007fe15e8bf64c in Nepomuk::MainModel::executeQuery (this=0xb5bc50, query=..., language=Soprano::Query::QueryLanguageSparql, userQueryLanguage=...) at /usr/src/debug/kdelibs-4.8.0/nepomuk/core/nepomukmainmodel.cpp:212
#12 0x00007fe15a5dfecc in Soprano::FilterModel::executeQuery (this=0xc69480, query=<optimized out>, language=<optimized out>, userQueryLanguage=<optimized out>) at /usr/src/debug/soprano-2.7.4/soprano/filtermodel.cpp:164
#13 0x00007fe15e8ae8a7 in Nepomuk::ResourceData::load (this=0x7fe0fc01d6d0) at /usr/src/debug/kdelibs-4.8.0/nepomuk/core/resourcedata.cpp:381
#14 0x00007fe15e8af0bc in Nepomuk::ResourceData::property (this=0x7fe0fc01d6d0, uri=...) at /usr/src/debug/kdelibs-4.8.0/nepomuk/core/resourcedata.cpp:240
#15 0x00007fe15e8c2793 in Nepomuk::Resource::property (this=0x7fe10391ed20, uri=...) at /usr/src/debug/kdelibs-4.8.0/nepomuk/core/resource.cpp:301
#16 0x00007fe14c3210ca in MessageCore::NepomukResourceRetrieverRunnable::run (this=0x12c46e0) at /usr/src/debug/kdepim-4.8.0/messagecore/asyncnepomukresourceretriever.cpp:47
#17 0x00007fe166d15d12 in QThreadPoolThread::run (this=0xd52da0) at concurrent/qthreadpool.cpp:107
#18 0x00007fe166d2255b in QThreadPrivate::start (arg=0xd52da0) at thread/qthread_unix.cpp:298
#19 0x00007fe161060f05 in start_thread () from /lib64/libpthread.so.0
#20 0x00007fe1666e063d in clone () from /lib64/libc.so.6

Thread 2 (Thread 0x7fe1025b3700 (LWP 4226)):
#0  0x00007fe1666dd209 in syscall () from /lib64/libc.so.6
#1  0x00007fe166d2102b in _q_futex (val2=0, addr2=0x0, timeout=0x0, val=2, op=0, addr=0x7fe0fc003090) at thread/qmutex_unix.cpp:99
#2  QMutexPrivate::wait (this=0x7fe0fc003090, timeout=<optimized out>) at thread/qmutex_unix.cpp:113
#3  0x00007fe166d1cf4d in QMutex::lock (this=<optimized out>) at thread/qmutex.cpp:164
#4  0x00007fe15e8aeb00 in lockInline (this=0x7fe0fc01d718) at /usr/include/QtCore/qmutex.h:188
#5  QMutexLocker (m=0x7fe0fc01d718, this=<synthetic pointer>) at /usr/include/QtCore/qmutex.h:109
#6  Nepomuk::ResourceData::load (this=0x7fe0fc01d6d0) at /usr/src/debug/kdelibs-4.8.0/nepomuk/core/resourcedata.cpp:368
#7  0x00007fe15e8af0bc in Nepomuk::ResourceData::property (this=0x7fe0fc01d6d0, uri=...) at /usr/src/debug/kdelibs-4.8.0/nepomuk/core/resourcedata.cpp:240
#8  0x00007fe15e8c2793 in Nepomuk::Resource::property (this=0x7fe1025b2d20, uri=...) at /usr/src/debug/kdelibs-4.8.0/nepomuk/core/resource.cpp:301
#9  0x00007fe14c3210ca in MessageCore::NepomukResourceRetrieverRunnable::run (this=0xf80810) at /usr/src/debug/kdepim-4.8.0/messagecore/asyncnepomukresourceretriever.cpp:47
#10 0x00007fe166d15d12 in QThreadPoolThread::run (this=0x1239330) at concurrent/qthreadpool.cpp:107
#11 0x00007fe166d2255b in QThreadPrivate::start (arg=0x1239330) at thread/qthread_unix.cpp:298
#12 0x00007fe161060f05 in start_thread () from /lib64/libpthread.so.0
#13 0x00007fe1666e063d in clone () from /lib64/libc.so.6

Thread 1 (Thread 0x7fe1691d4760 (LWP 4191)):
#0  0x00007fe1666d7523 in poll () from /lib64/libc.so.6
#1  0x00007fe15beb64c0 in ?? () from /lib64/libdbus-1.so.3
#2  0x00007fe15beb539d in ?? () from /lib64/libdbus-1.so.3
#3  0x00007fe15bea0505 in ?? () from /lib64/libdbus-1.so.3
#4  0x00007fe15bea1889 in ?? () from /lib64/libdbus-1.so.3
#5  0x00007fe15bea0dec in dbus_connection_send_with_reply_and_block () from /lib64/libdbus-1.so.3
#6  0x00007fe163826f05 in q_dbus_connection_send_with_reply_and_block (error=0x7fff5952c0e0, timeout_milliseconds=-1, message=0xc722d0, connection=<optimized out>) at qdbus_symbols_p.h:135
#7  QDBusConnectionPrivate::sendWithReply (this=0x62c6d0, message=..., sendMode=<optimized out>, timeout=-1) at qdbusintegrator.cpp:1904
#8  0x00007fe16381439b in QDBusConnection::call (this=0xc71738, message=<optimized out>, mode=<optimized out>, timeout=<optimized out>) at qdbusconnection.cpp:597
#9  0x00007fe163833bb4 in QDBusAbstractInterface::callWithArgumentList (this=0x957610, mode=QDBus::Block, method=<optimized out>, args=...) at qdbusabstractinterface.cpp:468
#10 0x00007fe15a35b844 in createModel (name=<optimized out>, this=0x957610) at /usr/src/debug/soprano-2.7.4/client/dbus/dbusserverinterface.h:57
#11 Soprano::Client::DBusClient::createModel (this=<optimized out>, name=<optimized out>, settings=<optimized out>) at /usr/src/debug/soprano-2.7.4/client/dbus/dbusclient.cpp:69
#12 0x00007fe15e8ba9ee in init (forced=true, this=0xc71460) at /usr/src/debug/kdelibs-4.8.0/nepomuk/core/nepomukmainmodel.cpp:92
#13 Nepomuk::MainModel::init (this=0xb5bc50) at /usr/src/debug/kdelibs-4.8.0/nepomuk/core/nepomukmainmodel.cpp:176
#14 0x00007fe15e8b0859 in Nepomuk::ResourceManager::init (this=0x9ed0d0) at /usr/src/debug/kdelibs-4.8.0/nepomuk/core/resourcemanager.cpp:331
#15 0x00007fe15e8b3b65 in Nepomuk::ResourceManagerPrivate::_k_storageServiceInitialized (this=0xc70160, success=<optimized out>) at /usr/src/debug/kdelibs-4.8.0/nepomuk/core/resourcemanager.cpp:221
#16 0x00007fe15e8b3cbb in Nepomuk::ResourceManager::qt_metacall (this=0x9ed0d0, _c=QMetaObject::InvokeMetaMethod, _id=<optimized out>, _a=0x7fff5952ca10) at /usr/src/debug/kdelibs-4.8.0/build/nepomuk/resourcemanager.moc:107
#17 0x00007fe163822f6b in QDBusConnectionPrivate::deliverCall (this=0x62c6d0, object=0x9ed0d0, msg=..., metaTypes=..., slotIdx=9) at qdbusintegrator.cpp:947
#18 0x00007fe166e38926 in QObject::event (this=0x9ed0d0, e=<optimized out>) at kernel/qobject.cpp:1204
#19 0x00007fe167832e84 in notify_helper (e=0xe61d80, receiver=0x9ed0d0, this=0x638340) at kernel/qapplication.cpp:4550
#20 QApplicationPrivate::notify_helper (this=0x638340, receiver=0x9ed0d0, e=0xe61d80) at kernel/qapplication.cpp:4522
#21 0x00007fe167837d03 in QApplication::notify (this=0x7fff5952d440, receiver=0x9ed0d0, e=0xe61d80) at kernel/qapplication.cpp:4411
#22 0x00007fe168576786 in KApplication::notify (this=0x7fff5952d440, receiver=0x9ed0d0, event=0xe61d80) at /usr/src/debug/kdelibs-4.8.0/kdeui/kernel/kapplication.cpp:311
#23 0x00007fe166e1f89c in QCoreApplication::notifyInternal (this=0x7fff5952d440, receiver=0x9ed0d0, event=0xe61d80) at kernel/qcoreapplication.cpp:876
#24 0x00007fe166e2313a in sendEvent (event=0xe61d80, receiver=0x9ed0d0) at kernel/qcoreapplication.h:231
#25 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x60da60) at kernel/qcoreapplication.cpp:1500
#26 0x00007fe166e4e4c3 in sendPostedEvents () at kernel/qcoreapplication.h:236
#27 postEventSourceDispatch (s=<optimized out>) at kernel/qeventdispatcher_glib.cpp:279
#28 0x00007fe160b5158d in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
#29 0x00007fe160b51d88 in ?? () from /usr/lib64/libglib-2.0.so.0
#30 0x00007fe160b51f59 in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#31 0x00007fe166e4e8ef in QEventDispatcherGlib::processEvents (this=0x60d320, flags=<optimized out>) at kernel/qeventdispatcher_glib.cpp:424
#32 0x00007fe1678d62de in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=<optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#33 0x00007fe166e1e682 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#34 0x00007fe166e1e8d7 in QEventLoop::exec (this=0x7fff5952d3d0, flags=...) at kernel/qeventloop.cpp:204
#35 0x00007fe166e23435 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1148
#36 0x0000000000403919 in ?? ()
#37 0x00007fe16662823d in __libc_start_main () from /lib64/libc.so.6
#38 0x0000000000403e51 in _start ()

Reported using DrKonqi
Comment 1 Branislav Klocok 2012-03-08 18:54:21 UTC
This seems similar to my problem, but I have found a combination of actions, where Kontact crashes always:
- Open Kontakt
- Go to any email
- Click on the email address in the header of the selected email to compose a new message to this email
- start writing something to the message body
- Crash

Here is the back-trace:
Application: Kontact (kontact), signal: Segmentation fault
[Current thread is 1 (Thread 0x7fa82037e760 (LWP 13206))]

Thread 5 (Thread 0x7fa807f13700 (LWP 13207)):
#0  0x00007fa818203e6c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007fa81cb92c12 in ?? () from /usr/lib64/libQtWebKit.so.4
#2  0x00007fa81cb92c49 in ?? () from /usr/lib64/libQtWebKit.so.4
#3  0x00007fa8181fff05 in start_thread () from /lib64/libpthread.so.0
#4  0x00007fa81d88263d in clone () from /lib64/libc.so.6

Thread 4 (Thread 0x7fa8075fa700 (LWP 13208)):
#0  0x00007fa8182031b0 in pthread_mutex_unlock () from /lib64/libpthread.so.0
#1  0x00007fa817cf0b43 in ?? () from /usr/lib64/libglib-2.0.so.0
#2  0x00007fa817cf0f59 in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#3  0x00007fa81dff0956 in QEventDispatcherGlib::processEvents (this=0x7fa8000008c0, flags=<optimized out>) at kernel/qeventdispatcher_glib.cpp:426
#4  0x00007fa81dfc0682 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#5  0x00007fa81dfc08d7 in QEventLoop::exec (this=0x7fa8075f9e20, flags=...) at kernel/qeventloop.cpp:204
#6  0x00007fa81dec1537 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:501
#7  0x00007fa81dec455b in QThreadPrivate::start (arg=0x734660) at thread/qthread_unix.cpp:298
#8  0x00007fa8181fff05 in start_thread () from /lib64/libpthread.so.0
#9  0x00007fa81d88263d in clone () from /lib64/libc.so.6

Thread 3 (Thread 0x7fa7b27fc700 (LWP 13261)):
#0  0x00007fa8182041eb in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007fa81dec49cf in wait (time=30000, this=0x10e2e40) at thread/qwaitcondition_unix.cpp:84
#2  QWaitCondition::wait (this=<optimized out>, mutex=0x10e2db8, time=30000) at thread/qwaitcondition_unix.cpp:158
#3  0x00007fa81deb7ddf in QThreadPoolThread::run (this=0x10f5ea0) at concurrent/qthreadpool.cpp:141
#4  0x00007fa81dec455b in QThreadPrivate::start (arg=0x10f5ea0) at thread/qthread_unix.cpp:298
#5  0x00007fa8181fff05 in start_thread () from /lib64/libpthread.so.0
#6  0x00007fa81d88263d in clone () from /lib64/libc.so.6

Thread 2 (Thread 0x7fa7b1ffb700 (LWP 13275)):
#0  0x00007fa8182041eb in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007fa81dec49cf in wait (time=30000, this=0x1a4cca0) at thread/qwaitcondition_unix.cpp:84
#2  QWaitCondition::wait (this=<optimized out>, mutex=0x1a4cc18, time=30000) at thread/qwaitcondition_unix.cpp:158
#3  0x00007fa81deb7ddf in QThreadPoolThread::run (this=0x1a4df70) at concurrent/qthreadpool.cpp:141
#4  0x00007fa81dec455b in QThreadPrivate::start (arg=0x1a4df70) at thread/qthread_unix.cpp:298
#5  0x00007fa8181fff05 in start_thread () from /lib64/libpthread.so.0
#6  0x00007fa81d88263d in clone () from /lib64/libc.so.6

Thread 1 (Thread 0x7fa82037e760 (LWP 13206)):
[KCrash Handler]
#6  0x00007fa81dfd2db4 in QObject::killTimer (this=0xeed788, id=0) at kernel/qobject.cpp:1612
#7  0x00007fa81dfdecd1 in stop (this=0xeed788) at kernel/qtimer.cpp:266
#8  QTimer::stop (this=0xeed788) at kernel/qtimer.cpp:263
#9  0x00007fa81dfdecef in QTimer::start (this=0xeed788) at kernel/qtimer.cpp:216
#10 0x00007fa81f773564 in Sonnet::Highlighter::eventFilter(QObject*, QEvent*) () from /usr/lib64/libkdeui.so.5
#11 0x00007fa81dfc1a28 in QCoreApplicationPrivate::sendThroughObjectEventFilters (this=<optimized out>, receiver=0xd7a280, event=0x7fffc1095470) at kernel/qcoreapplication.cpp:986
#12 0x00007fa81e9d4e4f in notify_helper (e=0x7fffc1095470, receiver=0xd7a280, this=0x63ebe0) at kernel/qapplication.cpp:4546
#13 QApplicationPrivate::notify_helper (this=0x63ebe0, receiver=0xd7a280, e=0x7fffc1095470) at kernel/qapplication.cpp:4522
#14 0x00007fa81e9da3ce in QApplication::notify (this=<optimized out>, receiver=<optimized out>, e=0x7fffc1095470) at kernel/qapplication.cpp:3991
#15 0x00007fa81f719656 in KApplication::notify(QObject*, QEvent*) () from /usr/lib64/libkdeui.so.5
#16 0x00007fa81dfc189c in QCoreApplication::notifyInternal (this=0x7fffc1096390, receiver=0xd7a280, event=0x7fffc1095470) at kernel/qcoreapplication.cpp:876
#17 0x00007fa81ea741c9 in QKeyMapper::sendKeyEvent (keyWidget=0xd7a280, grab=<optimized out>, type=QEvent::KeyPress, code=88, modifiers=..., text=..., autorepeat=false, count=1, nativeScanCode=53, nativeVirtualKey=120, nativeModifiers=16) at kernel/qkeymapper_x11.cpp:1866
#18 0x00007fa81ea7463b in QKeyMapperPrivate::translateKeyEvent (this=0x67ca50, keyWidget=0xd7a280, event=0x7fffc1095f50, grab=false) at kernel/qkeymapper_x11.cpp:1836
#19 0x00007fa81ea50604 in QApplication::x11ProcessEvent (this=0x7fffc1096390, event=0x7fffc1095f50) at kernel/qapplication_x11.cpp:3524
#20 0x00007fa81ea78652 in x11EventSourceDispatch (s=0x643750, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#21 0x00007fa817cf058d in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
#22 0x00007fa817cf0d88 in ?? () from /usr/lib64/libglib-2.0.so.0
#23 0x00007fa817cf0f59 in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#24 0x00007fa81dff08ef in QEventDispatcherGlib::processEvents (this=0x60d320, flags=<optimized out>) at kernel/qeventdispatcher_glib.cpp:424
#25 0x00007fa81ea782de in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=<optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#26 0x00007fa81dfc0682 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#27 0x00007fa81dfc08d7 in QEventLoop::exec (this=0x7fffc1096320, flags=...) at kernel/qeventloop.cpp:204
#28 0x00007fa81dfc5435 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1148
#29 0x0000000000403919 in ?? ()
#30 0x00007fa81d7ca23d in __libc_start_main () from /lib64/libc.so.6
#31 0x0000000000403e51 in _start ()

My configuration is:
Linux 3.1.9-1.4-desktop x86_64
openSUSE 12.1 (x86_64)
KDE:  4.8.1 (4.8.1) "release 478"
Comment 2 Christophe Marin 2012-03-08 21:55:52 UTC

*** This bug has been marked as a duplicate of bug 245266 ***