Bug 353957 - Akonadi IMAP resource crashed when checked maildir
Summary: Akonadi IMAP resource crashed when checked maildir
Status: RESOLVED FIXED
Alias: None
Product: Akonadi
Classification: Frameworks and Libraries
Component: IMAP resource (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: Christian Mollekopf
URL:
Keywords: drkonqi
: 361608 (view as bug list)
Depends on:
Blocks:
 
Reported: 2015-10-16 10:34 UTC by Lukáš Karas
Modified: 2023-04-27 19:09 UTC (History)
16 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
New crash information added by DrKonqi (6.31 KB, text/plain)
2015-11-03 15:32 UTC, Julian Schmidt
Details
New crash information added by DrKonqi (6.15 KB, text/plain)
2015-11-05 15:22 UTC, kraeutermann
Details
New crash information added by DrKonqi (7.33 KB, text/plain)
2015-11-12 13:47 UTC, TechMod
Details
New crash information added by DrKonqi (7.85 KB, text/plain)
2016-02-10 21:55 UTC, Christopher Stayner
Details
New crash information added by DrKonqi (6.25 KB, text/plain)
2016-02-22 21:48 UTC, Christopher Stayner
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Lukáš Karas 2015-10-16 10:34:27 UTC
Application: akonadi_imap_resource (4.89.0)

Qt Version: 5.4.2
Operating System: Linux 4.2.0-16-generic x86_64
Distribution: Ubuntu Wily Werewolf (development branch)

-- Information about the crash:
- What I was doing when the application crashed:

I just read emails, IMAP resource starts its periodic scan of remote mailbox and it crash. It Happens around once per day with similar stacktrace...

The crash can be reproduced sometimes.

-- Backtrace:
Application: Zdroj Akonadi (akonadi_imap_resource), signal: Segmentation fault
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7fe05b505840 (LWP 2360))]

Thread 4 (Thread 0x7fe059267700 (LWP 2370)):
#0  0x00007fe069bce8dd in poll () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007fe065395bd2 in ?? () from /usr/lib/x86_64-linux-gnu/libxcb.so.1
#2  0x00007fe06539774f in xcb_wait_for_event () from /usr/lib/x86_64-linux-gnu/libxcb.so.1
#3  0x00007fe05b18e9e9 in ?? () from /usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqxcb.so
#4  0x00007fe06a4d82be in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007fe0655b46aa in start_thread (arg=0x7fe059267700) at pthread_create.c:333
#6  0x00007fe069bd9eed in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 3 (Thread 0x7fe04b9e2700 (LWP 2560)):
#0  0x00007fe069bce8dd in poll () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007fe064a571ec in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fe064a572fc in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007fe06a70f29b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007fe06a6b575a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007fe06a4d33d4 in QThread::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#6  0x00007fe06a4d82be in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#7  0x00007fe0655b46aa in start_thread (arg=0x7fe04b9e2700) at pthread_create.c:333
#8  0x00007fe069bd9eed in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 2 (Thread 0x7fe051adb700 (LWP 12162)):
#0  0x00007fe06a70e5f1 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#1  0x00007fe064a5677d in g_main_context_prepare () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fe064a5711b in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007fe064a572fc in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007fe06a70f29b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007fe06a6b575a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#6  0x00007fe06a4d33d4 in QThread::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#7  0x00007fe06a4d82be in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#8  0x00007fe0655b46aa in start_thread (arg=0x7fe051adb700) at pthread_create.c:333
#9  0x00007fe069bd9eed in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 1 (Thread 0x7fe05b505840 (LWP 2360)):
[KCrash Handler]
#6  0x00007fe06d2af693 in Akonadi::Entity::id (this=this@entry=0x7fe06a787518 <QArrayData::shared_null+24>) at ../../../../akonadi/src/core/entity.cpp:72
#7  0x000000000045833e in ImapResourceBase::retrieveItems (this=this@entry=0x89ad50, col=...) at ../../../resources/imap/imapresourcebase.cpp:435
#8  0x00007fe06d65432d in Akonadi::ResourceBasePrivate::slotItemRetrievalCollectionFetchDone (this=<optimized out>, job=0x8f26b0) at ../../../../akonadi/src/agentbase/resourcebase.cpp:954
#9  0x00007fe06d656200 in Akonadi::ResourceBase::qt_static_metacall (_o=<optimized out>, _c=<optimized out>, _id=<optimized out>, _a=<optimized out>) at ./moc_resourcebase.cpp:294
#10 0x00007fe06a6e878a in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#11 0x00007fe06ba078d2 in KJob::result (this=this@entry=0x8f26b0, _t1=_t1@entry=0x8f26b0) at ./moc_kjob.cpp:552
#12 0x00007fe06ba0845a in KJob::emitResult (this=0x8f26b0) at ../../../src/lib/jobs/kjob.cpp:294
#13 0x00007fe06d3403b3 in Akonadi::JobPrivate::delayedEmitResult (this=<optimized out>) at ../../../../akonadi/src/core/jobs/job.cpp:153
#14 Akonadi::Job::qt_static_metacall (_o=<optimized out>, _c=<optimized out>, _id=<optimized out>, _a=<optimized out>) at ./moc_job.cpp:107
#15 0x00007fe06a6e9651 in QObject::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#16 0x00007fe06b006b8c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#17 0x00007fe06b00c230 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#18 0x00007fe06a6b7f1b in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#19 0x00007fe06a6ba057 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#20 0x00007fe06a70ee73 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#21 0x00007fe064a56ff7 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#22 0x00007fe064a57250 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#23 0x00007fe064a572fc in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#24 0x00007fe06a70f27f in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#25 0x00007fe06a6b575a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#26 0x00007fe06a6bd2cc in QCoreApplication::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#27 0x00007fe06d65021a in Akonadi::ResourceBase::init (r=r@entry=0x89ad50) at ../../../../akonadi/src/agentbase/resourcebase.cpp:602
#28 0x000000000043eaf3 in Akonadi::ResourceBase::init<ImapResource> (argc=<optimized out>, argv=<optimized out>) at /usr/include/KF5/AkonadiAgentBase/resourcebase.h:193
#29 0x00007fe069af3a40 in __libc_start_main (main=0x43e950 <main(int, char**)>, argc=3, argv=0x7ffcb67f1528, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7ffcb67f1518) at libc-start.c:289
#30 0x000000000043e9b9 in _start ()

