Bug 414685

Summary: imap_resource crash after manual check
Product: [Frameworks and Libraries] Akonadi Reporter: jacob.becker
Component: IMAP resourceAssignee: kdepim bugs <kdepim-bugs>
Status: CONFIRMED ---    
Severity: crash CC: freekdekruijf, jacob.becker, me
Priority: NOR Keywords: drkonqi
Version: unspecified   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:

Description jacob.becker 2019-11-30 13:32:51 UTC
Application: akonadi_imap_resource (5.12.80 (19.11.80))

Qt Version: 5.13.1
Frameworks Version: 5.64.0
Operating System: Linux 4.12.14-lp151.28.32-default x86_64
Distribution: "openSUSE Leap 15.1"

-- Information about the crash:
Every time the check new mail button is clicked the imap_resource crahes- however not all of them only specific one - this one however every time

The crash can be reproduced every time.

-- Backtrace:
Application: Universität Konstanz (akonadi_imap_resource), signal: Segmentation fault
Using host libthread_db library "/lib64/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f2f5ee599c0 (LWP 10640))]

Thread 8 (Thread 0x7f2f2132b700 (LWP 11163)):
#0  0x00007f2f58f41c98 in read () at /lib64/libc.so.6
#1  0x00007f2f52717ca0 in  () at /usr/lib64/libglib-2.0.so.0
#2  0x00007f2f526d2cb8 in g_main_context_check () at /usr/lib64/libglib-2.0.so.0
#3  0x00007f2f526d3150 in  () at /usr/lib64/libglib-2.0.so.0
#4  0x00007f2f526d32bc in g_main_context_iteration () at /usr/lib64/libglib-2.0.so.0
#5  0x00007f2f59aad77b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQt5Core.so.5
#6  0x00007f2f59a4dc4a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQt5Core.so.5
#7  0x00007f2f5986910a in QThread::exec() () at /usr/lib64/libQt5Core.so.5
#8  0x00007f2f5986a8b2 in  () at /usr/lib64/libQt5Core.so.5
#9  0x00007f2f559a7569 in start_thread () at /lib64/libpthread.so.0
#10 0x00007f2f58f509ef in clone () at /lib64/libc.so.6

Thread 7 (Thread 0x7f2f0a0df700 (LWP 11136)):
#0  0x00007f2f58f41c98 in read () at /lib64/libc.so.6
#1  0x00007f2f52717ca0 in  () at /usr/lib64/libglib-2.0.so.0
#2  0x00007f2f526d2cb8 in g_main_context_check () at /usr/lib64/libglib-2.0.so.0
#3  0x00007f2f526d3150 in  () at /usr/lib64/libglib-2.0.so.0
#4  0x00007f2f526d32bc in g_main_context_iteration () at /usr/lib64/libglib-2.0.so.0
#5  0x00007f2f59aad77b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQt5Core.so.5
#6  0x00007f2f59a4dc4a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQt5Core.so.5
#7  0x00007f2f5986910a in QThread::exec() () at /usr/lib64/libQt5Core.so.5
#8  0x00007f2f5986a8b2 in  () at /usr/lib64/libQt5Core.so.5
#9  0x00007f2f559a7569 in start_thread () at /lib64/libpthread.so.0
#10 0x00007f2f58f509ef in clone () at /lib64/libc.so.6

Thread 6 (Thread 0x7f2f225ed700 (LWP 10646)):
#0  0x00007f2f58f4619b in poll () at /lib64/libc.so.6
#1  0x00007f2f526d31a9 in  () at /usr/lib64/libglib-2.0.so.0
#2  0x00007f2f526d32bc in g_main_context_iteration () at /usr/lib64/libglib-2.0.so.0
#3  0x00007f2f59aad77b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQt5Core.so.5
#4  0x00007f2f59a4dc4a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQt5Core.so.5
#5  0x00007f2f5986910a in QThread::exec() () at /usr/lib64/libQt5Core.so.5
#6  0x00007f2f5986a8b2 in  () at /usr/lib64/libQt5Core.so.5
#7  0x00007f2f559a7569 in start_thread () at /lib64/libpthread.so.0
#8  0x00007f2f58f509ef in clone () at /lib64/libc.so.6

