Bug 430698

Summary: akonadi crashes in case of opening addressbook
Product: [Frameworks and Libraries] Akonadi Reporter: thomes
Component: serverAssignee: kdepim bugs <kdepim-bugs>
Status: REPORTED ---    
Severity: crash Keywords: drkonqi
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description thomes 2020-12-22 09:16:59 UTC
Application: akonadiserver (5.14.2 (20.04.2))

Qt Version: 5.12.7
Frameworks Version: 5.71.0
Operating System: Linux 5.3.18-lp152.152.g8c0e3b7-default x86_64
Windowing system: X11
Distribution: "openSUSE Leap 15.2"

-- Information about the crash:
- What I was doing when the application crashed:
open adressbook
addressbook told "akonadi is not running - please press start"
while aconadi tries to start it crashes

The crash can be reproduced every time.

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

Thread 5 (Thread 0x7f8689a08700 (LWP 2850)):
[KCrash Handler]
#4  0x00007f869431c520 in raise () from /lib64/libc.so.6
#5  0x00007f869431db01 in abort () from /lib64/libc.so.6
#6  0x00007f869435f957 in __libc_message () from /lib64/libc.so.6
#7  0x00007f8694366173 in malloc_printerr () from /lib64/libc.so.6
#8  0x00007f8694367a79 in _int_free () from /lib64/libc.so.6
#9  0x00005599bd08076f in QTypedArrayData<unsigned short>::deallocate (data=<optimized out>) at /usr/include/qt5/QtCore/qarraydata.h:239
#10 QString::~QString (this=0x7f86640a1530, __in_chrg=<optimized out>) at /usr/include/qt5/QtCore/qstring.h:1135
#11 QHashNode<QString, QList<Akonadi::Server::ItemRetrievalRequest*> >::~QHashNode (this=<optimized out>, __in_chrg=<optimized out>) at /usr/include/qt5/QtCore/qhash.h:149
#12 QHash<QString, QList<Akonadi::Server::ItemRetrievalRequest*> >::deleteNode2 (node=0x7f86640a1520) at /usr/include/qt5/QtCore/qhash.h:547
#13 QHash<QString, QList<Akonadi::Server::ItemRetrievalRequest*> >::deleteNode (node=0x7f86640a1520, this=0x5599bdc17f10) at /usr/include/qt5/QtCore/qhash.h:537
#14 QHash<QString, QList<Akonadi::Server::ItemRetrievalRequest*> >::erase (this=this@entry=0x5599bdc17f10, it=..., it@entry=...) at /usr/include/qt5/QtCore/qhash.h:874
#15 0x00005599bd07f1ff in QHash<QString, QList<Akonadi::Server::ItemRetrievalRequest*> >::erase (it=..., this=0x5599bdc17f10) at /usr/include/qt5/QtCore/qhash.h:477
#16 Akonadi::Server::ItemRetrievalManager::processRequest (this=<optimized out>) at /usr/src/debug/akonadi-server-20.04.2-lp152.2.3.1.x86_64/src/server/storage/itemretrievalmanager.cpp:136
#17 0x00007f8694f6a9e2 in QObject::event (this=0x5599bdc17ee0, e=<optimized out>) at kernel/qobject.cpp:1261
#18 0x00007f8694f3a311 in doNotify (event=0x7f8684017d60, receiver=0x5599bdc17ee0) at kernel/qcoreapplication.cpp:1178
#19 QCoreApplication::notify (event=<optimized out>, receiver=<optimized out>, this=<optimized out>) at kernel/qcoreapplication.cpp:1164
#20 QCoreApplication::notifyInternal2 (receiver=0x5599bdc17ee0, event=0x7f8684017d60) at kernel/qcoreapplication.cpp:1088
#21 0x00007f8694f3a4fe in QCoreApplication::sendEvent (receiver=<optimized out>, event=event@entry=0x7f8684017d60) at kernel/qcoreapplication.cpp:1476
#22 0x00007f8694f3cee7 in QCoreApplicationPrivate::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=0, data=0x5599bdc67a30) at kernel/qcoreapplication.cpp:1825
#23 0x00007f8694f3d488 in QCoreApplication::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=0) at kernel/qcoreapplication.cpp:1679
#24 0x00007f8694f97d93 in postEventSourceDispatch (s=0x7f8664004770) at kernel/qeventdispatcher_glib.cpp:276
#25 0x00007f8690b084a4 in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
#26 0x00007f8690b08840 in ?? () from /usr/lib64/libglib-2.0.so.0
#27 0x00007f8690b088cc in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#28 0x00007f8694f973af in QEventDispatcherGlib::processEvents (this=0x7f8664000b10, flags=...) at kernel/qeventdispatcher_glib.cpp:422
#29 0x00007f8694f3857a in QEventLoop::exec (this=this@entry=0x7f8689a07cb0, flags=..., flags@entry=...) at kernel/qeventloop.cpp:225
#30 0x00007f8694d5d90a in QThread::exec (this=<optimized out>) at thread/qthread.cpp:531
#31 0x00007f8694d5f0b2 in QThreadPrivate::start (arg=0x5599bdc0bb20) at thread/qthread_unix.cpp:361
#32 0x00007f86931064f9 in start_thread () from /lib64/libpthread.so.0
#33 0x00007f86943defbf in clone () from /lib64/libc.so.6

