Bug 379809 - akonadiserver crashes with SIGSEGV after "akonadictl stop"
Summary: akonadiserver crashes with SIGSEGV after "akonadictl stop"
Status: RESOLVED FIXED
Alias: None
Product: Akonadi
Classification: Frameworks and Libraries
Component: server (show other bugs)
Version: 5.5.1
Platform: Arch Linux Linux
: NOR crash
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2017-05-14 12:09 UTC by Oleksandr Natalenko
Modified: 2017-05-20 07:35 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In: 5.5.2
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Oleksandr Natalenko 2017-05-14 12:09:10 UTC
Application: akonadiserver (5.5.1)

Qt Version: 5.8.0
Frameworks Version: 5.33.0
Operating System: Linux 4.11.0-pf2 x86_64
Distribution (Platform): Archlinux Packages

-- Information about the crash:
- What I was doing when the application crashed:

Invoking "akonadictl stop" or logging out from KDE session triggers akonadiserver crash with SIGSEGV.

This is latest Arch Linux with "akonadi" and "qt5-base" recompiled with debug info enabled. The same crash occurs with non-debug packages.

The crash can be reproduced every time.

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

Thread 15 (Thread 0x7f96f97fa700 (LWP 26629)):
#0  0x00007f9772971b63 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /usr/lib/libpthread.so.0
#1  0x00007f9774578ba1 in QWaitConditionPrivate::wait_relative (this=0x7f975c09ed20, time=30000) at thread/qwaitcondition_unix.cpp:133
#2  0x00007f9774578bce in QWaitConditionPrivate::wait (this=0x7f975c09ed20, time=30000) at thread/qwaitcondition_unix.cpp:141
#3  0x00007f97745789c5 in QWaitCondition::wait (this=0x7f975c09eb60, mutex=0x7f975c003570, time=30000) at thread/qwaitcondition_unix.cpp:215
#4  0x00007f9774571104 in QThreadPoolThread::run (this=0x7f975c09eb50) at thread/qthreadpool.cpp:133
#5  0x00007f9774577438 in QThreadPrivate::start (arg=0x7f975c09eb50) at thread/qthread_unix.cpp:368
#6  0x00007f977296b2e7 in start_thread () from /usr/lib/libpthread.so.0
#7  0x00007f9773c6254f in clone () from /usr/lib/libc.so.6

Thread 14 (Thread 0x7f96f9ffb700 (LWP 26628)):
#0  0x00007f9772971b63 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /usr/lib/libpthread.so.0
#1  0x00007f9774578ba1 in QWaitConditionPrivate::wait_relative (this=0x7f975c09e8b0, time=30000) at thread/qwaitcondition_unix.cpp:133
#2  0x00007f9774578bce in QWaitConditionPrivate::wait (this=0x7f975c09e8b0, time=30000) at thread/qwaitcondition_unix.cpp:141
#3  0x00007f97745789c5 in QWaitCondition::wait (this=0x7f975c09e6f0, mutex=0x7f975c003570, time=30000) at thread/qwaitcondition_unix.cpp:215
#4  0x00007f9774571104 in QThreadPoolThread::run (this=0x7f975c09e6e0) at thread/qthreadpool.cpp:133
#5  0x00007f9774577438 in QThreadPrivate::start (arg=0x7f975c09e6e0) at thread/qthread_unix.cpp:368
#6  0x00007f977296b2e7 in start_thread () from /usr/lib/libpthread.so.0
#7  0x00007f9773c6254f in clone () from /usr/lib/libc.so.6

