Bug 403391

Summary: crash of akonadi_imap_resource
Product: [Frameworks and Libraries] Akonadi Reporter: Freek de Kruijf <freekdekruijf>
Component: IMAP resourceAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED FIXED    
Severity: crash CC: bruno, carl, freekdekruijf, leszek.lesner, nicolas.fella
Priority: NOR    
Version: 5.12.2   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: backtrace of akonadi module
xorg-session.log
another xorg-session.log
akonadi_imap_resource-20190408-134802.kcrash.txt
Backtrace of akonadi_notes_agent
xorg-session.log
akonadi_nodes_aget
akonadi_imap_resource-20190422-173415.kcrash.txt
akonadi_imap_resource-20190426-115704.kcrash.txt
akonadi_imap_resource-20190430-094344.kcrash.txt
akonadi_imap_resource-20190515-113710.kcrash.txt
akonadi_imap_resource-20190531-144923.kcrash.txt
akonadi_imap_resource-20190611-095658.kcrash.txt
New crash information added by DrKonqi
crash report of akonadi_imap_resource
crash report of akonadi_imap_resource (no backtrace)
new crash report of akonadi_imap_resource
New crash information added by DrKonqi
New crash information added by DrKonqi

Description Freek de Kruijf 2019-01-19 10:19:20 UTC
Created attachment 117555 [details]
backtrace of akonadi module

SUMMARY
akonadi is running but not yet kontact. Message about incoming email showed, after which crash occurred.

STEPS TO REPRODUCE
1. 
2. 
3. 

OBSERVED RESULT


EXPECTED RESULT


SOFTWARE/OS VERSIONS
Windows: 
MacOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 Christophe Marin 2019-01-19 15:47:38 UTC
Pasting inline

Thread 1 (Thread 0x7fb9e2971a40 (LWP 2870)):
[KCrash Handler]
#6  0x00007fb9f588e64a in  () at /usr/lib64/libKF5AkonadiCore.so.5
#7  0x00007fb9f58aefdf in Akonadi::Collection::hasAttribute(QByteArray const&) const () at /usr/lib64/libKF5AkonadiCore.so.5
#8  0x00007fb9f5b6b3e3 in  () at /usr/lib64/libKF5AkonadiAgentBase.so.5
#9  0x00007fb9f5b6f3f5 in  () at /usr/lib64/libKF5AkonadiAgentBase.so.5
#10 0x00007fb9f5b697af in  () at /usr/lib64/libKF5AkonadiAgentBase.so.5
#11 0x00007fb9f5b6ab58 in  () at /usr/lib64/libKF5AkonadiAgentBase.so.5
#12 0x00007fb9f41930ab in QMetaObject::activate(QObject*, int, int, void**) (sender=0x55aeac74bca0, signalOffset=<optimized out>, local_signal_index=<optimized out>, argv=<optimized out>) at kernel/qobject.cpp:3778
#13 0x00007fb9f5519cec in KJob::result(KJob*, KJob::QPrivateSignal) () at /usr/lib64/libKF5CoreAddons.so.5
#14 0x00007fb9f551a7b3 in KJob::finishJob(bool) () at /usr/lib64/libKF5CoreAddons.so.5
#15 0x00007fb9f419eea6 in QtPrivate::QSlotObjectBase::call(QObject*, void**) (a=0x7ffe0e452140, r=<optimized out>, this=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:394
#16 0x00007fb9f419eea6 in QSingleShotTimer::timerEvent(QTimerEvent*) (this=0x55aeac7a6810) at kernel/qtimer.cpp:318
#17 0x00007fb9f419391b in QObject::event(QEvent*) (this=0x55aeac7a6810, e=<optimized out>) at kernel/qobject.cpp:1230
#18 0x00007fb9f4d17591 in QApplicationPrivate::notify_helper(QObject*, QEvent*) (this=this@entry=0x55aeac24ac10, receiver=receiver@entry=0x55aeac7a6810, e=e@entry=0x7ffe0e452460) at kernel/qapplication.cpp:3753
#19 0x00007fb9f4d1eb50 in QApplication::notify(QObject*, QEvent*) (this=0x7ffe0e452760, receiver=0x55aeac7a6810, e=0x7ffe0e452460) at kernel/qapplication.cpp:3500
#20 0x00007fb9f4169359 in QCoreApplication::notifyInternal2(QObject*, QEvent*) (receiver=0x55aeac7a6810, event=0x7ffe0e452460) at ../../include/QtCore/5.12.0/QtCore/private/../../../../../src/corelib/thread/qthread_p.h:322
#21 0x00007fb9f41bcc83 in QTimerInfoList::activateTimers() (this=0x55aeac312bc0) at kernel/qtimerinfo_unix.cpp:643
#22 0x00007fb9f41bd4d4 in timerSourceDispatch(GSource*, GSourceFunc, gpointer) (source=<optimized out>) at kernel/qeventdispatcher_glib.cpp:182
#23 0x00007fb9f16ebc85 in g_main_context_dispatch () at /usr/lib64/libglib-2.0.so.0
#24 0x00007fb9f16ec048 in  () at /usr/lib64/libglib-2.0.so.0
#25 0x00007fb9f16ec0dc in g_main_context_iteration () at /usr/lib64/libglib-2.0.so.0
#26 0x00007fb9f41bd873 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (this=0x55aeac30e0f0, flags=...) at kernel/qeventdispatcher_glib.cpp:422
#27 0x00007fb9f416802b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (this=this@entry=0x7ffe0e4526c0, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:140
#28 0x00007fb9f4170192 in QCoreApplication::exec() () at ../../include/QtCore/../../src/corelib/global/qflags.h:120
#29 0x00007fb9f5b6514e in Akonadi::ResourceBase::init(Akonadi::ResourceBase*) () at /usr/lib64/libKF5AkonadiAgentBase.so.5
Comment 2 Christophe Marin 2019-01-19 15:53:54 UTC
if the crash can be reproduced, please install libKF5AkonadiAgentBase5-debuginfo.