Thread 4 (Thread 0x7f868a209700 (LWP 2849)):
#0  0x00007f8694f96cbf in qt_gettime () at kernel/qelapsedtimer_unix.cpp:182
#1  0x00007f8694f954e9 in QTimerInfoList::updateCurrentTime (this=this@entry=0x7f8668005120) at kernel/qtimerinfo_unix.cpp:91
#2  0x00007f8694f95ac5 in QTimerInfoList::timerWait (this=0x7f8668005120, tm=...) at kernel/qtimerinfo_unix.cpp:388
#3  0x00007f8694f9710e in timerSourcePrepareHelper (timeout=0x7f868a208ae4, src=<optimized out>) at kernel/qeventdispatcher_glib.cpp:132
#4  timerSourcePrepare (source=<optimized out>, timeout=0x7f868a208ae4) at kernel/qeventdispatcher_glib.cpp:165
#5  0x00007f8690b07d19 in g_main_context_prepare () from /usr/lib64/libglib-2.0.so.0
#6  0x00007f8690b086eb in ?? () from /usr/lib64/libglib-2.0.so.0
#7  0x00007f8690b088cc in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#8  0x00007f8694f973cb in QEventDispatcherGlib::processEvents (this=0x7f8668000b10, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#9  0x00007f8694f3857a in QEventLoop::exec (this=this@entry=0x7f868a208cb0, flags=..., flags@entry=...) at kernel/qeventloop.cpp:225
#10 0x00007f8694d5d90a in QThread::exec (this=<optimized out>) at thread/qthread.cpp:531
#11 0x00007f8694d5f0b2 in QThreadPrivate::start (arg=0x5599bdbea750) at thread/qthread_unix.cpp:361
#12 0x00007f86931064f9 in start_thread () from /lib64/libpthread.so.0
#13 0x00007f86943defbf in clone () from /lib64/libc.so.6

Thread 3 (Thread 0x7f868aa0a700 (LWP 2837)):
#0  0x00007f86943d46db in poll () from /lib64/libc.so.6
#1  0x00007f8690b087b9 in ?? () from /usr/lib64/libglib-2.0.so.0
#2  0x00007f8690b088cc in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#3  0x00007f8694f973cb in QEventDispatcherGlib::processEvents (this=0x7f867c000b10, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#4  0x00007f8694f3857a in QEventLoop::exec (this=this@entry=0x7f868aa09cb0, flags=..., flags@entry=...) at kernel/qeventloop.cpp:225
#5  0x00007f8694d5d90a in QThread::exec (this=<optimized out>) at thread/qthread.cpp:531
#6  0x00007f8694d5f0b2 in QThreadPrivate::start (arg=0x5599bdc007f0) at thread/qthread_unix.cpp:361
#7  0x00007f86931064f9 in start_thread () from /lib64/libpthread.so.0
#8  0x00007f86943defbf in clone () from /lib64/libc.so.6

