Bug 288141

Summary: Kontact crash on exit
Product: [Applications] kontact Reporter: Colin J Thomson <colin.thomson>
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED WORKSFORME    
Severity: crash CC: antonis+kdebugs, asturm, auxsvr, bernard.nysten, bgodusky, bosyber, colin.thomson, crglasoe, diego.ml, dreibh, easycom, hauke, kai, kdenis, keplicz, kretz, Lutz.Boehmer, martin.ruessler, o-z, perezmeyer, plusfabi, sgrubb, stephan.menzel, sven, teo78
Priority: NOR    
Version: 4.12   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: New crash information added by DrKonqi
New crash information added by DrKonqi
New crash information added by DrKonqi
New crash information added by DrKonqi
New crash information added by DrKonqi
New crash information added by DrKonqi
New crash information added by DrKonqi
New crash information added by DrKonqi

Description Colin J Thomson 2011-12-03 14:56:30 UTC
Application: kontact (4.7.4)
KDE Platform Version: 4.7.4 (4.7.4)
Qt Version: 4.8.0
Operating System: Linux 3.1.2-1.fc16.x86_64 x86_64
Distribution (Platform): Fedora RPMs

-- Information about the crash:
- What I was doing when the application crashed:
Shutdown Kontact.
I have Kmail, Akregator, address book and Knode selected in Kontact.

The crash can be reproduced every time.

-- Backtrace:
Application: Kontact (kontact), signal: Segmentation fault
Using host libthread_db library "/lib64/libthread_db.so.1".
82	T_PSEUDO (SYSCALL_SYMBOL, SYSCALL_NAME, SYSCALL_NARGS)
[Current thread is 1 (Thread 0x7f040e2df840 (LWP 3923))]

