Bug 426090

Summary: IMAP resource crashes when the resource is restarted in KMail
Product: [Frameworks and Libraries] Akonadi Reporter: Erik Quaeghebeur <bugs.kde.org>
Component: IMAP resourceAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED DUPLICATE    
Severity: crash Keywords: drkonqi
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed In:

Description Erik Quaeghebeur 2020-09-02 08:11:38 UTC
Application: akonadi_imap_resource (5.14.3 (20.04.3))

Qt Version: 5.14.2
Frameworks Version: 5.70.0
Operating System: Linux 5.4.60-gentoo x86_64
Windowing system: X11
Distribution: Gentoo/Linux

-- Information about the crash:
- What I was doing when the application crashed:
I restarted an IMAP resource in KMail. The reason for this was that I had changed a folder name in another client and wanted KMail to pick this up.

-- Backtrace:
Application: FastMail (akonadi_imap_resource), signal: Segmentation fault
Using host libthread_db library "/lib64/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f664ccc8e00 (LWP 20034))]

Thread 12 (Thread 0x7f6629ffb700 (LWP 49774)):
#0  0x00007f665cd8333f in poll () at /lib64/libc.so.6
#1  0x00007f665b2fa4ce in  () at /usr/lib64/libglib-2.0.so.0
#2  0x00007f665b2fa5ef in g_main_context_iteration () at /usr/lib64/libglib-2.0.so.0
#3  0x00007f665d3afc4b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (this=0x7f6614003e90, flags=...) at /var/tmp/portage/dev-qt/qtcore-5.14.2/work/qtbase-everywhere-src-5.14.2/src/corelib/kernel/qeventdispatcher_glib.cpp:425
#4  0x00007f665d35a52b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (this=this@entry=0x7f6629ffa7a0, flags=..., flags@entry=...) at /var/tmp/portage/dev-qt/qtcore-5.14.2/work/qtbase-everywhere-src-5.14.2/include/QtCore/../../src/corelib/global/qflags.h:136
#5  0x00007f665d1af97e in QThread::exec() (this=<optimized out>) at /var/tmp/portage/dev-qt/qtcore-5.14.2/work/qtbase-everywhere-src-5.14.2/include/QtCore/../../src/corelib/global/qflags.h:118
#6  0x00007f665d1b09ac in QThreadPrivate::start(void*) (arg=0x55cb9737d2b0) at /var/tmp/portage/dev-qt/qtcore-5.14.2/work/qtbase-everywhere-src-5.14.2/src/corelib/thread/qthread_unix.cpp:342
#7  0x00007f665c2f2e77 in start_thread () at /lib64/libpthread.so.0
#8  0x00007f665cd8d95f in clone () at /lib64/libc.so.6

Thread 11 (Thread 0x7f66294ab700 (LWP 49765)):
#0  0x00007f665c2f997d in pthread_cond_timedwait@@GLIBC_2.3.2 () at /lib64/libpthread.so.0
#1  0x00007f665d1b5c66 in QWaitConditionPrivate::wait_relative(QDeadlineTimer) (this=0x7f66180109a0, deadline=...) at /var/tmp/portage/dev-qt/qtcore-5.14.2/work/qtbase-everywhere-src-5.14.2/src/corelib/thread/qwaitcondition_unix.cpp:136
#2  QWaitConditionPrivate::wait(QDeadlineTimer) (deadline=..., this=0x7f66180109a0) at /var/tmp/portage/dev-qt/qtcore-5.14.2/work/qtbase-everywhere-src-5.14.2/src/corelib/thread/qwaitcondition_unix.cpp:144
#3  QWaitCondition::wait(QMutex*, QDeadlineTimer) (this=<optimized out>, mutex=0x7f6618010dd8, deadline=...) at /var/tmp/portage/dev-qt/qtcore-5.14.2/work/qtbase-everywhere-src-5.14.2/src/corelib/thread/qwaitcondition_unix.cpp:225
#4  0x00007f665d1b5d57 in QWaitCondition::wait(QMutex*, unsigned long) (this=this@entry=0x7f6618011a80, mutex=mutex@entry=0x7f6618010dd8, time=<optimized out>) at /var/tmp/portage/dev-qt/qtcore-5.14.2/work/qtbase-everywhere-src-5.14.2/src/corelib/thread/qwaitcondition_unix.cpp:209
#5  0x00007f665d1b3c9d in QThreadPoolThread::run() (this=0x7f6618011a70) at /var/tmp/portage/dev-qt/qtcore-5.14.2/work/qtbase-everywhere-src-5.14.2/include/QtCore/../../src/corelib/thread/qmutex.h:270
#6  0x00007f665d1b09ac in QThreadPrivate::start(void*) (arg=0x7f6618011a70) at /var/tmp/portage/dev-qt/qtcore-5.14.2/work/qtbase-everywhere-src-5.14.2/src/corelib/thread/qthread_unix.cpp:342
#7  0x00007f665c2f2e77 in start_thread () at /lib64/libpthread.so.0
#8  0x00007f665cd8d95f in clone () at /lib64/libc.so.6

