Bug 435992

Summary: Akonadi crashed : Segmentation fault
Product: [Frameworks and Libraries] Akonadi Reporter: Dexter <dexter>
Component: serverAssignee: kdepim bugs <kdepim-bugs>
Status: REPORTED ---    
Severity: crash CC: matze
Priority: NOR Keywords: drkonqi
Version: unspecified   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: New crash information added by DrKonqi

Description Dexter 2021-04-21 07:26:53 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.69-default x86_64
Windowing system: X11
Distribution: "openSUSE Leap 15.2"

-- Information about the crash:
- What I was doing when the application crashed: Nothing. Akonadi was running in the background with Kontact on the desktop

-- Backtrace:
Application: Akonadi Server (akonadiserver), signal: Segmentation fault
[KCrash Handler]
#4  0x00007fdbf33bb1ec in std::__atomic_base<int>::load (__m=std::memory_order_relaxed, this=0x7fdb0000003b) at /usr/include/c++/7/bits/atomic_base.h:396
#5  QAtomicOps<int>::load<int> (_q_value=...) at ../../include/QtCore/../../src/corelib/thread/qatomic_cxx11.h:227
#6  QBasicAtomicInteger<int>::load (this=0x7fdb0000003b) at ../../include/QtCore/../../src/corelib/thread/qbasicatomic.h:103
#7  QtPrivate::RefCount::deref (this=0x7fdb0000003b) at ../../include/QtCore/../../src/corelib/tools/qrefcount.h:66
#8  QString::operator= (this=0x7fdba0147df8, other=...) at tools/qstring.cpp:2417
#9  0x00005613345df855 in ?? ()
#10 0x00007fdbf353df4f in QtPrivate::QSlotObjectBase::call (a=0x7fdbe3ffe710, r=0x56133510f0f0, this=0x7fdbd0006b90) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:394
#11 QMetaObject::activate (sender=0x7fdbd0007680, signalOffset=<optimized out>, local_signal_index=<optimized out>, argv=<optimized out>) at kernel/qobject.cpp:3784
#12 0x0000561334630764 in ?? ()
#13 0x00005613345e3164 in ?? ()
#14 0x00007fdbf353df4f in QtPrivate::QSlotObjectBase::call (a=0x7fdbe3ffe900, r=0x7fdbd0007680, this=0x7fdbd000b960) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:394
#15 QMetaObject::activate (sender=0x7fdbe4020070, signalOffset=<optimized out>, local_signal_index=local_signal_index@entry=0, argv=argv@entry=0x7fdbe3ffe900) at kernel/qobject.cpp:3784
#16 0x00007fdbf353e547 in QMetaObject::activate (sender=<optimized out>, m=m@entry=0x7fdbf3e975c0 <QDBusPendingCallWatcher::staticMetaObject>, local_signal_index=local_signal_index@entry=0, argv=argv@entry=0x7fdbe3ffe900) at kernel/qobject.cpp:3657
#17 0x00007fdbf3c7ad5f in QDBusPendingCallWatcher::finished (this=<optimized out>, _t1=<optimized out>) at .moc/moc_qdbuspendingcall.cpp:157
#18 0x00007fdbf353e9e2 in QObject::event (this=0x7fdbe4020070, e=<optimized out>) at kernel/qobject.cpp:1261
#19 0x00007fdbf350e311 in doNotify (event=0x7fdba00802c0, receiver=0x7fdbe4020070) at kernel/qcoreapplication.cpp:1178
#20 QCoreApplication::notify (event=<optimized out>, receiver=<optimized out>, this=<optimized out>) at kernel/qcoreapplication.cpp:1164
#21 QCoreApplication::notifyInternal2 (receiver=0x7fdbe4020070, event=0x7fdba00802c0) at kernel/qcoreapplication.cpp:1088
#22 0x00007fdbf350e4fe in QCoreApplication::sendEvent (receiver=<optimized out>, event=event@entry=0x7fdba00802c0) at kernel/qcoreapplication.cpp:1476
#23 0x00007fdbf3510ee7 in QCoreApplicationPrivate::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=0, data=0x56133511b650) at kernel/qcoreapplication.cpp:1825
#24 0x00007fdbf3511488 in QCoreApplication::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=0) at kernel/qcoreapplication.cpp:1679
#25 0x00007fdbf356bd93 in postEventSourceDispatch (s=0x7fdbd0004b70) at kernel/qeventdispatcher_glib.cpp:276
#26 0x00007fdbef0dc624 in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
#27 0x00007fdbef0dc9c0 in ?? () from /usr/lib64/libglib-2.0.so.0
#28 0x00007fdbef0dca4c in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#29 0x00007fdbf356b3af in QEventDispatcherGlib::processEvents (this=0x7fdbd0000b10, flags=...) at kernel/qeventdispatcher_glib.cpp:422
#30 0x00007fdbf350c57a in QEventLoop::exec (this=this@entry=0x7fdbe3ffecb0, flags=..., flags@entry=...) at kernel/qeventloop.cpp:225
#31 0x00007fdbf333190a in QThread::exec (this=<optimized out>) at thread/qthread.cpp:531
#32 0x00007fdbf33330b2 in QThreadPrivate::start (arg=0x561335102910) at thread/qthread_unix.cpp:361
#33 0x00007fdbf16da4f9 in start_thread () from /lib64/libpthread.so.0
#34 0x00007fdbf29b2ecf in clone () from /lib64/libc.so.6