bug 387776 may be related.
Comment 3 Freek de Kruijf 2019-03-30 14:08:20 UTC
Another crash of an akonadi module:
~/.local/share/sddm/xorg-session.log contains:
ProtocolException thrown:Failed to write data to stream
terminate called after throwing an instance of 'Akonadi::ProtocolException'
  what():  Failed to write data to stream
KCrash: Application 'akonadi_notes_agent' crashing...
KCrash: Attempting to start /usr/lib64/libexec/drkonqi from kdeinit
Missing separate debuginfo for /usr/bin/akonadi_notes_agent
followed by a large list of packages to be installed using zypper.

The above mentioned log file will be attached.
Comment 4 Freek de Kruijf 2019-03-30 14:12:22 UTC
Created attachment 119157 [details]
xorg-session.log
Comment 5 Freek de Kruijf 2019-04-08 12:32:20 UTC
Created attachment 119294 [details]
another xorg-session.log
Comment 6 Freek de Kruijf 2019-04-08 12:38:59 UTC
Created attachment 119295 [details]
akonadi_imap_resource-20190408-134802.kcrash.txt

This is a crash dump made after changing to postgresql as the database. Does not seem to have an ill effect, because after a check on new messages this imap resource starts again OK. Using mysql (mariadb) I had major problems reading email using kmail.
Comment 7 Freek de Kruijf 2019-04-18 11:29:05 UTC
Created attachment 119485 [details]
Backtrace of akonadi_notes_agent

I have daily crashed of some akonadi module. This time it is notes_agent, but mostly imap_resource. It is mostly right after startup of akonadi, but sometimes also later after startup of kontact.
Comment 8 Freek de Kruijf 2019-04-18 11:31:03 UTC
Created attachment 119486 [details]
xorg-session.log

This is xorg-session.log right after crash of notes_agent
Comment 9 Christoph Feck 2019-04-19 11:41:01 UTC
Comment #7 is bug 401692.

For the other backtraces, please install debug symbols for akonadi and add an updated backtrace. For help with this, please ask in a forum of your distribution.
Comment 10 Freek de Kruijf 2019-04-22 15:52:50 UTC
Created attachment 119561 [details]
akonadi_nodes_aget

I did install tons of debuginfo files
Comment 11 Freek de Kruijf 2019-04-22 15:56:47 UTC
Created attachment 119563 [details]
akonadi_imap_resource-20190422-173415.kcrash.txt

Installed tons of dubuginfo packages, still xorg-session.log recommends tens of further packages. Do I need to install all?
Comment 12 Freek de Kruijf 2019-04-26 10:04:08 UTC
Created attachment 119647 [details]
akonadi_imap_resource-20190426-115704.kcrash.txt

Crash caused by pressing menu item "Check for new messages" in KMail.
Comment 13 Freek de Kruijf 2019-04-30 07:56:37 UTC
Created attachment 119738 [details]
akonadi_imap_resource-20190430-094344.kcrash.txt

With the newest software for openSUSE TumbleweedKDE 
Kontact versie 5.11.0
Frameworks 5.57.0
Qt 5.12.3 (gebouwd tegen 5.12.3)
Het xcb venstersysteem
Comment 14 Freek de Kruijf 2019-05-15 09:44:53 UTC
Created attachment 120076 [details]
akonadi_imap_resource-20190515-113710.kcrash.txt

Recent backtrace
Comment 15 Freek de Kruijf 2019-05-31 12:58:54 UTC
Created attachment 120430 [details]
akonadi_imap_resource-20190531-144923.kcrash.txt

Using Kontact 5.11.1, Qt version 5.12.3 and KDE Frameworks 5.58.0
Comment 16 Freek de Kruijf 2019-06-11 08:10:46 UTC
Created attachment 120777 [details]
akonadi_imap_resource-20190611-095658.kcrash.txt

Still the same type of crash, after which e-mail still works. It seems to be always about a connection to a dovecot IMAP server with quite a lot of folders and subfolders. This KMail also has a connection to the same IMAP server, but another account with only a few folders, the standard ones.

Kontact version 5.11.1
KDE Frameworks 5.58.0
Qt 5.12.3
Comment 17 Freek de Kruijf 2019-08-26 08:24:34 UTC
Created attachment 122360 [details]
New crash information added by DrKonqi

akonadi_imap_resource (5.12.0) using Qt 5.13.0

- What I was doing when the application crashed:

I started kontact and did nothing else. Previously the imap account was not shown, but now the imap account shown is on a separate opensuse Tumbleweed server using dovecot. It contains a large number of folders and sub folders. The dovecot log on the server shows the connection was established, but was closed without  any command send.

-- Backtrace (Reduced):
#6  QHash<QByteArray, Akonadi::Attribute*>::findNode (this=this@entry=0x40, akey=..., ahp=ahp@entry=0x0) at /usr/include/qt5/QtCore/qhash.h:933
#7  0x00007fad1e566e6b in QHash<QByteArray, Akonadi::Attribute*>::contains (akey=..., this=0x40) at /usr/include/qt5/QtCore/qhash.h:906
#8  Akonadi::AttributeStorage::hasAttribute (this=0x40, type=...) at /usr/src/debug/akonadi-server-19.08.0-1.1.x86_64/src/core/attributestorage.cpp:82
#9  0x00007fad1e6d95de in Akonadi::Collection::hasAttribute<Akonadi::SpecialCollectionAttribute> (this=0x557124237130) at /usr/include/qt5/QtCore/qarraydata.h:257
#10 (anonymous namespace)::sortCollectionsForSync (l=..., r=...) at /usr/src/debug/akonadi-server-19.08.0-1.1.x86_64/src/agentbase/resourcebase.cpp:911
Comment 18 Freek de Kruijf 2019-08-26 08:27:41 UTC
Later pressing F5 while this imap account was selected opened the account without a problem.
Comment 19 Freek de Kruijf 2019-10-30 21:32:47 UTC
Created attachment 123609 [details]
crash report of akonadi_imap_resource