Thread 10 (Thread 0x7f662affd700 (LWP 37561)):
#0  0x00007f665cd7eebc in read () at /lib64/libc.so.6
#1  0x00007f665b341f5f in  () at /usr/lib64/libglib-2.0.so.0
#2  0x00007f665b2fa01e in g_main_context_check () at /usr/lib64/libglib-2.0.so.0
#3  0x00007f665b2fa473 in  () at /usr/lib64/libglib-2.0.so.0
#4  0x00007f665b2fa5ef in g_main_context_iteration () at /usr/lib64/libglib-2.0.so.0
#5  0x00007f665d3afc4b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (this=0x7f661c0050f0, flags=...) at /var/tmp/portage/dev-qt/qtcore-5.14.2/work/qtbase-everywhere-src-5.14.2/src/corelib/kernel/qeventdispatcher_glib.cpp:425
#6  0x00007f665d35a52b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (this=this@entry=0x7f662affc7a0, flags=..., flags@entry=...) at /var/tmp/portage/dev-qt/qtcore-5.14.2/work/qtbase-everywhere-src-5.14.2/include/QtCore/../../src/corelib/global/qflags.h:136
#7  0x00007f665d1af97e in QThread::exec() (this=<optimized out>) at /var/tmp/portage/dev-qt/qtcore-5.14.2/work/qtbase-everywhere-src-5.14.2/include/QtCore/../../src/corelib/global/qflags.h:118
#8  0x00007f665d1b09ac in QThreadPrivate::start(void*) (arg=0x55cb96eb0af0) at /var/tmp/portage/dev-qt/qtcore-5.14.2/work/qtbase-everywhere-src-5.14.2/src/corelib/thread/qthread_unix.cpp:342
#9  0x00007f665c2f2e77 in start_thread () at /lib64/libpthread.so.0
#10 0x00007f665cd8d95f in clone () at /lib64/libc.so.6

Thread 9 (Thread 0x7f662bfff700 (LWP 20157)):
#0  0x00007f665cd8333f in poll () at /lib64/libc.so.6
#1  0x00007f665b2fa4ce in  () at /usr/lib64/libglib-2.0.so.0
#2  0x00007f665b2fa5ef in g_main_context_iteration () at /usr/lib64/libglib-2.0.so.0
#3  0x00007f665d3afc4b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (this=0x7f6620000b60, flags=...) at /var/tmp/portage/dev-qt/qtcore-5.14.2/work/qtbase-everywhere-src-5.14.2/src/corelib/kernel/qeventdispatcher_glib.cpp:425
#4  0x00007f665d35a52b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (this=this@entry=0x7f662bffe7a0, flags=..., flags@entry=...) at /var/tmp/portage/dev-qt/qtcore-5.14.2/work/qtbase-everywhere-src-5.14.2/include/QtCore/../../src/corelib/global/qflags.h:136
#5  0x00007f665d1af97e in QThread::exec() (this=<optimized out>) at /var/tmp/portage/dev-qt/qtcore-5.14.2/work/qtbase-everywhere-src-5.14.2/include/QtCore/../../src/corelib/global/qflags.h:118
#6  0x00007f665d1b09ac in QThreadPrivate::start(void*) (arg=0x55cb96e1dfd0) at /var/tmp/portage/dev-qt/qtcore-5.14.2/work/qtbase-everywhere-src-5.14.2/src/corelib/thread/qthread_unix.cpp:342
#7  0x00007f665c2f2e77 in start_thread () at /lib64/libpthread.so.0
#8  0x00007f665cd8d95f in clone () at /lib64/libc.so.6

