Bug 420495 - Akonadi Crashes upon removal of duplicates in folder
Summary: Akonadi Crashes upon removal of duplicates in folder
Status: RESOLVED DUPLICATE of bug 408897
Alias: None
Product: Akonadi
Classification: Frameworks and Libraries
Component: server (show other bugs)
Version: unspecified
Platform: openSUSE Linux
: NOR crash
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2020-04-24 05:17 UTC by Frits Spieker
Modified: 2020-06-14 11:47 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Frits Spieker 2020-04-24 05:17:02 UTC
Application: akonadiserver (5.13.3 (19.12.3))

Qt Version: 5.14.1
Frameworks Version: 5.69.0
Operating System: Linux 5.6.4-1-default x86_64
Windowing system: X11
Distribution: "openSUSE Tumbleweed"

-- Information about the crash:
- What I was doing when the application crashed:
As, once again, many duplicates are showing up in some folders I wanted to use the "remove duplicates in folder" functionality. This makes akonadi crash every time.

The crash can be reproduced every time.

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

Thread 6 (Thread 0x7f12897fa700 (LWP 18231)):
#0  0x00007f1293a5e629 in g_mutex_lock () from /usr/lib64/libglib-2.0.so.0
#1  0x00007f1293a13324 in ?? () from /usr/lib64/libglib-2.0.so.0
#2  0x00007f1293a1345f in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#3  0x00007f1295488c0b in QEventDispatcherGlib::processEvents (this=0x7f126c000b60, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#4  0x00007f1295430b9b in QEventLoop::exec (this=this@entry=0x7f12897f9da0, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:136
#5  0x00007f129525b5ce in QThread::exec (this=<optimized out>) at ../../include/QtCore/../../src/corelib/global/qflags.h:118
#6  0x00007f129525c698 in QThreadPrivate::start (arg=0x55c9d81878c0) at thread/qthread_unix.cpp:342
#7  0x00007f1294722efa in start_thread () from /lib64/libpthread.so.0
#8  0x00007f1295c243bf in clone () from /lib64/libc.so.6

Thread 5 (Thread 0x7f1289ffb700 (LWP 18230)):
#0  0x00007f1294729795 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f12952621db in QWaitConditionPrivate::wait (deadline=..., this=0x55c9d8159a30) at thread/qwaitcondition_unix.cpp:146
#2  QWaitCondition::wait (this=<optimized out>, mutex=0x55c9d8187170, deadline=...) at thread/qwaitcondition_unix.cpp:225
#3  0x00007f1295262299 in QWaitCondition::wait (this=this@entry=0x55c9d8187168, mutex=mutex@entry=0x55c9d8187170, time=time@entry=18446744073709551615) at ../../include/QtCore/../../src/corelib/kernel/qdeadlinetimer.h:68
#4  0x000055c9d804560c in Akonadi::Server::SearchTaskManager::searchLoop (this=0x55c9d8187140) at /usr/src/debug/akonadi-server-19.12.3-1.1.x86_64/src/server/search/searchtaskmanager.cpp:221
#5  0x00007f129545ea19 in QObject::event (this=0x55c9d8187140, e=0x55c9d8187680) at kernel/qobject.cpp:1339
#6  0x00007f1295431fdf in doNotify (event=0x55c9d8187680, receiver=0x55c9d8187140) at ../../include/QtCore/../../src/corelib/kernel/qobject.h:153
#7  QCoreApplication::notify (event=0x55c9d8187680, receiver=0x55c9d8187140, this=<optimized out>) at kernel/qcoreapplication.cpp:1168
#8  QCoreApplication::notifyInternal2 (receiver=0x55c9d8187140, event=0x55c9d8187680) at kernel/qcoreapplication.cpp:1092
#9  0x00007f1295434794 in QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x55c9d81872f0) at kernel/qcoreapplication.cpp:1832
#10 0x00007f1295489573 in postEventSourceDispatch (s=0x7f1268004fe0) at kernel/qeventdispatcher_glib.cpp:277
#11 0x00007f1293a13048 in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
#12 0x00007f1293a133d0 in ?? () from /usr/lib64/libglib-2.0.so.0
#13 0x00007f1293a1345f in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#14 0x00007f1295488bee in QEventDispatcherGlib::processEvents (this=0x7f1268000b60, flags=...) at kernel/qeventdispatcher_glib.cpp:423
#15 0x00007f1295430b9b in QEventLoop::exec (this=this@entry=0x7f1289ffada0, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:136
#16 0x00007f129525b5ce in QThread::exec (this=<optimized out>) at ../../include/QtCore/../../src/corelib/global/qflags.h:118
#17 0x00007f129525c698 in QThreadPrivate::start (arg=0x55c9d8187240) at thread/qthread_unix.cpp:342
#18 0x00007f1294722efa in start_thread () from /lib64/libpthread.so.0
#19 0x00007f1295c243bf in clone () from /lib64/libc.so.6