Thread 13 (Thread 0x7f96fa7fc700 (LWP 26627)):
#0  0x00007f9772971b63 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /usr/lib/libpthread.so.0
#1  0x00007f9774578ba1 in QWaitConditionPrivate::wait_relative (this=0x7f975c09e460, time=30000) at thread/qwaitcondition_unix.cpp:133
#2  0x00007f9774578bce in QWaitConditionPrivate::wait (this=0x7f975c09e460, time=30000) at thread/qwaitcondition_unix.cpp:141
#3  0x00007f97745789c5 in QWaitCondition::wait (this=0x7f975c09e2a0, mutex=0x7f975c003570, time=30000) at thread/qwaitcondition_unix.cpp:215
#4  0x00007f9774571104 in QThreadPoolThread::run (this=0x7f975c09e290) at thread/qthreadpool.cpp:133
#5  0x00007f9774577438 in QThreadPrivate::start (arg=0x7f975c09e290) at thread/qthread_unix.cpp:368
#6  0x00007f977296b2e7 in start_thread () from /usr/lib/libpthread.so.0
#7  0x00007f9773c6254f in clone () from /usr/lib/libc.so.6

Thread 12 (Thread 0x7f96faffd700 (LWP 26626)):
#0  0x00007f9772971b63 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /usr/lib/libpthread.so.0
#1  0x00007f9774578ba1 in QWaitConditionPrivate::wait_relative (this=0x7f975c09e050, time=30000) at thread/qwaitcondition_unix.cpp:133
#2  0x00007f9774578bce in QWaitConditionPrivate::wait (this=0x7f975c09e050, time=30000) at thread/qwaitcondition_unix.cpp:141
#3  0x00007f97745789c5 in QWaitCondition::wait (this=0x7f975c09de90, mutex=0x7f975c003570, time=30000) at thread/qwaitcondition_unix.cpp:215
#4  0x00007f9774571104 in QThreadPoolThread::run (this=0x7f975c09de80) at thread/qthreadpool.cpp:133
#5  0x00007f9774577438 in QThreadPrivate::start (arg=0x7f975c09de80) at thread/qthread_unix.cpp:368
#6  0x00007f977296b2e7 in start_thread () from /usr/lib/libpthread.so.0
#7  0x00007f9773c6254f in clone () from /usr/lib/libc.so.6

Thread 11 (Thread 0x7f9718ff9700 (LWP 26615)):
[KCrash Handler]
#6  0x00007f97747fe98c in QTimer::stop (this=0x0) at kernel/qtimer.cpp:239
#7  0x000000000042efd7 in Akonadi::Server::Connection::quit (this=0xd5b0d0) at /home/pf/akonadi/src/akonadi-17.04.1/src/server/connection.cpp:128
#8  0x00007f97747eaaa3 in QMetaCallEvent::placeMetaCall (this=0xd4c480, object=0xd5b0d0) at kernel/qobject.cpp:502
#9  0x00007f97747ebb22 in QObject::event (this=0xd5b0d0, e=0xd4c480) at kernel/qobject.cpp:1263
#10 0x00007f97747b19ba in QCoreApplicationPrivate::notify_helper (receiver=0xd5b0d0, event=0xd4c480) at kernel/qcoreapplication.cpp:1122
#11 0x00007f97747b163d in doNotify (receiver=0xd5b0d0, event=0xd4c480) at kernel/qcoreapplication.cpp:1063
#12 0x00007f97747b15b0 in QCoreApplication::notify (this=0xcd2740, receiver=0xd5b0d0, event=0xd4c480) at kernel/qcoreapplication.cpp:1049
#13 0x00007f97747b1540 in QCoreApplication::notifyInternal2 (receiver=0xd5b0d0, event=0xd4c480) at kernel/qcoreapplication.cpp:988
#14 0x00007f97747b55be in QCoreApplication::sendEvent (receiver=0xd5b0d0, event=0xd4c480) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#15 0x00007f97747b2971 in QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0xd5b370) at kernel/qcoreapplication.cpp:1648
#16 0x00007f97747b22ee in QCoreApplication::sendPostedEvents (receiver=0x0, event_type=0) at kernel/qcoreapplication.cpp:1502
#17 0x00007f977482d96c in postEventSourceDispatch (s=0x7f97000012d0) at kernel/qeventdispatcher_glib.cpp:276
#18 0x00007f976ec887b7 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#19 0x00007f976ec88a20 in ?? () from /usr/lib/libglib-2.0.so.0
#20 0x00007f976ec88acc in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#21 0x00007f977482e123 in QEventDispatcherGlib::processEvents (this=0x7f97000008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:423
#22 0x00007f97747adf22 in QEventLoop::processEvents (this=0x7f9718ff8d80, flags=...) at kernel/qeventloop.cpp:134
#23 0x00007f97747ae21e in QEventLoop::exec (this=0x7f9718ff8d80, flags=...) at kernel/qeventloop.cpp:212
#24 0x00007f977456f7e6 in QThread::exec (this=0xd58df0) at thread/qthread.cpp:507
#25 0x00007f977456f988 in QThread::run (this=0xd58df0) at thread/qthread.cpp:574
#26 0x00007f9774577438 in QThreadPrivate::start (arg=0xd58df0) at thread/qthread_unix.cpp:368
#27 0x00007f977296b2e7 in start_thread () from /usr/lib/libpthread.so.0
#28 0x00007f9773c6254f in clone () from /usr/lib/libc.so.6

