Bug 382425

Summary: akonadiserver crash at startup
Product: [Frameworks and Libraries] Akonadi Reporter: Andreas Sturmlechner <asturm>
Component: serverAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED WORKSFORME    
Severity: crash CC: crissi99, muemarco
Priority: NOR Keywords: drkonqi
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: New crash information added by DrKonqi

Description Andreas Sturmlechner 2017-07-17 08:13:41 UTC
Application: akonadiserver (5.5.3)
 (Compiled from sources)
Qt Version: 5.7.1
Frameworks Version: 5.36.0
Operating System: Linux 4.11.7-gentoo x86_64
Distribution: "NAME=Gentoo"

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

Akonadi is sometimes simply crashing at startup.

Also: On my system, most of the time kmail, on first raising from system tray (starting Plasma with 'restore previous session'), reports that akonadiserver is not yet startet. Despite showing unread mail in the background. I don't know if this is a sympton that may be related to the crash.

The crash can be reproduced sometimes.

-- Backtrace:
Application: Akonadi Server (akonadiserver), signal: Aborted
Using host libthread_db library "/lib64/libthread_db.so.1".
pthread_cond_timedwait () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:225
[Current thread is 1 (Thread 0x7fb22c011740 (LWP 3847))]

Thread 3 (Thread 0x7fb228db2700 (LWP 3853)):
[KCrash Handler]
#6  0x00007fb234708228 in __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:54
#7  0x00007fb23470964a in __GI_abort () at abort.c:89
#8  0x00007fb234d390fd in __gnu_cxx::__verbose_terminate_handler() () from /usr/lib/gcc/x86_64-pc-linux-gnu/6.3.0/libstdc++.so.6
#9  0x00007fb234d36ea6 in ?? () from /usr/lib/gcc/x86_64-pc-linux-gnu/6.3.0/libstdc++.so.6
#10 0x00007fb234d36ef1 in std::terminate() () from /usr/lib/gcc/x86_64-pc-linux-gnu/6.3.0/libstdc++.so.6
#11 0x00007fb234d37109 in __cxa_throw () from /usr/lib/gcc/x86_64-pc-linux-gnu/6.3.0/libstdc++.so.6
#12 0x00007fb2355d45a5 in Akonadi::Protocol::DataStream::operator<< <unsigned char> (this=<optimized out>, val=<optimized out>) at /var/tmp/portage/kde-apps/akonadi-17.04.3/work/akonadi-17.04.3/src/private/datastream_p_p.h:97
#13 0x00007fb2355d75c3 in Akonadi::Protocol::CommandPrivate::serialize (stream=..., this=0x5577396e5150) at /var/tmp/portage/kde-apps/akonadi-17.04.3/work/akonadi-17.04.3/src/private/protocol.cpp:264
#14 Akonadi::Protocol::ChangeNotificationPrivate::serialize (stream=..., this=0x5577396e5150) at /var/tmp/portage/kde-apps/akonadi-17.04.3/work/akonadi-17.04.3/src/private/protocol.cpp:7715
#15 Akonadi::Protocol::ItemChangeNotificationPrivate::serialize (this=0x5577396e5150, stream=...) at /var/tmp/portage/kde-apps/akonadi-17.04.3/work/akonadi-17.04.3/src/private/protocol.cpp:7871
#16 0x00007fb2355c3b60 in Akonadi::Protocol::operator<< (stream=..., command=...) at /var/tmp/portage/kde-apps/akonadi-17.04.3/work/akonadi-17.04.3/src/private/protocol.cpp:379
#17 0x00007fb2355c3c37 in Akonadi::Protocol::serialize (device=<optimized out>, command=...) at /var/tmp/portage/kde-apps/akonadi-17.04.3/work/akonadi-17.04.3/src/private/protocol.cpp:608
#18 0x000055773803fcee in Akonadi::Server::NotificationSubscriber::writeCommand (this=0x7fb21c0aab20, tag=tag@entry=4, cmd=...) at /var/tmp/portage/kde-apps/akonadi-17.04.3/work/akonadi-17.04.3/src/server/notificationsubscriber.cpp:678
#19 0x000055773803fd3b in Akonadi::Server::NotificationSubscriber::writeNotification (this=<optimized out>, notification=...) at /var/tmp/portage/kde-apps/akonadi-17.04.3/work/akonadi-17.04.3/src/server/notificationsubscriber.cpp:669
#20 0x000055773805ebf8 in Akonadi::Server::NotificationSubscriber::qt_static_metacall (_o=<optimized out>, _c=<optimized out>, _id=<optimized out>, _a=0x7fb200032a50) at /var/tmp/portage/kde-apps/akonadi-17.04.3/work/akonadi-17.04.3_build/src/server/libakonadiserver_automoc.dir/moc_notificationsu_A7THY7VNQHIEYZ.cpp:97
#21 0x00007fb2352c9ab2 in QMetaCallEvent::placeMetaCall (this=0x7fb2000329f0, object=0x7fb21c0aab20) at kernel/qobject.cpp:502
#22 0x00007fb2352cba36 in QObject::event (this=0x7fb21c0aab20, e=<optimized out>) at kernel/qobject.cpp:1263
#23 0x00007fb2352a78a8 in QCoreApplicationPrivate::notify_helper (receiver=0x7fb21c0aab20, event=0x7fb2000329f0) at kernel/qcoreapplication.cpp:1122
#24 0x00007fb2352a7934 in doNotify (receiver=<optimized out>, event=<optimized out>) at kernel/qcoreapplication.cpp:1063
#25 0x00007fb2352a7a44 in QCoreApplication::notify (this=<optimized out>, receiver=<optimized out>, event=<optimized out>) at kernel/qcoreapplication.cpp:1049
#26 0x00007fb2352a79e2 in QCoreApplication::notifyInternal2 (receiver=receiver@entry=0x7fb21c0aab20, event=event@entry=0x7fb2000329f0) at kernel/qcoreapplication.cpp:988
#27 0x00007fb2352a9ddc in QCoreApplication::sendEvent (event=0x7fb2000329f0, receiver=0x7fb21c0aab20) at kernel/qcoreapplication.h:231
#28 QCoreApplicationPrivate::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=0, data=0x5577395f0da0) at kernel/qcoreapplication.cpp:1649
#29 0x00007fb2352aa260 in QCoreApplication::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=0) at kernel/qcoreapplication.cpp:1503
#30 0x00007fb2352ef83a in postEventSourceDispatch (s=s@entry=0x7fb21c0012d0) at kernel/qeventdispatcher_glib.cpp:276
#31 0x00007fb231b4b1c6 in g_main_dispatch (context=0x7fb21c000990) at /var/tmp/portage/dev-libs/glib-2.50.3-r1/work/glib-2.50.3/glib/gmain.c:3203
#32 g_main_context_dispatch (context=context@entry=0x7fb21c000990) at /var/tmp/portage/dev-libs/glib-2.50.3-r1/work/glib-2.50.3/glib/gmain.c:3856
#33 0x00007fb231b4b58d in g_main_context_iterate (context=context@entry=0x7fb21c000990, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at /var/tmp/portage/dev-libs/glib-2.50.3-r1/work/glib-2.50.3/glib/gmain.c:3929
#34 0x00007fb231b4b613 in g_main_context_iteration (context=0x7fb21c000990, may_block=may_block@entry=1) at /var/tmp/portage/dev-libs/glib-2.50.3-r1/work/glib-2.50.3/glib/gmain.c:3990
#35 0x00007fb2352ef8b3 in QEventDispatcherGlib::processEvents (this=0x7fb21c0008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:423
#36 0x00007fb2352a6656 in QEventLoop::processEvents (this=this@entry=0x7fb228db1e80, flags=..., flags@entry=...) at kernel/qeventloop.cpp:134
#37 0x00007fb2352a6a55 in QEventLoop::exec (this=this@entry=0x7fb228db1e80, flags=..., flags@entry=...) at kernel/qeventloop.cpp:212
#38 0x00007fb2351235c0 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:507
#39 0x00007fb235123669 in QThread::run (this=<optimized out>) at thread/qthread.cpp:574
#40 0x00007fb2351275f9 in QThreadPrivate::start (arg=0x5577395f9ec0) at thread/qthread_unix.cpp:368
#41 0x00007fb233abe3c4 in start_thread (arg=0x7fb228db2700) at pthread_create.c:333
#42 0x00007fb2347bc70d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 2 (Thread 0x7fb22bc67700 (LWP 3850)):
#0  0x00007ffde4d079e0 in clock_gettime ()
#1  0x00007fb2347c9206 in __GI___clock_gettime (clock_id=clock_id@entry=1, tp=tp@entry=0x7fb22bc66ba0) at ../sysdeps/unix/clock_gettime.c:115
#2  0x00007fb2351b4f55 in qt_clock_gettime (ts=0x7fb22bc66ba0, clock=<optimized out>) at tools/qelapsedtimer_unix.cpp:109
#3  do_gettime (frac=<synthetic pointer>, sec=<synthetic pointer>) at tools/qelapsedtimer_unix.cpp:164
#4  qt_gettime () at tools/qelapsedtimer_unix.cpp:173
#5  0x00007fb2352ee03f in QTimerInfoList::updateCurrentTime (this=this@entry=0x7fb2240030d0) at kernel/qtimerinfo_unix.cpp:91
#6  0x00007fb2352ee3f5 in QTimerInfoList::timerWait (this=0x7fb2240030d0, tm=...) at kernel/qtimerinfo_unix.cpp:388
#7  0x00007fb2352ef58d in timerSourcePrepareHelper (src=<optimized out>, timeout=0x7fb22bc66c84) at kernel/qeventdispatcher_glib.cpp:132
#8  0x00007fb2352ef64a in timerSourcePrepare (source=<optimized out>, timeout=timeout@entry=0x7fb22bc66c84) at kernel/qeventdispatcher_glib.cpp:165
#9  0x00007fb231b4abfd in g_main_context_prepare (context=context@entry=0x7fb224000990, priority=priority@entry=0x7fb22bc66d10) at /var/tmp/portage/dev-libs/glib-2.50.3-r1/work/glib-2.50.3/glib/gmain.c:3501
#10 0x00007fb231b4b445 in g_main_context_iterate (context=context@entry=0x7fb224000990, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at /var/tmp/portage/dev-libs/glib-2.50.3-r1/work/glib-2.50.3/glib/gmain.c:3909
#11 0x00007fb231b4b613 in g_main_context_iteration (context=0x7fb224000990, may_block=may_block@entry=1) at /var/tmp/portage/dev-libs/glib-2.50.3-r1/work/glib-2.50.3/glib/gmain.c:3990
#12 0x00007fb2352ef8d5 in QEventDispatcherGlib::processEvents (this=0x7fb2240008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#13 0x00007fb2352a6656 in QEventLoop::processEvents (this=this@entry=0x7fb22bc66e60, flags=..., flags@entry=...) at kernel/qeventloop.cpp:134
#14 0x00007fb2352a6a55 in QEventLoop::exec (this=this@entry=0x7fb22bc66e60, flags=..., flags@entry=...) at kernel/qeventloop.cpp:212
#15 0x00007fb2351235c0 in QThread::exec (this=this@entry=0x7fb235594840 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at thread/qthread.cpp:507
#16 0x00007fb23552819c in QDBusConnectionManager::run (this=0x7fb235594840 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at qdbusconnection.cpp:178
#17 0x00007fb2351275f9 in QThreadPrivate::start (arg=0x7fb235594840 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at thread/qthread_unix.cpp:368
#18 0x00007fb233abe3c4 in start_thread (arg=0x7fb22bc67700) at pthread_create.c:333
#19 0x00007fb2347bc70d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 1 (Thread 0x7fb22c011740 (LWP 3847)):
#0  pthread_cond_timedwait () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:225
#1  0x00007fb235127bbe in QWaitConditionPrivate::wait_relative (time=10000, this=0x5577395eb800) at thread/qwaitcondition_unix.cpp:133
#2  QWaitConditionPrivate::wait (time=10000, this=0x5577395eb800) at thread/qwaitcondition_unix.cpp:141
#3  QWaitCondition::wait (this=this@entry=0x5577395fbbf0, mutex=mutex@entry=0x5577395fbbd0, time=time@entry=10000) at thread/qwaitcondition_unix.cpp:215
#4  0x00007fb235127238 in QThread::wait (this=<optimized out>, time=time@entry=10000) at thread/qthread_unix.cpp:698
#5  0x00005577380638b7 in Akonadi::Server::AkThread::quitThread (this=this@entry=0x5577395fa3b0) at /var/tmp/portage/kde-apps/akonadi-17.04.3/work/akonadi-17.04.3/src/server/akthread.cpp:63
#6  0x000055773803df4b in Akonadi::Server::NotificationManager::~NotificationManager (this=0x5577395fa3b0, __in_chrg=<optimized out>) at /var/tmp/portage/kde-apps/akonadi-17.04.3/work/akonadi-17.04.3/src/server/notificationmanager.cpp:49
#7  0x000055773803dfb3 in Akonadi::Server::NotificationManager::~NotificationManager (this=0x5577395fa3b0, __in_chrg=<optimized out>) at /var/tmp/portage/kde-apps/akonadi-17.04.3/work/akonadi-17.04.3/src/server/notificationmanager.cpp:50
#8  0x0000557737f760fa in Akonadi::Server::AkonadiServer::quit (this=0x5577395e54c0) at /var/tmp/portage/kde-apps/akonadi-17.04.3/work/akonadi-17.04.3/src/server/akonadi.cpp:312
#9  0x0000557737f742e9 in main (argc=<optimized out>, argv=<optimized out>) at /var/tmp/portage/kde-apps/akonadi-17.04.3/work/akonadi-17.04.3/src/server/main.cpp:81