This bug is very annoying. It returns each session. Please take a look.
Comment 20 Freek de Kruijf 2020-01-09 11:28:57 UTC
Created attachment 124989 [details]
crash report of akonadi_imap_resource (no backtrace)
Comment 21 Freek de Kruijf 2020-03-05 23:18:48 UTC
Application: akonadi_imap_resource (5.13.2 (19.12.2))

Qt Version: 5.14.1
Frameworks Version: 5.67.0
Operating System: Linux 5.5.6-1-default x86_64
Windowing system: X11
Distribution: "openSUSE Tumbleweed"

-- Information about the crash:
- What I was doing when the application crashed:
Started a check for new messages.
Also when starting kmail/kontact the akonadi_imap_resource for an account on a separte dovecot server always crashes.
This is reproducable always; also when doing the check.

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

Thread 12 (Thread 0x7f5592598700 (LWP 3467)):
#0  0x00007f55b667b4e9 in ?? () from /usr/lib64/libglib-2.0.so.0
#1  0x00007f55b667cc6f in g_main_context_check () from /usr/lib64/libglib-2.0.so.0
#2  0x00007f55b667d2a2 in ?? () from /usr/lib64/libglib-2.0.so.0
#3  0x00007f55b667d41f in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#4  0x00007f55b82a4c6b in QEventDispatcherGlib::processEvents (this=0x7f5570000b60, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#5  0x00007f55b824cbfb in QEventLoop::exec (this=this@entry=0x7f5592597ae0, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:136
#6  0x00007f55b807762e in QThread::exec (this=<optimized out>) at ../../include/QtCore/../../src/corelib/global/qflags.h:118
#7  0x00007f55b80786f8 in QThreadPrivate::start (arg=0x5574bd016e70) at thread/qthread_unix.cpp:342
#8  0x00007f55b7574efa in start_thread () from /lib64/libpthread.so.0
#9  0x00007f55b9fdf3bf in clone () from /lib64/libc.so.6

Thread 11 (Thread 0x7f5592d99700 (LWP 3401)):
#0  0x00007f55b9fd04fc in read () from /lib64/libc.so.6
#1  0x00007f55b66c420f in ?? () from /usr/lib64/libglib-2.0.so.0
#2  0x00007f55b667ce57 in g_main_context_check () from /usr/lib64/libglib-2.0.so.0
#3  0x00007f55b667d2a2 in ?? () from /usr/lib64/libglib-2.0.so.0
#4  0x00007f55b667d41f in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#5  0x00007f55b82a4c6b in QEventDispatcherGlib::processEvents (this=0x7f556c000b60, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#6  0x00007f55b824cbfb in QEventLoop::exec (this=this@entry=0x7f5592d98ae0, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:136
#7  0x00007f55b807762e in QThread::exec (this=<optimized out>) at ../../include/QtCore/../../src/corelib/global/qflags.h:118
#8  0x00007f55b80786f8 in QThreadPrivate::start (arg=0x5574bcf3baa0) at thread/qthread_unix.cpp:342
#9  0x00007f55b7574efa in start_thread () from /lib64/libpthread.so.0
#10 0x00007f55b9fdf3bf in clone () from /lib64/libc.so.6

Thread 10 (Thread 0x7f559359a700 (LWP 3400)):
#0  0x00007f55b667b49f in g_source_ref () from /usr/lib64/libglib-2.0.so.0
#1  0x00007f55b667b548 in ?? () from /usr/lib64/libglib-2.0.so.0
#2  0x00007f55b667c7c3 in g_main_context_prepare () from /usr/lib64/libglib-2.0.so.0
#3  0x00007f55b667d22b in ?? () from /usr/lib64/libglib-2.0.so.0
#4  0x00007f55b667d41f in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#5  0x00007f55b82a4c6b in QEventDispatcherGlib::processEvents (this=0x7f5578000b60, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#6  0x00007f55b824cbfb in QEventLoop::exec (this=this@entry=0x7f5593599ae0, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:136
#7  0x00007f55b807762e in QThread::exec (this=<optimized out>) at ../../include/QtCore/../../src/corelib/global/qflags.h:118
#8  0x00007f55b80786f8 in QThreadPrivate::start (arg=0x5574bceb9ed0) at thread/qthread_unix.cpp:342
#9  0x00007f55b7574efa in start_thread () from /lib64/libpthread.so.0
#10 0x00007f55b9fdf3bf in clone () from /lib64/libc.so.6

Thread 9 (Thread 0x7f559d7fa700 (LWP 3398)):
#0  0x00007f55b667b49f in g_source_ref () from /usr/lib64/libglib-2.0.so.0
#1  0x00007f55b667b548 in ?? () from /usr/lib64/libglib-2.0.so.0
#2  0x00007f55b667c7c3 in g_main_context_prepare () from /usr/lib64/libglib-2.0.so.0
#3  0x00007f55b667d22b in ?? () from /usr/lib64/libglib-2.0.so.0
#4  0x00007f55b667d41f in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#5  0x00007f55b82a4c6b in QEventDispatcherGlib::processEvents (this=0x7f5574000b60, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#6  0x00007f55b824cbfb in QEventLoop::exec (this=this@entry=0x7f559d7f9ae0, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:136
#7  0x00007f55b807762e in QThread::exec (this=<optimized out>) at ../../include/QtCore/../../src/corelib/global/qflags.h:118
#8  0x00007f55b80786f8 in QThreadPrivate::start (arg=0x5574bce97030) at thread/qthread_unix.cpp:342
#9  0x00007f55b7574efa in start_thread () from /lib64/libpthread.so.0
#10 0x00007f55b9fdf3bf in clone () from /lib64/libc.so.6

Thread 8 (Thread 0x7f559dffb700 (LWP 3397)):
#0  0x00007f55b757b795 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f55a49db28b in ?? () from /usr/lib64/dri/r600_dri.so
#2  0x00007f55a49db1c7 in ?? () from /usr/lib64/dri/r600_dri.so
#3  0x00007f55b7574efa in start_thread () from /lib64/libpthread.so.0
#4  0x00007f55b9fdf3bf in clone () from /lib64/libc.so.6