Reported using DrKonqi
Comment 1 André M 2015-10-18 15:01:59 UTC
Getting this exact stracktrace too on Arch Linux testing with 15.08.2 packages. Closing crash handler makes kmail keep working, but it is recurring.
Comment 2 Qianli Ma 2015-10-22 13:59:37 UTC
Same issue here with Arch Linux, except that emails can only be checked each time akonadi server is restarted. The akonadi server log is full of errors:

"Cannot connect to agent instance with identifier 'akonadi_maildir_resource_0', error message: 'Could not get owner of name 'org.freedesktop.Akonadi.Resource.akonadi_maildir_resource_0': no such name'" 

MySQL server log does not contain errors.
Comment 3 Julian Schmidt 2015-11-03 15:32:59 UTC
Created attachment 95293 [details]
New crash information added by DrKonqi

akonadi_imap_resource (4.89.0) using Qt 5.4.2

- What I was doing when the application crashed:

kmail was running in the background. so it was an automated check of the imap server for new mails.
since upgrading to kubuntu 15.10 I experience this about once a day.

-- Backtrace (Reduced):
#6  0x00007f652070c693 in Akonadi::Entity::id (this=this@entry=0x7f651dbe4518 <QArrayData::shared_null+24>) at ../../../../akonadi/src/core/entity.cpp:72
#7  0x000000000045833e in ImapResourceBase::retrieveItems (this=this@entry=0x15e6870, col=...) at ../../../resources/imap/imapresourcebase.cpp:435
#8  0x00007f6520ab132d in Akonadi::ResourceBasePrivate::slotItemRetrievalCollectionFetchDone (this=<optimized out>, job=0x166ccf0) at ../../../../akonadi/src/agentbase/resourcebase.cpp:954
#9  0x00007f6520ab3200 in Akonadi::ResourceBase::qt_static_metacall (_o=<optimized out>, _c=<optimized out>, _id=<optimized out>, _a=<optimized out>) at ./moc_resourcebase.cpp:294
[...]
#11 0x00007f651ee648d2 in KJob::result (this=this@entry=0x166ccf0, _t1=_t1@entry=0x166ccf0) at ./moc_kjob.cpp:552
Comment 4 kraeutermann 2015-11-05 15:22:56 UTC
Created attachment 95333 [details]
New crash information added by DrKonqi