Thread 10 (Thread 0x7f973b7fe700 (LWP 26559)):
#0  0x00007f9772971b63 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /usr/lib/libpthread.so.0
#1  0x00007f9774578ba1 in QWaitConditionPrivate::wait_relative (this=0x7f975c011ea0, time=30000) at thread/qwaitcondition_unix.cpp:133
#2  0x00007f9774578bce in QWaitConditionPrivate::wait (this=0x7f975c011ea0, time=30000) at thread/qwaitcondition_unix.cpp:141
#3  0x00007f97745789c5 in QWaitCondition::wait (this=0x7f975c011780, mutex=0x7f975c003570, time=30000) at thread/qwaitcondition_unix.cpp:215
#4  0x00007f9774571104 in QThreadPoolThread::run (this=0x7f975c011770) at thread/qthreadpool.cpp:133
#5  0x00007f9774577438 in QThreadPrivate::start (arg=0x7f975c011770) at thread/qthread_unix.cpp:368
#6  0x00007f977296b2e7 in start_thread () from /usr/lib/libpthread.so.0
#7  0x00007f9773c6254f in clone () from /usr/lib/libc.so.6

Thread 9 (Thread 0x7f975a7fc700 (LWP 26534)):
#0  std::atomic<QMutexData*>::compare_exchange_strong (this=0xd1d550, __p1=@0x7f975a7fb9a0: 0x1, __p2=0x0, __m=std::memory_order_release) at /usr/include/c++/6.3.1/atomic:480
#1  0x00007f977456ae00 in QAtomicOps<QMutexData*>::testAndSetRelease<QMutexData*> (_q_value=..., expectedValue=0x1, newValue=0x0, currentValue=0x7f975a7fba38) at ../../include/QtCore/../../src/corelib/arch/qatomic_cxx11.h:299
#2  0x00007f977456acbc in QBasicAtomicPointer<QMutexData>::testAndSetRelease (this=0xd1d550, expectedValue=0x1, newValue=0x0, currentValue=@0x7f975a7fba38: 0x7f975a7fbaa0) at ../../include/QtCore/../../src/corelib/thread/qbasicatomic.h:264
#3  0x00007f977456a976 in QBasicMutex::fastTryUnlock (this=0xd1d550, current=@0x7f975a7fba38: 0x7f975a7fbaa0) at thread/qmutex.h:104
#4  0x00007f977456a335 in QMutex::unlock (this=0xd1d550) at thread/qmutex.cpp:331
#5  0x00007f9774547268 in QMutexLocker::unlock (this=0x7f975a7fbaa0) at ../../include/QtCore/../../src/corelib/thread/qmutex.h:209
#6  0x00007f9774547220 in QMutexLocker::~QMutexLocker (this=0x7f975a7fbaa0, __in_chrg=<optimized out>) at ../../include/QtCore/../../src/corelib/thread/qmutex.h:203
#7  0x00007f9774827f1a in QThreadData::canWaitLocked (this=0xd1d520) at ../../include/QtCore/5.8.0/QtCore/private/../../../../../src/corelib/thread/qthread_p.h:253
#8  0x00007f977482d8ad in postEventSourcePrepare (s=0x7f97400012d0, timeout=0x7f975a7fbae4) at kernel/qeventdispatcher_glib.cpp:259
#9  0x00007f977482d926 in postEventSourceCheck (source=0x7f97400012d0) at kernel/qeventdispatcher_glib.cpp:269
#10 0x00007f976ec883b9 in g_main_context_check () from /usr/lib/libglib-2.0.so.0
#11 0x00007f976ec88954 in ?? () from /usr/lib/libglib-2.0.so.0
#12 0x00007f976ec88acc in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#13 0x00007f977482e152 in QEventDispatcherGlib::processEvents (this=0x7f97400008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#14 0x00007f97747adf22 in QEventLoop::processEvents (this=0x7f975a7fbd80, flags=...) at kernel/qeventloop.cpp:134
#15 0x00007f97747ae21e in QEventLoop::exec (this=0x7f975a7fbd80, flags=...) at kernel/qeventloop.cpp:212
#16 0x00007f977456f7e6 in QThread::exec (this=0xd1d3e0) at thread/qthread.cpp:507
#17 0x00007f977456f988 in QThread::run (this=0xd1d3e0) at thread/qthread.cpp:574
#18 0x00007f9774577438 in QThreadPrivate::start (arg=0xd1d3e0) at thread/qthread_unix.cpp:368
#19 0x00007f977296b2e7 in start_thread () from /usr/lib/libpthread.so.0
#20 0x00007f9773c6254f in clone () from /usr/lib/libc.so.6