Thread 7 (Thread 0x7f559e7fc700 (LWP 3396)):
#0  0x00007f55b757b795 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f55a49db28b in ?? () from /usr/lib64/dri/r600_dri.so
#2  0x00007f55a49db1c7 in ?? () from /usr/lib64/dri/r600_dri.so
#3  0x00007f55b7574efa in start_thread () from /lib64/libpthread.so.0
#4  0x00007f55b9fdf3bf in clone () from /lib64/libc.so.6

Thread 6 (Thread 0x7f559effd700 (LWP 3395)):
#0  0x00007f55b757b795 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f55a49db28b in ?? () from /usr/lib64/dri/r600_dri.so
#2  0x00007f55a49db1c7 in ?? () from /usr/lib64/dri/r600_dri.so
#3  0x00007f55b7574efa in start_thread () from /lib64/libpthread.so.0
#4  0x00007f55b9fdf3bf in clone () from /lib64/libc.so.6

Thread 5 (Thread 0x7f559f7fe700 (LWP 3394)):
#0  0x00007f55b757b795 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f55a49db28b in ?? () from /usr/lib64/dri/r600_dri.so
#2  0x00007f55a49db1c7 in ?? () from /usr/lib64/dri/r600_dri.so
#3  0x00007f55b7574efa in start_thread () from /lib64/libpthread.so.0
#4  0x00007f55b9fdf3bf in clone () from /lib64/libc.so.6

Thread 4 (Thread 0x7f559ffff700 (LWP 3393)):
#0  0x00007f55b757b795 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f55a49db28b in ?? () from /usr/lib64/dri/r600_dri.so
#2  0x00007f55a49db1c7 in ?? () from /usr/lib64/dri/r600_dri.so
#3  0x00007f55b7574efa in start_thread () from /lib64/libpthread.so.0
#4  0x00007f55b9fdf3bf in clone () from /lib64/libc.so.6

Thread 3 (Thread 0x7f55a6299700 (LWP 3389)):
#0  0x00007f55b667b49f in g_source_ref () from /usr/lib64/libglib-2.0.so.0
#1  0x00007f55b667b548 in ?? () from /usr/lib64/libglib-2.0.so.0
#2  0x00007f55b667c7c3 in g_main_context_prepare () from /usr/lib64/libglib-2.0.so.0
#3  0x00007f55b667d22b in ?? () from /usr/lib64/libglib-2.0.so.0
#4  0x00007f55b667d41f in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#5  0x00007f55b82a4c6b in QEventDispatcherGlib::processEvents (this=0x7f5598000b60, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#6  0x00007f55b824cbfb in QEventLoop::exec (this=this@entry=0x7f55a6298ab0, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:136
#7  0x00007f55b807762e in QThread::exec (this=<optimized out>) at ../../include/QtCore/../../src/corelib/global/qflags.h:118
#8  0x00007f55b94af507 in ?? () from /usr/lib64/libQt5DBus.so.5
#9  0x00007f55b80786f8 in QThreadPrivate::start (arg=0x7f55b9531da0) at thread/qthread_unix.cpp:342
#10 0x00007f55b7574efa in start_thread () from /lib64/libpthread.so.0
#11 0x00007f55b9fdf3bf in clone () from /lib64/libc.so.6

Thread 2 (Thread 0x7f55a704d700 (LWP 3385)):
#0  0x00007f55b9fd4acf in poll () from /lib64/libc.so.6
#1  0x00007f55b73c1772 in ?? () from /usr/lib64/libxcb.so.1
#2  0x00007f55b73c243a in xcb_wait_for_event () from /usr/lib64/libxcb.so.1
#3  0x00007f55a71c6ab0 in ?? () from /usr/lib64/libQt5XcbQpa.so.5
#4  0x00007f55b80786f8 in QThreadPrivate::start (arg=0x5574bcc06fd0) at thread/qthread_unix.cpp:342
#5  0x00007f55b7574efa in start_thread () from /lib64/libpthread.so.0
#6  0x00007f55b9fdf3bf in clone () from /lib64/libc.so.6