Thread 4 (Thread 0x7fdbe8809700 (LWP 12966) "CacheCleaner-Th"):
#1  0x00007fdbef124090 in ?? () from /usr/lib64/libglib-2.0.so.0
#2  0x00007fdbef0dc458 in g_main_context_check () from /usr/lib64/libglib-2.0.so.0
#3  0x00007fdbef0dc8e0 in ?? () from /usr/lib64/libglib-2.0.so.0
#4  0x00007fdbef0dca4c in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#5  0x00007fdbf356b3cb in QEventDispatcherGlib::processEvents (this=0x7fdbd8000b10, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#6  0x00007fdbf350c57a in QEventLoop::exec (this=this@entry=0x7fdbe8808cb0, flags=..., flags@entry=...) at kernel/qeventloop.cpp:225
#7  0x00007fdbf333190a in QThread::exec (this=<optimized out>) at thread/qthread.cpp:531
#8  0x00007fdbf33330b2 in QThreadPrivate::start (arg=0x561335101ae0) at thread/qthread_unix.cpp:361
#9  0x00007fdbf16da4f9 in start_thread () from /lib64/libpthread.so.0
#10 0x00007fdbf29b2ecf in clone () from /lib64/libc.so.6

Thread 3 (Thread 0x7fdbe900a700 (LWP 12964) "NotificationMan"):
#1  0x00007fdbef0dc939 in ?? () from /usr/lib64/libglib-2.0.so.0
#2  0x00007fdbef0dca4c in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#3  0x00007fdbf356b3cb in QEventDispatcherGlib::processEvents (this=0x7fdbdc000b10, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#4  0x00007fdbf350c57a in QEventLoop::exec (this=this@entry=0x7fdbe9009cb0, flags=..., flags@entry=...) at kernel/qeventloop.cpp:225
#5  0x00007fdbf333190a in QThread::exec (this=<optimized out>) at thread/qthread.cpp:531
#6  0x00007fdbf33330b2 in QThreadPrivate::start (arg=0x5613350f79b0) at thread/qthread_unix.cpp:361
#7  0x00007fdbf16da4f9 in start_thread () from /lib64/libpthread.so.0
#8  0x00007fdbf29b2ecf in clone () from /lib64/libc.so.6

Thread 2 (Thread 0x7fdbe9cdc700 (LWP 12924) "QDBusConnection"):
#1  0x00007fdbef124090 in ?? () from /usr/lib64/libglib-2.0.so.0
#2  0x00007fdbef0dc458 in g_main_context_check () from /usr/lib64/libglib-2.0.so.0
#3  0x00007fdbef0dc8e0 in ?? () from /usr/lib64/libglib-2.0.so.0
#4  0x00007fdbef0dca4c in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#5  0x00007fdbf356b3cb in QEventDispatcherGlib::processEvents (this=0x7fdbe4000b10, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#6  0x00007fdbf350c57a in QEventLoop::exec (this=this@entry=0x7fdbe9cdbc80, flags=..., flags@entry=...) at kernel/qeventloop.cpp:225
#7  0x00007fdbf333190a in QThread::exec (this=this@entry=0x7fdbf3e99420 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at thread/qthread.cpp:531
#8  0x00007fdbf3c20e65 in QDBusConnectionManager::run (this=0x7fdbf3e99420 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at qdbusconnection.cpp:178
#9  0x00007fdbf33330b2 in QThreadPrivate::start (arg=0x7fdbf3e99420 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at thread/qthread_unix.cpp:361
#10 0x00007fdbf16da4f9 in start_thread () from /lib64/libpthread.so.0
#11 0x00007fdbf29b2ecf in clone () from /lib64/libc.so.6

Thread 1 (Thread 0x7fdbf4db7900 (LWP 12921) "akonadiserver"):
#1  0x00007fdbef0dc939 in ?? () from /usr/lib64/libglib-2.0.so.0
#2  0x00007fdbef0dca4c in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#3  0x00007fdbf356b3af in QEventDispatcherGlib::processEvents (this=0x5613350e2c00, flags=...) at kernel/qeventdispatcher_glib.cpp:422
#4  0x00007fdbf350c57a in QEventLoop::exec (this=this@entry=0x7fff2ca1cc90, flags=..., flags@entry=...) at kernel/qeventloop.cpp:225
#5  0x00007fdbf3515780 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1389
#6  0x00005613344a46e0 in ?? ()
#7  0x00007fdbf28db34a in __libc_start_main () from /lib64/libc.so.6
#8  0x00005613344a70ba in ?? ()
[Inferior 1 (process 12921) detached]

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

Possible duplicates by query: bug 435332, bug 434725, bug 434205, bug 434107, bug 433252.

Reported using DrKonqi
Comment 1 Matthias Welwarsky 2021-07-06 15:37:49 UTC
Created attachment 139903 [details]
New crash information added by DrKonqi

akonadiserver (5.14.2 (20.04.2)) using Qt 5.12.7

- What I was doing when the application crashed:

I started Kmail, then akonadi crashed. When just starting akonadi (through "akonadictl start") it doesn't crash, but immediately does so when Kmail is started.

-- Backtrace (Reduced):
#4  0x00007f63e37f21ec in std::__atomic_base<int>::load (__m=std::memory_order_relaxed, this=0x0) at /usr/include/c++/7/bits/atomic_base.h:396
#5  QAtomicOps<int>::load<int> (_q_value=...) at ../../include/QtCore/../../src/corelib/thread/qatomic_cxx11.h:227
#6  QBasicAtomicInteger<int>::load (this=0x0) at ../../include/QtCore/../../src/corelib/thread/qbasicatomic.h:103
[...]
#8  QString::operator= (this=0x559c583c2ac8, other=...) at tools/qstring.cpp:2417
[...]
#10 0x00007f63e3974f4f in QtPrivate::QSlotObjectBase::call (a=0x7f63d3ffe710, r=0x559c582bc230, this=0x7f63c4006d60) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:394