Thread 8 (Thread 0x7f664144b700 (LWP 20114)):
#0  0x00007f665b2f6b1d in  () at /usr/lib64/libglib-2.0.so.0
#1  0x00007f665b2f8535 in  () at /usr/lib64/libglib-2.0.so.0
#2  0x00007f665b2f9e1f in g_main_context_check () at /usr/lib64/libglib-2.0.so.0
#3  0x00007f665b2fa473 in  () at /usr/lib64/libglib-2.0.so.0
#4  0x00007f665b2fa5ef in g_main_context_iteration () at /usr/lib64/libglib-2.0.so.0
#5  0x00007f665d3afc4b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (this=0x7f6624000b60, flags=...) at /var/tmp/portage/dev-qt/qtcore-5.14.2/work/qtbase-everywhere-src-5.14.2/src/corelib/kernel/qeventdispatcher_glib.cpp:425
#6  0x00007f665d35a52b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (this=this@entry=0x7f664144a7a0, flags=..., flags@entry=...) at /var/tmp/portage/dev-qt/qtcore-5.14.2/work/qtbase-everywhere-src-5.14.2/include/QtCore/../../src/corelib/global/qflags.h:136
#7  0x00007f665d1af97e in QThread::exec() (this=<optimized out>) at /var/tmp/portage/dev-qt/qtcore-5.14.2/work/qtbase-everywhere-src-5.14.2/include/QtCore/../../src/corelib/global/qflags.h:118
#8  0x00007f665d1b09ac in QThreadPrivate::start(void*) (arg=0x55cb96dcb230) at /var/tmp/portage/dev-qt/qtcore-5.14.2/work/qtbase-everywhere-src-5.14.2/src/corelib/thread/qthread_unix.cpp:342
#9  0x00007f665c2f2e77 in start_thread () at /lib64/libpthread.so.0
#10 0x00007f665cd8d95f in clone () at /lib64/libc.so.6

Thread 7 (Thread 0x7f6641c4c700 (LWP 20109)):
#0  0x00007f665cd7eebc in read () at /lib64/libc.so.6
#1  0x00007f665b341f5f in  () at /usr/lib64/libglib-2.0.so.0
#2  0x00007f665b2fa01e in g_main_context_check () at /usr/lib64/libglib-2.0.so.0
#3  0x00007f665b2fa473 in  () at /usr/lib64/libglib-2.0.so.0
#4  0x00007f665b2fa5ef in g_main_context_iteration () at /usr/lib64/libglib-2.0.so.0
#5  0x00007f665d3afc4b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (this=0x7f6630000b60, flags=...) at /var/tmp/portage/dev-qt/qtcore-5.14.2/work/qtbase-everywhere-src-5.14.2/src/corelib/kernel/qeventdispatcher_glib.cpp:425
#6  0x00007f665d35a52b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (this=this@entry=0x7f6641c4b770, flags=..., flags@entry=...) at /var/tmp/portage/dev-qt/qtcore-5.14.2/work/qtbase-everywhere-src-5.14.2/include/QtCore/../../src/corelib/global/qflags.h:136
#7  0x00007f665d1af97e in QThread::exec() (this=<optimized out>) at /var/tmp/portage/dev-qt/qtcore-5.14.2/work/qtbase-everywhere-src-5.14.2/include/QtCore/../../src/corelib/global/qflags.h:118
#8  0x00007f665e491507 in  () at /usr/lib64/libQt5DBus.so.5
#9  0x00007f665d1b09ac in QThreadPrivate::start(void*) (arg=0x7f665e513da0) at /var/tmp/portage/dev-qt/qtcore-5.14.2/work/qtbase-everywhere-src-5.14.2/src/corelib/thread/qthread_unix.cpp:342
#10 0x00007f665c2f2e77 in start_thread () at /lib64/libpthread.so.0
#11 0x00007f665cd8d95f in clone () at /lib64/libc.so.6