Thread 1 (Thread 0x7f55a906eac0 (LWP 3384)):
[KCrash Handler]
#6  QHash<QByteArray, Akonadi::Attribute*>::findNode (this=this@entry=0x40, akey=..., ahp=ahp@entry=0x0) at /usr/include/qt5/QtCore/qhash.h:949
#7  0x00007f55b9b4b0db in QHash<QByteArray, Akonadi::Attribute*>::contains (akey=..., this=0x40) at /usr/include/qt5/QtCore/qhash.h:922
#8  Akonadi::AttributeStorage::hasAttribute (this=0x40, type=...) at /usr/src/debug/akonadi-server-19.12.2-1.2.x86_64/src/core/attributestorage.cpp:82
#9  0x00007f55b9cbf30e in Akonadi::Collection::hasAttribute<Akonadi::SpecialCollectionAttribute> (this=0x5574bd11a3e0) at /usr/include/qt5/QtCore/qarraydata.h:257
#10 (anonymous namespace)::sortCollectionsForSync (l=..., r=...) at /usr/src/debug/akonadi-server-19.12.2-1.2.x86_64/src/agentbase/resourcebase.cpp:911
#11 0x00007f55b9ca8ba2 in __gnu_cxx::__ops::_Iter_comp_iter<bool (*)(Akonadi::Collection const&, Akonadi::Collection const&)>::operator()<QTypedArrayData<Akonadi::Collection>::iterator, QTypedArrayData<Akonadi::Collection>::iterator> (this=<synthetic pointer>, __it2=..., __it1=...) at /usr/include/c++/9/bits/predefined_ops.h:143
#12 std::__unguarded_partition<QTypedArrayData<Akonadi::Collection>::iterator, __gnu_cxx::__ops::_Iter_comp_iter<bool (*)(Akonadi::Collection const&, Akonadi::Collection const&)> > (__comp=..., __pivot=..., __last=..., __first=...) at /usr/include/c++/9/bits/stl_algo.h:1904
#13 std::__unguarded_partition_pivot<QTypedArrayData<Akonadi::Collection>::iterator, __gnu_cxx::__ops::_Iter_comp_iter<bool (*)(Akonadi::Collection const&, Akonadi::Collection const&)> > (__comp=..., __last=..., __first=...) at /usr/include/c++/9/bits/stl_algo.h:1922
#14 std::__introsort_loop<QTypedArrayData<Akonadi::Collection>::iterator, int, __gnu_cxx::__ops::_Iter_comp_iter<bool (*)(Akonadi::Collection const&, Akonadi::Collection const&)> >(QTypedArrayData<Akonadi::Collection>::iterator, QTypedArrayData<Akonadi::Collection>::iterator, int, __gnu_cxx::__ops::_Iter_comp_iter<bool (*)(Akonadi::Collection const&, Akonadi::Collection const&)>) [clone .constprop.0] (__first=..., __last=..., __depth_limit=<optimized out>, __depth_limit@entry=16, __comp=__comp@entry=...) at /usr/include/c++/9/bits/stl_algo.h:1951
#15 0x00007f55b9cc1767 in std::__sort<QTypedArrayData<Akonadi::Collection>::iterator, __gnu_cxx::__ops::_Iter_comp_iter<bool (*)(Akonadi::Collection const&, Akonadi::Collection const&)> > (__comp=..., __last=..., __first=...) at /usr/include/c++/9/bits/stl_algo.h:1962
#16 std::sort<QTypedArrayData<Akonadi::Collection>::iterator, bool (*)(Akonadi::Collection const&, Akonadi::Collection const&)> (__first=..., __last=..., __comp=0x7f55b9cbf1f0 <(anonymous namespace)::sortCollectionsForSync(Akonadi::Collection const&, Akonadi::Collection const&)>) at /usr/include/c++/9/bits/stl_algo.h:4897
#17 Akonadi::ResourceBasePrivate::slotLocalListDone (this=0x5574bcea40e0, job=<optimized out>) at /usr/src/debug/akonadi-server-19.12.2-1.2.x86_64/src/agentbase/resourcebase.cpp:951
#18 0x00007f55b9cb7346 in Akonadi::ResourceBase::qt_static_metacall (_o=<optimized out>, _c=<optimized out>, _id=<optimized out>, _a=<optimized out>) at /usr/src/debug/akonadi-server-19.12.2-1.2.x86_64/src/agentbase/resourcebase.h:853
#19 0x00007f55b8282a90 in doActivate<false> (sender=0x5574bcfeaca0, signal_index=6, argv=0x7ffd74b9a8e0) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:391
#20 0x00007f55b827d21f in QMetaObject::activate (sender=sender@entry=0x5574bcfeaca0, m=<optimized out>, local_signal_index=local_signal_index@entry=3, argv=argv@entry=0x7ffd74b9a8e0) at kernel/qobject.cpp:3930
#21 0x00007f55b9742b1c in KJob::result (this=this@entry=0x5574bcfeaca0, _t1=<optimized out>, _t1@entry=0x5574bcfeaca0, _t2=...) at /usr/src/debug/kcoreaddons-5.67.0-1.1.x86_64/build/src/lib/KF5CoreAddons_autogen/include/moc_kjob.cpp:574
#22 0x00007f55b9743d03 in KJob::finishJob (this=0x5574bcfeaca0, emitResult=<optimized out>) at /usr/src/debug/kcoreaddons-5.67.0-1.1.x86_64/src/lib/jobs/kjob.cpp:107
#23 0x00007f55b827aa79 in QObject::event (this=0x5574bcfeaca0, e=0x5574bd113f00) at kernel/qobject.cpp:1339
#24 0x00007f55b8f19caf in QApplicationPrivate::notify_helper (this=this@entry=0x5574bcbdf2f0, receiver=receiver@entry=0x5574bcfeaca0, e=e@entry=0x5574bd113f00) at kernel/qapplication.cpp:3684
#25 0x00007f55b8f22df0 in QApplication::notify (this=0x7ffd74b9af80, receiver=0x5574bcfeaca0, e=0x5574bd113f00) at kernel/qapplication.cpp:3430
#26 0x00007f55b824e062 in QCoreApplication::notifyInternal2 (receiver=0x5574bcfeaca0, event=0x5574bd113f00) at ../../include/QtCore/../../src/corelib/kernel/qobject.h:153
#27 0x00007f55b82507f4 in QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x5574bcbd5100) at kernel/qcoreapplication.cpp:1832
#28 0x00007f55b82a55d3 in postEventSourceDispatch (s=0x5574bccb3170) at kernel/qeventdispatcher_glib.cpp:277
#29 0x00007f55b667d008 in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
#30 0x00007f55b667d390 in ?? () from /usr/lib64/libglib-2.0.so.0
#31 0x00007f55b667d41f in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#32 0x00007f55b82a4c4e in QEventDispatcherGlib::processEvents (this=0x5574bccbe8a0, flags=...) at kernel/qeventdispatcher_glib.cpp:423
#33 0x00007f55b824cbfb in QEventLoop::exec (this=this@entry=0x7ffd74b9ae90, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:136
#34 0x00007f55b82549d2 in QCoreApplication::exec () at ../../include/QtCore/../../src/corelib/global/qflags.h:118
#35 0x00007f55b9cbe1ae in Akonadi::ResourceBase::init (r=...) at /usr/include/qt5/QtCore/qcoreapplication.h:116
#36 0x00005574bc589ed9 in Akonadi::ResourceBase::init<ImapResource> (argv=<optimized out>, argc=<optimized out>) at /usr/src/debug/kdepim-runtime-19.12.2-1.2.x86_64/resources/imap/sessionpool.cpp:498
#37 main (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/kdepim-runtime-19.12.2-1.2.x86_64/resources/imap/main.cpp:22
[Inferior 1 (process 3384) detached]
Comment 22 Freek de Kruijf 2020-04-04 12:01:28 UTC
Can I be of help in debugging? Found an article on how to start a debug session for a resource process. So I should be able to start the crashing process with gdb, however I don't know how to continue, except by typing run<Enter>.
Comment 23 Freek de Kruijf 2020-06-05 09:04:16 UTC
Created attachment 129063 [details]
new crash report of akonadi_imap_resource