akonadi_imap_resource (4.89.0) using Qt 5.4.2

KMail running in the background, no user input

-- Backtrace (Reduced):
#6  0x00007fe7ddb9c693 in Akonadi::Entity::id (this=this@entry=0x7fe7db074518 <QArrayData::shared_null+24>) at ../../../../akonadi/src/core/entity.cpp:72
#7  0x000000000045833e in ImapResourceBase::retrieveItems (this=this@entry=0xb670b0, col=...) at ../../../resources/imap/imapresourcebase.cpp:435
#8  0x00007fe7ddf4132d in Akonadi::ResourceBasePrivate::slotItemRetrievalCollectionFetchDone (this=<optimized out>, job=0xb22640) at ../../../../akonadi/src/agentbase/resourcebase.cpp:954
#9  0x00007fe7ddf43200 in Akonadi::ResourceBase::qt_static_metacall (_o=<optimized out>, _c=<optimized out>, _id=<optimized out>, _a=<optimized out>) at ./moc_resourcebase.cpp:294
[...]
#11 0x00007fe7dc2f48d2 in KJob::result (this=this@entry=0xb22640, _t1=_t1@entry=0xb22640) at ./moc_kjob.cpp:552
Comment 5 Christian Bayer 2015-11-12 00:46:47 UTC
Also had the same backtrace on Ubuntu 15.10:

Application: Akonadi Resource (akonadi_imap_resource), signal: Segmentation fault
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7fbbef562840 (LWP 5821))]

