Bug 398191 - akonadiserver crashes from time to time since upgrading to 18.08
Summary: akonadiserver crashes from time to time since upgrading to 18.08
Status: RESOLVED DUPLICATE of bug 397239
Alias: None
Product: Akonadi
Classification: Frameworks and Libraries
Component: server (show other bugs)
Version: 5.9.0
Platform: Arch Linux Linux
: NOR crash
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-09-03 11:21 UTC by Pieter David
Modified: 2018-09-06 19:47 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
New crash information added by DrKonqi (83.84 KB, text/plain)
2018-09-03 20:24 UTC, david.landrith
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Pieter David 2018-09-03 11:21:07 UTC
Application: akonadiserver (5.9.0)

Qt Version: 5.11.1
Frameworks Version: 5.49.0
Operating System: Linux 4.18.5-arch1-1-ARCH x86_64
Distribution: "Arch Linux" (akonadi 18.08.0-1 package recompiled for debug symbols)

-- Information about the crash:
- What I was doing when the application crashed:
It's hard to say what triggers the crash, other than "kmail activity" (mail sync, browsing email folders). The frequency goes down when I set my gmail account to "offline", but it still happens from time to time.

- Custom settings of the application:
I have several IMAP accounts, two of which (one gmail, one work-related which uses a microsoft exchange server) have quite a lot of messages.

The crash can be reproduced sometimes.

-- Backtrace:
Application: Akonadi Server (akonadiserver), signal: Segmentation fault
Using host libthread_db library "/usr/lib/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f3b4c4a9e40 (LWP 22036))]

Thread 44 (Thread 0x7f3ab77f6700 (LWP 22632)):
#0  0x00007f3b504f5ad4 in g_mutex_unlock () from /usr/lib/libglib-2.0.so.0
#1  0x00007f3b504ae87a in g_main_context_check () from /usr/lib/libglib-2.0.so.0
#2  0x00007f3b504aee66 in ?? () from /usr/lib/libglib-2.0.so.0
#3  0x00007f3b504aefee in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#4  0x00007f3b5297b4c4 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5
#5  0x00007f3b52926dac in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5
#6  0x0000560db33a4383 in Akonadi::Server::Connection::handleIncomingData() () at /usr/include/qt/QtCore/qflags.h:120
#7  0x00007f3b5295e137 in ?? () from /usr/lib/libQt5Core.so.5
#8  0x00007f3b529527eb in QObject::event(QEvent*) () from /usr/lib/libQt5Core.so.5
#9  0x00007f3b529280f7 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib/libQt5Core.so.5
#10 0x00007f3b5297a87a in QTimerInfoList::activateTimers() () from /usr/lib/libQt5Core.so.5
#11 0x00007f3b5297b102 in ?? () from /usr/lib/libQt5Core.so.5
#12 0x00007f3b504aeca7 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#13 0x00007f3b504aef59 in ?? () from /usr/lib/libglib-2.0.so.0
#14 0x00007f3b504aefee in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#15 0x00007f3b5297b4a9 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5
#16 0x00007f3b52926dac in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5
#17 0x00007f3b5276ff59 in QThread::exec() () from /usr/lib/libQt5Core.so.5
#18 0x00007f3b5277a005 in ?? () from /usr/lib/libQt5Core.so.5
#19 0x00007f3b51a0ba9d in start_thread () from /usr/lib/libpthread.so.0
#20 0x00007f3b52444a43 in clone () from /usr/lib/libc.so.6

[many similar stacks for other threads left out for readability]