Thread 3 (Thread 0x7f0403050700 (LWP 3924)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:165
#1  0x00000038ec1973cc in WTF::TCMalloc_PageHeap::scavengerThread (this=0x38ecb90f80) at ../../../Source/JavaScriptCore/wtf/FastMalloc.cpp:2495
#2  0x00000038ec1974f9 in WTF::TCMalloc_PageHeap::runScavengerThread (context=<optimized out>) at ../../../Source/JavaScriptCore/wtf/FastMalloc.cpp:1618
#3  0x00000038ca207d90 in start_thread (arg=0x7f0403050700) at pthread_create.c:309
#4  0x00000038c9aeed0d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 2 (Thread 0x7f0402737700 (LWP 3925)):
#0  0x00000038c9ae6373 in __GI___poll (fds=<optimized out>, nfds=<optimized out>, timeout=<optimized out>) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00000038cca44f88 in g_main_context_poll (n_fds=1, fds=0x7f03fc0013e0, priority=<optimized out>, timeout=3918, context=0x7f03fc0009a0) at gmain.c:3386
#2  g_main_context_iterate (context=0x7f03fc0009a0, block=<optimized out>, dispatch=1, self=<optimized out>) at gmain.c:3068
#3  0x00000038cca4544c in g_main_context_iteration (context=0x7f03fc0009a0, may_block=1) at gmain.c:3136
#4  0x00000038d3fa6896 in QEventDispatcherGlib::processEvents (this=0x7f03fc0008c0, flags=<optimized out>) at kernel/qeventdispatcher_glib.cpp:426
#5  0x00000038d3f76c82 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#6  0x00000038d3f76ed7 in QEventLoop::exec (this=0x7f0402736d40, flags=...) at kernel/qeventloop.cpp:204
#7  0x00000038d3e78ad7 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:501
#8  0x00000038d3e7bb1b in QThreadPrivate::start (arg=0x26e9600) at thread/qthread_unix.cpp:298
#9  0x00000038ca207d90 in start_thread (arg=0x7f0402737700) at pthread_create.c:309
#10 0x00000038c9aeed0d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 1 (Thread 0x7f040e2df840 (LWP 3923)):
[KCrash Handler]
#6  operator QItemSelectionModel* (this=) at ../../src/corelib/kernel/qpointer.h:78
#7  QAbstractItemView::selectionModel (this=0x6000000001) at itemviews/qabstractitemview.cpp:766
#8  0x0000003d07e86878 in MailCommon::FolderTreeWidget::selectedCollections (this=<optimized out>) at /usr/src/debug/kdepim-4.7.4/mailcommon/foldertreewidget.cpp:237
#9  0x0000003d0872da1e in KMMainWidget::updateFolderMenu (this=0x2fbfd60) at /usr/src/debug/kdepim-4.7.4/kmail/kmmainwidget.cpp:3843
#10 0x0000003d0873d093 in KMMainWidget::slotEndCheckFetchCollectionsDone (this=0x2fbfd60, job=<optimized out>) at /usr/src/debug/kdepim-4.7.4/kmail/kmmainwidget.cpp:437
#11 0x0000003d0873d8b8 in KMMainWidget::slotEndCheckMail (this=0x2fbfd60) at /usr/src/debug/kdepim-4.7.4/kmail/kmmainwidget.cpp:390
#12 0x0000003d08740ec5 in KMMainWidget::qt_static_metacall (_o=0x2fbfd60, _c=<optimized out>, _id=<optimized out>, _a=0x7fff09df4a30) at /usr/src/debug/kdepim-4.7.4/x86_64-redhat-linux-gnu/kmail/kmmainwidget.moc:350
#13 0x00000038d3f8b7d1 in QMetaObject::activate (sender=0x2cf7c10, m=<optimized out>, local_signal_index=<optimized out>, argv=0x0) at kernel/qobject.cpp:3546
#14 0x0000003d086ef25c in KMKernel::slotProgressItemCompletedOrCanceled (this=0x2cf7c10, item=<optimized out>) at /usr/src/debug/kdepim-4.7.4/kmail/kmkernel.cpp:1702
#15 0x0000003d086f91ea in KMKernel::qt_static_metacall (_o=0x2cf7c10, _c=<optimized out>, _id=<optimized out>, _a=0x7fff09df4d00) at /usr/src/debug/kdepim-4.7.4/x86_64-redhat-linux-gnu/kmail/kmkernel.moc:185
#16 0x00000038d3f8b7d1 in QMetaObject::activate (sender=0x28f7790, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7fff09df4d00) at kernel/qobject.cpp:3546
#17 0x0000003d038749c2 in KPIM::ProgressManager::progressItemCompleted (this=<optimized out>, _t1=0x3cefd20) at /usr/src/debug/kdepim-4.7.4/x86_64-redhat-linux-gnu/libkdepim/progressmanager.moc:300
#18 0x00000038d3f8b7d1 in QMetaObject::activate (sender=0x3cefd20, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7fff09df4e50) at kernel/qobject.cpp:3546
#19 0x0000003d038745c2 in KPIM::ProgressItem::progressItemCompleted (this=<optimized out>, _t1=0x3cefd20) at /usr/src/debug/kdepim-4.7.4/x86_64-redhat-linux-gnu/libkdepim/progressmanager.moc:135
#20 0x0000003d038761be in KPIM::AgentProgressMonitor::Private::instanceStatusChanged (this=0x2e16520, instance=...) at /usr/src/debug/kdepim-4.7.4/libkdepim/agentprogressmonitor.cpp:100
#21 0x00000038d3f8b7d1 in QMetaObject::activate (sender=0x2cc2d80, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7fff09df4fc0) at kernel/qobject.cpp:3546
#22 0x0000003cff693355 in Akonadi::AgentManager::instanceStatusChanged (this=<optimized out>, _t1=<optimized out>) at /usr/src/debug/kdepimlibs-4.7.4/x86_64-redhat-linux-gnu/akonadi/agentmanager.moc:191
#23 0x0000003cff697bcf in Akonadi::AgentManagerPrivate::agentInstanceStatusChanged (this=0x2d91ec0, identifier=<optimized out>, status=0, msg=...) at /usr/src/debug/kdepimlibs-4.7.4/akonadi/agentmanager.cpp:129
#24 0x00000038d3f8b7d1 in QMetaObject::activate (sender=0x2a84540, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7fff09df5170) at kernel/qobject.cpp:3546
#25 0x0000003cff7b3cdb in OrgFreedesktopAkonadiAgentManagerInterface::agentInstanceStatusChanged (this=<optimized out>, _t1=<optimized out>, _t2=0, _t3=<optimized out>) at /usr/src/debug/kdepimlibs-4.7.4/x86_64-redhat-linux-gnu/akonadi/agentmanagerinterface.moc:299
#26 0x0000003cff7b415f in OrgFreedesktopAkonadiAgentManagerInterface::qt_static_metacall (_o=0x2a84540, _c=<optimized out>, _id=<optimized out>, _a=0x7fff09df5a60) at /usr/src/debug/kdepimlibs-4.7.4/x86_64-redhat-linux-gnu/akonadi/agentmanagerinterface.moc:144
#27 0x0000003cff7b6d1b in OrgFreedesktopAkonadiAgentManagerInterface::qt_metacall (this=0x2a84540, _c=QMetaObject::InvokeMetaMethod, _id=<optimized out>, _a=0x7fff09df5a60) at /usr/src/debug/kdepimlibs-4.7.4/x86_64-redhat-linux-gnu/akonadi/agentmanagerinterface.moc:240
#28 0x00000038d5c22ccb in QDBusConnectionPrivate::deliverCall (this=0x251a600, object=0x2a84540, msg=..., metaTypes=..., slotIdx=12) at qdbusintegrator.cpp:947
#29 0x00000038d3f909e6 in QObject::event (this=0x2a84540, e=<optimized out>) at kernel/qobject.cpp:1194
#30 0x00000038d77c96f4 in notify_helper (e=0x2e1bde0, receiver=0x2a84540, this=0x2528e40) at kernel/qapplication.cpp:4518
#31 QApplicationPrivate::notify_helper (this=0x2528e40, receiver=0x2a84540, e=0x2e1bde0) at kernel/qapplication.cpp:4490
#32 0x00000038d77ce573 in QApplication::notify (this=0x7fff09df7e60, receiver=0x2a84540, e=0x2e1bde0) at kernel/qapplication.cpp:4379
#33 0x0000003cfce50766 in KApplication::notify (this=0x7fff09df7e60, receiver=0x2a84540, event=0x2e1bde0) at /usr/src/debug/kdelibs-4.7.4/kdeui/kernel/kapplication.cpp:311
#34 0x00000038d3f77b4c in QCoreApplication::notifyInternal (this=0x7fff09df7e60, receiver=0x2a84540, event=0x2e1bde0) at kernel/qcoreapplication.cpp:876
#35 0x00000038d3f7b5da in sendEvent (event=0x2e1bde0, receiver=0x2a84540) at kernel/qcoreapplication.h:231
#36 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x24fd070) at kernel/qcoreapplication.cpp:1500
#37 0x00000038d3fa6403 in sendPostedEvents () at kernel/qcoreapplication.h:236
#38 postEventSourceDispatch (s=0x253bf10) at kernel/qeventdispatcher_glib.cpp:279
#39 0x00000038cca44a7d in g_main_dispatch (context=0x2535200) at gmain.c:2425
#40 g_main_context_dispatch (context=0x2535200) at gmain.c:2995
#41 0x00000038cca45278 in g_main_context_iterate (context=0x2535200, block=<optimized out>, dispatch=1, self=<optimized out>) at gmain.c:3073
#42 0x00000038cca4544c in g_main_context_iteration (context=0x2535200, may_block=1) at gmain.c:3136
#43 0x00000038d3fa682f in QEventDispatcherGlib::processEvents (this=0x24fe530, flags=<optimized out>) at kernel/qeventdispatcher_glib.cpp:424
#44 0x00000038d786c43e in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=<optimized out>) at kernel/qguieventdispatcher_glib.cpp:207
#45 0x00000038d3f76c82 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#46 0x00000038d3f76ed7 in QEventLoop::exec (this=0x7fff09df6420, flags=...) at kernel/qeventloop.cpp:204
#47 0x0000003cfc741bb6 in KJob::exec (this=0x2e1ad70) at /usr/src/debug/kdelibs-4.7.4/kdecore/jobs/kjob.cpp:204
#48 0x0000003d07e7e344 in MailCommon::FolderCollectionMonitor::slotExpungeJobSync (this=0x2d91850, job=<optimized out>) at /usr/src/debug/kdepim-4.7.4/mailcommon/foldercollectionmonitor.cpp:138
#49 0x00000038d3f8b7d1 in QMetaObject::activate (sender=0x341fb30, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7fff09df65c0) at kernel/qobject.cpp:3546
#50 0x0000003cfc741d92 in KJob::result (this=<optimized out>, _t1=0x341fb30) at /usr/src/debug/kdelibs-4.7.4/x86_64-redhat-linux-gnu/kdecore/kjob.moc:208
#51 0x0000003cfc741dd0 in KJob::emitResult (this=0x341fb30) at /usr/src/debug/kdelibs-4.7.4/kdecore/jobs/kjob.cpp:312
#52 0x00000038d3f909e6 in QObject::event (this=0x341fb30, e=<optimized out>) at kernel/qobject.cpp:1194
#53 0x00000038d77c96f4 in notify_helper (e=0x2e1ae50, receiver=0x341fb30, this=0x2528e40) at kernel/qapplication.cpp:4518
#54 QApplicationPrivate::notify_helper (this=0x2528e40, receiver=0x341fb30, e=0x2e1ae50) at kernel/qapplication.cpp:4490
#55 0x00000038d77ce573 in QApplication::notify (this=0x7fff09df7e60, receiver=0x341fb30, e=0x2e1ae50) at kernel/qapplication.cpp:4379
#56 0x0000003cfce50766 in KApplication::notify (this=0x7fff09df7e60, receiver=0x341fb30, event=0x2e1ae50) at /usr/src/debug/kdelibs-4.7.4/kdeui/kernel/kapplication.cpp:311
#57 0x00000038d3f77b4c in QCoreApplication::notifyInternal (this=0x7fff09df7e60, receiver=0x341fb30, event=0x2e1ae50) at kernel/qcoreapplication.cpp:876
#58 0x00000038d3f7b5da in sendEvent (event=0x2e1ae50, receiver=0x341fb30) at kernel/qcoreapplication.h:231
#59 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x24fd070) at kernel/qcoreapplication.cpp:1500
#60 0x00000038d3fa6403 in sendPostedEvents () at kernel/qcoreapplication.h:236
#61 postEventSourceDispatch (s=0x253bf10) at kernel/qeventdispatcher_glib.cpp:279
#62 0x00000038cca44a7d in g_main_dispatch (context=0x2535200) at gmain.c:2425
#63 g_main_context_dispatch (context=0x2535200) at gmain.c:2995
#64 0x00000038cca45278 in g_main_context_iterate (context=0x2535200, block=<optimized out>, dispatch=1, self=<optimized out>) at gmain.c:3073
#65 0x00000038cca4544c in g_main_context_iteration (context=0x2535200, may_block=1) at gmain.c:3136
#66 0x00000038d3fa682f in QEventDispatcherGlib::processEvents (this=0x24fe530, flags=<optimized out>) at kernel/qeventdispatcher_glib.cpp:424
#67 0x00000038d786c43e in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=<optimized out>) at kernel/qguieventdispatcher_glib.cpp:207
#68 0x00000038d3f76c82 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#69 0x00000038d3f76ed7 in QEventLoop::exec (this=0x7fff09df6f10, flags=...) at kernel/qeventloop.cpp:204
#70 0x0000003cfc741bb6 in KJob::exec (this=0x341fb30) at /usr/src/debug/kdelibs-4.7.4/kdecore/jobs/kjob.cpp:204
#71 0x0000003d07e7e144 in MailCommon::FolderCollectionMonitor::expunge (this=0x2d91850, col=..., sync=true) at /usr/src/debug/kdepim-4.7.4/mailcommon/foldercollectionmonitor.cpp:98
#72 0x0000003d086f6c63 in KMKernel::cleanup (this=0x2cf7c10) at /usr/src/debug/kdepim-4.7.4/kmail/kmkernel.cpp:1252
#73 0x00007f04005a0732 in KMailPart::~KMailPart (this=0x2a98870, __in_chrg=<optimized out>, __vtt_parm=<optimized out>) at /usr/src/debug/kdepim-4.7.4/kmail/kmail_part.cpp:138
#74 0x00007f04005a0839 in KMailPart::~KMailPart (this=0x2a98870, __in_chrg=<optimized out>, __vtt_parm=<optimized out>) at /usr/src/debug/kdepim-4.7.4/kmail/kmail_part.cpp:141
#75 0x0000003d05a11a4e in KontactInterface::Plugin::~Plugin (this=0x26f13c0, __vtt_parm=<optimized out>, __in_chrg=<optimized out>) at /usr/src/debug/kdepimlibs-4.7.4/kontactinterface/plugin.cpp:90
#76 0x00007f0400be6cdf in KMailPlugin::~KMailPlugin (this=0x26f13c0, __in_chrg=<optimized out>, __vtt_parm=<optimized out>) at /usr/src/debug/kdepim-4.7.4/kontact/plugins/kmail/kmail_plugin.cpp:159
#77 0x00007f0400be6d09 in KMailPlugin::~KMailPlugin (this=0x26f13c0, __in_chrg=<optimized out>, __vtt_parm=<optimized out>) at /usr/src/debug/kdepim-4.7.4/kontact/plugins/kmail/kmail_plugin.cpp:163
#78 0x0000003d00c1c307 in Kontact::MainWindow::~MainWindow (this=0x2543f00, __in_chrg=<optimized out>, __vtt_parm=<optimized out>) at /usr/src/debug/kdepim-4.7.4/kontact/src/mainwindow.cpp:287
#79 0x0000003d00c1c479 in Kontact::MainWindow::~MainWindow (this=0x2543f00, __in_chrg=<optimized out>, __vtt_parm=<optimized out>) at /usr/src/debug/kdepim-4.7.4/kontact/src/mainwindow.cpp:289
#80 0x00000038d3f90a18 in QObject::event (this=0x2543f00, e=<optimized out>) at kernel/qobject.cpp:1175
#81 0x00000038d78197bb in QWidget::event (this=0x2543f00, event=0x3af6820) at kernel/qwidget.cpp:8809
#82 0x00000038d7beb25b in QMainWindow::event (this=0x2543f00, event=0x3af6820) at widgets/qmainwindow.cpp:1478
#83 0x0000003cfcf4c3a8 in KXmlGuiWindow::event (this=0x2543f00, ev=0x3af6820) at /usr/src/debug/kdelibs-4.7.4/kdeui/xmlgui/kxmlguiwindow.cpp:126
#84 0x00000038d77c96f4 in notify_helper (e=0x3af6820, receiver=0x2543f00, this=0x2528e40) at kernel/qapplication.cpp:4518
#85 QApplicationPrivate::notify_helper (this=0x2528e40, receiver=0x2543f00, e=0x3af6820) at kernel/qapplication.cpp:4490
#86 0x00000038d77ce573 in QApplication::notify (this=0x7fff09df7e60, receiver=0x2543f00, e=0x3af6820) at kernel/qapplication.cpp:4379
#87 0x0000003cfce50766 in KApplication::notify (this=0x7fff09df7e60, receiver=0x2543f00, event=0x3af6820) at /usr/src/debug/kdelibs-4.7.4/kdeui/kernel/kapplication.cpp:311
#88 0x00000038d3f77b4c in QCoreApplication::notifyInternal (this=0x7fff09df7e60, receiver=0x2543f00, event=0x3af6820) at kernel/qcoreapplication.cpp:876
#89 0x00000038d3f7b5da in sendEvent (event=0x3af6820, receiver=0x2543f00) at kernel/qcoreapplication.h:231
#90 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x24fd070) at kernel/qcoreapplication.cpp:1500
#91 0x00000038d3fa6403 in sendPostedEvents () at kernel/qcoreapplication.h:236
#92 postEventSourceDispatch (s=0x253bf10) at kernel/qeventdispatcher_glib.cpp:279
#93 0x00000038cca44a7d in g_main_dispatch (context=0x2535200) at gmain.c:2425
#94 g_main_context_dispatch (context=0x2535200) at gmain.c:2995
#95 0x00000038cca45278 in g_main_context_iterate (context=0x2535200, block=<optimized out>, dispatch=1, self=<optimized out>) at gmain.c:3073
#96 0x00000038cca4544c in g_main_context_iteration (context=0x2535200, may_block=1) at gmain.c:3136
#97 0x00000038d3fa682f in QEventDispatcherGlib::processEvents (this=0x24fe530, flags=<optimized out>) at kernel/qeventdispatcher_glib.cpp:424
#98 0x00000038d786c43e in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=<optimized out>) at kernel/qguieventdispatcher_glib.cpp:207
#99 0x00000038d3f76c82 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#100 0x00000038d3f76ed7 in QEventLoop::exec (this=0x7fff09df7df0, flags=...) at kernel/qeventloop.cpp:204
#101 0x00000038d3f7b8d5 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1148
#102 0x00000000004037b9 in main (argc=1, argv=0x7fff09df8488) at /usr/src/debug/kdepim-4.7.4/kontact/src/main.cpp:218

Possible duplicates by query: bug 287964, bug 286743, bug 284218, bug 284165, bug 284065.

Reported using DrKonqi
Comment 1 Christophe Marin 2011-12-03 15:55:38 UTC

*** This bug has been marked as a duplicate of bug 278876 ***
Comment 2 Allen Winter 2011-12-05 19:07:57 UTC
Git commit 17d9866a9821b2e1ed0d9d9d5516ebb3147022fa by Allen Winter.
Committed on 05/12/2011 at 20:06.
Pushed by winterz into branch 'master'.

in slotAkonadiStandardActionUpdated() and updateFolderMenu(), put in
a crash guard against mFolderTreeWidget not existing.

BUG: 288141
MERGE: 4.7 (if Laurent wants)

M  +19   -7    kmail/kmmainwidget.cpp

http://commits.kde.org/kdepim/17d9866a9821b2e1ed0d9d9d5516ebb3147022fa
Comment 3 Colin J Thomson 2011-12-09 19:48:51 UTC
Since updating to 4.7.90 I can confirm this crash does not happen now. Thanks...
Comment 4 Sebastián Ramírez 2011-12-13 23:56:05 UTC
Created attachment 66713 [details]
New crash information added by DrKonqi

kontact (4.7.2) on KDE Platform 4.7.2 (4.7.2) "release 5" using Qt 4.7.4

- What I was doing when the application crashed:

Kontact always fail on close de application, since 4.0.0 version.
Kontact siempre falla al cerrar la aplicación. El mismo se repite desde la versión 4.0.0.

-- Backtrace (Reduced):
#6  QAbstractItemView::selectionModel (this=0x84772da) at itemviews/qabstractitemview.cpp:760
#7  0xaf46d796 in MailCommon::FolderTreeWidget::selectedCollections (this=0x790072) at /usr/src/debug/kdepim-4.7.2/mailcommon/foldertreewidget.cpp:237
#8  0xaf60584f in KMMainWidget::updateFolderMenu (this=0x848b728) at /usr/src/debug/kdepim-4.7.2/kmail/kmmainwidget.cpp:3861
#9  0xaf6147e9 in KMMainWidget::slotEndCheckFetchCollectionsDone (this=0x848b728, job=0x0) at /usr/src/debug/kdepim-4.7.2/kmail/kmmainwidget.cpp:436
#10 0xaf61517d in KMMainWidget::slotEndCheckMail (this=0x848b728) at /usr/src/debug/kdepim-4.7.2/kmail/kmmainwidget.cpp:389
Comment 5 Oliver Zimmermann 2011-12-19 10:04:12 UTC
Created attachment 66898 [details]
New crash information added by DrKonqi

kontact (4.7.2) on KDE Platform 4.7.2 (4.7.2) using Qt 4.8.0

- What I was doing when the application crashed:

Exiting Kontact, Kontact beenden, Leaving the program

-- Backtrace (Reduced):
#7  0xb6984977 in QAbstractItemView::selectionModel() const () from /usr/lib/libQtGui.so.4
#8  0xaf499206 in MailCommon::FolderTreeWidget::selectedCollections() const () from /usr/lib/libmailcommon.so.4
#9  0xaf63383c in KMMainWidget::updateFolderMenu() () from /usr/lib/libkmailprivate.so.4
#10 0xaf63eadc in KMMainWidget::slotEndCheckFetchCollectionsDone(KJob*) () from /usr/lib/libkmailprivate.so.4
#11 0xaf63f4c5 in KMMainWidget::slotEndCheckMail() () from /usr/lib/libkmailprivate.so.4
Comment 6 Thomas Dreibholz 2011-12-22 13:09:38 UTC
Created attachment 67016 [details]
New crash information added by DrKonqi

kontact (4.7.4) on KDE Platform 4.7.4 (4.7.4) using Qt 4.7.4

- What I was doing when the application crashed:

Kontact still crashes on exit with KDE 4.7.4 (Kubuntu 11.10, 64 bit).

-- Backtrace (Reduced):
#6  operator QItemSelectionModel* (this=) at ../../include/QtCore/../../src/corelib/kernel/qpointer.h:78
#7  QAbstractItemView::selectionModel (this=0xf00000001) at itemviews/qabstractitemview.cpp:760
#8  0x00007f5c2fc1e888 in MailCommon::FolderTreeWidget::selectedCollections (this=<optimized out>) at ../../mailcommon/foldertreewidget.cpp:237
#9  0x00007f5c2ffd02ae in KMMainWidget::updateFolderMenu (this=0x2274780) at ../../kmail/kmmainwidget.cpp:3843
#10 0x00007f5c2ffdf993 in KMMainWidget::slotEndCheckFetchCollectionsDone (this=0x2274780, job=<optimized out>) at ../../kmail/kmmainwidget.cpp:437
Comment 7 Myriam Schweingruber 2012-09-30 13:17:43 UTC
Reopening, as this still happens with KDE 4.9.1. Backtrace from bug 307140:

Thread 1 (Thread 0xb771e9c0 (LWP 5480)):
[KCrash Handler]
#7  0x010b0dc4 in operator QItemSelectionModel* (this=<error reading variable: Cannot access memory at address 0x5>) at ../../include/QtCore/../../src/corelib/kernel/qpointer.h:78
#8  QAbstractItemView::selectionModel (this=0x1) at itemviews/qabstractitemview.cpp:766
#9  0x04ad6a46 in MailCommon::FolderTreeWidget::selectedCollections (this=0x1) at ../../mailcommon/foldertreewidget.cpp:244
#10 0x042c26f5 in KMMainWidget::updateFolderMenu (this=0x8e896d0) at ../../kmail/kmmainwidget.cpp:4131
#11 0x042dab36 in KMMainWidget::qt_static_metacall (_o=0x8e896d0, _c=QMetaObject::InvokeMetaMethod, _id=121, _a=0xbff80200) at ./kmmainwidget.moc:458
#12 0x04fb8b81 in QMetaObject::activate (sender=0x918d4d0, m=0x50feed8, local_signal_index=0, argv=0x0) at kernel/qobject.cpp:3547
#13 0x04fc1b25 in QSingleShotTimer::timeout (this=0x918d4d0) at .moc/release-shared/qtimer.moc:97
#14 0x04fc1c0c in QSingleShotTimer::timerEvent (this=0x918d4d0) at kernel/qtimer.cpp:317
#15 0x04fbcf94 in QObject::event (this=0x918d4d0, e=0xbff8070c) at kernel/qobject.cpp:1157
#16 0x00b02df4 in notify_helper (e=0xbff8070c, receiver=0x918d4d0, this=0x883e170) at kernel/qapplication.cpp:4556
#17 QApplicationPrivate::notify_helper (this=0x883e170, receiver=0x918d4d0, e=0xbff8070c) at kernel/qapplication.cpp:4528
#18 0x00b0815d in QApplication::notify (this=0xbff8070c, receiver=0x918d4d0, e=0xbff8070c) at kernel/qapplication.cpp:4285
#19 0x003132a1 in KApplication::notify (this=0xbff81314, receiver=0x918d4d0, event=0xbff8070c) at ../../kdeui/kernel/kapplication.cpp:311
#20 0x04fa1dde in QCoreApplication::notifyInternal (this=0xbff81314, receiver=0x918d4d0, event=0xbff8070c) at kernel/qcoreapplication.cpp:915
#21 0x04fd6e60 in sendEvent (event=0xbff8070c, receiver=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#22 QTimerInfoList::activateTimers (this=0x883cc4c) at kernel/qeventdispatcher_unix.cpp:611
#23 0x04fd45c8 in timerSourceDispatch (source=0x883cc18) at kernel/qeventdispatcher_glib.cpp:186
#24 timerSourceDispatch (source=0x883cc18) at kernel/qeventdispatcher_glib.cpp:180
#25 0x04fd4602 in idleTimerSourceDispatch (source=0x883ddf0) at kernel/qeventdispatcher_glib.cpp:233
#26 0x018a4d86 in g_main_context_dispatch () from /lib/i386-linux-gnu/libglib-2.0.so.0
#27 0x018a5125 in ?? () from /lib/i386-linux-gnu/libglib-2.0.so.0
#28 0x018a5201 in g_main_context_iteration () from /lib/i386-linux-gnu/libglib-2.0.so.0
#29 0x04fd4d57 in QEventDispatcherGlib::processEvents (this=0x8814800, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#30 0x00bbba1a in QGuiEventDispatcherGlib::processEvents (this=0x8814800, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#31 0x04fa067d in QEventLoop::processEvents (this=0xbff80990, flags=...) at kernel/qeventloop.cpp:149
#32 0x04fa0919 in QEventLoop::exec (this=0xbff80990, flags=...) at kernel/qeventloop.cpp:204
#33 0x010557e9 in QDialog::exec (this=0x8e66bc0) at dialogs/qdialog.cpp:554
#34 0x0026835c in KMessageBox::createKMessageBox (dialog=0x8e66bc0, icon=..., text=..., strlist=..., ask=..., checkboxReturn=0x0, options=..., details=..., notifyType=QMessageBox::Critical) at ../../kdeui/dialogs/kmessagebox.cpp:344
#35 0x00268b9c in KMessageBox::createKMessageBox (dialog=0x8e66bc0, icon=QMessageBox::Critical, text=..., strlist=..., ask=..., checkboxReturn=0x0, options=..., details=...) at ../../kdeui/dialogs/kmessagebox.cpp:159
#36 0x00269925 in KMessageBox::errorListWId (parent_id=46137362, text=..., strlist=..., caption=..., options=...) at ../../kdeui/dialogs/kmessagebox.cpp:854
#37 0x00269ba6 in KMessageBox::error (parent=0x8955ff8, text=..., caption=..., options=...) at ../../kdeui/dialogs/kmessagebox.cpp:821
#38 0x0158a6a0 in Akonadi::EntityTreeModelPrivate::fetchJobDone (this=0x8e69a50, job=0x9269d98) at ../../akonadi/entitytreemodel_p.cpp:1207
#39 0x0157a127 in qt_static_metacall (_a=0xbff80f18, _id=3, _o=0x8d8cfd0, _c=<optimized out>) at ./entitytreemodel.moc:122
#40 Akonadi::EntityTreeModel::qt_static_metacall (_o=0x8d8cfd0, _c=QMetaObject::InvokeMetaMethod, _id=3, _a=0xbff80f18) at ./entitytreemodel.moc:113
#41 0x04fb8b81 in QMetaObject::activate (sender=0x9269d98, m=0x278c4ac, local_signal_index=3, argv=0xbff80f18) at kernel/qobject.cpp:3547
#42 0x025d8975 in KJob::result (this=0x9269d98, _t1=0x9269d98) at ./kjob.moc:208
#43 0x025d89c8 in KJob::emitResult (this=0x9269d98) at ../../kdecore/jobs/kjob.cpp:318
#44 0x025d8a95 in KJob::kill (this=0x9269d98, verbosity=KJob::EmitResult) at ../../kdecore/jobs/kjob.cpp:117
#45 0x01608a58 in Akonadi::Session::clear (this=0x8b75be0) at ../../akonadi/session.cpp:425
#46 0x01608cdd in Akonadi::Session::~Session (this=0x8b75be0, __in_chrg=<optimized out>) at ../../akonadi/session.cpp:394
#47 0x01608d42 in Akonadi::Session::~Session (this=0x8b75be0, __in_chrg=<optimized out>) at ../../akonadi/session.cpp:396
#48 0x04fb71e1 in QObjectPrivate::deleteChildren (this=0x8dc3ab0) at kernel/qobject.cpp:1908
#49 0x04fbc951 in QObject::~QObject (this=0x8df0218, __in_chrg=<optimized out>) at kernel/qobject.cpp:927
#50 0x042819e1 in KMKernel::~KMKernel (this=0x8df0218, __in_chrg=<optimized out>) at ../../kmail/kmkernel.cpp:229
#51 0x04281b52 in KMKernel::~KMKernel (this=0x8df0218, __in_chrg=<optimized out>) at ../../kmail/kmkernel.cpp:239
#52 0x03551815 in KMailPart::~KMailPart (this=0x8b0ffb8, __in_chrg=<optimized out>, __vtt_parm=<optimized out>) at ../../kmail/kmail_part.cpp:138
#53 0x03551932 in KMailPart::~KMailPart (this=0x8b0ffb8, __in_chrg=<optimized out>, __vtt_parm=<optimized out>) at ../../kmail/kmail_part.cpp:140
#54 0x0011db18 in KontactInterface::Plugin::~Plugin (this=0x8afa7b8, __vtt_parm=0x3541ae4, __in_chrg=<optimized out>) at ../../kontactinterface/plugin.cpp:90
#55 0x035330d5 in KMailPlugin::~KMailPlugin (this=0x8afa7b8, __in_chrg=<optimized out>, __vtt_parm=<optimized out>) at ../../../../kontact/plugins/kmail/kmail_plugin.cpp:159
#56 0x03533122 in KMailPlugin::~KMailPlugin (this=0x8afa7b8, __in_chrg=<optimized out>, __vtt_parm=<optimized out>) at ../../../../kontact/plugins/kmail/kmail_plugin.cpp:163
#57 0x0091ce67 in Kontact::MainWindow::~MainWindow (this=0x8955ff8, __in_chrg=<optimized out>, __vtt_parm=<optimized out>) at ../../../kontact/src/mainwindow.cpp:291
#58 0x0091cfe2 in Kontact::MainWindow::~MainWindow (this=0x8955ff8, __in_chrg=<optimized out>, __vtt_parm=<optimized out>) at ../../../kontact/src/mainwindow.cpp:293
#59 0x0804ac86 in qDeleteAll<QList<KMainWindow*>::const_iterator> (end=..., begin=...) at /usr/include/qt4/QtCore/qalgorithms.h:322
#60 qDeleteAll<QList<KMainWindow*> > (c=...) at /usr/include/qt4/QtCore/qalgorithms.h:330
#61 main (argc=-536870912, argv=0xc8037da0) at ../../../kontact/src/main.cpp:220
Comment 8 Myriam Schweingruber 2012-09-30 13:18:05 UTC
*** Bug 307140 has been marked as a duplicate of this bug. ***
Comment 9 Myriam Schweingruber 2012-09-30 13:18:43 UTC
*** Bug 293553 has been marked as a duplicate of this bug. ***
Comment 10 Myriam Schweingruber 2012-09-30 13:19:24 UTC
*** Bug 293564 has been marked as a duplicate of this bug. ***
Comment 11 Myriam Schweingruber 2012-09-30 13:19:50 UTC
*** Bug 297450 has been marked as a duplicate of this bug. ***
Comment 12 Myriam Schweingruber 2012-09-30 13:20:23 UTC
*** Bug 301333 has been marked as a duplicate of this bug. ***
Comment 13 Myriam Schweingruber 2012-09-30 13:21:05 UTC
*** Bug 299640 has been marked as a duplicate of this bug. ***
Comment 14 Myriam Schweingruber 2012-09-30 13:21:59 UTC
*** Bug 300558 has been marked as a duplicate of this bug. ***
Comment 15 Diego 2012-10-29 18:51:00 UTC
Created attachment 74871 [details]
New crash information added by DrKonqi

kontact (4.9.2) on KDE Platform 4.9.2 using Qt 4.8.2

- What I was doing when the application crashed:

Still present in 4.9.2 on Fedora 17. My backtrace is somehow shorter than others.

-- Backtrace (Reduced):
#7  0x000000000040343e in qDeleteAll<QList<KMainWindow*>::const_iterator> (end=..., begin=...) at /usr/include/QtCore/qalgorithms.h:322
#8  qDeleteAll<QList<KMainWindow*> > (c=...) at /usr/include/QtCore/qalgorithms.h:330
#9  main (argc=1, argv=0x7fffe24ca3b8) at /usr/src/debug/kdepim-4.9.2/kontact/src/main.cpp:220
Comment 16 Matthias Kretz 2012-11-12 09:56:39 UTC
Application: kontact (4.9.2)
KDE Platform Version: 4.9.2
Qt Version: 4.8.3
Distribution: Ubuntu 12.10

In my case Kontact shuts down cleanly on Ctrl+Q.
When I stop the Plasma Activity where Kontact sits on, I always get this crash.

(
#7  0x000000000040337e in qDeleteAll<QList<KMainWindow*>::const_iterator> (end=..., begin=...) at /usr/include/qt4/QtCore/qalgorithms.h:322
#8  qDeleteAll<QList<KMainWindow*> > (c=...) at /usr/include/qt4/QtCore/qalgorithms.h:330
#9  main (argc=3, argv=0x7ffffe7f7868) at ../../../kontact/src/main.cpp:220
)
Comment 17 Diego 2012-12-18 14:09:15 UTC
Created attachment 75901 [details]
New crash information added by DrKonqi

kontact (4.9.4) on KDE Platform 4.9.4 using Qt 4.8.4

- What I was doing when the application crashed:

Still happens with Kontact 4.9.4 on Fedora 17.

-- Backtrace (Reduced):
#6  0x00007fef4f323a77 in lockInline (this=0x1b46838) at /usr/include/QtCore/qmutex.h:187
#7  QMutexLocker (m=0x1b46838, this=<synthetic pointer>) at /usr/include/QtCore/qmutex.h:109
#8  Nepomuk::Resource::~Resource (this=0x7feed00092a0, __in_chrg=<optimized out>) at /usr/src/debug/kdelibs-4.9.4/nepomuk/core/resource.cpp:142
#9  0x00007fef4f323d29 in Nepomuk::Resource::~Resource (this=0x7feed00092a0, __in_chrg=<optimized out>) at /usr/src/debug/kdelibs-4.9.4/nepomuk/core/resource.cpp:147
[...]
#12 0x00007fef4d255bd7 in QCoreApplication::removePostedEvents (receiver=0x18b8f60, eventType=0) at kernel/qcoreapplication.cpp:1700
Comment 18 Christophe Marin 2012-12-22 14:02:33 UTC
*** Bug 308147 has been marked as a duplicate of this bug. ***
Comment 19 Christophe Marin 2012-12-22 14:02:41 UTC
*** Bug 311634 has been marked as a duplicate of this bug. ***
Comment 20 Jekyll Wu 2013-10-10 05:34:40 UTC
*** Bug 312830 has been marked as a duplicate of this bug. ***
Comment 21 Jekyll Wu 2013-10-10 05:35:01 UTC
*** Bug 325832 has been marked as a duplicate of this bug. ***
Comment 22 Antonis Kanouras 2013-10-10 07:18:19 UTC
Thanks for the fast triaging :)