Thread 5 (Thread 0x7fbbec8a5700 (LWP 5822)):
#0  0x00007fbbfeebc8dd in poll () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007fbbfa684bd2 in ?? () from /usr/lib/x86_64-linux-gnu/libxcb.so.1
#2  0x00007fbbfa68674f in xcb_wait_for_event () from /usr/lib/x86_64-linux-gnu/libxcb.so.1
#3  0x00007fbbef052a39 in QXcbEventReader::run (this=0xea2fe0) at qxcbconnection.cpp:1105
#4  0x00007fbbff7c62be in QThreadPrivate::start (arg=0xea2fe0) at thread/qthread_unix.cpp:337
#5  0x00007fbbfa8a36aa in start_thread (arg=0x7fbbec8a5700) at pthread_create.c:333
#6  0x00007fbbfeec7eed in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 4 (Thread 0x7fbbe5a3c700 (LWP 5827)):
#0  0x00007fbbf9d8a869 in g_mutex_lock () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#1  0x00007fbbf9d45789 in g_main_context_prepare () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fbbf9d4611b in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007fbbf9d462fc in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007fbbff9fd29b in QEventDispatcherGlib::processEvents (this=0x7fbbe00008e0, flags=...) at kernel/qeventdispatcher_glib.cpp:420
#5  0x00007fbbff9a375a in QEventLoop::exec (this=this@entry=0x7fbbe5a3bd80, flags=..., flags@entry=...) at kernel/qeventloop.cpp:204
#6  0x00007fbbff7c13d4 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:503
#7  0x00007fbbff7c62be in QThreadPrivate::start (arg=0xffcdd0) at thread/qthread_unix.cpp:337
#8  0x00007fbbfa8a36aa in start_thread (arg=0x7fbbe5a3c700) at pthread_create.c:333
#9  0x00007fbbfeec7eed in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 3 (Thread 0x7fbbe523b700 (LWP 5828)):
#0  pthread_cond_timedwait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:238
#1  0x00007fbbff7c7496 in QWaitConditionPrivate::wait_relative (time=30000, this=0x7fbbe0019840) at thread/qwaitcondition_unix.cpp:126
#2  QWaitConditionPrivate::wait (time=30000, this=0x7fbbe0019840) at thread/qwaitcondition_unix.cpp:134
#3  QWaitCondition::wait (this=this@entry=0x7fbbe0019300, mutex=mutex@entry=0x7fbbe0019440, time=30000) at thread/qwaitcondition_unix.cpp:208
#4  0x00007fbbff7c3003 in QThreadPoolThread::run (this=0x7fbbe00192f0) at thread/qthreadpool.cpp:127
#5  0x00007fbbff7c62be in QThreadPrivate::start (arg=0x7fbbe00192f0) at thread/qthread_unix.cpp:337
#6  0x00007fbbfa8a36aa in start_thread (arg=0x7fbbe523b700) at pthread_create.c:333
#7  0x00007fbbfeec7eed in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 2 (Thread 0x7fbbdffff700 (LWP 5836)):
#0  0x00007fbbfeeb849d in read () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007fbbf658af75 in ?? () from /usr/lib/nvidia-352-updates/tls/libnvidia-tls.so.352.41
#2  0x00007fbbf9d894e0 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007fbbf9d45cd4 in g_main_context_check () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007fbbf9d46190 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007fbbf9d462fc in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#6  0x00007fbbff9fd29b in QEventDispatcherGlib::processEvents (this=0x7fbbd40008e0, flags=...) at kernel/qeventdispatcher_glib.cpp:420
#7  0x00007fbbff9a375a in QEventLoop::exec (this=this@entry=0x7fbbdfffed80, flags=..., flags@entry=...) at kernel/qeventloop.cpp:204
#8  0x00007fbbff7c13d4 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:503
#9  0x00007fbbff7c62be in QThreadPrivate::start (arg=0xffdf80) at thread/qthread_unix.cpp:337
#10 0x00007fbbfa8a36aa in start_thread (arg=0x7fbbdffff700) at pthread_create.c:333
#11 0x00007fbbfeec7eed in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 1 (Thread 0x7fbbef562840 (LWP 5821)):
[KCrash Handler]
#6  0x00007fbc0259d693 in Akonadi::Entity::id (this=this@entry=0x7fbbffa75518 <QArrayData::shared_null+24>) at ../../../../akonadi/src/core/entity.cpp:72
#7  0x000000000045833e in ImapResourceBase::retrieveItems (this=this@entry=0xfb1da0, col=...) at ../../../resources/imap/imapresourcebase.cpp:435
#8  0x00007fbc0294232d in Akonadi::ResourceBasePrivate::slotItemRetrievalCollectionFetchDone (this=<optimized out>, job=0x104bcb0) at ../../../../akonadi/src/agentbase/resourcebase.cpp:954
#9  0x00007fbc02944200 in Akonadi::ResourceBase::qt_static_metacall (_o=_o@entry=0xfb1da0, _c=_c@entry=QMetaObject::InvokeMetaMethod, _id=_id@entry=42, _a=_a@entry=0x7ffc258f6b30) at ./moc_resourcebase.cpp:294
#10 0x00007fbbff9d678a in QMetaObject::activate (sender=sender@entry=0x104bcb0, signalOffset=<optimized out>, local_signal_index=local_signal_index@entry=3, argv=argv@entry=0x7ffc258f6b30) at kernel/qobject.cpp:3717
#11 0x00007fbbff9d6f87 in QMetaObject::activate (sender=sender@entry=0x104bcb0, m=m@entry=0x7fbc00f3f5c0 <KJob::staticMetaObject>, local_signal_index=local_signal_index@entry=3, argv=argv@entry=0x7ffc258f6b30) at kernel/qobject.cpp:3582
#12 0x00007fbc00cf58d2 in KJob::result (this=this@entry=0x104bcb0, _t1=_t1@entry=0x104bcb0) at ./moc_kjob.cpp:552
#13 0x00007fbc00cf645a in KJob::emitResult (this=this@entry=0x104bcb0) at ../../../src/lib/jobs/kjob.cpp:294
#14 0x00007fbc0262e3b3 in Akonadi::JobPrivate::delayedEmitResult (this=<optimized out>) at ../../../../akonadi/src/core/jobs/job.cpp:153
#15 Akonadi::Job::qt_static_metacall (_o=<optimized out>, _c=<optimized out>, _id=<optimized out>, _a=<optimized out>) at ./moc_job.cpp:107
#16 0x00007fbbff9d7651 in QObject::event (this=0x104bcb0, e=<optimized out>) at kernel/qobject.cpp:1245
#17 0x00007fbc002f4b8c in QApplicationPrivate::notify_helper (this=this@entry=0xe76230, receiver=receiver@entry=0x104bcb0, e=e@entry=0xfcfcb0) at kernel/qapplication.cpp:3720
#18 0x00007fbc002fa230 in QApplication::notify (this=0x7ffc258f7160, receiver=0x104bcb0, e=0xfcfcb0) at kernel/qapplication.cpp:3503
#19 0x00007fbbff9a5f1b in QCoreApplication::notifyInternal (this=0x7ffc258f7160, receiver=0x104bcb0, event=event@entry=0xfcfcb0) at kernel/qcoreapplication.cpp:935
#20 0x00007fbbff9a8057 in QCoreApplication::sendEvent (event=0xfcfcb0, receiver=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:228
#21 QCoreApplicationPrivate::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=0, data=0xe6d530) at kernel/qcoreapplication.cpp:1552
#22 0x00007fbbff9a8588 in QCoreApplication::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=0) at kernel/qcoreapplication.cpp:1410
#23 0x00007fbbff9fce73 in postEventSourceDispatch (s=0xec7af0) at kernel/qeventdispatcher_glib.cpp:271
#24 0x00007fbbf9d45ff7 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#25 0x00007fbbf9d46250 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#26 0x00007fbbf9d462fc in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#27 0x00007fbbff9fd27f in QEventDispatcherGlib::processEvents (this=0xed18e0, flags=...) at kernel/qeventdispatcher_glib.cpp:418
#28 0x00007fbbff9a375a in QEventLoop::exec (this=this@entry=0x7ffc258f70d0, flags=..., flags@entry=...) at kernel/qeventloop.cpp:204
#29 0x00007fbbff9ab2cc in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1188
#30 0x00007fbbffd4100c in QGuiApplication::exec () at kernel/qguiapplication.cpp:1510
#31 0x00007fbc002f1025 in QApplication::exec () at kernel/qapplication.cpp:2956
#32 0x00007fbc0293e21a in Akonadi::ResourceBase::init (r=r@entry=0xfb1da0) at ../../../../akonadi/src/agentbase/resourcebase.cpp:602
#33 0x000000000043eaf3 in Akonadi::ResourceBase::init<ImapResource> (argc=<optimized out>, argv=<optimized out>) at /usr/include/KF5/AkonadiAgentBase/resourcebase.h:193
#34 0x00007fbbfede1a40 in __libc_start_main (main=0x43e950 <main(int, char**)>, argc=3, argv=0x7ffc258f7278, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7ffc258f7268) at libc-start.c:289
#35 0x000000000043e9b9 in _start ()
Comment 6 TechMod 2015-11-12 13:47:33 UTC
Created attachment 95463 [details]
New crash information added by DrKonqi