Thread 9 (Thread 0x7f3b3bfff700 (LWP 22059)):
[KCrash Handler]
#6  QByteArray::QByteArray (a=..., this=this@entry=0x7f3b3bffd7e0) at /usr/include/qt/QtCore/qbytearray.h:498
#7  Akonadi::Server::Connection::sessionId (this=0x0) at /usr/src/debug/akonadi-18.08.0/src/server/connection.cpp:437
#8  0x0000560db33ca140 in Akonadi::Server::FetchHelper::isScopeLocal(Akonadi::Scope const&) () at /usr/src/debug/akonadi-18.08.0/src/server/handler/fetchhelper.cpp:268
#9  0x0000560db33cab78 in Akonadi::Server::FetchHelper::fetchItems(std::function<void (Akonadi::Protocol::FetchItemsResponse&&)>&&) () at /usr/include/qt/QtCore/qflags.h:145
#10 0x0000560db34b47ac in Akonadi::Server::NotificationCollector::completeNotification(QSharedPointer<Akonadi::Protocol::ChangeNotification> const&) () at /usr/include/c++/8.2.0/new:169
#11 0x0000560db34b4cfb in Akonadi::Server::NotificationCollector::dispatchNotification(QSharedPointer<Akonadi::Protocol::ChangeNotification> const&) () at /usr/src/debug/akonadi-18.08.0/src/server/storage/notificationcollector.cpp:586
#12 0x0000560db34b8a1f in Akonadi::Server::NotificationCollector::itemNotification(Akonadi::Protocol::ItemChangeNotification::Operation, QVector<Akonadi::Server::PimItem> const&, Akonadi::Server::Collection const&, Akonadi::Server::Collection const&, QByteArray const&, QSet<QByteArray> const&, QSet<QByteArray> const&, QSet<QByteArray> const&, QSet<long long> const&, QSet<long long> const&, QVector<Akonadi::Server::Relation> const&, QVector<Akonadi::Server::Relation> const&) () at /usr/include/c++/8.2.0/bits/atomic_base.h:295
#13 0x0000560db34b9b52 in Akonadi::Server::NotificationCollector::itemsLinked(QVector<Akonadi::Server::PimItem> const&, Akonadi::Server::Collection const&) () at /usr/include/qt/QtCore/qarraydata.h:255
#14 0x0000560db341695f in Akonadi::Server::SearchManager::searchUpdateResultsAvailable(QSet<long long> const&) () at /usr/src/debug/akonadi-18.08.0/src/server/search/searchmanager.cpp:451
#15 0x00007f3b529520b0 in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib/libQt5Core.so.5
#16 0x0000560db34f65d3 in Akonadi::Server::SearchRequest::resultsAvailable (this=this@entry=0x7f3b3bffe7d0, _t1=...) at /usr/src/debug/build/src/server/libakonadiserver_autogen/O2QWORDHJD/moc_searchrequest.cpp:141
#17 0x0000560db3410f48 in Akonadi::Server::SearchRequest::emitResults(QSet<long long> const&) () at /usr/src/debug/akonadi-18.08.0/src/server/search/searchrequest.cpp:99
#18 0x0000560db3411253 in Akonadi::Server::SearchRequest::searchPlugins() () at /usr/src/debug/akonadi-18.08.0/src/server/search/searchrequest.cpp:110
#19 0x0000560db34113f3 in Akonadi::Server::SearchRequest::exec() () at /usr/src/debug/akonadi-18.08.0/src/server/search/searchrequest.cpp:120
#20 0x0000560db3417c8d in Akonadi::Server::SearchManager::updateSearchImpl(Akonadi::Server::Collection const&) () at /usr/src/debug/akonadi-18.08.0/src/server/search/searchmanager.cpp:338
#21 0x00007f3b52952832 in QObject::event(QEvent*) () from /usr/lib/libQt5Core.so.5
#22 0x00007f3b529280f7 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib/libQt5Core.so.5
#23 0x00007f3b5292b1ac in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /usr/lib/libQt5Core.so.5
#24 0x00007f3b5297bec4 in ?? () from /usr/lib/libQt5Core.so.5
#25 0x00007f3b504aeca7 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#26 0x00007f3b504aef59 in ?? () from /usr/lib/libglib-2.0.so.0
#27 0x00007f3b504aefee in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#28 0x00007f3b5297b4a9 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5
#29 0x00007f3b52926dac in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5
#30 0x00007f3b5276ff59 in QThread::exec() () from /usr/lib/libQt5Core.so.5
#31 0x00007f3b5277a005 in ?? () from /usr/lib/libQt5Core.so.5
#32 0x00007f3b51a0ba9d in start_thread () from /usr/lib/libpthread.so.0
#33 0x00007f3b52444a43 in clone () from /usr/lib/libc.so.6
Comment 1 david.landrith 2018-09-03 20:24:17 UTC
Created attachment 114761 [details]
New crash information added by DrKonqi

akonadiserver (5.9.0) using Qt 5.11.1

- What I was doing when the application crashed:

Akondi crashes when I startup my machine within about 15 seconds of my logging in and opening my KDE Wallet, no matter what I do -- whether Kmail is open or not.

When I restart it, it runs for a while and crashes again. Every time I open Kmail and browse emails, it crashes within less than a minute.

-- Backtrace (Reduced):
#6  QByteArray::QByteArray (a=..., this=this@entry=0x7fbe677fcc90) at /usr/include/qt5/QtCore/qbytearray.h:498
#7  Akonadi::Server::Connection::sessionId (this=0x0) at /usr/src/debug/akonadi-server-18.08.0-1.1.x86_64/src/server/connection.cpp:437
#8  0x000055c800b75eaf in Akonadi::Server::FetchHelper::isScopeLocal(Akonadi::Scope const&) () at /usr/src/debug/akonadi-server-18.08.0-1.1.x86_64/src/server/handler/fetchhelper.cpp:268
#9  0x000055c800b76898 in Akonadi::Server::FetchHelper::fetchItems(std::function<void (Akonadi::Protocol::FetchItemsResponse&&)>&&) () at /usr/include/qt5/QtCore/qflags.h:145
#10 0x000055c800c5b644 in Akonadi::Server::NotificationCollector::completeNotification(QSharedPointer<Akonadi::Protocol::ChangeNotification> const&) () at /usr/include/c++/8/new:169
Comment 2 Rui Zhao 2018-09-05 16:09:02 UTC
I can confirm this bug, though I'm not sure about the exact cause.

A few information from my side:

I upgraded to package akonadi 18.08.0-1 on 21 Aug, and `akonadiserver -v` is 5.9.0.
The crash happens from time to time (a few seconds to a few minutes) after upgrade (but never did before upgrade).

I have a gmail account, an outlook account and an office365 (through imap/smtp, not microsoft exchange) account configured. (Another machine has more accounts configured, including microsoft exchange.)
After upgrade and restart kde, there is a window for authenticating gmail account, and I followed the steps (though, it doesn't seem to make any difference). I deleted the gmail account afterwards, but the crash still happens.
Shrinking the number of accounts to 1 also doesn't make the problem disappear.
Comment 3 Wolfgang Bauer 2018-09-06 08:42:45 UTC
AFAICS it's the same backtrace as in bug#398282, so likely a duplicate of bug#397239 I think.
In that case, it should be fixed in 18.08.1 (to be released today)...
Comment 4 Pieter David 2018-09-06 19:00:33 UTC
Indeed, after updating to 5.9.1 (applications 18.08.1) the crashes are gone.
Comment 5 Wolfgang Bauer 2018-09-06 19:47:00 UTC
(In reply to Pieter David from comment #4)
> Indeed, after updating to 5.9.1 (applications 18.08.1) the crashes are gone.

Thank you very much for the confirmation.

But let's better mark it as duplicate then...

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