Bug 429344 - All Mail Accounts (on KMail) crashed after latest updates
Summary: All Mail Accounts (on KMail) crashed after latest updates
Status: REPORTED
Alias: None
Product: Akonadi
Classification: Frameworks and Libraries
Component: IMAP resource (show other bugs)
Version: unspecified
Platform: Neon Linux
: NOR crash
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2020-11-19 13:34 UTC by Valter Mura
Modified: 2021-06-29 20:36 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
result of akonadi stop and start (15.35 KB, text/plain)
2020-11-20 08:38 UTC, Valter Mura
Details
another backtrace of the crash (11.18 KB, text/vnd.kde.kcrash-report)
2020-11-20 09:15 UTC, Valter Mura
Details
another backtrace of the crash 2 (10.99 KB, text/vnd.kde.kcrash-report)
2020-11-26 19:12 UTC, Valter Mura
Details
another backtrace (2.76 KB, text/plain)
2020-11-29 13:11 UTC, Max Schwarz
Details
New crash information added by DrKonqi (2.21 KB, text/plain)
2021-06-29 20:36 UTC, Peter Huyoff
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Valter Mura 2020-11-19 13:34:07 UTC
Application: akonadi_imap_resource (5.15.3 (20.08.3))

Qt Version: 5.15.1
Frameworks Version: 5.77.0
Operating System: Linux 5.4.0-54-generic x86_64
Windowing system: X11
Distribution: KDE neon Testing Edition

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

Open the program Kmail, mails are not retrieved.

- Custom settings of the application:

My accounts are all IMAP

My suspicious is that the issue is linked to Akonadi, and not to kmail itself.

If I open Thunderbird, I have no issues.

The crash can be reproduced every time.

-- Backtrace:
Application: Gmail (akonadi_imap_resource), signal: Aborted

[New LWP 7454]
[New LWP 7455]
[New LWP 7456]
[New LWP 7458]
[New LWP 7459]
[New LWP 7683]
[New LWP 7684]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
0x00007fb9d3b21aff in __GI___poll (fds=0x7fff66c36ea8, nfds=1, timeout=1000) at ../sysdeps/unix/sysv/linux/poll.c:29
[Current thread is 1 (Thread 0x7fb9cf5a9200 (LWP 7453))]