Thread 5 (Thread 0x7f2f237fe700 (LWP 10644)):
#0  0x00007f2f58f4619b in poll () at /lib64/libc.so.6
#1  0x00007f2f526d31a9 in  () at /usr/lib64/libglib-2.0.so.0
#2  0x00007f2f526d32bc in g_main_context_iteration () at /usr/lib64/libglib-2.0.so.0
#3  0x00007f2f59aad77b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQt5Core.so.5
#4  0x00007f2f59a4dc4a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQt5Core.so.5
#5  0x00007f2f5986910a in QThread::exec() () at /usr/lib64/libQt5Core.so.5
#6  0x00007f2f5986a8b2 in  () at /usr/lib64/libQt5Core.so.5
#7  0x00007f2f559a7569 in start_thread () at /lib64/libpthread.so.0
#8  0x00007f2f58f509ef in clone () at /lib64/libc.so.6

Thread 4 (Thread 0x7f2f23fff700 (LWP 10643)):
#0  0x00007f2f52718ff4 in g_mutex_unlock () at /usr/lib64/libglib-2.0.so.0
#1  0x00007f2f526d20b7 in g_main_context_acquire () at /usr/lib64/libglib-2.0.so.0
#2  0x00007f2f526d3065 in  () at /usr/lib64/libglib-2.0.so.0
#3  0x00007f2f526d32bc in g_main_context_iteration () at /usr/lib64/libglib-2.0.so.0
#4  0x00007f2f59aad77b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQt5Core.so.5
#5  0x00007f2f59a4dc4a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQt5Core.so.5
#6  0x00007f2f5986910a in QThread::exec() () at /usr/lib64/libQt5Core.so.5
#7  0x00007f2f5b5a0db5 in  () at /usr/lib64/libQt5DBus.so.5
#8  0x00007f2f5986a8b2 in  () at /usr/lib64/libQt5Core.so.5
#9  0x00007f2f559a7569 in start_thread () at /lib64/libpthread.so.0
#10 0x00007f2f58f509ef in clone () at /lib64/libc.so.6

Thread 3 (Thread 0x7f2f2a31d700 (LWP 10642)):
#0  0x00007f2f559ad8ad in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libpthread.so.0
#1  0x00007f2f2ae829ab in  () at /usr/lib64/dri/i965_dri.so
#2  0x00007f2f2ae826b7 in  () at /usr/lib64/dri/i965_dri.so
#3  0x00007f2f559a7569 in start_thread () at /lib64/libpthread.so.0
#4  0x00007f2f58f509ef in clone () at /lib64/libc.so.6

Thread 2 (Thread 0x7f2f33a90700 (LWP 10641)):
#0  0x00007f2f58f4619b in poll () at /lib64/libc.so.6
#1  0x00007f2f54fec307 in  () at /usr/lib64/libxcb.so.1
#2  0x00007f2f54fedf3a in xcb_wait_for_event () at /usr/lib64/libxcb.so.1
#3  0x00007f2f35df8940 in  () at /usr/lib64/libQt5XcbQpa.so.5
#4  0x00007f2f5986a8b2 in  () at /usr/lib64/libQt5Core.so.5
#5  0x00007f2f559a7569 in start_thread () at /lib64/libpthread.so.0
#6  0x00007f2f58f509ef in clone () at /lib64/libc.so.6