akonadi_imap_resource (4.89.0) using Qt 5.4.2

- What I was doing when the application crashed:

Practically I was doing nothing, but listening to spotify. This happens about 10 times per day.

-- Backtrace (Reduced):
#6  0x00007fb5fbd4d693 in Akonadi::Entity::id (this=this@entry=0x7fb5f9225518 <QArrayData::shared_null+24>) at ../../../../akonadi/src/core/entity.cpp:72
#7  0x000000000045833e in ImapResourceBase::retrieveItems (this=this@entry=0x22354e0, col=...) at ../../../resources/imap/imapresourcebase.cpp:435
#8  0x00007fb5fc0f232d in Akonadi::ResourceBasePrivate::slotItemRetrievalCollectionFetchDone (this=<optimized out>, job=0x227aff0) at ../../../../akonadi/src/agentbase/resourcebase.cpp:954
#9  0x00007fb5fc0f4200 in Akonadi::ResourceBase::qt_static_metacall (_o=<optimized out>, _c=<optimized out>, _id=<optimized out>, _a=<optimized out>) at ./moc_resourcebase.cpp:294
[...]
#11 0x00007fb5fa4a58d2 in KJob::result (this=this@entry=0x227aff0, _t1=_t1@entry=0x227aff0) at ./moc_kjob.cpp:552
Comment 7 Christian Bayer 2015-11-12 14:21:01 UTC
More information: This never crashed on the Ubuntu 15.04 version of akonadi. I have two imap inboxes, an outlook.com one and a big gmail inbox. The latter is the one that crashes now. I just have to wait for about an hour, sometimes even less. It will crash 4-8 times a day.
Comment 8 Christian Bayer 2015-11-17 15:39:34 UTC
*** This bug has been confirmed by popular vote. ***
Comment 9 Christian Bayer 2015-11-17 15:41:03 UTC
Wow, this bug stinks. I have to restart the Akonadi service everytime it crashes, otherwise I feel like back in the 90's when you got only one email per day.
Comment 10 Kenny Fairweather 2015-12-01 12:00:04 UTC
This happens on both my Kubuntu Wily Werewolf machines, QT 5.4.2, which both have 3 imap accounts. 
The crashes are so chronic that I doubt any of this code has been tested with multiple accounts. Can a maintainer from Kontact/akonadi please comment? This issue needs some love.
Comment 11 Kerr Avon 2015-12-01 12:14:09 UTC
I also have 3 IMAP accounts and it is indeed chronic to the point I've had to turn off periodic checking and use my phone for notifications instead
Comment 12 Christian Bayer 2015-12-03 23:23:38 UTC
Since no one seems to acknowledge that this is an important bug that needs to be fixed, here is a script for people who can't wait. Replace akonadi_imap_resource_3 with the name of the akonadi resource that crashes.