Thread 8 (Thread 0x7f975affd700 (LWP 26533)):
#0  0x00007f9772971756 in pthread_cond_wait@@GLIBC_2.3.2 () from /usr/lib/libpthread.so.0
#1  0x00007f9774578bea in QWaitConditionPrivate::wait (this=0xd1cec0, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:143
#2  0x00007f97745789c5 in QWaitCondition::wait (this=0xd1c928, mutex=0xd1c930, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:215
#3  0x0000000000442271 in Akonadi::Server::SearchTaskManager::searchLoop (this=0xd1c900) at /home/pf/akonadi/src/akonadi-17.04.1/src/server/search/searchtaskmanager.cpp:221
#4  0x00007f97747f55c7 in QtPrivate::QSlotObjectBase::call (this=0xcfc6c0, r=0xd1c900, a=0x7f975affc7d0) at ../../include/QtCore/../../src/corelib/kernel/qobject_impl.h:101
#5  0x00007f97747fee16 in QSingleShotTimer::timerEvent (this=0xd1cf30) at kernel/qtimer.cpp:317
#6  0x00007f97747eba7c in QObject::event (this=0xd1cf30, e=0x7f975affca80) at kernel/qobject.cpp:1244
#7  0x00007f97747b19ba in QCoreApplicationPrivate::notify_helper (receiver=0xd1cf30, event=0x7f975affca80) at kernel/qcoreapplication.cpp:1122
#8  0x00007f97747b163d in doNotify (receiver=0xd1cf30, event=0x7f975affca80) at kernel/qcoreapplication.cpp:1063
#9  0x00007f97747b15b0 in QCoreApplication::notify (this=0xcd2740, receiver=0xd1cf30, event=0x7f975affca80) at kernel/qcoreapplication.cpp:1049
#10 0x00007f97747b1540 in QCoreApplication::notifyInternal2 (receiver=0xd1cf30, event=0x7f975affca80) at kernel/qcoreapplication.cpp:988
#11 0x00007f97747b55be in QCoreApplication::sendEvent (receiver=0xd1cf30, event=0x7f975affca80) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#12 0x00007f977482c068 in QTimerInfoList::activateTimers (this=0x7f974c0030d0) at kernel/qtimerinfo_unix.cpp:643
#13 0x00007f977482d778 in timerSourceDispatch (source=0x7f974c003070) at kernel/qeventdispatcher_glib.cpp:182
#14 0x00007f976ec887b7 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#15 0x00007f976ec88a20 in ?? () from /usr/lib/libglib-2.0.so.0
#16 0x00007f976ec88acc in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#17 0x00007f977482e123 in QEventDispatcherGlib::processEvents (this=0x7f974c0008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:423
#18 0x00007f97747adf22 in QEventLoop::processEvents (this=0x7f975affcd80, flags=...) at kernel/qeventloop.cpp:134
#19 0x00007f97747ae21e in QEventLoop::exec (this=0x7f975affcd80, flags=...) at kernel/qeventloop.cpp:212
#20 0x00007f977456f7e6 in QThread::exec (this=0xd1c9e0) at thread/qthread.cpp:507
#21 0x00007f977456f988 in QThread::run (this=0xd1c9e0) at thread/qthread.cpp:574
#22 0x00007f9774577438 in QThreadPrivate::start (arg=0xd1c9e0) at thread/qthread_unix.cpp:368
#23 0x00007f977296b2e7 in start_thread () from /usr/lib/libpthread.so.0
#24 0x00007f9773c6254f in clone () from /usr/lib/libc.so.6

