Bug 413921

Summary: crash on mail check
Product: [Frameworks and Libraries] Akonadi Reporter: Martin Koller <kollix>
Component: serverAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED DUPLICATE    
Severity: normal CC: dvratil, renard
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Martin Koller 2019-11-07 17:34:40 UTC
Application: akonadiserver (5.12.2)

Qt Version: 5.13.1
Frameworks Version: 5.63.0
Operating System: Linux 5.3.7-1-default x86_64
Distribution: "openSUSE Tumbleweed"

-- Information about the crash:
new mail check was running, then the server crashed

The crash can be reproduced sometimes.

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

Thread 39 (Thread 0x7fb3ecff9700 (LWP 14817)):
#0  0x00007fb48356e60c in read () from /lib64/libc.so.6
<snipped>

Thread 7 (Thread 0x7fb47d020700 (LWP 9576)):
[KCrash Handler]
#6  0x00007fb483961619 in qHash (key=..., seed=888454470) at ../../include/QtCore/../../src/corelib/tools/qstring.h:239
#7  0x0000563b7224f79b in QHash<QString, Akonadi::Server::AbstractItemRetrievalJob*>::findNode (this=this@entry=0x563b73f7e968, akey=..., ahp=ahp@entry=0x0) at /usr/include/qt5/QtCore/qhash.h:928
#8  0x0000563b7224f80a in QHash<QString, Akonadi::Server::AbstractItemRetrievalJob*>::remove (this=this@entry=0x563b73f7e968, akey=...) at /usr/include/qt5/QtCore/qrefcount.h:102
#9  0x0000563b7224df12 in Akonadi::Server::ItemRetrievalManager::retrievalJobFinished (this=0x563b73f7e930, request=0x7fb430122390, errorMsg=...) at /usr/src/debug/akonadi-server-19.08.2-1.1.x86_64/src/server/storage/itemretrievalmanager.cpp:227
#10 0x00007fb483b01638 in QtPrivate::QSlotObjectBase::call (a=0x7fb47d01f800, r=0x563b73f7e930, this=0x7fb46801f9d0) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:394
#11 QMetaObject::activate (sender=0x7fb468015af0, signalOffset=<optimized out>, local_signal_index=<optimized out>, argv=<optimized out>) at kernel/qobject.cpp:3789
#12 0x0000563b72298b04 in Akonadi::Server::AbstractItemRetrievalJob::requestCompleted (this=this@entry=0x7fb468015af0, _t1=<optimized out>, _t2=...) at /usr/src/debug/akonadi-server-19.08.2-1.1.x86_64/build/src/server/libakonadiserver_autogen/5XLNPBDXWK/moc_itemretrievaljob.cpp:136
#13 0x0000563b7224feb3 in Akonadi::Server::ItemRetrievalJob::callFinished (this=0x7fb468015af0, watcher=<optimized out>) at /usr/include/qt5/QtCore/qchar.h:88
#14 0x00007fb483b01638 in QtPrivate::QSlotObjectBase::call (a=0x7fb47d01f9c0, r=0x7fb468015af0, this=0x7fb4780254e0) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:394
#15 QMetaObject::activate (sender=0x7fb468008280, signalOffset=<optimized out>, local_signal_index=<optimized out>, argv=<optimized out>) at kernel/qobject.cpp:3789
#16 0x00007fb483e5c93f in QDBusPendingCallWatcher::finished(QDBusPendingCallWatcher*) () from /usr/lib64/libQt5DBus.so.5
#17 0x00007fb483e5ca40 in ?? () from /usr/lib64/libQt5DBus.so.5
#18 0x00007fb483b01eea in QObject::event (this=0x7fb468008280, e=<optimized out>) at kernel/qobject.cpp:1260
#19 0x00007fb483ad654f in doNotify (event=0x7fb43017e550, receiver=0x7fb468008280) at ../../include/QtCore/../../src/corelib/kernel/qobject.h:143
#20 QCoreApplication::notify (event=0x7fb43017e550, receiver=0x7fb468008280, this=<optimized out>) at kernel/qcoreapplication.cpp:1171
#21 QCoreApplication::notifyInternal2 (receiver=0x7fb468008280, event=0x7fb43017e550) at kernel/qcoreapplication.cpp:1095
#22 0x00007fb483ad9208 in QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x563b73fc85d0) at kernel/qcoreapplication.cpp:1840
#23 0x00007fb483b2d343 in postEventSourceDispatch (s=0x7fb4680047c0) at kernel/qeventdispatcher_glib.cpp:277
#24 0x00007fb48209ad3d in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
#25 0x00007fb48209caf0 in ?? () from /usr/lib64/libglib-2.0.so.0
#26 0x00007fb48209cb2f in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#27 0x00007fb483b2c981 in QEventDispatcherGlib::processEvents (this=0x7fb468000b60, flags=...) at kernel/qeventdispatcher_glib.cpp:423
#28 0x00007fb483ad50db in QEventLoop::exec (this=this@entry=0x7fb47d01fda0, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:140
#29 0x00007fb48390d021 in QThread::exec (this=<optimized out>) at ../../include/QtCore/../../src/corelib/global/qflags.h:120
#30 0x00007fb48390e1a2 in QThreadPrivate::start (arg=0x563b73fc8500) at thread/qthread_unix.cpp:360
#31 0x00007fb482cd8f2a in start_thread () from /lib64/libpthread.so.0
#32 0x00007fb48357d4af in clone () from /lib64/libc.so.6
Comment 1 Sebastien Renard 2019-12-30 08:01:34 UTC
Same crash with similar stack trace. Happens very often by just "opening" a mail.
OpenSUSE LEAP 15.1 with stable KDE repo

akonadiserver 5.13.0 (19.12.0)
Qt 5.14.0
Frameworks 5.65.0
Comment 2 Daniel Vrátil 2020-03-23 18:04:24 UTC

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