This a rather annoying problem, which occurs always when I start kontact or select Check New Messages for this particular IMAP resource.
Luckily the akonadi_imap_resource restarts automatically and stays working as long as I do not manually check for new messages.
Apparently it is the interaction from kontact/kmail with this akonadi_imap_resource that triggers the crash, because it does not occur when akonadi starts.

Please investigate. I can give you any assistance you need, which does not go beyond my abilities.
Comment 24 Ahmad Samir 2020-08-25 20:52:50 UTC
*** Bug 415741 has been marked as a duplicate of this bug. ***
Comment 25 Freek de Kruijf 2020-08-27 08:08:39 UTC
Created attachment 131213 [details]
New crash information added by DrKonqi

akonadi_imap_resource (5.15.0 (20.08.0)) using Qt 5.15.0

- What I was doing when the application crashed:
A crash first was reported when starting Kontact. Later I pressed Check Mail in the menu bar and again the crash. The backtrace of this last crash is attached.

-- Backtrace (Reduced):
#4  QHash<QByteArray, Akonadi::Attribute*>::findNode(QByteArray const&, unsigned int*) const (ahp=<optimized out>, akey=..., this=<optimized out>) at /usr/src/debug/akonadi-server-20.08.0-1.1.x86_64/src/core/attributestorage.cpp:69
#5  QHash<QByteArray, Akonadi::Attribute*>::contains(QByteArray const&) const (akey=..., this=<optimized out>) at /usr/include/qt5/QtCore/qhash.h:920
#6  Akonadi::AttributeStorage::hasAttribute(QByteArray const&) const (type=..., this=0x40) at /usr/src/debug/akonadi-server-20.08.0-1.1.x86_64/src/core/attributestorage.cpp:69
#7  Akonadi::Collection::hasAttribute(QByteArray const&) const (this=this@entry=0x557c668836e0, type=...) at /usr/src/debug/akonadi-server-20.08.0-1.1.x86_64/src/core/collection.cpp:166
#8  0x00007f31ec8a0d6f in Akonadi::Collection::hasAttribute<Akonadi::SpecialCollectionAttribute>() const (this=0x557c668836e0) at /usr/include/qt5/QtCore/qarraydata.h:257
Comment 26 Leszek Lesner 2021-01-29 23:34:46 UTC
I can confirm for my WEB.DE account that suddenly crashes the imap_resource 