Thread 7 (Thread 0x7f975b7fe700 (LWP 26532)):
#0  0x00007f976ec85967 in ?? () from /usr/lib/libglib-2.0.so.0
#1  0x00007f976ec882f4 in g_main_context_check () from /usr/lib/libglib-2.0.so.0
#2  0x00007f976ec88954 in ?? () from /usr/lib/libglib-2.0.so.0
#3  0x00007f976ec88acc in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#4  0x00007f977482e152 in QEventDispatcherGlib::processEvents (this=0x7f97480008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#5  0x00007f97747adf22 in QEventLoop::processEvents (this=0x7f975b7fdd80, flags=...) at kernel/qeventloop.cpp:134
#6  0x00007f97747ae21e in QEventLoop::exec (this=0x7f975b7fdd80, flags=...) at kernel/qeventloop.cpp:212
#7  0x00007f977456f7e6 in QThread::exec (this=0xd20190) at thread/qthread.cpp:507
#8  0x00007f977456f988 in QThread::run (this=0xd20190) at thread/qthread.cpp:574
#9  0x00007f9774577438 in QThreadPrivate::start (arg=0xd20190) at thread/qthread_unix.cpp:368
#10 0x00007f977296b2e7 in start_thread () from /usr/lib/libpthread.so.0
#11 0x00007f9773c6254f in clone () from /usr/lib/libc.so.6

Thread 6 (Thread 0x7f975bfff700 (LWP 26531)):
#0  0x00007f976ecce1c9 in g_mutex_lock () from /usr/lib/libglib-2.0.so.0
#1  0x00007f976ec88972 in ?? () from /usr/lib/libglib-2.0.so.0
#2  0x00007f976ec88acc in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#3  0x00007f977482e152 in QEventDispatcherGlib::processEvents (this=0x7f97500008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#4  0x00007f97747adf22 in QEventLoop::processEvents (this=0x7f975bffed80, flags=...) at kernel/qeventloop.cpp:134
#5  0x00007f97747ae21e in QEventLoop::exec (this=0x7f975bffed80, flags=...) at kernel/qeventloop.cpp:212
#6  0x00007f977456f7e6 in QThread::exec (this=0xcfc580) at thread/qthread.cpp:507
#7  0x00007f977456f988 in QThread::run (this=0xcfc580) at thread/qthread.cpp:574
#8  0x00007f9774577438 in QThreadPrivate::start (arg=0xcfc580) at thread/qthread_unix.cpp:368
#9  0x00007f977296b2e7 in start_thread () from /usr/lib/libpthread.so.0
#10 0x00007f9773c6254f in clone () from /usr/lib/libc.so.6