Thread 8 (Thread 0x7fb9c543c700 (LWP 7684)):
#0  futex_abstimed_wait_cancelable (private=<optimized out>, abstime=0x7fb9c543bb90, clockid=<optimized out>, expected=0, futex_word=0x7fb9b80109e0) at ../sysdeps/nptl/futex-internal.h:320
#1  __pthread_cond_wait_common (abstime=0x7fb9c543bb90, clockid=<optimized out>, mutex=0x7fb9b8010990, cond=0x7fb9b80109b8) at pthread_cond_wait.c:520
#2  __pthread_cond_timedwait (cond=0x7fb9b80109b8, mutex=0x7fb9b8010990, abstime=0x7fb9c543bb90) at pthread_cond_wait.c:656
#3  0x00007fb9d3ecdc78 in QWaitConditionPrivate::wait_relative (this=0x7fb9b8010990, deadline=...) at thread/qwaitcondition_unix.cpp:136
#4  QWaitConditionPrivate::wait (deadline=..., this=0x7fb9b8010990) at thread/qwaitcondition_unix.cpp:144
#5  QWaitCondition::wait (this=this@entry=0x7fb9b80119f0, mutex=mutex@entry=0x7fb9b8011808, deadline=...) at thread/qwaitcondition_unix.cpp:225
#6  0x00007fb9d3ecb121 in QThreadPoolThread::run (this=0x7fb9b80119e0) at ../../include/QtCore/../../src/corelib/thread/qmutex.h:270
#7  0x00007fb9d3ec7b1c in QThreadPrivate::start (arg=0x7fb9b80119e0) at thread/qthread_unix.cpp:329
#8  0x00007fb9d300b609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#9  0x00007fb9d3b2e293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 7 (Thread 0x7fb9c5dec700 (LWP 7683)):
#0  0x00007fb9d3b21aff in __GI___poll (fds=0x7fb9ac007080, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007fb9d24f21ae in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fb9d24f22e3 in g_main_context_iteration () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007fb9d410624b in QEventDispatcherGlib::processEvents (this=0x7fb9ac000b60, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#4  0x00007fb9d40aa43b in QEventLoop::exec (this=this@entry=0x7fb9c5debc20, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:141
#5  0x00007fb9d3ec6982 in QThread::exec (this=<optimized out>) at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#6  0x00007fb9d3ec7b1c in QThreadPrivate::start (arg=0x556d551fa790) at thread/qthread_unix.cpp:329
#7  0x00007fb9d300b609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#8  0x00007fb9d3b2e293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 6 (Thread 0x7fb9c65ed700 (LWP 7459)):
#0  0x00007fb9d3b21aff in __GI___poll (fds=0x7fb9b8004e60, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007fb9d24f21ae in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fb9d24f22e3 in g_main_context_iteration () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007fb9d410624b in QEventDispatcherGlib::processEvents (this=0x7fb9b8000b60, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#4  0x00007fb9d40aa43b in QEventLoop::exec (this=this@entry=0x7fb9c65ecc20, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:141
#5  0x00007fb9d3ec6982 in QThread::exec (this=<optimized out>) at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#6  0x00007fb9d3ec7b1c in QThreadPrivate::start (arg=0x556d551ca520) at thread/qthread_unix.cpp:329
#7  0x00007fb9d300b609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#8  0x00007fb9d3b2e293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 5 (Thread 0x7fb9c6dee700 (LWP 7458)):
#0  0x00007fb9d3b21aff in __GI___poll (fds=0x7fb9b4004e60, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007fb9d24f21ae in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fb9d24f22e3 in g_main_context_iteration () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007fb9d410624b in QEventDispatcherGlib::processEvents (this=0x7fb9b4000b60, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#4  0x00007fb9d40aa43b in QEventLoop::exec (this=this@entry=0x7fb9c6dedc20, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:141
#5  0x00007fb9d3ec6982 in QThread::exec (this=<optimized out>) at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#6  0x00007fb9d3ec7b1c in QThreadPrivate::start (arg=0x556d5513a0e0) at thread/qthread_unix.cpp:329
#7  0x00007fb9d300b609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#8  0x00007fb9d3b2e293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 4 (Thread 0x7fb9c7fff700 (LWP 7456)):
#0  0x00007fb9d253f368 in g_mutex_unlock () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#1  0x00007fb9d24f1bd9 in g_main_context_check () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fb9d24f2152 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007fb9d24f22e3 in g_main_context_iteration () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007fb9d410624b in QEventDispatcherGlib::processEvents (this=0x7fb9bc000b60, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#5  0x00007fb9d40aa43b in QEventLoop::exec (this=this@entry=0x7fb9c7ffec20, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:141
#6  0x00007fb9d3ec6982 in QThread::exec (this=<optimized out>) at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#7  0x00007fb9d3ec7b1c in QThreadPrivate::start (arg=0x556d551137a0) at thread/qthread_unix.cpp:329
#8  0x00007fb9d300b609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#9  0x00007fb9d3b2e293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 3 (Thread 0x7fb9ccd4e700 (LWP 7455)):
#0  0x00007fb9d24f0100 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#1  0x00007fb9d24f166b in g_main_context_prepare () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fb9d24f20db in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007fb9d24f22e3 in g_main_context_iteration () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007fb9d410624b in QEventDispatcherGlib::processEvents (this=0x7fb9c0000b60, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#5  0x00007fb9d40aa43b in QEventLoop::exec (this=this@entry=0x7fb9ccd4dbf0, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:141
#6  0x00007fb9d3ec6982 in QThread::exec (this=<optimized out>) at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#7  0x00007fb9d52faf4b in ?? () from /usr/lib/x86_64-linux-gnu/libQt5DBus.so.5
#8  0x00007fb9d3ec7b1c in QThreadPrivate::start (arg=0x7fb9d537ed80) at thread/qthread_unix.cpp:329
#9  0x00007fb9d300b609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#10 0x00007fb9d3b2e293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 2 (Thread 0x7fb9ce9e2700 (LWP 7454)):
#0  0x00007fb9d3b21aff in __GI___poll (fds=0x7fb9ce9e1b28, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007fb9d2e4ec1a in ?? () from /usr/lib/x86_64-linux-gnu/libxcb.so.1
#2  0x00007fb9d2e5090a in xcb_wait_for_event () from /usr/lib/x86_64-linux-gnu/libxcb.so.1
#3  0x00007fb9cef13b08 in QXcbEventQueue::run (this=0x556d5502cca0) at qxcbeventqueue.cpp:228
#4  0x00007fb9d3ec7b1c in QThreadPrivate::start (arg=0x556d5502cca0) at thread/qthread_unix.cpp:329
#5  0x00007fb9d300b609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#6  0x00007fb9d3b2e293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 1 (Thread 0x7fb9cf5a9200 (LWP 7453)):
[KCrash Handler]
#4  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
#5  0x00007fb9d3a31859 in __GI_abort () at abort.c:79
#6  0x00007fb9d3a9c3ee in __libc_message (action=action@entry=do_abort, fmt=fmt@entry=0x7fb9d3bc607c "*** %s ***: terminated\n") at ../sysdeps/posix/libc_fatal.c:155
#7  0x00007fb9d3b3eb4a in __GI___fortify_fail (msg=msg@entry=0x7fb9d3bc6064 "stack smashing detected") at fortify_fail.c:26
#8  0x00007fb9d3b3eb16 in __stack_chk_fail () at stack_chk_fail.c:24
#9  0x0000556d54859eb0 in ?? ()
#10 0x00007fb9d40e294e in QtPrivate::QSlotObjectBase::call (a=0x7fff66c37bf0, r=0x7fb9ac02b120, this=0x556d551dce60) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398
#11 doActivate<false> (sender=0x7fb9ac00d6d0, signal_index=26, argv=0x7fff66c37bf0) at kernel/qobject.cpp:3886
#12 0x00007fb9d5d680d9 in KIMAP::FetchJob::messagesAvailable(QMap<long long, KIMAP::Message> const&) () from /usr/lib/x86_64-linux-gnu/libKF5IMAP.so.5
#13 0x00007fb9d5d70299 in ?? () from /usr/lib/x86_64-linux-gnu/libKF5IMAP.so.5
#14 0x00007fb9d5d6b39c in ?? () from /usr/lib/x86_64-linux-gnu/libKF5IMAP.so.5
#15 0x00007fb9d40e2980 in doActivate<false> (sender=0x7fb9bc038080, signal_index=3, argv=0x7fff66c37d90) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:395
#16 0x00007fb9d40dbd17 in QMetaObject::activate (sender=<optimized out>, m=m@entry=0x7fb9d4343ca0 <QTimer::staticMetaObject>, local_signal_index=local_signal_index@entry=0, argv=argv@entry=0x7fff66c37d90) at kernel/qobject.cpp:3946
#17 0x00007fb9d40e747e in QTimer::timeout (this=<optimized out>, _t1=...) at .moc/moc_qtimer.cpp:205
#18 0x00007fb9d40d93e5 in QObject::event (this=0x7fb9bc038080, e=0x7fff66c380c0) at kernel/qobject.cpp:1336
#19 0x00007fb9d4d4cda3 in QApplicationPrivate::notify_helper (this=this@entry=0x556d5502a6a0, receiver=receiver@entry=0x7fb9bc038080, e=e@entry=0x7fff66c380c0) at kernel/qapplication.cpp:3630
#20 0x00007fb9d4d55b98 in QApplication::notify (this=0x7fff66c383b0, receiver=0x7fb9bc038080, e=0x7fff66c380c0) at kernel/qapplication.cpp:3154
#21 0x00007fb9d40ab92a in QCoreApplication::notifyInternal2 (receiver=0x7fb9bc038080, event=0x7fff66c380c0) at ../../include/QtCore/5.15.1/QtCore/private/../../../../../src/corelib/thread/qthread_p.h:325
#22 0x00007fb9d4105580 in QTimerInfoList::activateTimers (this=0x556d5502db10) at kernel/qtimerinfo_unix.cpp:643
#23 0x00007fb9d4105e6c in timerSourceDispatch (source=<optimized out>) at kernel/qeventdispatcher_glib.cpp:183
#24 0x00007fb9d24f1fbd in g_main_context_dispatch () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#25 0x00007fb9d24f2240 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#26 0x00007fb9d24f22e3 in g_main_context_iteration () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#27 0x00007fb9d4106232 in QEventDispatcherGlib::processEvents (this=0x556d550f8f30, flags=...) at kernel/qeventdispatcher_glib.cpp:423
#28 0x00007fb9d40aa43b in QEventLoop::exec (this=this@entry=0x7fff66c38300, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:141
#29 0x00007fb9d40b25e4 in QCoreApplication::exec () at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#30 0x00007fb9d5c1dfc2 in Akonadi::ResourceBase::init(Akonadi::ResourceBase&) () from /usr/lib/x86_64-linux-gnu/libKF5AkonadiAgentBase.so.5
#31 0x0000556d54834115 in ?? ()
#32 0x00007fb9d3a330b3 in __libc_start_main (main=0x556d54831d60, argc=3, argv=0x7fff66c38548, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fff66c38538) at ../csu/libc-start.c:308
#33 0x0000556d54831d9e in ?? ()
[Inferior 1 (process 7453) detached]