Thread 2 (Thread 0x7f868b708700 (LWP 2706)):
#0  0x00007f86943d01d8 in read () from /lib64/libc.so.6
#1  0x00007f8690b4fe20 in ?? () from /usr/lib64/libglib-2.0.so.0
#2  0x00007f8690b082d8 in g_main_context_check () from /usr/lib64/libglib-2.0.so.0
#3  0x00007f8690b08760 in ?? () from /usr/lib64/libglib-2.0.so.0
#4  0x00007f8690b088cc in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#5  0x00007f8694f973cb in QEventDispatcherGlib::processEvents (this=0x7f8684000b10, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#6  0x00007f8694f3857a in QEventLoop::exec (this=this@entry=0x7f868b707c80, flags=..., flags@entry=...) at kernel/qeventloop.cpp:225
#7  0x00007f8694d5d90a in QThread::exec (this=<optimized out>) at thread/qthread.cpp:531
#8  0x00007f869564ce65 in ?? () from /usr/lib64/libQt5DBus.so.5
#9  0x00007f8694d5f0b2 in QThreadPrivate::start (arg=0x7f86958c5420) at thread/qthread_unix.cpp:361
#10 0x00007f86931064f9 in start_thread () from /lib64/libpthread.so.0
#11 0x00007f86943defbf in clone () from /lib64/libc.so.6

Thread 1 (Thread 0x7f86967db900 (LWP 2696)):
#0  0x00007f869310cbab in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f8694d66176 in QWaitConditionPrivate::wait_relative (this=0x5599bdc213f0, deadline=...) at thread/qwaitcondition_unix.cpp:136
#2  QWaitConditionPrivate::wait (deadline=..., this=0x5599bdc213f0) at thread/qwaitcondition_unix.cpp:144
#3  QWaitCondition::wait (this=<optimized out>, mutex=0x5599bdc679f0, deadline=...) at thread/qwaitcondition_unix.cpp:225
#4  0x00007f8694d664d6 in QWaitCondition::wait (this=this@entry=0x5599bdc67a10, mutex=mutex@entry=0x5599bdc679f0, time=time@entry=10000) at thread/qwaitcondition_unix.cpp:209
#5  0x00007f8694d5ec8e in QThread::wait (this=<optimized out>, time=time@entry=10000) at thread/qthread_unix.cpp:783
#6  0x00005599bd0d60e2 in Akonadi::Server::AkThread::quitThread (this=0x5599bdc17ee0) at /usr/src/debug/akonadi-server-20.04.2-lp152.2.3.1.x86_64/src/server/akthread.cpp:69
#7  0x00005599bd07cca7 in Akonadi::Server::ItemRetrievalManager::~ItemRetrievalManager (this=0x5599bdc17ee0, __in_chrg=<optimized out>) at /usr/src/debug/akonadi-server-20.04.2-lp152.2.3.1.x86_64/src/server/storage/itemretrievalmanager.cpp:60
#8  0x00005599bd07cd59 in Akonadi::Server::ItemRetrievalManager::~ItemRetrievalManager (this=0x5599bdc17ee0, __in_chrg=<optimized out>) at /usr/src/debug/akonadi-server-20.04.2-lp152.2.3.1.x86_64/src/server/storage/itemretrievalmanager.cpp:61
#9  0x00005599bcf47b68 in std::default_delete<Akonadi::Server::ItemRetrievalManager>::operator() (this=<optimized out>, __ptr=<optimized out>) at /usr/include/c++/7/bits/unique_ptr.h:78
#10 std::unique_ptr<Akonadi::Server::ItemRetrievalManager, std::default_delete<Akonadi::Server::ItemRetrievalManager> >::reset (__p=<optimized out>, this=0x7fff8229e6c8) at /usr/include/c++/7/bits/unique_ptr.h:371
#11 Akonadi::Server::AkonadiServer::quit (this=0x7fff8229e660) at /usr/src/debug/akonadi-server-20.04.2-lp152.2.3.1.x86_64/src/server/akonadi.cpp:204
#12 0x00005599bcf4276f in main (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/akonadi-server-20.04.2-lp152.2.3.1.x86_64/src/server/main.cpp:82
[Inferior 1 (process 2696) detached]

Possible duplicates by query: bug 74946, bug 424171, bug 418026, bug 414229, bug 413708.

Reported using DrKonqi