Thread 6 (Thread 0x7f66437fe700 (LWP 20105)):
#0  0x00007f665c2f9667 in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libpthread.so.0
#1  0x00007f66499e2fcb in  () at /usr/lib64/dri/i965_dri.so
#2  0x00007f66499e2be7 in  () at /usr/lib64/dri/i965_dri.so
#3  0x00007f665c2f2e77 in start_thread () at /lib64/libpthread.so.0
#4  0x00007f665cd8d95f in clone () at /lib64/libc.so.6

Thread 5 (Thread 0x7f6643fff700 (LWP 20104)):
#0  0x00007f665c2f9667 in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libpthread.so.0
#1  0x00007f66499e2fcb in  () at /usr/lib64/dri/i965_dri.so
#2  0x00007f66499e2be7 in  () at /usr/lib64/dri/i965_dri.so
#3  0x00007f665c2f2e77 in start_thread () at /lib64/libpthread.so.0
#4  0x00007f665cd8d95f in clone () at /lib64/libc.so.6

Thread 4 (Thread 0x7f6648ae0700 (LWP 20103)):
#0  0x00007f665c2f9667 in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libpthread.so.0
#1  0x00007f66499e2fcb in  () at /usr/lib64/dri/i965_dri.so
#2  0x00007f66499e2be7 in  () at /usr/lib64/dri/i965_dri.so
#3  0x00007f665c2f2e77 in start_thread () at /lib64/libpthread.so.0
#4  0x00007f665cd8d95f in clone () at /lib64/libc.so.6

Thread 3 (Thread 0x7f66492e1700 (LWP 20102)):
#0  0x00007f665c2f9667 in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libpthread.so.0
#1  0x00007f66499e2fcb in  () at /usr/lib64/dri/i965_dri.so
#2  0x00007f66499e2be7 in  () at /usr/lib64/dri/i965_dri.so
#3  0x00007f665c2f2e77 in start_thread () at /lib64/libpthread.so.0
#4  0x00007f665cd8d95f in clone () at /lib64/libc.so.6

Thread 2 (Thread 0x7f664bc07700 (LWP 20074)):
#0  0x00007f665cd8333f in poll () at /lib64/libc.so.6
#1  0x00007f665c138d02 in  () at /usr/lib64/libxcb.so.1
#2  0x00007f665c13a99a in xcb_wait_for_event () at /usr/lib64/libxcb.so.1
#3  0x00007f664c747500 in QXcbEventQueue::run() (this=0x55cb968f7550) at /var/tmp/portage/dev-qt/qtgui-5.14.2-r1/work/qtbase-everywhere-src-5.14.2/src/plugins/platforms/xcb/qxcbeventqueue.cpp:228
#4  0x00007f665d1b09ac in QThreadPrivate::start(void*) (arg=0x55cb968f7550) at /var/tmp/portage/dev-qt/qtcore-5.14.2/work/qtbase-everywhere-src-5.14.2/src/corelib/thread/qthread_unix.cpp:342
#5  0x00007f665c2f2e77 in start_thread () at /lib64/libpthread.so.0
#6  0x00007f665cd8d95f in clone () at /lib64/libc.so.6