Just noting that my crash (bug 325832) was with KDEPIM 4.11.2 on KDE Platform 4.11.2.

Would a core dump/full backtrace/logs be helpful?
Comment 23 Jekyll Wu 2013-10-15 12:04:28 UTC
*** Bug 324118 has been marked as a duplicate of this bug. ***
Comment 24 Jekyll Wu 2013-10-15 12:05:02 UTC
*** Bug 326042 has been marked as a duplicate of this bug. ***
Comment 25 Jekyll Wu 2013-11-11 02:26:15 UTC
*** Bug 327428 has been marked as a duplicate of this bug. ***
Comment 26 Kai Krakow 2013-11-18 19:17:20 UTC
Created attachment 83627 [details]
New crash information added by DrKonqi

kontact (4.11.3) on KDE Platform 4.11.3 using Qt 4.8.5

- What I was doing when the application crashed:

I notice that kontact binary keeps running after existing and still shows new mail notifications. Upon next incoming mail, it crashes. But even after the crash it keeps running. Further mail notifications generate no more crashes.

-- Backtrace (Reduced):
#6  operator QItemSelectionModel* (this=<error reading variable: Cannot access memory at address 0x500000009>) at ../../include/QtCore/../../src/corelib/kernel/qpointer.h:78
#7  QAbstractItemView::selectionModel (this=0x500000001) at itemviews/qabstractitemview.cpp:766
#8  0x00007f522b0c11a6 in MailCommon::FolderTreeWidget::selectedCollections (this=<optimized out>) at /var/tmp/portage/kde-base/kmail-4.11.3/work/kmail-4.11.3/mailcommon/folder/foldertreewidget.cpp:244
#9  0x00007f522b497bc4 in KMMainWidget::updateFolderMenu (this=0x1608f30) at /var/tmp/portage/kde-base/kmail-4.11.3/work/kmail-4.11.3/kmail/kmmainwidget.cpp:4137
#10 0x00007f522b4a4a3a in KMMainWidget::slotUpdateActionsAfterMailChecking (this=<optimized out>) at /var/tmp/portage/kde-base/kmail-4.11.3/work/kmail-4.11.3/kmail/kmmainwidget.cpp:426
Comment 27 Jekyll Wu 2013-12-06 01:48:46 UTC
*** Bug 328345 has been marked as a duplicate of this bug. ***
Comment 28 Jekyll Wu 2013-12-20 22:58:33 UTC
*** Bug 329016 has been marked as a duplicate of this bug. ***
Comment 29 auxsvr 2013-12-29 22:32:01 UTC
Created attachment 84330 [details]
New crash information added by DrKonqi