Thread 5 (Thread 0x7f976892c700 (LWP 26530)):
#0  0x00007f9773c5867d in poll () from /usr/lib/libc.so.6
#1  0x00007f976ec889b6 in ?? () from /usr/lib/libglib-2.0.so.0
#2  0x00007f976ec88acc in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#3  0x00007f977482e152 in QEventDispatcherGlib::processEvents (this=0x7f97540008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#4  0x00007f97747adf22 in QEventLoop::processEvents (this=0x7f976892bd80, flags=...) at kernel/qeventloop.cpp:134
#5  0x00007f97747ae21e in QEventLoop::exec (this=0x7f976892bd80, flags=...) at kernel/qeventloop.cpp:212
#6  0x00007f977456f7e6 in QThread::exec (this=0xd057a0) at thread/qthread.cpp:507
#7  0x00007f977456f988 in QThread::run (this=0xd057a0) at thread/qthread.cpp:574
#8  0x00007f9774577438 in QThreadPrivate::start (arg=0xd057a0) at thread/qthread_unix.cpp:368
#9  0x00007f977296b2e7 in start_thread () from /usr/lib/libpthread.so.0
#10 0x00007f9773c6254f in clone () from /usr/lib/libc.so.6

Thread 4 (Thread 0x7f976912d700 (LWP 26529)):
#0  0x00007f9774542603 in QListData::isEmpty (this=0x7f9760002cd0) at ../../include/QtCore/../../src/corelib/tools/qlist.h:114
#1  0x00007f977482c52a in QList<QTimerInfo*>::isEmpty (this=0x7f9760002cd0) at ../../include/QtCore/../../src/corelib/tools/qlist.h:194
#2  0x00007f977482c90e in QList<QTimerInfo*>::first (this=0x7f9760002cd0) at ../../include/QtCore/../../src/corelib/tools/qlist.h:346
#3  0x00007f977482c56e in QList<QTimerInfo*>::constFirst (this=0x7f9760002cd0) at ../../include/QtCore/../../src/corelib/tools/qlist.h:345
#4  0x00007f977482d62b in timerSourceCheckHelper (src=0x7f9760002c70) at kernel/qeventdispatcher_glib.cpp:146
#5  0x00007f977482d709 in timerSourceCheck (source=0x7f9760002c70) at kernel/qeventdispatcher_glib.cpp:173
#6  0x00007f976ec883b9 in g_main_context_check () from /usr/lib/libglib-2.0.so.0
#7  0x00007f976ec88954 in ?? () from /usr/lib/libglib-2.0.so.0
#8  0x00007f976ec88acc in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#9  0x00007f977482e152 in QEventDispatcherGlib::processEvents (this=0x7f97600008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#10 0x00007f97747adf22 in QEventLoop::processEvents (this=0x7f976912cd80, flags=...) at kernel/qeventloop.cpp:134
#11 0x00007f97747ae21e in QEventLoop::exec (this=0x7f976912cd80, flags=...) at kernel/qeventloop.cpp:212
#12 0x00007f977456f7e6 in QThread::exec (this=0xd14e10) at thread/qthread.cpp:507
#13 0x00007f977456f988 in QThread::run (this=0xd14e10) at thread/qthread.cpp:574
#14 0x00007f9774577438 in QThreadPrivate::start (arg=0xd14e10) at thread/qthread_unix.cpp:368
#15 0x00007f977296b2e7 in start_thread () from /usr/lib/libpthread.so.0
#16 0x00007f9773c6254f in clone () from /usr/lib/libc.so.6

Thread 3 (Thread 0x7f976992e700 (LWP 26528)):
#0  0x00007f9773c5867d in poll () from /usr/lib/libc.so.6
#1  0x00007f976ec889b6 in ?? () from /usr/lib/libglib-2.0.so.0
#2  0x00007f976ec88acc in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#3  0x00007f977482e152 in QEventDispatcherGlib::processEvents (this=0x7f975c0008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#4  0x00007f97747adf22 in QEventLoop::processEvents (this=0x7f976992dd80, flags=...) at kernel/qeventloop.cpp:134
#5  0x00007f97747ae21e in QEventLoop::exec (this=0x7f976992dd80, flags=...) at kernel/qeventloop.cpp:212
#6  0x00007f977456f7e6 in QThread::exec (this=0xce80f0) at thread/qthread.cpp:507
#7  0x00007f977456f988 in QThread::run (this=0xce80f0) at thread/qthread.cpp:574
#8  0x00007f9774577438 in QThreadPrivate::start (arg=0xce80f0) at thread/qthread_unix.cpp:368
#9  0x00007f977296b2e7 in start_thread () from /usr/lib/libpthread.so.0
#10 0x00007f9773c6254f in clone () from /usr/lib/libc.so.6

