[Akonadi] [Bug 363741] akonadi server 16.04.2: crashing every few seconds

Sven Eden via KDE Bugzilla bugzilla_noreply at kde.org
Tue Jul 5 14:59:29 BST 2016


https://bugs.kde.org/show_bug.cgi?id=363741

Sven Eden <sven.eden at gmx.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |sven.eden at gmx.de

--- Comment #14 from Sven Eden <sven.eden at gmx.de> ---
I tried this and removed the search folder. After a restart of both akonadi and
kontact (I had gdb hooked to the akonadiserver process) and trying to do a
search, gdb caught a SIGSEGV with the following trace:

--------
Thread 60 "QThread" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fd009ffb700 (LWP 17593)]
0x00007fcfe854b9a8 in vtable for Xapian::Internal::QueryTerm () from
/usr/lib64/libxapian-1.3.so.8
(gdb) bt
#0  0x00007fcfe854b9a8 in vtable for Xapian::Internal::QueryTerm () from
/usr/lib64/libxapian-1.3.so.8
#1  0x00007fcfe82a301b in ExternalPostList::ExternalPostList
(this=0x7fcff009f1e0, db=..., source_=<optimized out>, 
    factor_=<optimized out>, matcher=0x7fd009ff9d10) at
matcher/externalpostlist.cc:40
#2  0x00007fcfe81b5d4b in Xapian::Internal::QueryPostingSource::postlist
(this=<optimized out>, qopt=0x7fd009ff9630, factor=1)
    at api/queryinternal.cc:739
#3  0x00007fcfe81b40b1 in Xapian::Query::Internal::postlist_sub_xor
(this=<optimized out>, ctx=..., qopt=<optimized out>, 
    factor=<optimized out>) at api/queryinternal.cc:634
#4  0x00007fcfe81b5533 in Xapian::Internal::QueryBranch::do_or_like
(this=this at entry=0x7fcff001bd60, ctx=..., 
    qopt=qopt at entry=0x7fd009ff9630, factor=factor at entry=1,
elite_set_size=elite_set_size at entry=0, first=first at entry=1)
    at api/queryinternal.cc:1186
#5  0x00007fcfe81b5afa in Xapian::Internal::QueryAndMaybe::postlist
(this=0x7fcff001bd60, qopt=0x7fd009ff9630, factor=1)
    at api/queryinternal.cc:1550
#6  0x00007fcfe82a32da in LocalSubMatch::get_postlist (this=0x7fcff009a6c0,
matcher=0x7fd009ff9d10, total_subqs_ptr=0x7fd009ff979c)
    at matcher/localsubmatch.cc:204
#7  0x00007fcfe82a9741 in MultiMatch::get_mset (this=this at entry=0x7fd009ff9d10,
first=first at entry=0, maxitems=95894, 
    check_at_least=check_at_least at entry=95894, mset=..., stats=...,
mdecider=0x0, sorter=0x0) at matcher/multimatch.cc:419
#8  0x00007fcfe81a4641 in Xapian::Enquire::Internal::get_mset
(this=0x7fcff009a830, first=<optimized out>, 
    maxitems=<optimized out>, check_at_least=<optimized out>,
check_at_least at entry=0, rset=rset at entry=0x0, mdecider=0x0)
    at api/omenquire.cc:548
#9  0x00007fcfe81a4984 in Xapian::Enquire::get_mset
(this=this at entry=0x7fd009ffa030, first=<optimized out>, 
    maxitems=<optimized out>, check_at_least=check_at_least at entry=0,
rset=rset at entry=0x0, mdecider=0x0) at api/omenquire.cc:906
#10 0x00007fcfe05e967d in Akonadi::Search::XapianSearchStore::exec
(this=0x7fcff003fe70, query=...)
    at
/home/portage/kde-apps/akonadi-search-16.04.2/work/akonadi-search-16.04.2/xapian/xapiansearchstore.cpp:177
#11 0x00007fd00919e2e5 in Akonadi::Search::Query::exec
(this=this at entry=0x7fd009ffa2a0)
    at
/home/portage/kde-apps/akonadi-search-16.04.2/work/akonadi-search-16.04.2/core/query.cpp:252
#12 0x00007fd0095f5f6d in SearchPlugin::search (this=<optimized out>,
akonadiQuery=..., collections=..., mimeTypes=...)
    at
/home/portage/kde-apps/akonadi-search-16.04.2/work/akonadi-search-16.04.2/akonadiplugin/searchplugin.cpp:348
#13 0x000000000053ed1d in Akonadi::Server::SearchRequest::searchPlugins
(this=this at entry=0x7fd009ffa880)
    at
/home/portage/kde-apps/akonadi-16.04.2/work/akonadi-16.04.2/src/server/search/searchrequest.cpp:112
#14 0x000000000053ef7f in Akonadi::Server::SearchRequest::exec
(this=this at entry=0x7fd009ffa880)
    at