kontact (4.12) on KDE Platform 4.12.0 using Qt 4.8.5

- What I was doing when the application crashed:

Attempted to exit kontact and after a while it crashed.

-- Backtrace (Reduced):
#7  0xac84461b in MailCommon::FolderTreeWidget::selectedCollections (this=0x9f92010) at /usr/src/debug/kdepim-4.12.0/mailcommon/folder/foldertreewidget.cpp:243
#8  0xaca15b38 in KMMainWidget::updateFolderMenu (this=this@entry=0x9f8e710) at /usr/src/debug/kdepim-4.12.0/kmail/kmmainwidget.cpp:4134
#9  0xaca16668 in KMMainWidget::slotUpdateActionsAfterMailChecking (this=this@entry=0x9f8e710) at /usr/src/debug/kdepim-4.12.0/kmail/kmmainwidget.cpp:431
#10 0xaca2864a in KMMainWidget::qt_static_metacall (_o=_o@entry=0x9f8e710, _c=_c@entry=QMetaObject::InvokeMetaMethod, _id=150, _a=0xbf8d63e8) at /usr/src/debug/kdepim-4.12.0/build/kmail/kmmainwidget.moc:521
[...]
#12 0xb63b2895 in QTimer::timeout (this=this@entry=0x9f8e844) at .moc/release-shared/moc_qtimer.cpp:147
Comment 30 Jekyll Wu 2014-05-17 01:19:54 UTC
*** Bug 334897 has been marked as a duplicate of this bug. ***
Comment 31 auxsvr 2014-06-08 23:06:39 UTC
Created attachment 87078 [details]
New crash information added by DrKonqi