Thread 1 (Thread 0x7f2f5ee599c0 (LWP 10640)):
[KCrash Handler]
#6  0x00007f2f5d188907 in  () at /usr/lib64/libKF5AkonadiCore.so.5
#7  0x00007f2f5d188ffb in  () at /usr/lib64/libKF5AkonadiCore.so.5
#8  0x00007f2f5d84b796 in bool Akonadi::Collection::hasAttribute<Akonadi::SpecialCollectionAttribute>() const () at /usr/lib64/libKF5AkonadiAgentBase.so.5
#9  0x00007f2f5d847393 in  () at /usr/lib64/libKF5AkonadiAgentBase.so.5
#10 0x00007f2f5d84b3e4 in  () at /usr/lib64/libKF5AkonadiAgentBase.so.5
#11 0x00007f2f5d84563d in  () at /usr/lib64/libKF5AkonadiAgentBase.so.5
#12 0x00007f2f5d846c90 in  () at /usr/lib64/libKF5AkonadiAgentBase.so.5
#13 0x00007f2f59a804b5 in QMetaObject::activate(QObject*, int, int, void**) () at /usr/lib64/libQt5Core.so.5
#14 0x00007f2f5c02edcc in KJob::result(KJob*, KJob::QPrivateSignal) () at /usr/lib64/libKF5CoreAddons.so.5
#15 0x00007f2f5c02f901 in KJob::finishJob(bool) () at /usr/lib64/libKF5CoreAddons.so.5
#16 0x00007f2f59a8d294 in  () at /usr/lib64/libQt5Core.so.5
#17 0x00007f2f59a80fcb in QObject::event(QEvent*) () at /usr/lib64/libQt5Core.so.5
#18 0x00007f2f5ac3303c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /usr/lib64/libQt5Widgets.so.5
#19 0x00007f2f5ac3a640 in QApplication::notify(QObject*, QEvent*) () at /usr/lib64/libQt5Widgets.so.5
#20 0x00007f2f59a4fae8 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /usr/lib64/libQt5Core.so.5
#21 0x00007f2f59aacbe9 in QTimerInfoList::activateTimers() () at /usr/lib64/libQt5Core.so.5
#22 0x00007f2f59aad3b1 in  () at /usr/lib64/libQt5Core.so.5
#23 0x00007f2f526d2e87 in g_main_context_dispatch () at /usr/lib64/libglib-2.0.so.0
#24 0x00007f2f526d3230 in  () at /usr/lib64/libglib-2.0.so.0
#25 0x00007f2f526d32bc in g_main_context_iteration () at /usr/lib64/libglib-2.0.so.0
#26 0x00007f2f59aad75f in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQt5Core.so.5
#27 0x00007f2f59a4dc4a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQt5Core.so.5
#28 0x00007f2f59a56fc0 in QCoreApplication::exec() () at /usr/lib64/libQt5Core.so.5
#29 0x00007f2f5d840c7d in Akonadi::ResourceBase::init(Akonadi::ResourceBase&) () at /usr/lib64/libKF5AkonadiAgentBase.so.5
#30 0x0000556ec935a06f in  ()
#31 0x00007f2f58e78f8a in __libc_start_main () at /lib64/libc.so.6
#32 0x0000556ec9359efa in  ()
[Inferior 1 (process 10640) detached]

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

Possible duplicates by query: bug 414574, bug 414545, bug 414528, bug 414454, bug 414436.

Reported using DrKonqi
Comment 1 Iyán Méndez Veiga 2019-12-17 15:12:06 UTC
I am experiencing same issue in Archlinux since the last major upgrade of KDE Apps:

Qt: 5.13.2
KDE Plasma: 5.17.4
Frameworks: 5.64.0
KDE Applications: 19.12.0

In my case I don't need to refresh, it just crashes after some time in a random manner.

What seems to fix it (for some time) is doing this:

akonadictl fsck
akonadictl vacuum
akonadictl restart

As it was proposed to try here:

https://bbs.archlinux.org/viewtopic.php?id=251405

What is strange is that it only affect one of my accounts (it is not Gmail btw).
Comment 2 Iyán Méndez Veiga 2019-12-18 10:27:07 UTC
I have contacted my hosting provider to get the details about the IMAP servers they used for my account. This is the info they sent me:

# dovecot --version
2.3.7.2 (3c910f64b)

# exim --version | head -1
Exim version 4.90
Comment 3 Iyán Méndez Veiga 2019-12-26 10:03:38 UTC
Today I realized that my issue only seems to appear when I leave the computer locked. If I don't lock the computer, Kmail keeps working and there is no crush. If I lock it, after a while imap resource crash and I have to close Kmail, do a akonadictl fsck + vacuum + restart, and then open again Kmail.

Maybe some issue with akonadi and lockscreen since last release?
Comment 4 Iyán Méndez Veiga 2020-06-12 21:05:31 UTC
Any news about this?
Comment 5 Freek de Kruijf 2020-08-27 08:15:29 UTC
This bug report looks like a duplicate of bug 403391
Comment 6 Iyán Méndez Veiga 2020-08-27 08:29:25 UTC
In my case, it got solved with the patch that solved bug 415339
Comment 7 Justin Zobel 2022-10-12 03:50:17 UTC
Thank you for reporting this crash in KDE software. As it has been a while since this issue was reported, can we please ask you to see if you can reproduce the crash with a recent software version?

If you can reproduce the issue, please change the status to "CONFIRMED" when replying. Thank you!
Comment 8 Freek de Kruijf 2022-10-12 07:58:52 UTC
(In reply to Justin Zobel from comment #7)
> Thank you for reporting this crash in KDE software. As it has been a while
> since this issue was reported, can we please ask you to see if you can
> reproduce the crash with a recent software version?
> 
> If you can reproduce the issue, please change the status to "CONFIRMED" when
> replying. Thank you!

This bug looks like bug 425619, which was recently updated with a new backtrace.