/home/portage/kde-apps/akonadi-16.04.2/work/akonadi-16.04.2/src/server/search/searchrequest.cpp:123
#15 0x0000000000443944 in Akonadi::Server::SearchManager::updateSearchImpl
(this=<optimized out>, collection=..., 
    cond=0x7fceeaffc4e0) at
/home/portage/kde-apps/akonadi-16.04.2/work/akonadi-16.04.2/src/server/search/searchmanager.cpp:350
#16 0x00000000004fbea5 in Akonadi::Server::SearchManager::qt_static_metacall
(_o=<optimized out>, _c=<optimized out>, 
    _id=<optimized out>, _a=<optimized out>)
    at
/home/portage/kde-apps/akonadi-16.04.2/work/akonadi-16.04.2_build/src/server/moc_searchmanager.cpp:108
#17 0x00007fd0165f8711 in QObject::event (this=0x27ac890, e=<optimized out>) at
kernel/qobject.cpp:1256
#18 0x00007fd0165cfaaa in doNotify (receiver=<optimized out>, event=<optimized
out>) at kernel/qcoreapplication.cpp:1090
#19 0x00007fd0165cfbda in QCoreApplication::notifyInternal2
(receiver=0x27ac890, event=event at entry=0x7fceec0deef0)
    at kernel/qcoreapplication.cpp:1015
#20 0x00007fd0165d1c2a in QCoreApplication::sendEvent (event=0x7fceec0deef0,
receiver=<optimized out>)
    at kernel/qcoreapplication.h:225
#21 QCoreApplicationPrivate::sendPostedEvents (receiver=receiver at entry=0x0,
event_type=event_type at entry=0, data=0x27ab840)
    at kernel/qcoreapplication.cpp:1650
#22 0x00007fd0165d20e8 in QCoreApplication::sendPostedEvents
(receiver=receiver at entry=0x0, event_type=event_type at entry=0)
    at kernel/qcoreapplication.cpp:1508
#23 0x00007fd01661ec13 in postEventSourceDispatch (s=0x7fcff00012d0) at
kernel/qeventdispatcher_glib.cpp:270
#24 0x00007fd013da07f7 in g_main_dispatch (context=0x7fcff0000990)
    at /home/portage/dev-libs/glib-2.46.2-r3/work/glib-2.46.2/glib/gmain.c:3154
#25 g_main_context_dispatch (context=context at entry=0x7fcff0000990)
    at /home/portage/dev-libs/glib-2.46.2-r3/work/glib-2.46.2/glib/gmain.c:3769
#26 0x00007fd013da0a50 in g_main_context_iterate
(context=context at entry=0x7fcff0000990, block=block at entry=1, 
    dispatch=dispatch at entry=1, self=<optimized out>) at
/home/portage/dev-libs/glib-2.46.2-r3/work/glib-2.46.2/glib/gmain.c:3840
#27 0x00007fd013da0afc in g_main_context_iteration (context=0x7fcff0000990,
may_block=may_block at entry=1)
    at /home/portage/dev-libs/glib-2.46.2-r3/work/glib-2.46.2/glib/gmain.c:3901
#28 0x00007fd01661ec8f in QEventDispatcherGlib::processEvents
(this=0x7fcff00008c0, flags=...)
    at kernel/qeventdispatcher_glib.cpp:417
#29 0x00007fd0165cea3a in QEventLoop::exec (this=this at entry=0x7fd009ffae80,
flags=..., flags at entry=...) at kernel/qeventloop.cpp:204
#30 0x00007fd016427ec4 in QThread::exec (this=<optimized out>) at
thread/qthread.cpp:500
#31 0x00007fd01642c36c in QThreadPrivate::start (arg=0x27ab700) at
thread/qthread_unix.cpp:341
#32 0x00007fd0157c6424 in start_thread (arg=0x7fd009ffb700) at
pthread_create.c:334
#33 0x00007fd015ac43bd in clone () at
../sysdeps/unix/sysv/linux/x86_64/clone.S:109

--------

Continuing results in a lot of exited threads and an eventual crash of the
akonadiserver process:

--------
[Inferior 1 (process 17584) exited with code 0377]
--------

>From here on akonadiserver crashes every few minutes with the following akonadi
log entries:

--------
Executing search "searchUpdate-1467726031"
QVariant(QString, "2457575") 2457575
"[\n0: akonadiserver() [0x554200]\n1: akonadiserver() [0x55441e]\n2:
/lib64/libc.so.6(+0x33380) [0x7f60ec451380]\n3:
/usr/lib64/libxapian-1.3.so.8(+0x3fe6b8) [0x7f60ac5e56b8]\n]\n"
akonadicore_log: Socket error occurred: "QLocalSocket: The connection was
closed by the remote end"
(...)
akonadicore_log: Socket error occurred: "QLocalSocket: The connection was
closed by the remote end"
ProcessControl: Application 'akonadiserver' returned with exit code 255
(Unbekannter Fehler)
--------

-- 
You are receiving this mail because:
You are the assignee for the bug.



More information about the Kdepim-bugs mailing list