kontact (4.13.1) on KDE Platform 4.13.1 using Qt 4.8.5

- What I was doing when the application crashed:

Kontact was exiting while a background process was using 100% CPU.

-- Backtrace (Reduced):
#7  0xb6e44884 in operator QItemSelectionModel* (this=<error reading variable: Cannot access memory at address 0x9>) at ../../src/corelib/kernel/qpointer.h:78
#8  QAbstractItemView::selectionModel (this=0x5) at itemviews/qabstractitemview.cpp:766
#9  0xac9cc0a6 in MailCommon::FolderTreeWidget::selectedCollections (this=0xa277e08) at /usr/src/debug/kdepim-4.13.1/mailcommon/folder/foldertreewidget.cpp:243
#10 0xacb3b558 in KMMainWidget::updateFolderMenu (this=this@entry=0xa280ee8) at /usr/src/debug/kdepim-4.13.1/kmail/kmmainwidget.cpp:4112
#11 0xacb3c088 in KMMainWidget::slotUpdateActionsAfterMailChecking (this=this@entry=0xa280ee8) at /usr/src/debug/kdepim-4.13.1/kmail/kmmainwidget.cpp:439
Comment 32 Hauke Laging 2014-12-21 03:00:42 UTC
I have probably the same problem – for years now. kontact crashes when exiting (probably due to kmail). This is annoying because the IMAP folder settings (like when to check for new mail) are not saved. Open mail creating windows are restored, though.