Possible duplicates by query: bug 377656, bug 377273, bug 376976.

Reported using DrKonqi
Comment 1 MUM 2018-04-21 06:46:02 UTC
Created attachment 112150 [details]
New crash information added by DrKonqi

akonadi_baloo_indexer (4.14) on KDE Platform 4.14.34 using Qt 4.8.7

- What I was doing when the application crashed:

I entered 
akonadictl stop
which worked fine.
Then 
akonadictl start which crashed

-- Backtrace (Reduced):
#6  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51
#7  0x00007f580000ff5d in __GI_abort () at abort.c:90
[...]
#11 0x00007f5803d14d11 in QObject::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#12 0x00007f580126803c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#13 0x00007f580126ef76 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
Comment 2 Christophe Marin 2018-06-26 06:22:33 UTC
*** Bug 395868 has been marked as a duplicate of this bug. ***
Comment 3 Justin Zobel 2020-12-17 05:38:34 UTC
Thank you for the crash report.

As it has been a while since this was reported, can you please test and confirm if this issue is still occurring or if this bug report can be marked as resolved.

I have set the bug status to "needsinfo" pending your response, please change back to "reported" or "resolved/worksforme" when you respond, thank you.
Comment 4 MUM 2020-12-17 06:54:04 UTC
I have installed ubuntu budgie 20.04 LTS and haven't experienced any 
issues with akonadi.

Best

Marco

On 17.12.20 06:38, Justin Zobel wrote:
> https://bugs.kde.org/show_bug.cgi?id=382425
>
> Justin Zobel <justin.zobel@gmail.com> changed:
>
>             What    |Removed                     |Added
> ----------------------------------------------------------------------------
>           Resolution|---                         |WAITINGFORINFO
>               Status|REPORTED                    |NEEDSINFO
>
> --- Comment #3 from Justin Zobel <justin.zobel@gmail.com> ---
> Thank you for the crash report.
>
> As it has been a while since this was reported, can you please test and confirm
> if this issue is still occurring or if this bug report can be marked as
> resolved.
>
> I have set the bug status to "needsinfo" pending your response, please change
> back to "reported" or "resolved/worksforme" when you respond, thank you.
>
Comment 5 Bug Janitor Service 2021-01-01 04:37:08 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 6 Christoph Feck 2021-01-09 16:25:21 UTC
Thanks for the update; changing status.