Possible duplicates by query: bug 427384, bug 424911, bug 423951, bug 423222, bug 422775.

Reported using DrKonqi
Comment 1 Valter Mura 2020-11-20 08:38:19 UTC
Created attachment 133486 [details]
result of akonadi stop and start

I tried to stop and start the akonadi server, the strange thing is that the Gmail imap account works again, the other 2 accounts don't (Yahoo and Libreoffice)
Comment 2 Valter Mura 2020-11-20 09:15:22 UTC
Created attachment 133487 [details]
another backtrace of the crash

this backtrace is for my Libreoffice account.
Another strange thing: Yahoo account restarted but Gmail down again
Comment 3 Valter Mura 2020-11-26 19:12:59 UTC
Created attachment 133674 [details]
another backtrace of the crash 2

This is the backtrace of another IMAP account I have
Comment 4 Valter Mura 2020-11-26 20:32:19 UTC
After some research, I found that probably the crashes of Akonadi are due to a difference between Mysql version installed (8.0 in my system) and the version required by akonadi module for imap (I think 5.8 or something like that).

Can anybody confirm this problem?
Comment 5 Max Schwarz 2020-11-29 13:10:47 UTC
I think I have the same problem, akonadi_imap_resource keeps crashing with "stack smashing detected". My backtrace looks very similar, I'll try to attach it. Why do you suspect MySQL?
Comment 6 Max Schwarz 2020-11-29 13:11:57 UTC
Created attachment 133727 [details]
another backtrace

