Bug 304372

Summary: Kontact crashes after each KDE login
Product: [Applications] kmail2 Reporter: Michael Brach <michael.brach>
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED DUPLICATE    
Severity: crash    
Priority: NOR    
Version: 4.8.4   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Michael Brach 2012-08-01 08:37:25 UTC
Application: kontact (4.8.4)
KDE Platform Version: 4.8.4 (4.8.4)
Qt Version: 4.8.1
Operating System: Linux 3.2.0-27-generic x86_64
Distribution: Ubuntu 12.04 LTS

-- Information about the crash:
- What I was doing when the application crashed:
Each time after KDE login Kontact would crash (typically it hangs until I manually kill it).
Today I (see report attached) tried to shut down Kontact before the crash but did not succeed.

Re-Starting Kontact would still cause a second crash. My workaround is: 
1. Tolerating the first crach
2. ps aux | grep kontact
3. killing all tasks shown by (2) and wating until they shut down
4. wainting until nepomuk, virtuoso and so on have done some work
5. starting Kontact

The crash can be reproduced every time.

-- Backtrace:
Application: Kontact (kontact), signal: Segmentation fault
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f15cdc5c7c0 (LWP 1970))]

Thread 4 (Thread 0x7f15b161a700 (LWP 1982)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007f15ca44fdec in ?? () from /usr/lib/x86_64-linux-gnu/libQtWebKit.so.4
#2  0x00007f15ca44ff19 in ?? () from /usr/lib/x86_64-linux-gnu/libQtWebKit.so.4
#3  0x00007f15c5913e9a in start_thread (arg=0x7f15b161a700) at pthread_create.c:308
#4  0x00007f15cb1814bd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#5  0x0000000000000000 in ?? ()

Thread 3 (Thread 0x7f15b0d01700 (LWP 1983)):
#0  0x00007f15cb175b03 in __GI___poll (fds=<optimized out>, nfds=<optimized out>, timeout=<optimized out>) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007f15c5447036 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f15c5447164 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f15cb8f6426 in QEventDispatcherGlib::processEvents (this=0x7f15ac0008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#4  0x00007f15cb8c5c82 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#5  0x00007f15cb8c5ed7 in QEventLoop::exec (this=0x7f15b0d00dc0, flags=...) at kernel/qeventloop.cpp:204
#6  0x00007f15cb7c4fa7 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:501
#7  0x00007f15cb7c7fcb in QThreadPrivate::start (arg=0xd73a20) at thread/qthread_unix.cpp:298
#8  0x00007f15c5913e9a in start_thread (arg=0x7f15b0d01700) at pthread_create.c:308
#9  0x00007f15cb1814bd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#10 0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7f1556a84700 (LWP 2347)):
#0  0x00007fff581648de in ?? ()
#1  0x00007f15c3c7715d in __GI_clock_gettime (clock_id=<optimized out>, tp=<optimized out>) at ../sysdeps/unix/clock_gettime.c:116
#2  0x00007f15cb81ebb4 in do_gettime (frac=0x7f1556a83b58, sec=0x7f1556a83b50) at tools/qelapsedtimer_unix.cpp:123
#3  qt_gettime () at tools/qelapsedtimer_unix.cpp:140
#4  0x00007f15cb8f6b8d in QTimerInfoList::updateCurrentTime (this=0x7f1548002660) at kernel/qeventdispatcher_unix.cpp:343
#5  0x00007f15cb8f6ec3 in QTimerInfoList::timerWait (this=0x7f1548002660, tm=...) at kernel/qeventdispatcher_unix.cpp:450
#6  0x00007f15cb8f597c in timerSourcePrepareHelper (src=<optimized out>, timeout=0x7f1556a83c2c) at kernel/qeventdispatcher_glib.cpp:136
#7  0x00007f15cb8f5a25 in timerSourcePrepare (source=<optimized out>, timeout=<optimized out>) at kernel/qeventdispatcher_glib.cpp:169
#8  0x00007f15c5446846 in g_main_context_prepare () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#9  0x00007f15c5446f5b in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#10 0x00007f15c5447164 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#11 0x00007f15cb8f6426 in QEventDispatcherGlib::processEvents (this=0x7f15480008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#12 0x00007f15cb8c5c82 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#13 0x00007f15cb8c5ed7 in QEventLoop::exec (this=0x7f1556a83d90, flags=...) at kernel/qeventloop.cpp:204
#14 0x00007f15cb7c4fa7 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:501
#15 0x00007f15cb8a59ff in QInotifyFileSystemWatcherEngine::run (this=0x1d0ce30) at io/qfilesystemwatcher_inotify.cpp:248
#16 0x00007f15cb7c7fcb in QThreadPrivate::start (arg=0x1d0ce30) at thread/qthread_unix.cpp:298
#17 0x00007f15c5913e9a in start_thread (arg=0x7f1556a84700) at pthread_create.c:308
#18 0x00007f15cb1814bd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#19 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f15cdc5c7c0 (LWP 1970)):
[KCrash Handler]
#6  0x00007f15683c3c1d in KMKernel::setAccountStatus (this=<optimized out>, goOnline=true) at ../../kmail/kmkernel.cpp:945
#7  0x00007f15683f5148 in KMMainWidget::slotNetworkStatusChanged (this=<optimized out>, status=Solid::Networking::Connected) at ../../kmail/kmmainwidget.cpp:2660
#8  0x00007f1568412240 in KMMainWidget::qt_static_metacall (_o=0x11df990, _c=<optimized out>, _id=<optimized out>, _a=0x7fff580aaee0) at ./kmmainwidget.moc:419
#9  0x00007f15cb8db281 in QMetaObject::activate (sender=0x1392010, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7fff580aaee0) at kernel/qobject.cpp:3547
#10 0x00007f15c1b2185e in Solid::Networking::Notifier::statusChanged (this=<optimized out>, _t1=Solid::Networking::Connected) at ./networking.moc:104
#11 0x00007f15cb8db281 in QMetaObject::activate (sender=0x13437e0, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7fff580ab030) at kernel/qobject.cpp:3547
#12 0x00007f15c1b8783e in OrgKdeSolidNetworkingClientInterface::statusChanged (this=<optimized out>, _t1=4) at org_kde_solid_networking_client.moc:132
#13 0x00007f15c1b8788e in OrgKdeSolidNetworkingClientInterface::qt_static_metacall (_o=0x13437e0, _c=<optimized out>, _id=<optimized out>, _a=0x7fff580ab330) at org_kde_solid_networking_client.moc:58
#14 0x00007f15c1b87d0f in OrgKdeSolidNetworkingClientInterface::qt_metacall (this=0x13437e0, _c=QMetaObject::InvokeMetaMethod, _id=0, _a=0x7fff580ab330) at org_kde_solid_networking_client.moc:99
#15 0x00007f15c804737b in QDBusConnectionPrivate::deliverCall (this=0xbacd00, object=0x13437e0, msg=..., metaTypes=..., slotIdx=5) at qdbusintegrator.cpp:947
#16 0x00007f15cb8e0446 in QObject::event (this=0x13437e0, e=<optimized out>) at kernel/qobject.cpp:1195
#17 0x00007f15cc2c1894 in notify_helper (e=0x173b550, receiver=0x13437e0, this=0xbc5f30) at kernel/qapplication.cpp:4559
#18 QApplicationPrivate::notify_helper (this=0xbc5f30, receiver=0x13437e0, e=0x173b550) at kernel/qapplication.cpp:4531
#19 0x00007f15cc2c6713 in QApplication::notify (this=0x7fff580ad7c0, receiver=0x13437e0, e=0x173b550) at kernel/qapplication.cpp:4420
#20 0x00007f15ccffb9e6 in KApplication::notify (this=0x7fff580ad7c0, receiver=0x13437e0, event=0x173b550) at ../../kdeui/kernel/kapplication.cpp:311
#21 0x00007f15cb8c6e9c in QCoreApplication::notifyInternal (this=0x7fff580ad7c0, receiver=0x13437e0, event=0x173b550) at kernel/qcoreapplication.cpp:876
#22 0x00007f15cb8cac6a in sendEvent (event=0x173b550, receiver=0x13437e0) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#23 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0xb8c380) at kernel/qcoreapplication.cpp:1500
#24 0x00007f15cb8f5f93 in sendPostedEvents () at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:236
#25 postEventSourceDispatch (s=<optimized out>) at kernel/qeventdispatcher_glib.cpp:279
#26 0x00007f15c5446d53 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#27 0x00007f15c54470a0 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#28 0x00007f15c5447164 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#29 0x00007f15cb8f63bf in QEventDispatcherGlib::processEvents (this=0xb8dc10, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#30 0x00007f15cc369d5e in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#31 0x00007f15cb8c5c82 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#32 0x00007f15cb8c5ed7 in QEventLoop::exec (this=0x7fff580abcc0, flags=...) at kernel/qeventloop.cpp:204
#33 0x00007f15cc791936 in QDialog::exec (this=0x1163e80) at dialogs/qdialog.cpp:554
#34 0x00007f15ccf626ba in KMessageBox::createKMessageBox (dialog=<optimized out>, icon=..., text=..., strlist=..., ask=..., checkboxReturn=0x0, options=..., details=..., notifyType=QMessageBox::Critical) at ../../kdeui/dialogs/kmessagebox.cpp:344
#35 0x00007f15ccf62e94 in KMessageBox::createKMessageBox (dialog=0x1163e80, icon=QMessageBox::Critical, text=..., strlist=..., ask=..., checkboxReturn=0x0, options=..., details=...) at ../../kdeui/dialogs/kmessagebox.cpp:159
#36 0x00007f15ccf63b8b in KMessageBox::errorListWId (parent_id=0, text=..., strlist=..., caption=..., options=...) at ../../kdeui/dialogs/kmessagebox.cpp:854
#37 0x00007f15ccf63dab in KMessageBox::error (parent=<optimized out>, text=..., caption=..., options=...) at ../../kdeui/dialogs/kmessagebox.cpp:821
#38 0x00007f15c7ccead2 in Akonadi::EntityTreeModelPrivate::fetchJobDone (this=0x1175d60, job=0x1170090) at ../../akonadi/entitytreemodel_p.cpp:1209
#39 0x00007f15cb8db281 in QMetaObject::activate (sender=0x1170090, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7fff580ac660) at kernel/qobject.cpp:3547
#40 0x00007f15cbd51182 in KJob::result (this=<optimized out>, _t1=0x1170090) at ./kjob.moc:208
#41 0x00007f15cbd511c0 in KJob::emitResult (this=0x1170090) at ../../kdecore/jobs/kjob.cpp:318
#42 0x00007f15cbd5127e in KJob::kill (this=0x1170090, verbosity=KJob::EmitResult) at ../../kdecore/jobs/kjob.cpp:117
#43 0x00007f15c7d3f5a7 in Akonadi::Session::clear (this=0x10482e0) at ../../akonadi/session.cpp:425
#44 0x00007f15c7d3f94b in Akonadi::Session::~Session (this=0x10482e0, __in_chrg=<optimized out>) at ../../akonadi/session.cpp:394
#45 0x00007f15c7d3f999 in Akonadi::Session::~Session (this=0x10482e0, __in_chrg=<optimized out>) at ../../akonadi/session.cpp:396
#46 0x00007f15cb8d9935 in QObjectPrivate::deleteChildren (this=0x10e2b20) at kernel/qobject.cpp:1908
#47 0x00007f15cb8dfb9c in QObject::~QObject (this=0x1103cd0, __in_chrg=<optimized out>) at kernel/qobject.cpp:927
#48 0x00007f15683c380d in KMKernel::~KMKernel (this=0x1103cd0, __in_chrg=<optimized out>) at ../../kmail/kmkernel.cpp:226
#49 0x00007f15683c3979 in KMKernel::~KMKernel (this=0x1103cd0, __in_chrg=<optimized out>) at ../../kmail/kmkernel.cpp:236
#50 0x00007f156871b6d5 in KMailPart::~KMailPart (this=0xfd94c0, __in_chrg=<optimized out>, __vtt_parm=<optimized out>) at ../../kmail/kmail_part.cpp:138
#51 0x00007f156871b7c9 in KMailPart::~KMailPart (this=0xfd94c0, __in_chrg=<optimized out>, __vtt_parm=<optimized out>) at ../../kmail/kmail_part.cpp:140
#52 0x00007f15cd44060e in KontactInterface::Plugin::~Plugin (this=0xfae1f0, __vtt_parm=<optimized out>, __in_chrg=<optimized out>) at ../../kontactinterface/plugin.cpp:90
#53 0x00007f15696ddb6f in KMailPlugin::~KMailPlugin (this=0xfae1f0, __in_chrg=<optimized out>, __vtt_parm=<optimized out>) at ../../../../kontact/plugins/kmail/kmail_plugin.cpp:159
#54 0x00007f15696ddb99 in KMailPlugin::~KMailPlugin (this=0xfae1f0, __in_chrg=<optimized out>, __vtt_parm=<optimized out>) at ../../../../kontact/plugins/kmail/kmail_plugin.cpp:163
#55 0x00007f15cd8782e7 in Kontact::MainWindow::~MainWindow (this=0xd44c10, __in_chrg=<optimized out>, __vtt_parm=<optimized out>) at ../../../kontact/src/mainwindow.cpp:289
#56 0x00007f15cd878449 in Kontact::MainWindow::~MainWindow (this=0xd44c10, __in_chrg=<optimized out>, __vtt_parm=<optimized out>) at ../../../kontact/src/mainwindow.cpp:291
#57 0x00007f15cb8e0478 in QObject::event (this=0xd44c10, e=<optimized out>) at kernel/qobject.cpp:1176
#58 0x00007f15cc311b7b in QWidget::event (this=0xd44c10, event=0x1457f10) at kernel/qwidget.cpp:8821
#59 0x00007f15cc6ebc4b in QMainWindow::event (this=0xd44c10, event=0x1457f10) at widgets/qmainwindow.cpp:1478
#60 0x00007f15cd0f74d8 in KXmlGuiWindow::event (this=0xd44c10, ev=0x1457f10) at ../../kdeui/xmlgui/kxmlguiwindow.cpp:126
#61 0x00007f15cc2c1894 in notify_helper (e=0x1457f10, receiver=0xd44c10, this=0xbc5f30) at kernel/qapplication.cpp:4559
#62 QApplicationPrivate::notify_helper (this=0xbc5f30, receiver=0xd44c10, e=0x1457f10) at kernel/qapplication.cpp:4531
#63 0x00007f15cc2c6713 in QApplication::notify (this=0x7fff580ad7c0, receiver=0xd44c10, e=0x1457f10) at kernel/qapplication.cpp:4420
#64 0x00007f15ccffb9e6 in KApplication::notify (this=0x7fff580ad7c0, receiver=0xd44c10, event=0x1457f10) at ../../kdeui/kernel/kapplication.cpp:311
#65 0x00007f15cb8c6e9c in QCoreApplication::notifyInternal (this=0x7fff580ad7c0, receiver=0xd44c10, event=0x1457f10) at kernel/qcoreapplication.cpp:876
#66 0x00007f15cb8cac6a in sendEvent (event=0x1457f10, receiver=0xd44c10) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#67 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0xb8c380) at kernel/qcoreapplication.cpp:1500
#68 0x00007f15cb8f5f93 in sendPostedEvents () at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:236
#69 postEventSourceDispatch (s=<optimized out>) at kernel/qeventdispatcher_glib.cpp:279
#70 0x00007f15c5446d53 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#71 0x00007f15c54470a0 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#72 0x00007f15c5447164 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#73 0x00007f15cb8f63bf in QEventDispatcherGlib::processEvents (this=0xb8dc10, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#74 0x00007f15cc369d5e in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#75 0x00007f15cb8c5c82 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#76 0x00007f15cb8c5ed7 in QEventLoop::exec (this=0x7fff580ad750, flags=...) at kernel/qeventloop.cpp:204
#77 0x00007f15cb8caf67 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1148
#78 0x0000000000403629 in main (argc=3, argv=0x7fff580adde8) at ../../../kontact/src/main.cpp:218

Reported using DrKonqi
Comment 1 Jekyll Wu 2014-02-03 10:14:20 UTC

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