$ cat imap_resource_respawn
#!/bin/bash

while [ /bin/true ]
do
        PID=`pgrep -f  "/usr/bin/akonadi_imap_resource --identifier akonadi_imap_resource_3"`
        if [ -z $PID ]
        then
                echo process $PID died. Respawning.
                /usr/bin/akonadi_imap_resource --identifier akonadi_imap_resource_3&
        fi
        sleep 10s
done
Comment 13 Christopher Stayner 2016-02-10 21:55:51 UTC
Created attachment 97141 [details]
New crash information added by DrKonqi

akonadi_imap_resource (4.89.0) using Qt 5.4.2

- What I was doing when the application crashed:
Watching Youtube videos when mail was checked in the background by Kontact.

-- Backtrace (Reduced):
#6  0x00007fda6cc31693 in Akonadi::Entity::id (this=this@entry=0x7fda6a109518 <QArrayData::shared_null+24>) at ../../../../akonadi/src/core/entity.cpp:72
#7  0x000000000045833e in ImapResourceBase::retrieveItems (this=this@entry=0x194e430, col=...) at ../../../resources/imap/imapresourcebase.cpp:435
#8  0x00007fda6cfd632d in Akonadi::ResourceBasePrivate::slotItemRetrievalCollectionFetchDone (this=<optimized out>, job=0x1ad10b0) at ../../../../akonadi/src/agentbase/resourcebase.cpp:954
#9  0x00007fda6cfd8200 in Akonadi::ResourceBase::qt_static_metacall (_o=<optimized out>, _c=<optimized out>, _id=<optimized out>, _a=<optimized out>) at ./moc_resourcebase.cpp:294
[...]
#11 0x00007fda6b3898d2 in KJob::result (this=this@entry=0x1ad10b0, _t1=_t1@entry=0x1ad10b0) at ./moc_kjob.cpp:552
Comment 14 Christopher Stayner 2016-02-22 21:48:38 UTC
Created attachment 97363 [details]
New crash information added by DrKonqi

akonadi_imap_resource (4.89.0) using Qt 5.4.2

- What I was doing when the application crashed:
Checking and reading mail.
I have Google Mail and Godaddy Email set up in the client.

-- Backtrace (Reduced):
#6  0x00007f789e50b693 in Akonadi::Entity::id (this=this@entry=0x7f789b9e3518 <QArrayData::shared_null+24>) at ../../../../akonadi/src/core/entity.cpp:72
#7  0x000000000045833e in ImapResourceBase::retrieveItems (this=this@entry=0x239b000, col=...) at ../../../resources/imap/imapresourcebase.cpp:435
#8  0x00007f789e8b032d in Akonadi::ResourceBasePrivate::slotItemRetrievalCollectionFetchDone (this=<optimized out>, job=0x240b8f0) at ../../../../akonadi/src/agentbase/resourcebase.cpp:954
#9  0x00007f789e8b2200 in Akonadi::ResourceBase::qt_static_metacall (_o=<optimized out>, _c=<optimized out>, _id=<optimized out>, _a=<optimized out>) at ./moc_resourcebase.cpp:294
[...]
#11 0x00007f789cc638d2 in KJob::result (this=this@entry=0x240b8f0, _t1=_t1@entry=0x240b8f0) at ./moc_kjob.cpp:552
Comment 15 Daniel Vrátil 2016-03-31 00:23:13 UTC
Hi,

this should be fixed since KDE Applications 15.12. Can you please confirm whether you can still reproduce in 15.12 or newer?
Comment 16 Lukáš Karas 2016-04-02 13:44:04 UTC
Yes, it seems to be fixed already. You can close it. If it shows up again, someone can reopen it...
Comment 17 Christoph Feck 2018-08-02 16:37:57 UTC
*** Bug 361608 has been marked as a duplicate of this bug. ***