After my upgrade from openSUSE 13.1 to 13.2 kmail was completely broken so I deleted the whole akonadi database and created the kmail IMAP accounts again. To my surprise some of the other configuration (like the identities) was still there. I am also surprised that kmail still crashes. So it seems not related to the IMAP stuff. I must admit though that I didn't think of closing kmail before adding the IMAP accounts just for crash testing.

This is the crash data I get:

Application: Kontact (kontact), signal: Segmentation fault
Using host libthread_db library "/lib64/libthread_db.so.1".
[Current thread is 1 (Thread 0x7fd7128ae800 (LWP 3267))]

Thread 4 (Thread 0x7fd6f522b700 (LWP 3268)):
#0  0x00007fd709ec105f in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007fd70d652686 in WTF::TCMalloc_PageHeap::scavengerThread() () from /usr/lib64/libQtWebKit.so.4
#2  0x00007fd70d6526b9 in WTF::TCMalloc_PageHeap::runScavengerThread(void*) () from /usr/lib64/libQtWebKit.so.4
#3  0x00007fd709ebd0a4 in start_thread () from /lib64/libpthread.so.0
#4  0x00007fd70fe307fd in clone () from /lib64/libc.so.6

Thread 3 (Thread 0x7fd6b4910700 (LWP 3269)):
#0  0x00007fd709ec105f in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007fd70d3c4e7d in JSC::BlockAllocator::blockFreeingThreadMain() () from /usr/lib64/libQtWebKit.so.4
#2  0x00007fd70d67a1e6 in WTF::wtfThreadEntryPoint(void*) () from /usr/lib64/libQtWebKit.so.4
#3  0x00007fd709ebd0a4 in start_thread () from /lib64/libpthread.so.0
#4  0x00007fd70fe307fd in clone () from /lib64/libc.so.6