Application: Web.de(2) (akonadi_imap_resource), signal: Aborted
Content of s_kcrashErrorMessage: [Current thread is 1 (Thread 0x7fdf8a1ee980 (LWP 5236))]
[KCrash Handler]
#5  0x00007fdf8fe077bb in __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
#6  0x00007fdf8fdf2535 in __GI_abort () at abort.c:79
#7  0x00007fdf90347a05 in qt_message_fatal (context=..., message=<synthetic pointer>...) at /home/leszek/kde/src/Qt5/qtbase/src/corelib/global/qlogging.cpp:1914
#8  0x00007fdf90347a05 in QMessageLogger::fatal(char const*, ...) const (this=this@entry=0x7fff89de6550, msg=msg@entry=0x7fdf90618ea0 "ASSERT: \"%s\" in file %s, line %d") at /home/leszek/kde/src/Qt5/qtbase/src/corelib/global/qlogging.cpp:893
#9  0x00007fdf90346f23 in qt_assert(char const*, char const*, int) (assertion=<optimized out>, file=<optimized out>, line=<optimized out>) at ../../include/QtCore/../../../../../src/Qt5/qtbase/src/corelib/global/qlogging.h:90
#10 0x00007fdf92ef6c65 in KIMAP::ImapSet::add(QVector<long long> const&) (this=0x7fff89de6658, values=...) at /home/leszek/kde/src/kimap/src/imapset.cpp:240
#11 0x00007fdf92ef6b60 in KIMAP::ImapSet::add(long long) (this=0x7fff89de6658, value=-1) at /home/leszek/kde/src/kimap/src/imapset.cpp:231
#12 0x000056001f77315f in ChangeItemsFlagsTask::prepareJob(KIMAP::Session*) (this=0x7fdf6c03e400, session=0x560021298050) at /home/leszek/kde/src/kdepim-runtime/resources/imap/changeitemsflagstask.cpp:75
#13 0x000056001f773394 in ChangeItemsFlagsTask::triggerAppendFlagsJob(KIMAP::Session*) (this=0x7fdf6c03e400, session=0x560021298050) at /home/leszek/kde/src/kdepim-runtime/resources/imap/changeitemsflagstask.cpp:97
#14 0x000056001f772eb4 in ChangeItemsFlagsTask::onSelectDone(KJob*) (this=0x7fdf6c03e400, job=0x560021299dc0) at /home/leszek/kde/src/kdepim-runtime/resources/imap/changeitemsflagstask.cpp:56
#15 0x000056001f7742b2 in QtPrivate::FunctorCall<QtPrivate::IndexesList<0>, QtPrivate::List<KJob*>, void, void (ChangeItemsFlagsTask::*)(KJob*)>::call(void (ChangeItemsFlagsTask::*)(KJob*), ChangeItemsFlagsTask*, void**) (f=(void (ChangeItemsFlagsTask::*)(class ChangeItemsFlagsTask * const, class KJob *)) 0x56001f772c10 <ChangeItemsFlagsTask::onSelectDone(KJob*)>, o=0x7fdf6c03e400, arg=0x7fff89de69d0) at /home/leszek/kde/qt5/include/QtCore/qobjectdefs_impl.h:152
#16 0x000056001f774232 in QtPrivate::FunctionPointer<void (ChangeItemsFlagsTask::*)(KJob*)>::call<QtPrivate::List<KJob*>, void>(void (ChangeItemsFlagsTask::*)(KJob*), ChangeItemsFlagsTask*, void**) (f=(void (ChangeItemsFlagsTask::*)(class ChangeItemsFlagsTask * const, class KJob *)) 0x56001f772c10 <ChangeItemsFlagsTask::onSelectDone(KJob*)>, o=0x7fdf6c03e400, arg=0x7fff89de69d0) at /home/leszek/kde/qt5/include/QtCore/qobjectdefs_impl.h:185
#17 0x000056001f77419c in QtPrivate::QSlotObject<void (ChangeItemsFlagsTask::*)(KJob*), QtPrivate::List<KJob*>, void>::impl(int, QtPrivate::QSlotObjectBase*, QObject*, void**, bool*) (which=1, this_=0x5600211e2e70, r=0x7fdf6c03e400, a=0x7fff89de69d0, ret=0x0) at /home/leszek/kde/qt5/include/QtCore/qobjectdefs_impl.h:418
#18 0x00007fdf9057666c in QtPrivate::QSlotObjectBase::call(QObject*, void**) (a=0x7fff89de69d0, r=0x7fdf6c03e400, this=0x5600211e2e70) at ../../include/QtCore/../../../../../src/Qt5/qtbase/src/corelib/kernel/qobjectdefs_impl.h:398
#19 0x00007fdf9057666c in doActivate<false>(QObject*, int, void**) (sender=0x560021299dc0, signal_index=6, argv=0x7fff89de69d0) at /home/leszek/kde/src/Qt5/qtbase/src/corelib/kernel/qobject.cpp:3886
#20 0x00007fdf91c8153e in KJob::result(KJob*, KJob::QPrivateSignal) (this=0x560021299dc0, _t1=0x560021299dc0, _t2=...) at /home/leszek/kde/build/kcoreaddons/src/lib/KF5CoreAddons_autogen/include/moc_kjob.cpp:576
#21 0x00007fdf91c7f4a3 in KJob::finishJob(bool) (this=0x560021299dc0, emitResult=true) at /home/leszek/kde/src/kcoreaddons/src/lib/jobs/kjob.cpp:92
#22 0x00007fdf91c7fbf2 in KJob::emitResult() (this=0x560021299dc0) at /home/leszek/kde/src/kcoreaddons/src/lib/jobs/kjob.cpp:296
#23 0x00007fdf92effae1 in KIMAP::Job::handleErrorReplies(KIMAP::Response const&) (this=0x560021299dc0, response=...) at /home/leszek/kde/src/kimap/src/job.cpp:72
#24 0x00007fdf92f1526b in KIMAP::SelectJob::handleResponse(KIMAP::Response const&) (this=0x560021299dc0, response=...) at /home/leszek/kde/src/kimap/src/selectjob.cpp:222
#25 0x00007fdf92f18173 in KIMAP::SessionPrivate::responseReceived(KIMAP::Response const&) (this=0x560021298070, response=...) at /home/leszek/kde/src/kimap/src/session.cpp:288
#26 0x00007fdf92f1ce5e in QtPrivate::FunctorCall<QtPrivate::IndexesList<0>, QtPrivate::List<KIMAP::Response const&>, void, void (KIMAP::SessionPrivate::*)(KIMAP::Response const&)>::call(void (KIMAP::SessionPrivate::*)(KIMAP::Response const&), KIMAP::SessionPrivate*, void**) (f=(void (KIMAP::SessionPrivate::*)(class KIMAP::SessionPrivate * const, const struct KIMAP::Response &)) 0x7fdf92f178f8 <KIMAP::SessionPrivate::responseReceived(KIMAP::Response const&)>, o=0x560021298070, arg=0x7fdf6c034838) at /home/leszek/kde/qt5/include/QtCore/qobjectdefs_impl.h:152
#27 0x00007fdf92f1c844 in QtPrivate::FunctionPointer<void (KIMAP::SessionPrivate::*)(KIMAP::Response const&)>::call<QtPrivate::List<KIMAP::Response const&>, void>(void (KIMAP::SessionPrivate::*)(KIMAP::Response const&), KIMAP::SessionPrivate*, void**) (f=(void (KIMAP::SessionPrivate::*)(class KIMAP::SessionPrivate * const, const struct KIMAP::Response &)) 0x7fdf92f178f8 <KIMAP::SessionPrivate::responseReceived(KIMAP::Response const&)>, o=0x560021298070, arg=0x7fdf6c034838) at /home/leszek/kde/qt5/include/QtCore/qobjectdefs_impl.h:185
#28 0x00007fdf92f1bdb2 in QtPrivate::QSlotObject<void (KIMAP::SessionPrivate::*)(KIMAP::Response const&), QtPrivate::List<KIMAP::Response const&>, void>::impl(int, QtPrivate::QSlotObjectBase*, QObject*, void**, bool*) (which=1, this_=0x5600212986b0, r=0x560021298070, a=0x7fdf6c034838, ret=0x0) at /home/leszek/kde/qt5/include/QtCore/qobjectdefs_impl.h:418
#29 0x00007fdf9056e93e in QObject::event(QEvent*) (this=0x560021298070, e=0x7fdf6c0347f0) at /home/leszek/kde/src/Qt5/qtbase/src/corelib/kernel/qobject.cpp:1314
#30 0x00007fdf9114411e in QApplicationPrivate::notify_helper(QObject*, QEvent*) (this=this@entry=0x5600210c7190, receiver=receiver@entry=0x560021298070, e=e@entry=0x7fdf6c0347f0) at /home/leszek/kde/src/Qt5/qtbase/src/widgets/kernel/qapplication.cpp:3632
#31 0x00007fdf9114a9a0 in QApplication::notify(QObject*, QEvent*) (this=0x7fff89de74e0, receiver=0x560021298070, e=0x7fdf6c0347f0) at /home/leszek/kde/src/Qt5/qtbase/src/widgets/kernel/qapplication.cpp:3156
#32 0x00007fdf90543ba9 in QCoreApplication::notifyInternal2(QObject*, QEvent*) (receiver=0x560021298070, event=0x7fdf6c0347f0) at ../../include/QtCore/5.15.2/QtCore/private/../../../../../../../../src/Qt5/qtbase/src/corelib/thread/qthread_p.h:325
#33 0x00007fdf905465d1 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) (receiver=0x0, event_type=0, data=0x5600210c1580) at /home/leszek/kde/src/Qt5/qtbase/src/corelib/kernel/qcoreapplication.cpp:1817
#34 0x00007fdf90597c93 in postEventSourceDispatch(GSource*, GSourceFunc, gpointer) (s=0x5600211958b0) at /home/leszek/kde/src/Qt5/qtbase/src/corelib/kernel/qeventdispatcher_glib.cpp:277
#35 0x00007fdf8ef18f2e in g_main_context_dispatch () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#36 0x00007fdf8ef191c8 in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#37 0x00007fdf8ef1925c in g_main_context_iteration () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#38 0x00007fdf90597354 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (this=0x5600211a48a0, flags=...) at /home/leszek/kde/src/Qt5/qtbase/src/corelib/kernel/qeventdispatcher_glib.cpp:423
#39 0x00007fdf90542853 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (this=this@entry=0x7fff89de73c0, flags=..., flags@entry=...) at ../../include/QtCore/../../../../../src/Qt5/qtbase/src/corelib/global/qflags.h:141
#40 0x00007fdf9054a6cc in QCoreApplication::exec() () at ../../include/QtCore/../../../../../src/Qt5/qtbase/src/corelib/global/qflags.h:121
#41 0x00007fdf92d24c0f in Akonadi::ResourceBase::init(Akonadi::ResourceBase&) (r=...) at /home/leszek/kde/src/akonadi/src/agentbase/resourcebase.cpp:564
#42 0x000056001f73f0ec in Akonadi::ResourceBase::init<ImapResource>(int, char**) (argc=3, argv=0x7fff89de7618) at /opt/plasma5/include/KF5/AkonadiAgentBase/resourcebase.h:183
#43 0x000056001f73efc9 in main(int, char**) (argc=3, argv=0x7fff89de7618) at /home/leszek/kde/src/kdepim-runtime/resources/imap/main.cpp:9
[Inferior 1 (process 5236) detached]
Comment 27 Leszek Lesner 2021-04-06 12:21:47 UTC
Created attachment 137377 [details]
New crash information added by DrKonqi