Thread 4 (Thread 0x7f128a7fc700 (LWP 18229)):
[KCrash Handler]
#6  0x00007f12952dca4e in std::__atomic_base<int>::load (__m=std::memory_order_relaxed, this=0x0) at /usr/include/c++/9/bits/atomic_base.h:413
#7  QAtomicOps<int>::loadRelaxed<int> (_q_value=...) at ../../include/QtCore/../../src/corelib/thread/qatomic_cxx11.h:239
#8  QBasicAtomicInteger<int>::loadRelaxed (this=0x0) at ../../include/QtCore/../../src/corelib/thread/qbasicatomic.h:107
#9  QtPrivate::RefCount::deref (this=0x0) at ../../include/QtCore/../../src/corelib/tools/qrefcount.h:66
#10 QString::operator= (this=this@entry=0x7f125c130608, other=...) at text/qstring.cpp:2398
#11 0x000055c9d7feb1db in Akonadi::Server::ItemRetrievalManager::retrievalJobFinished (this=0x55c9d8186c80, request=0x7f125c1305f0, errorMsg=...) at /usr/src/debug/akonadi-server-19.12.3-1.1.x86_64/src/server/storage/itemretrievalmanager.cpp:189
#12 0x00007f12954669fe in QtPrivate::QSlotObjectBase::call (a=0x7f128a7fb810, r=0x55c9d8186c80, this=0x7f1274004ce0) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:394
#13 doActivate<false> (sender=0x7f1274006cd0, signal_index=3, argv=0x7f128a7fb810) at kernel/qobject.cpp:3870
#14 0x00007f12954611bf in QMetaObject::activate (sender=<optimized out>, m=m@entry=0x55c9d80f47a0 <Akonadi::Server::AbstractItemRetrievalJob::staticMetaObject>, local_signal_index=local_signal_index@entry=0, argv=argv@entry=0x7f128a7fb810) at kernel/qobject.cpp:3930
#15 0x000055c9d7fb4334 in Akonadi::Server::AbstractItemRetrievalJob::requestCompleted (this=<optimized out>, _t1=<optimized out>, _t2=...) at /usr/src/debug/akonadi-server-19.12.3-1.1.x86_64/build/src/server/libakonadiserver_autogen/5XLNPBDXWK/moc_itemretrievaljob.cpp:136
#16 0x000055c9d7fe0838 in Akonadi::Server::ItemRetrievalJob::callFinished (this=0x7f1274006cd0, watcher=<optimized out>) at /usr/include/qt5/QtCore/qarraydata.h:257
#17 0x00007f12954669fe in QtPrivate::QSlotObjectBase::call (a=0x7f128a7fb9c0, r=0x7f1274006cd0, this=0x7f1274004d10) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:394
#18 doActivate<false> (sender=0x7f127400f260, signal_index=3, argv=0x7f128a7fb9c0) at kernel/qobject.cpp:3870
#19 0x00007f12957b9a5f in QDBusPendingCallWatcher::finished(QDBusPendingCallWatcher*) () from /usr/lib64/libQt5DBus.so.5
#20 0x00007f12957b9b60 in ?? () from /usr/lib64/libQt5DBus.so.5
#21 0x00007f129545ea19 in QObject::event (this=0x7f127400f260, e=0x7f125c09d8a0) at kernel/qobject.cpp:1339
#22 0x00007f1295431fdf in doNotify (event=0x7f125c09d8a0, receiver=0x7f127400f260) at ../../include/QtCore/../../src/corelib/kernel/qobject.h:153
#23 QCoreApplication::notify (event=0x7f125c09d8a0, receiver=0x7f127400f260, this=<optimized out>) at kernel/qcoreapplication.cpp:1168
#24 QCoreApplication::notifyInternal2 (receiver=0x7f127400f260, event=0x7f125c09d8a0) at kernel/qcoreapplication.cpp:1092
#25 0x00007f1295434794 in QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x55c9d8186de0) at kernel/qcoreapplication.cpp:1832
#26 0x00007f1295489573 in postEventSourceDispatch (s=0x7f12740047b0) at kernel/qeventdispatcher_glib.cpp:277
#27 0x00007f1293a13048 in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
#28 0x00007f1293a133d0 in ?? () from /usr/lib64/libglib-2.0.so.0
#29 0x00007f1293a1345f in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#30 0x00007f1295488bee in QEventDispatcherGlib::processEvents (this=0x7f1274000b60, flags=...) at kernel/qeventdispatcher_glib.cpp:423
#31 0x00007f1295430b9b in QEventLoop::exec (this=this@entry=0x7f128a7fbda0, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:136
#32 0x00007f129525b5ce in QThread::exec (this=<optimized out>) at ../../include/QtCore/../../src/corelib/global/qflags.h:118
#33 0x00007f129525c698 in QThreadPrivate::start (arg=0x55c9d8186dc0) at thread/qthread_unix.cpp:342
#34 0x00007f1294722efa in start_thread () from /lib64/libpthread.so.0
#35 0x00007f1295c243bf in clone () from /lib64/libc.so.6