Thread 2 (Thread 0x7fd6a4a9d700 (LWP 3288)):
#0  0x00007fd70fe2449d in read () from /lib64/libc.so.6
#1  0x00007fd709932750 in ?? () from /usr/lib64/libglib-2.0.so.0
#2  0x00007fd7098f1714 in g_main_context_check () from /usr/lib64/libglib-2.0.so.0
#3  0x00007fd7098f1b7b in ?? () from /usr/lib64/libglib-2.0.so.0
#4  0x00007fd7098f1cec in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#5  0x00007fd7105ab0de in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#6  0x00007fd71057ce6f in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#7  0x00007fd71057d165 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#8  0x00007fd71047a0bf in QThread::exec() () from /usr/lib64/libQtCore.so.4
#9  0x00007fd71047c79f in ?? () from /usr/lib64/libQtCore.so.4
#10 0x00007fd709ebd0a4 in start_thread () from /lib64/libpthread.so.0
#11 0x00007fd70fe307fd in clone () from /lib64/libc.so.6

Thread 1 (Thread 0x7fd7128ae800 (LWP 3267)):
[KCrash Handler]
#5  0x00007fd711a35bd0 in vtable for QPaintDevice () from /usr/lib64/libQtGui.so.4
#6  0x000000000040382f in ?? ()
#7  0x00007fd70fd6cb05 in __libc_start_main () from /lib64/libc.so.6
#8  0x0000000000403c97 in _start ()
Comment 33 Hauke Laging 2014-12-21 03:20:07 UTC
I have to correct and extend my last posting:

In contrast to earlier experiences the folder settings are saved now despite of the crash.