Thread 1 (Thread 0x7f664ccc8e00 (LWP 20034)):
[KCrash Handler]
#4  0x00007f665d2efae9 in qGetPtrHelper<QScopedPointer<QObjectData, QScopedPointerDeleter<QObjectData> > >(QScopedPointer<QObjectData, QScopedPointerDeleter<QObjectData> >&) (ptr=...) at /var/tmp/portage/dev-qt/qtcore-5.14.2/work/qtbase-everywhere-src-5.14.2/src/corelib/io/qsettings.cpp:3268
#5  QSettings::d_func() (this=<optimized out>) at /var/tmp/portage/dev-qt/qtcore-5.14.2/work/qtbase-everywhere-src-5.14.2/src/corelib/io/qsettings.h:72
#6  QSettings::setValue(QString const&, QVariant const&) (this=this@entry=0x0, key=..., value=...) at /var/tmp/portage/dev-qt/qtcore-5.14.2/work/qtbase-everywhere-src-5.14.2/src/corelib/io/qsettings.cpp:3269
#7  0x00007f665ed9481e in Akonadi::AgentBase::setOnline(bool) (this=0x7fffa64d3650, state=true) at /var/tmp/portage/kde-apps/akonadi-20.04.3/work/akonadi-20.04.3/src/agentbase/agentbase.cpp:1031
#8  0x000055cb94a4766f in  ()
#9  0x00007f665d38e5f2 in QtPrivate::QSlotObjectBase::call(QObject*, void**) (a=0x7fffa64d2c90, r=0x7fffa64d3650, this=0x55cb96de2cc0) at /var/tmp/portage/dev-qt/qtcore-5.14.2/work/qtbase-everywhere-src-5.14.2/include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398
#10 doActivate<false>(QObject*, int, void**) (sender=0x55cb96df3ac0, signal_index=7, argv=0x7fffa64d2c90) at /var/tmp/portage/dev-qt/qtcore-5.14.2/work/qtbase-everywhere-src-5.14.2/src/corelib/kernel/qobject.cpp:3870
#11 0x000055cb94a27006 in  ()
#12 0x000055cb94a77dfe in  ()
#13 0x000055cb94a78de4 in  ()
#14 0x00007f665d38e5f2 in QtPrivate::QSlotObjectBase::call(QObject*, void**) (a=0x7fffa64d2e70, r=0x55cb96df3ac0, this=0x55cb97148a10) at /var/tmp/portage/dev-qt/qtcore-5.14.2/work/qtbase-everywhere-src-5.14.2/include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398
#15 doActivate<false>(QObject*, int, void**) (sender=0x55cb96f6ad30, signal_index=6, argv=0x7fffa64d2e70) at /var/tmp/portage/dev-qt/qtcore-5.14.2/work/qtbase-everywhere-src-5.14.2/src/corelib/kernel/qobject.cpp:3870
#16 0x00007f665e755c8c in KJob::result(KJob*, KJob::QPrivateSignal) () at /usr/lib64/libKF5CoreAddons.so.5
#17 0x00007f665e756753 in KJob::finishJob(bool) () at /usr/lib64/libKF5CoreAddons.so.5
#18 0x00007f665ef21544 in KIMAP::Job::handleErrorReplies(KIMAP::Response const&) () at /usr/lib64/libKF5IMAP.so.5
#19 0x00007f665ef3fe9b in KIMAP::SessionPrivate::responseReceived(KIMAP::Response const&) () at /usr/lib64/libKF5IMAP.so.5
#20 0x00007f665d386d9d in QObject::event(QEvent*) (this=0x55cb96ebe870, e=0x7f6614049790) at /var/tmp/portage/dev-qt/qtcore-5.14.2/work/qtbase-everywhere-src-5.14.2/src/corelib/kernel/qobject.cpp:1339
#21 0x00007f665def4d0f in QApplicationPrivate::notify_helper(QObject*, QEvent*) (this=this@entry=0x55cb968f1a40, receiver=receiver@entry=0x55cb96ebe870, e=e@entry=0x7f6614049790) at /var/tmp/portage/dev-qt/qtwidgets-5.14.2/work/qtbase-everywhere-src-5.14.2/src/widgets/kernel/qapplication.cpp:3685
#22 0x00007f665defde60 in QApplication::notify(QObject*, QEvent*) (this=0x7fffa64d3640, receiver=0x55cb96ebe870, e=0x7f6614049790) at /var/tmp/portage/dev-qt/qtwidgets-5.14.2/work/qtbase-everywhere-src-5.14.2/src/widgets/kernel/qapplication.cpp:3431
#23 0x00007f665d35b67f in QCoreApplication::notifyInternal2(QObject*, QEvent*) (receiver=0x55cb96ebe870, event=0x7f6614049790) at /var/tmp/portage/dev-qt/qtcore-5.14.2/work/qtbase-everywhere-src-5.14.2/src/corelib/kernel/qcoreapplication.cpp:1075
#24 0x00007f665d35e122 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) (receiver=0x0, event_type=0, data=0x55cb968ce8f0) at /var/tmp/portage/dev-qt/qtcore-5.14.2/work/qtbase-everywhere-src-5.14.2/src/corelib/kernel/qcoreapplication.cpp:1815
#25 0x00007f665d3afe83 in postEventSourceDispatch(GSource*, GSourceFunc, gpointer) (s=0x55cb96949390) at /var/tmp/portage/dev-qt/qtcore-5.14.2/work/qtbase-everywhere-src-5.14.2/src/corelib/kernel/qeventdispatcher_glib.cpp:277
#26 0x00007f665b2fa2dd in g_main_context_dispatch () at /usr/lib64/libglib-2.0.so.0
#27 0x00007f665b2fa558 in  () at /usr/lib64/libglib-2.0.so.0
#28 0x00007f665b2fa5ef in g_main_context_iteration () at /usr/lib64/libglib-2.0.so.0
#29 0x00007f665d3afc30 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (this=0x55cb9695aec0, flags=...) at /var/tmp/portage/dev-qt/qtcore-5.14.2/work/qtbase-everywhere-src-5.14.2/src/corelib/kernel/qeventdispatcher_glib.cpp:423
#30 0x00007f665d35a52b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (this=this@entry=0x7fffa64d3590, flags=..., flags@entry=...) at /var/tmp/portage/dev-qt/qtcore-5.14.2/work/qtbase-everywhere-src-5.14.2/include/QtCore/../../src/corelib/global/qflags.h:136
#31 0x00007f665d362352 in QCoreApplication::exec() () at /var/tmp/portage/dev-qt/qtcore-5.14.2/work/qtbase-everywhere-src-5.14.2/include/QtCore/../../src/corelib/global/qflags.h:118
#32 0x00007f665d8ffeac in QGuiApplication::exec() () at /var/tmp/portage/dev-qt/qtgui-5.14.2-r1/work/qtbase-everywhere-src-5.14.2/src/gui/kernel/qguiapplication.cpp:1860
#33 0x00007f665def4c85 in QApplication::exec() () at /var/tmp/portage/dev-qt/qtwidgets-5.14.2/work/qtbase-everywhere-src-5.14.2/src/widgets/kernel/qapplication.cpp:2825
#34 0x00007f665eda3ade in Akonadi::ResourceBase::init(Akonadi::ResourceBase&) (r=...) at /usr/include/qt5/QtCore/qcoreapplication.h:116
#35 0x000055cb94a13961 in  ()
#36 0x00007f665ccb7d7b in __libc_start_main () at /lib64/libc.so.6
#37 0x000055cb94a1176a in  ()
[Inferior 1 (process 20034) detached]

The reporter indicates this bug may be a duplicate of or related to bug 423557.

Possible duplicates by query: bug 425936, bug 425932, bug 425931, bug 425786, bug 425658.

Reported using DrKonqi
Comment 1 Christophe Marin 2020-09-02 08:37:09 UTC

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