Thread 2 (Thread 0x7f976b173700 (LWP 26525)):
#0  0x00007f976ec880f0 in g_main_context_query () from /usr/lib/libglib-2.0.so.0
#1  0x00007f976ec88928 in ?? () from /usr/lib/libglib-2.0.so.0
#2  0x00007f976ec88acc in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#3  0x00007f977482e152 in QEventDispatcherGlib::processEvents (this=0x7f97640008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#4  0x00007f97747adf22 in QEventLoop::processEvents (this=0x7f976b172d50, flags=...) at kernel/qeventloop.cpp:134
#5  0x00007f97747ae21e in QEventLoop::exec (this=0x7f976b172d50, flags=...) at kernel/qeventloop.cpp:212
#6  0x00007f977456f7e6 in QThread::exec (this=0x7f97751e1d80 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at thread/qthread.cpp:507
#7  0x00007f9774f430a8 in QDBusConnectionManager::run (this=0x7f97751e1d80 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at qdbusconnection.cpp:170
#8  0x00007f9774577438 in QThreadPrivate::start (arg=0x7f97751e1d80 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at thread/qthread_unix.cpp:368
#9  0x00007f977296b2e7 in start_thread () from /usr/lib/libpthread.so.0
#10 0x00007f9773c6254f in clone () from /usr/lib/libc.so.6