Running on KDE Neon Testing (20.04).
Comment 7 Valter Mura 2020-12-02 18:54:53 UTC
(In reply to Max Schwarz from comment #5)
> I think I have the same problem, akonadi_imap_resource keeps crashing with
> "stack smashing detected". My backtrace looks very similar, I'll try to
> attach it. Why do you suspect MySQL?

Hi, really this is only a supposition. I read somewhere that Akonadi crashed after a MySql version update.
BTW, my IMAP accounts continue to crash... I can provide all crashes reports, if needed.
Perhaps, it could be only a problem of my system, I don't know, but I cannot figure out how to solve it or if I need some package more installed.
Comment 8 Peter Huyoff 2021-06-29 20:36:46 UTC
Created attachment 139750 [details]
New crash information added by DrKonqi

akonadi_control (5.17.2) using Qt 5.15.2

- What I was doing when the application crashed:
Everytime, Tumbleweed starts up, KMail/Akonadi crashes and cannot started again.

-- Backtrace (Reduced):
#6  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:49
#7  0x00007f3811329864 in __GI_abort () at abort.c:79
#8  0x0000562dff93bc66 in akMessageHandler(QtMsgType, QMessageLogContext const&, QString const&) (type=<optimized out>, msg=..., context=...) at /usr/src/debug/akonadi-server-21.04.2-1.2.x86_64/src/shared/akdebug.cpp:192
#9  akMessageHandler(QtMsgType, QMessageLogContext const&, QString const&) (type=<optimized out>, context=..., msg=...) at /usr/src/debug/akonadi-server-21.04.2-1.2.x86_64/src/shared/akdebug.cpp:181
#10 0x0000562dff940a6c in (anonymous namespace)::RemoteLogger::dbusLogger(QtMsgType, QMessageLogContext const&, QString const&) (type=QtFatalMsg, ctx=..., msg=...) at /usr/src/debug/akonadi-server-21.04.2-1.2.x86_64/src/shared/akremotelog.cpp:162