The problem is kmail related in a strange way: If I deactivate kmail in kontact then kontact does not crash any more on exit. But the really weird thing is: If I start kmail alone (not via kontact) then it doesn't crash on exit... So the work-around seems to be to run kontact and kmail in parallel.
Comment 34 Christophe Marin 2014-12-29 16:44:03 UTC
(In reply to Hauke Laging from comment #32)
> I have probably the same problem – for years now. kontact crashes when
> [...]

No, your backtrace is unrelated.
Comment 35 Stephan Menzel 2015-04-26 18:59:35 UTC
I also have this problem. At least I think its the same as it fits the symptoms.

Here is two stack traces:


-- Backtrace:
Application: Kontact (kontact), signal: Segmentation fault
Using host libthread_db library "/lib64/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f67878f17c0 (LWP 4509))]

Thread 3 (Thread 0x7f676b402700 (LWP 4513)):
#0  0x00007f677f09482f in pthread_cond_wait () from /lib64/libpthread.so.0
#1  0x00007f6782c8a1fe in WTF::TCMalloc_PageHeap::scavengerThread() () from /usr/lib64/qt4/libQtWebKit.so.4
#2  0x00007f6782c8a239 in WTF::TCMalloc_PageHeap::runScavengerThread(void*) () from /usr/lib64/qt4/libQtWebKit.so.4
#3  0x00007f677f08f2c4 in start_thread () from /lib64/libpthread.so.0
#4  0x00007f6784bcdfcd in clone () from /lib64/libc.so.6

Thread 2 (Thread 0x7f676aaf1700 (LWP 4514)):
#0  0x00007f6784bc51dd in poll () from /lib64/libc.so.6
#1  0x00007f677e0204e4 in g_main_context_iterate.isra () from /usr/lib64/libglib-2.0.so.0
#2  0x00007f677e0205fc in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#3  0x00007f678618553e in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt4/libQtCore.so.4
#4  0x00007f678614c421 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt4/libQtCore.so.4
#5  0x00007f678614c785 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt4/libQtCore.so.4
#6  0x00007f678601bcb9 in QThread::exec() () from /usr/lib64/qt4/libQtCore.so.4
#7  0x00007f678601eb6b in QThreadPrivate::start(void*) () from /usr/lib64/qt4/libQtCore.so.4
#8  0x00007f677f08f2c4 in start_thread () from /lib64/libpthread.so.0
#9  0x00007f6784bcdfcd in clone () from /lib64/libc.so.6

Thread 1 (Thread 0x7f67878f17c0 (LWP 4509)):
[KCrash Handler]
#5  0x00007f671afc5173 in Akregator::Part::slotSaveFeedList() () from /usr/lib64/kde4/akregatorpart.so
#6  0x00007f671afcaea7 in Akregator::Part::slotAutoSave() () from /usr/lib64/kde4/akregatorpart.so
#7  0x00007f671aff13c5 in Akregator::Part::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) () from /usr/lib64/kde4/akregatorpart.so
#8  0x00007f678616ccc3 in QObject::event(QEvent*) () from /usr/lib64/qt4/libQtCore.so.4
#9  0x00007f6785358fac in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib64/qt4/libQtGui.so.4
#10 0x00007f6785362038 in QApplication::notify(QObject*, QEvent*) () from /usr/lib64/qt4/libQtGui.so.4
#11 0x00007f6786c783ba in KApplication::notify(QObject*, QEvent*) () from /usr/lib64/libkdeui.so.5
#12 0x00007f678614e6fb in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib64/qt4/libQtCore.so.4
#13 0x00007f6786152e51 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /usr/lib64/qt4/libQtCore.so.4
#14 0x00007f678618512e in postEventSourceDispatch(_GSource*, int (*)(void*), void*) () from /usr/lib64/qt4/libQtCore.so.4
#15 0x00007f677e02023d in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
#16 0x00007f677e020548 in g_main_context_iterate.isra () from /usr/lib64/libglib-2.0.so.0
#17 0x00007f677e0205fc in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#18 0x00007f678618553e in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt4/libQtCore.so.4
#19 0x00007f6785412eb6 in QGuiEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt4/libQtGui.so.4
#20 0x00007f678614c421 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt4/libQtCore.so.4
#21 0x00007f678614c785 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt4/libQtCore.so.4
#22 0x00007f678661d7f3 in KJob::exec() () from /usr/lib64/libkdecore.so.5
#23 0x00007f6720a5b9e6 in KMKernel::cleanup() () from /usr/lib64/libkmailprivate.so.4
#24 0x00007f6720e48e8a in KMailPart::~KMailPart() () from /usr/lib64/kde4/kmailpart.so
#25 0x00007f678711755e in KontactInterface::Plugin::~Plugin (this=0x1b83830, __vtt_parm=<optimized out>, __in_chrg=<optimized out>) at /var/tmp/portage/kde-base/kdepimlibs-4.14.6/work/kdepimlibs-4.14.6/kontactinterface/plugin.cpp:92
#26 0x00007f67237b57d6 in KMailPlugin::~KMailPlugin() () from /usr/lib64/kde4/kontact_kmailplugin.so
#27 0x00007f678733f046 in Kontact::MainWindow::~MainWindow (this=this@entry=0x1a6d1e0, __in_chrg=<optimized out>, __vtt_parm=<optimized out>) at /var/tmp/portage/kde-base/kontact-4.14.6/work/kontact-4.14.6/kontact/src/mainwindow.cpp:296
#28 0x00007f678733f1e9 in Kontact::MainWindow::~MainWindow (this=0x1a6d1e0, __in_chrg=<optimized out>, __vtt_parm=<optimized out>) at /var/tmp/portage/kde-base/kontact-4.14.6/work/kontact-4.14.6/kontact/src/mainwindow.cpp:298
#29 0x00000000004036d7 in qDeleteAll<QList<KMainWindow*>::const_iterator> (end=..., begin=...) at /usr/include/qt4/QtCore/qalgorithms.h:322
#30 qDeleteAll<QList<KMainWindow*> > (c=...) at /usr/include/qt4/QtCore/qalgorithms.h:330
#31 main (argc=<optimized out>, argv=0x7ffd37fbf3d8) at /var/tmp/portage/kde-base/kontact-4.14.6/work/kontact-4.14.6/kontact/src/main.cpp:220

and 



Application: Kontact (kontact), signal: Segmentation fault
Using host libthread_db library "/lib64/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f11492697c0 (LWP 3747))]

Thread 3 (Thread 0x7f112cd7a700 (LWP 3772)):
#0  0x00007f1140a0c82f in pthread_cond_wait () from /lib64/libpthread.so.0
#1  0x00007f11446021fe in WTF::TCMalloc_PageHeap::scavengerThread() () from /usr/lib64/qt4/libQtWebKit.so.4
#2  0x00007f1144602239 in WTF::TCMalloc_PageHeap::runScavengerThread(void*) () from /usr/lib64/qt4/libQtWebKit.so.4
#3  0x00007f1140a072c4 in start_thread () from /lib64/libpthread.so.0
#4  0x00007f1146545fcd in clone () from /lib64/libc.so.6

Thread 2 (Thread 0x7f112c469700 (LWP 3824)):
#0  0x00007ffca71dba7e in clock_gettime ()
#1  0x00007f1146552c2d in clock_gettime () from /lib64/libc.so.6
#2  0x00007f11479f7d09 in qt_gettime() () from /usr/lib64/qt4/libQtCore.so.4
#3  0x00007f1147afe359 in QTimerInfoList::timerWait(timeval&) () from /usr/lib64/qt4/libQtCore.so.4
#4  0x00007f1147afc79e in timerSourcePrepare(_GSource*, int*) () from /usr/lib64/qt4/libQtCore.so.4
#5  0x00007f113f99798e in g_main_context_prepare () from /usr/lib64/libglib-2.0.so.0
#6  0x00007f113f99840b in g_main_context_iterate.isra () from /usr/lib64/libglib-2.0.so.0
#7  0x00007f113f9985fc in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#8  0x00007f1147afd55e in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt4/libQtCore.so.4
#9  0x00007f1147ac4421 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt4/libQtCore.so.4
#10 0x00007f1147ac4785 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt4/libQtCore.so.4
#11 0x00007f1147993cb9 in QThread::exec() () from /usr/lib64/qt4/libQtCore.so.4
#12 0x00007f1147996b6b in QThreadPrivate::start(void*) () from /usr/lib64/qt4/libQtCore.so.4
#13 0x00007f1140a072c4 in start_thread () from /lib64/libpthread.so.0
#14 0x00007f1146545fcd in clone () from /lib64/libc.so.6

Thread 1 (Thread 0x7f11492697c0 (LWP 3747)):
[KCrash Handler]
#5  0x00007f10dc959173 in Akregator::Part::slotSaveFeedList() () from /usr/lib64/kde4/akregatorpart.so
#6  0x00007f10dc95eea7 in Akregator::Part::slotAutoSave() () from /usr/lib64/kde4/akregatorpart.so
#7  0x00007f10dc9853c5 in Akregator::Part::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) () from /usr/lib64/kde4/akregatorpart.so
#8  0x00007f1147ae4cc3 in QObject::event(QEvent*) () from /usr/lib64/qt4/libQtCore.so.4
#9  0x00007f1146cd0fac in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib64/qt4/libQtGui.so.4
#10 0x00007f1146cda038 in QApplication::notify(QObject*, QEvent*) () from /usr/lib64/qt4/libQtGui.so.4
#11 0x00007f11485f03ba in KApplication::notify(QObject*, QEvent*) () from /usr/lib64/libkdeui.so.5
#12 0x00007f1147ac66fb in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib64/qt4/libQtCore.so.4
#13 0x00007f1147acae51 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /usr/lib64/qt4/libQtCore.so.4
#14 0x00007f1147afd12e in postEventSourceDispatch(_GSource*, int (*)(void*), void*) () from /usr/lib64/qt4/libQtCore.so.4
#15 0x00007f113f99823d in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
#16 0x00007f113f998548 in g_main_context_iterate.isra () from /usr/lib64/libglib-2.0.so.0
#17 0x00007f113f9985fc in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#18 0x00007f1147afd53e in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt4/libQtCore.so.4
#19 0x00007f1146d8aeb6 in QGuiEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt4/libQtGui.so.4
#20 0x00007f1147ac4421 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt4/libQtCore.so.4
#21 0x00007f1147ac4785 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt4/libQtCore.so.4
#22 0x00007f1147f957f3 in KJob::exec() () from /usr/lib64/libkdecore.so.5
#23 0x00007f10e248f9e6 in KMKernel::cleanup() () from /usr/lib64/libkmailprivate.so.4
#24 0x00007f10e287ce8a in KMailPart::~KMailPart() () from /usr/lib64/kde4/kmailpart.so
#25 0x00007f1148a8f55e in KontactInterface::Plugin::~Plugin (this=0xf75740, __vtt_parm=<optimized out>, __in_chrg=<optimized out>) at /var/tmp/portage/kde-base/kdepimlibs-4.14.6/work/kdepimlibs-4.14.6/kontactinterface/plugin.cpp:92
#26 0x00007f11291f87d6 in KMailPlugin::~KMailPlugin() () from /usr/lib64/kde4/kontact_kmailplugin.so
#27 0x00007f1148cb7046 in Kontact::MainWindow::~MainWindow (this=this@entry=0xd431b0, __in_chrg=<optimized out>, __vtt_parm=<optimized out>) at /var/tmp/portage/kde-base/kontact-4.14.6/work/kontact-4.14.6/kontact/src/mainwindow.cpp:296
#28 0x00007f1148cb71e9 in Kontact::MainWindow::~MainWindow (this=0xd431b0, __in_chrg=<optimized out>, __vtt_parm=<optimized out>) at /var/tmp/portage/kde-base/kontact-4.14.6/work/kontact-4.14.6/kontact/src/mainwindow.cpp:298
#29 0x00000000004036d7 in qDeleteAll<QList<KMainWindow*>::const_iterator> (end=..., begin=...) at /usr/include/qt4/QtCore/qalgorithms.h:322
#30 qDeleteAll<QList<KMainWindow*> > (c=...) at /usr/include/qt4/QtCore/qalgorithms.h:330
#31 main (argc=<optimized out>, argv=0x7ffca7146928) at /var/tmp/portage/kde-base/kontact-4.14.6/work/kontact-4.14.6/kontact/src/main.cpp:220

Its been happening for about half a year or so. Very annoying indeed. I'm on Gentoo ~x64.
Comment 36 Denis Kurz 2016-09-24 19:32:42 UTC
This bug has only been reported for versions before 4.14, which have been unsupported for at least two years now. Can anyone tell if this bug still present?

If noone confirms this bug for a Framework-based version of kontact (version 5.0 or later, as part of KDE Applications 15.08 or later), it gets closed in about three months.
Comment 37 Stephan Menzel 2016-10-01 09:12:08 UTC
(In reply to Denis Kurz from comment #36)
> This bug has only been reported for versions before 4.14, which have been
> unsupported for at least two years now. Can anyone tell if this bug still
> present?
> 
> If noone confirms this bug for a Framework-based version of kontact (version
> 5.0 or later, as part of KDE Applications 15.08 or later), it gets closed in
> about three months.

I remember this bug from back then. It used to hit me hard for many months and then it somehow disappeared. I guess you can safely consider it fixed.
Comment 38 Denis Kurz 2016-10-12 09:19:17 UTC
Thanks for the feedback, Stephan.