Thread 1 (Thread 0x7f9776098c40 (LWP 26523)):
#0  0x00007f9772971b63 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /usr/lib/libpthread.so.0
#1  0x00007f9774578ba1 in QWaitConditionPrivate::wait_relative (this=0xd5b300, time=10000) at thread/qwaitcondition_unix.cpp:133
#2  0x00007f9774578bce in QWaitConditionPrivate::wait (this=0xd5b300, time=10000) at thread/qwaitcondition_unix.cpp:141
#3  0x00007f97745789c5 in QWaitCondition::wait (this=0xd5b2e0, mutex=0xd5b2c0, time=10000) at thread/qwaitcondition_unix.cpp:215
#4  0x00007f9774578092 in QThread::wait (this=0xd58df0, time=10000) at thread/qthread_unix.cpp:698
#5  0x00000000005381af in Akonadi::Server::AkThread::quitThread (this=this@entry=0xd5b0d0) at /home/pf/akonadi/src/akonadi-17.04.1/src/server/akthread.cpp:63
#6  0x000000000042c11e in Akonadi::Server::Connection::~Connection (this=0xd5b0d0, __in_chrg=<optimized out>) at /home/pf/akonadi/src/akonadi-17.04.1/src/server/connection.cpp:161
#7  0x000000000042c309 in Akonadi::Server::Connection::~Connection (this=0xd5b0d0, __in_chrg=<optimized out>) at /home/pf/akonadi/src/akonadi-17.04.1/src/server/connection.cpp:166
#8  0x00000000004271c6 in qDeleteAll<QTypedArrayData<Akonadi::Server::Connection*>::const_iterator> (end=..., begin=...) at /usr/include/qt/QtCore/qalgorithms.h:320
#9  qDeleteAll<QVector<Akonadi::Server::Connection*> > (c=...) at /usr/include/qt/QtCore/qalgorithms.h:328
#10 Akonadi::Server::AkonadiServer::quit (this=0xcd8240) at /home/pf/akonadi/src/akonadi-17.04.1/src/server/akonadi.cpp:302
#11 0x0000000000527e4e in ServerAdaptor::quit (this=<optimized out>) at /home/pf/akonadi/src/build/src/server/serveradaptor.cpp:39
#12 ServerAdaptor::qt_static_metacall (_o=<optimized out>, _c=<optimized out>, _id=<optimized out>, _a=<optimized out>) at /home/pf/akonadi/src/build/src/server/serveradaptor.moc:88
#13 0x0000000000527fd3 in ServerAdaptor::qt_metacall (this=0xd1ed20, _c=QMetaObject::InvokeMetaMethod, _id=0, _a=0x7fff512d4090) at /home/pf/akonadi/src/build/src/server/serveradaptor.moc:122
#14 0x00007f9774f51c01 in QDBusConnectionPrivate::deliverCall (this=0x7f97640032f0, object=0xd1ed20, msg=..., metaTypes=..., slotIdx=5) at qdbusintegrator.cpp:995
#15 0x00007f9774f513e8 in QDBusConnectionPrivate::activateCall (this=0x7f97640032f0, object=0xd1ed20, flags=273, msg=...) at qdbusintegrator.cpp:898
#16 0x00007f9774f55084 in QDBusConnectionPrivate::activateObject (this=0x7f97640032f0, node=..., msg=..., pathStartPos=7) at qdbusintegrator.cpp:1488
#17 0x00007f9774f55890 in QDBusActivateObjectEvent::placeMetaCall (this=0x7f976401de40) at qdbusintegrator.cpp:1608
#18 0x00007f97747ebb22 in QObject::event (this=0xcd8240, e=0x7f976401de40) at kernel/qobject.cpp:1263
#19 0x00007f97747b19ba in QCoreApplicationPrivate::notify_helper (receiver=0xcd8240, event=0x7f976401de40) at kernel/qcoreapplication.cpp:1122
#20 0x00007f97747b163d in doNotify (receiver=0xcd8240, event=0x7f976401de40) at kernel/qcoreapplication.cpp:1063
#21 0x00007f97747b15b0 in QCoreApplication::notify (this=0xcd2740, receiver=0xcd8240, event=0x7f976401de40) at kernel/qcoreapplication.cpp:1049
#22 0x00007f97747b1540 in QCoreApplication::notifyInternal2 (receiver=0xcd8240, event=0x7f976401de40) at kernel/qcoreapplication.cpp:988
#23 0x00007f97747b55be in QCoreApplication::sendEvent (receiver=0xcd8240, event=0x7f976401de40) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#24 0x00007f97747b2971 in QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0xcd2230) at kernel/qcoreapplication.cpp:1648
#25 0x00007f97747b22ee in QCoreApplication::sendPostedEvents (receiver=0x0, event_type=0) at kernel/qcoreapplication.cpp:1502
#26 0x00007f977482d96c in postEventSourceDispatch (s=0xcd4c30) at kernel/qeventdispatcher_glib.cpp:276
#27 0x00007f976ec887b7 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#28 0x00007f976ec88a20 in ?? () from /usr/lib/libglib-2.0.so.0
#29 0x00007f976ec88acc in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#30 0x00007f977482e123 in QEventDispatcherGlib::processEvents (this=0xcd4c10, flags=...) at kernel/qeventdispatcher_glib.cpp:423
#31 0x00007f97747adf22 in QEventLoop::processEvents (this=0x7fff512d4bc0, flags=...) at kernel/qeventloop.cpp:134
#32 0x00007f97747ae21e in QEventLoop::exec (this=0x7fff512d4bc0, flags=...) at kernel/qeventloop.cpp:212
#33 0x00007f97747b1c8a in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1261
#34 0x00000000005956e5 in AkApplicationBase::exec (this=this@entry=0x7fff512d4d40) at /home/pf/akonadi/src/akonadi-17.04.1/src/shared/akapplication.cpp:123
#35 0x00000000004245e4 in main (argc=<optimized out>, argv=<optimized out>) at /home/pf/akonadi/src/akonadi-17.04.1/src/server/main.cpp:78

Reported using DrKonqi
Comment 1 Daniel Vrátil 2017-05-20 07:35:25 UTC
Git commit 76fac925362e55c0919d9ffaf688bdf77865d7a4 by Daniel Vrátil.
Committed on 20/05/2017 at 07:33.
Pushed by dvratil into branch 'Applications/17.04'.

Fix crash when Connection is terminated before init()
FIXED-IN: 5.5.2

M  +3    -1    src/server/connection.cpp

https://commits.kde.org/akonadi/76fac925362e55c0919d9ffaf688bdf77865d7a4