I guess this is an error in akonadi libs but it might be KMail doing an async use of them as well... These are some backtraces of a gdb attached to a KMail with a complete frozen GUI. #0 0x00007fce74cc9f5e in Akonadi::NotificationMessageHelpers::appendAndCompressImpl<QList<Akonadi::NotificationMessageV3>, Akonadi::NotificationMessageV3> ( list=..., msg=...) at /home/afiestas/kde4/source/akonadi/libs/notificationmessagev2_p_p.h:53 #1 0x00007fce74cc76eb in Akonadi::NotificationMessageV3::appendAndCompress (list=..., msg=...) at /home/afiestas/kde4/source/akonadi/libs/notificationmessagev3.cpp:65 #2 0x00007fce81b022c9 in Akonadi::MonitorPrivate::translateAndCompress (this=<optimized out>, notificationQueue=..., msg=...) at /home/afiestas/kde4/source/kdepimlibs/akonadi/monitor_p.cpp:578 #3 0x00007fce81b02713 in Akonadi::MonitorPrivate::slotNotify (this=0xf48150, msgs=...) at /home/afiestas/kde4/source/kdepimlibs/akonadi/monitor_p.cpp:668 #4 0x00007fce81a61471 in Akonadi::ChangeRecorderPrivate::slotNotify (this=0xf48150, msgs=...) at /home/afiestas/kde4/source/kdepimlibs/akonadi/changerecorder_p.cpp:53 #5 0x00007fce81af97d4 in Akonadi::Monitor::qt_static_metacall (_o=0xf9e5f0, _c=<optimized out>, _id=<optimized out>, _a=0x7fff37d29970) at /home/afiestas/kde4/build/kdepimlibs/akonadi/moc_monitor.cpp:177 #6 0x00007fce7ef99637 in QMetaObject::activate (sender=0xfc4b30, m=0x7fce81ca4400 <Akonadi::NotificationSource::staticMetaObject>, local_signal_index=0, argv=0x7fff37d29970) at /home/afiestas/kde4/source/qt/src/corelib/kernel/qobject.cpp:3567 #7 0x00007fce81ba7e4a in notifyV3 (this=<optimized out>, _t1=...) at /home/afiestas/kde4/build/kdepimlibs/akonadi/moc_notificationsource_p.cpp:98 #8 Akonadi::NotificationSource::qt_static_metacall (_o=0xfc4b30, _c=<optimized out>, _id=<optimized out>, _a=0x7fff37d29d10) at /home/afiestas/kde4/build/kdepimlibs/akonadi/moc_notificationsource_p.cpp:49 #9 0x00007fce7ef99637 in QMetaObject::activate (sender=0x1018420, m=0x7fce81ca39a0 <OrgFreedesktopAkonadiNotificationSourceInterface::staticMetaObject>, local_signal_index=10, argv=0x7fff37d29d10) at /home/afiestas/kde4/source/qt/src/corelib/kernel/qobject.cpp:3567 #10 0x00007fce81b9eba7 in ignoredSessionsChanged (this=<optimized out>) at /home/afiestas/kde4/build/kdepimlibs/akonadi/notificationsourceinterface.moc:201 #11 OrgFreedesktopAkonadiNotificationSourceInterface::qt_static_metacall (_o=<optimized out>, _c=<optimized out>, _id=<optimized out>, _a=<optimized out>) at /home/afiestas/kde4/build/kdepimlibs/akonadi/notificationsourceinterface.moc:109 #12 0x00007fce81b9f742 in OrgFreedesktopAkonadiNotificationSourceInterface::qt_metacall (this=0x1018420, _c=<optimized out>, _id=10, _a=0x7fff37d2a068) at /home/afiestas/kde4/build/kdepimlibs/akonadi/notificationsourceinterface.moc:192 #13 0x00007fce7f399747 in QDBusConnectionPrivate::deliverCall (this=0xd55fc0, object=0x1018420, msg=..., metaTypes=..., slotIdx=15) at /home/afiestas/kde4/source/qt/src/dbus/qdbusintegrator.cpp:950 #14 0x00007fce7f3b7a2e in QDBusCallDeliveryEvent::placeMetaCall (this=0x1bd14970, object=0x1018420) at /home/afiestas/kde4/source/qt/src/dbus/qdbusintegrator_p.h:103 #15 0x00007fce7ef92a80 in QObject::event (this=0x1018420, e=0x1bd14970) at /home/afiestas/kde4/source/qt/src/corelib/kernel/qobject.cpp:1222 #16 0x00007fce7fb0461f in QApplicationPrivate::notify_helper (this=0xd79860, receiver=0x1018420, e=0x1bd14970) at /home/afiestas/kde4/source/qt/src/gui/kernel/qapplication.cpp:4565 #17 0x00007fce7fb06bde in QApplication::notify (this=0x7fff37d2b6e0, receiver=0x1018420, e=0x1bd14970) at /home/afiestas/kde4/source/qt/src/gui/kernel/qapplication.cpp:3947 #18 0x00007fce83629541 in KApplication::notify (this=0x7fff37d2b6e0, receiver=0x1018420, event=0x1bd14970) at /home/afiestas/kde4/source/kdelibs/kdeui/kernel/kapplication.cpp:311 #19 0x00007fce7ef72556 in QCoreApplication::notifyInternal (this=0x7fff37d2b6e0, receiver=0x1018420, event=0x1bd14970) at /home/afiestas/kde4/source/qt/src/corelib/kernel/qcoreapplication.cpp:953 #20 0x00007fce7ef7684a in QCoreApplication::sendEvent (receiver=0x1018420, event=0x1bd14970) at /home/afiestas/kde4/build/qt/src/corelib/../../include/QtCore/../../../../source/qt/src/corelib/kernel/qcoreapplication.h:231 #21 0x00007fce7ef73977 in QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0xccb220) at /home/afiestas/kde4/source/qt/src/corelib/kernel/qcoreapplication.cpp:1577 ---Type <return> to continue, or q <return> to quit--- #22 0x00007fce7ef72ac8 in QCoreApplication::sendPostedEvents (receiver=0x0, event_type=0) at /home/afiestas/kde4/source/qt/src/corelib/kernel/qcoreapplication.cpp:1470 #23 0x00007fce7efc0de8 in QCoreApplication::sendPostedEvents () at /home/afiestas/kde4/build/qt/src/corelib/../../include/QtCore/../../../../source/qt/src/corelib/kernel/qcoreapplication.h:236 #24 0x00007fce7efbfcfb in postEventSourceDispatch (s=0xd79690) at /home/afiestas/kde4/source/qt/src/corelib/kernel/qeventdispatcher_glib.cpp:280 #25 0x00007fce71b89b84 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0 #26 0x00007fce71b89dc8 in ?? () from /usr/lib/libglib-2.0.so.0 #27 0x00007fce71b89e6c in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0 #28 0x00007fce7efbec82 in QEventDispatcherGlib::processEvents (this=0xcccb20, flags=...) at /home/afiestas/kde4/source/qt/src/corelib/kernel/qeventdispatcher_glib.cpp:425 #29 0x00007fce7fc18094 in QGuiEventDispatcherGlib::processEvents (this=0xcccb20, flags=...) at /home/afiestas/kde4/source/qt/src/gui/kernel/qguieventdispatcher_glib.cpp:204 #30 0x00007fce7ef6dbac in QEventLoop::processEvents (this=0x7fff37d2b630, flags=...) at /home/afiestas/kde4/source/qt/src/corelib/kernel/qeventloop.cpp:149 #31 0x00007fce7ef6ddad in QEventLoop::exec (this=0x7fff37d2b630, flags=...) at /home/afiestas/kde4/source/qt/src/corelib/kernel/qeventloop.cpp:204 #32 0x00007fce7ef72d2f in QCoreApplication::exec () at /home/afiestas/kde4/source/qt/src/corelib/kernel/qcoreapplication.cpp:1225 #33 0x00007fce7fb06676 in QApplication::exec () at /home/afiestas/kde4/source/qt/src/gui/kernel/qapplication.cpp:3823 #34 0x0000000000402609 in main (argc=3, argv=0x7fff37d2b908) at /home/afiestas/kde4/source/kdepim/kmail/main.cpp:146 #0 0x00007fce7ccf58ff in QBasicAtomicInt::ref (this=0x1ac724e8) at /opt/qt4/include/QtCore/qatomic_x86_64.h:121 #1 0x00007fce74cc0185 in QMap<long long, Akonadi::NotificationMessageV2::Entity>::QMap (this=0x7fff37d291e0, other=...) at /opt/qt4/include/QtCore/qmap.h:184 #2 0x00007fce74cbb88f in Akonadi::NotificationMessageV2::entities (this=0x1c80bc70) at /home/afiestas/kde4/source/akonadi/libs/notificationmessagev2.cpp:155 #3 0x00007fce74ccb242 in Akonadi::NotificationMessageHelpers::compareWithoutOpAndParts<Akonadi::NotificationMessageV3> (left=..., right=...) at /home/afiestas/kde4/source/akonadi/libs/notificationmessagev2_p_p.h:34 #4 0x00007fce74cc9f69 in Akonadi::NotificationMessageHelpers::appendAndCompressImpl<QList<Akonadi::NotificationMessageV3>, Akonadi::NotificationMessageV3> ( list=..., msg=...) at /home/afiestas/kde4/source/akonadi/libs/notificationmessagev2_p_p.h:53 #5 0x00007fce74cc76eb in Akonadi::NotificationMessageV3::appendAndCompress (list=..., msg=...) at /home/afiestas/kde4/source/akonadi/libs/notificationmessagev3.cpp:65 #6 0x00007fce81b022c9 in Akonadi::MonitorPrivate::translateAndCompress (this=<optimized out>, notificationQueue=..., msg=...) at /home/afiestas/kde4/source/kdepimlibs/akonadi/monitor_p.cpp:578 #7 0x00007fce81b02713 in Akonadi::MonitorPrivate::slotNotify (this=0xf48150, msgs=...) at /home/afiestas/kde4/source/kdepimlibs/akonadi/monitor_p.cpp:668 #8 0x00007fce81a61471 in Akonadi::ChangeRecorderPrivate::slotNotify (this=0xf48150, msgs=...) at /home/afiestas/kde4/source/kdepimlibs/akonadi/changerecorder_p.cpp:53 #9 0x00007fce81af97d4 in Akonadi::Monitor::qt_static_metacall (_o=0xf9e5f0, _c=<optimized out>, _id=<optimized out>, _a=0x7fff37d29970) at /home/afiestas/kde4/build/kdepimlibs/akonadi/moc_monitor.cpp:177 #10 0x00007fce7ef99637 in QMetaObject::activate (sender=0xfc4b30, m=0x7fce81ca4400 <Akonadi::NotificationSource::staticMetaObject>, local_signal_index=0, argv=0x7fff37d29970) at /home/afiestas/kde4/source/qt/src/corelib/kernel/qobject.cpp:3567 #11 0x00007fce81ba7e4a in notifyV3 (this=<optimized out>, _t1=...) at /home/afiestas/kde4/build/kdepimlibs/akonadi/moc_notificationsource_p.cpp:98 #12 Akonadi::NotificationSource::qt_static_metacall (_o=0xfc4b30, _c=<optimized out>, _id=<optimized out>, _a=0x7fff37d29d10) at /home/afiestas/kde4/build/kdepimlibs/akonadi/moc_notificationsource_p.cpp:49 #13 0x00007fce7ef99637 in QMetaObject::activate (sender=0x1018420, m=0x7fce81ca39a0 <OrgFreedesktopAkonadiNotificationSourceInterface::staticMetaObject>, local_signal_index=10, argv=0x7fff37d29d10) at /home/afiestas/kde4/source/qt/src/corelib/kernel/qobject.cpp:3567 #14 0x00007fce81b9eba7 in ignoredSessionsChanged (this=<optimized out>) at /home/afiestas/kde4/build/kdepimlibs/akonadi/notificationsourceinterface.moc:201 #15 OrgFreedesktopAkonadiNotificationSourceInterface::qt_static_metacall (_o=<optimized out>, _c=<optimized out>, _id=<optimized out>, _a=<optimized out>) at /home/afiestas/kde4/build/kdepimlibs/akonadi/notificationsourceinterface.moc:109 #16 0x00007fce81b9f742 in OrgFreedesktopAkonadiNotificationSourceInterface::qt_metacall (this=0x1018420, _c=<optimized out>, _id=10, _a=0x7fff37d2a068) at /home/afiestas/kde4/build/kdepimlibs/akonadi/notificationsourceinterface.moc:192 #17 0x00007fce7f399747 in QDBusConnectionPrivate::deliverCall (this=0xd55fc0, object=0x1018420, msg=..., metaTypes=..., slotIdx=15) at /home/afiestas/kde4/source/qt/src/dbus/qdbusintegrator.cpp:950 #18 0x00007fce7f3b7a2e in QDBusCallDeliveryEvent::placeMetaCall (this=0x1bfb4be0, object=0x1018420) at /home/afiestas/kde4/source/qt/src/dbus/qdbusintegrator_p.h:103 #0 0x00007fce74cadec0 in QMap<long long, Akonadi::NotificationMessageV2::Entity>::const_iterator::value() const@plt () from /opt/kde4/lib/libakonadiprotocolinternals.so.1 #1 0x00007fce74cc2966 in QMap<long long, Akonadi::NotificationMessageV2::Entity>::operator== (this=0x7fff37d291f0, other=...) at /opt/qt4/include/QtCore/qmap.h:936 #2 0x00007fce74ccb27f in Akonadi::NotificationMessageHelpers::compareWithoutOpAndParts<Akonadi::NotificationMessageV3> (left=..., right=...) at /home/afiestas/kde4/source/akonadi/libs/notificationmessagev2_p_p.h:34 #3 0x00007fce74cc9f69 in Akonadi::NotificationMessageHelpers::appendAndCompressImpl<QList<Akonadi::NotificationMessageV3>, Akonadi::NotificationMessageV3> ( list=..., msg=...) at /home/afiestas/kde4/source/akonadi/libs/notificationmessagev2_p_p.h:53 #4 0x00007fce74cc76eb in Akonadi::NotificationMessageV3::appendAndCompress (list=..., msg=...) at /home/afiestas/kde4/source/akonadi/libs/notificationmessagev3.cpp:65 #5 0x00007fce81b022c9 in Akonadi::MonitorPrivate::translateAndCompress (this=<optimized out>, notificationQueue=..., msg=...) at /home/afiestas/kde4/source/kdepimlibs/akonadi/monitor_p.cpp:578 #6 0x00007fce81b02713 in Akonadi::MonitorPrivate::slotNotify (this=0xf48150, msgs=...) at /home/afiestas/kde4/source/kdepimlibs/akonadi/monitor_p.cpp:668 #7 0x00007fce81a61471 in Akonadi::ChangeRecorderPrivate::slotNotify (this=0xf48150, msgs=...) at /home/afiestas/kde4/source/kdepimlibs/akonadi/changerecorder_p.cpp:53 #0 0x00007fce74cc9f54 in Akonadi::NotificationMessageHelpers::appendAndCompressImpl<QList<Akonadi::NotificationMessageV3>, Akonadi::NotificationMessageV3> ( list=..., msg=...) at /home/afiestas/kde4/source/akonadi/libs/notificationmessagev2_p_p.h:53 #1 0x00007fce74cc76eb in Akonadi::NotificationMessageV3::appendAndCompress (list=..., msg=...) at /home/afiestas/kde4/source/akonadi/libs/notificationmessagev3.cpp:65 #2 0x00007fce81b022c9 in Akonadi::MonitorPrivate::translateAndCompress (this=<optimized out>, notificationQueue=..., msg=...) at /home/afiestas/kde4/source/kdepimlibs/akonadi/monitor_p.cpp:578 #3 0x00007fce81b02713 in Akonadi::MonitorPrivate::slotNotify (this=0xf48150, msgs=...) at /home/afiestas/kde4/source/kdepimlibs/akonadi/monitor_p.cpp:668 #4 0x00007fce81a61471 in Akonadi::ChangeRecorderPrivate::slotNotify (this=0xf48150, msgs=...) at /home/afiestas/kde4/source/kdepimlibs/akonadi/changerecorder_p.cpp:53 Reproducible: Always
After 6h running trying to load a folder I have killed KMail, the backtrace was still similar.
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 kmail2 (version 5.0 or later, as part of KDE Applications 15.12 or later), it gets closed in about three months.
Just as announced in my last comment, I close this bug. If you encounter it again in a recent version (at least 5.0 aka 15.08), please open a new one unless it already exists. Thank you for all your input.