Thread 3 (Thread 0x7f1290954700 (LWP 18225)):
#0  0x00007f1293a11532 in ?? () from /usr/lib64/libglib-2.0.so.0
#1  0x00007f1293a12caf in g_main_context_check () from /usr/lib64/libglib-2.0.so.0
#2  0x00007f1293a132e2 in ?? () from /usr/lib64/libglib-2.0.so.0
#3  0x00007f1293a1345f in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#4  0x00007f1295488c0b in QEventDispatcherGlib::processEvents (this=0x7f1284000b60, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#5  0x00007f1295430b9b in QEventLoop::exec (this=this@entry=0x7f1290953da0, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:136
#6  0x00007f129525b5ce in QThread::exec (this=<optimized out>) at ../../include/QtCore/../../src/corelib/global/qflags.h:118
#7  0x00007f129525c698 in QThreadPrivate::start (arg=0x55c9d8142220) at thread/qthread_unix.cpp:342
#8  0x00007f1294722efa in start_thread () from /lib64/libpthread.so.0
#9  0x00007f1295c243bf in clone () from /lib64/libc.so.6

Thread 2 (Thread 0x7f1291228700 (LWP 18222)):
#0  0x00007f1295c19acf in poll () from /lib64/libc.so.6
#1  0x00007f1293a1333e in ?? () from /usr/lib64/libglib-2.0.so.0
#2  0x00007f1293a1345f in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#3  0x00007f1295488c0b in QEventDispatcherGlib::processEvents (this=0x7f128c000b60, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#4  0x00007f1295430b9b in QEventLoop::exec (this=this@entry=0x7f1291227d70, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:136
#5  0x00007f129525b5ce in QThread::exec (this=<optimized out>) at ../../include/QtCore/../../src/corelib/global/qflags.h:118
#6  0x00007f1295757507 in ?? () from /usr/lib64/libQt5DBus.so.5
#7  0x00007f129525c698 in QThreadPrivate::start (arg=0x7f12957d9da0) at thread/qthread_unix.cpp:342
#8  0x00007f1294722efa in start_thread () from /lib64/libpthread.so.0
#9  0x00007f1295c243bf in clone () from /lib64/libc.so.6

Thread 1 (Thread 0x7f1292ce6800 (LWP 18221)):
#0  0x00007f1294729aaa in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f1295262164 in QWaitConditionPrivate::wait_relative (this=0x55c9d81505d0, deadline=...) at thread/qwaitcondition_unix.cpp:136
#2  QWaitConditionPrivate::wait (deadline=..., this=0x55c9d81505d0) at thread/qwaitcondition_unix.cpp:144
#3  QWaitCondition::wait (this=<optimized out>, mutex=0x55c9d813f0c8, deadline=...) at thread/qwaitcondition_unix.cpp:225
#4  0x00007f1295262267 in QWaitCondition::wait (this=this@entry=0x55c9d813f0e8, mutex=mutex@entry=0x55c9d813f0c8, time=time@entry=10000) at thread/qwaitcondition_unix.cpp:209
#5  0x00007f129525c36e in QThread::wait (this=<optimized out>, time=time@entry=10000) at ../../include/QtCore/../../src/corelib/thread/qmutex.h:270
#6  0x000055c9d7fac847 in Akonadi::Server::AkThread::quitThread (this=0x55c9d8186c80) at /usr/src/debug/akonadi-server-19.12.3-1.1.x86_64/src/server/akthread.cpp:70
#7  0x000055c9d7fe9753 in Akonadi::Server::ItemRetrievalManager::~ItemRetrievalManager (this=<optimized out>, this=<optimized out>) at /usr/src/debug/akonadi-server-19.12.3-1.1.x86_64/src/server/storage/itemretrievalmanager.cpp:65
#8  0x000055c9d7fe9829 in Akonadi::Server::ItemRetrievalManager::~ItemRetrievalManager (this=<optimized out>, this=<optimized out>) at /usr/src/debug/akonadi-server-19.12.3-1.1.x86_64/src/server/storage/itemretrievalmanager.cpp:68
#9  0x000055c9d808c2bc in Akonadi::Server::AkonadiServer::quit (this=0x55c9d8137720) at /usr/src/debug/akonadi-server-19.12.3-1.1.x86_64/src/server/akonadi.cpp:271
#10 0x000055c9d7f91d2a in main (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/akonadi-server-19.12.3-1.1.x86_64/src/server/main.cpp:81
[Inferior 1 (process 18221) detached]

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

Possible duplicates by query: bug 420184, bug 417542, bug 416416, bug 415815, bug 414147.

Reported using DrKonqi
Comment 1 Daniel Vrátil 2020-06-14 11:47:16 UTC

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