akonadi_imap_resource (5.17.40 (21.07.40)) using Qt 5.15.2

- What I was doing when the application crashed:
Again another crash after a few days of Web.de usage. It seems that it does not support a certain Imap feature or so that leads to the crash as I can get new mails if shortly after crash and it auto restarts I hit abort in akonadiconsole for this Imap Ressource. 
It shows then newly missed unread messages normally and works until I try to restart the imap ressource again.

-- Backtrace (Reduced):
#5  0x00007efe5db5f7bb in __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
#6  0x00007efe5db4a535 in __GI_abort () at abort.c:79
#7  0x00007efe5e09fa05 in qt_message_fatal (context=..., message=<synthetic pointer>...) at /home/leszek/kde/src/Qt5/qtbase/src/corelib/global/qlogging.cpp:1914
#8  0x00007efe5e09fa05 in QMessageLogger::fatal(char const*, ...) const (this=this@entry=0x7fff555c09a0, msg=msg@entry=0x7efe5e370ea0 "ASSERT: \"%s\" in file %s, line %d") at /home/leszek/kde/src/Qt5/qtbase/src/corelib/global/qlogging.cpp:893
#9  0x00007efe5e09ef23 in qt_assert(char const*, char const*, int) (assertion=<optimized out>, file=<optimized out>, line=<optimized out>) at ../../include/QtCore/../../../../../src/Qt5/qtbase/src/corelib/global/qlogging.h:90
Comment 28 Leszek Lesner 2021-04-22 10:27:35 UTC
I found a fix for my web.de imap crash.
See my comment and patch here. You can try to apply it to your setup and see if it fixes the imap crashes for you too

https://bugs.kde.org/show_bug.cgi?id=433117#c1
Comment 29 Freek de Kruijf 2021-04-22 13:13:28 UTC
(In reply to Leszek Lesner from comment #28)
> I found a fix for my web.de imap crash.
> See my comment and patch here. You can try to apply it to your setup and see
> if it fixes the imap crashes for you too
> 
> https://bugs.kde.org/show_bug.cgi?id=433117#c1

I have to wait for a binary to become available.
Comment 30 Nicolas Fella 2022-01-08 22:25:50 UTC
*** Bug 448140 has been marked as a duplicate of this bug. ***
Comment 31 Nicolas Fella 2022-01-08 22:26:04 UTC
*** Bug 433117 has been marked as a duplicate of this bug. ***
Comment 32 Freek de Kruijf 2022-08-19 09:00:53 UTC
I still have this problem on a rather old x86_64 system: AMD Phenom(tm) II X4 910e Processor
However on my more recent laptop it is OK.
Comment 33 Freek de Kruijf 2022-11-16 23:07:00 UTC
I have a very large number of the following messages in ~/.local/share/akonadi/db_data/mysql.err
2022-11-16 23:59:16 43 [ERROR] Incorrect definition of table mysql.column_stats: expected column 'hist_type' at position 9 to have type enum('SINGLE_PREC_HB','DOUBLE_PREC_HB','JSON_HB'), found type enum('SINGLE_PREC_HB','DOUBLE_PREC_HB').
2022-11-16 23:59:16 43 [ERROR] Incorrect definition of table mysql.column_stats: expected column 'histogram' at position 10 to have type longblob, found type varbinary(255).
Is it possible that these errors are the cause of the mentioned problem in this report. 

How do I repair the mysql tables causing these error messages?
Comment 34 Carl Schwan 2023-04-12 07:18:41 UTC
> How do I repair the mysql tables causing these error messages?

This will be automatically done once https://invent.kde.org/pim/akonadi/-/merge_requests/130 is merged

In the meantime you can run:

mysql_upgrade --defaults-file=$HOME/.local/share/akonadi/mysql.conf --socket=$XDG_RUNTIME_DIR/akonadi/mysql.socket
Comment 35 Freek de Kruijf 2023-07-17 17:04:07 UTC
Apparently solved. After starting kmail I don't get anymore a crash reported by DrKonqi on the imap server I used to get and after which the process was restarted without a further problem.