Bug 402752 - Crash when starting akonadi
Summary: Crash when starting akonadi
Status: RESOLVED DUPLICATE of bug 401692
Alias: None
Product: Akonadi
Classification: Frameworks and Libraries
Component: Mail Dispatcher Agent (show other bugs)
Version: unspecified
Platform: Neon Linux
: NOR crash
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-01-01 12:02 UTC by Halla Rempt
Modified: 2019-01-17 02:17 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Halla Rempt 2019-01-01 12:02:15 UTC
Since kmail once again refused to load mail, I had to close it. Then I used akonadiconsole to run the sql statement to remove duplicates; that took long enough for kwin to think that akonadiconsole had become unresponsive, but it worked in the end. Then I ran akonadi's fsck, which found a host of problems... So I stopped akonadi, then restarted it. On restart, I got this output:

oud@boud-ThinkPad-T470p:~/dev/krita$ akonadictl start
Connecting to deprecated signal QDBusConnectionInterface::serviceOwnerChanged(QString,QString,QString)
boud@boud-ThinkPad-T470p:~/dev/krita$ akonadi.collectionattributetable                   OK
akonadi.collectionmimetyperelation                 OK
akonadi.collectionpimitemrelation                  OK
akonadi.collectiontable                            OK
akonadi.flagtable                                  OK
akonadi.mimetypetable                              OK
akonadi.parttable                                  OK
akonadi.parttypetable                              OK
akonadi.pimitemflagrelation                        OK
akonadi.pimitemtable                               OK
akonadi.pimitemtagrelation                         OK
akonadi.relationtable                              OK
akonadi.relationtypetable                          OK
akonadi.resourcetable                              OK
akonadi.schemaversiontable                         OK
akonadi.tagattributetable                          OK
akonadi.tagremoteidresourcerelationtable           OK
akonadi.tagtable                                   OK
akonadi.tagtypetable                               OK
Connecting to deprecated signal QDBusConnectionInterface::serviceOwnerChanged(QString,QString,QString)
QDBusConnection: name 'org.freedesktop.Akonadi.Control' had owner '' but we thought it was ':1.485'
org.kde.pim.akonadiserver: Received ModifySubscription command before RegisterSubscriber
org.kde.pim.akonadicore: "QLocalSocket: Remote closed" "/tmp/akonadi-boud.3rf2LA/akonadiserver-ntf.socket"
ProtocolException thrown:Failed to write data to stream
Qt has caught an exception thrown from an event handler. Throwing
exceptions from an event handler is not supported in Qt.
You must not let any exception whatsoever propagate through Qt code.
If that is not possible, in Qt 5 you must at least reimplement
QCoreApplication::notify() and catch all exceptions there.

terminate called after throwing an instance of 'Akonadi::ProtocolException'
  what():  Failed to write data to stream
KCrash: crashing... crashRecursionCounter = 2
KCrash: Application Name = akonadi_maildispatcher_agent path = /usr/bin pid = 12374
KCrash: Arguments: /usr/bin/akonadi_maildispatcher_agent --identifier akonadi_maildispatcher_agent 
KCrash: Attempting to start /usr/lib/x86_64-linux-gnu/libexec/drkonqi from kdeinit
sock_file=/run/user/1000/kdeinit5__0
QSocketNotifier: Invalid socket 7 and type 'Read', disabling...
QSocketNotifier: Invalid socket 14 and type 'Read', disabling...
QSocketNotifier: Invalid socket 9 and type 'Read', disabling...
QFont::setPixelSize: Pixel size <= 0 (0)
QFont::setPixelSize: Pixel size <= 0 (0)
QFont::setPixelSize: Pixel size <= 0 (0)

(The last line repeated itself ad infinitum).

The crash dialog told me that the bascktrace itself was useful, but didn't allow me to directly report a bug. Here's the backtrace:

Application: akonadi_maildispatcher_agent (akonadi_maildispatcher_agent), signal: Aborted
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f5919571c80 (LWP 12374))]

Thread 5 (Thread 0x7f58fa14b700 (LWP 12420)):
#0  0x00007f59159c0bf9 in __GI___poll (fds=0x7f58f0003ce0, nfds=1, timeout=9680) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007f591004e539 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f591004e64c in g_main_context_iteration () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f591651304b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007f59164b730a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007f59162e2bba in QThread::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#6  0x00007f59162edadb in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#7  0x00007f5911a0b6db in start_thread (arg=0x7f58fa14b700) at pthread_create.c:463
#8  0x00007f59159cd88f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 4 (Thread 0x7f58fa94c700 (LWP 12395)):
[KCrash Handler]
#6  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51
#7  0x00007f59158ec801 in __GI_abort () at abort.c:79
#8  0x00007f5915f418b7 in __gnu_cxx::__verbose_terminate_handler () at ../../../../src/libstdc++-v3/libsupc++/vterminate.cc:95
#9  0x00007f5915f47a06 in __cxxabiv1::__terminate(void (*)()) () at ../../../../src/libstdc++-v3/libsupc++/eh_terminate.cc:47
#10 0x00007f5915f47a41 in std::terminate () at ../../../../src/libstdc++-v3/libsupc++/eh_terminate.cc:57
#11 0x00007f59162bdd7b in qTerminate() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#12 0x00007f59162edc6b in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#13 0x00007f5911a0b6db in start_thread (arg=0x7f58fa94c700) at pthread_create.c:463
#14 0x00007f59159cd88f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 3 (Thread 0x7f58fb14d700 (LWP 12392)):
#0  0x00007f59159c0bf9 in __GI___poll (fds=0x7f58f40249b0, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007f591004e539 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f591004e64c in g_main_context_iteration () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f591651304b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007f59164b730a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007f59162e2bba in QThread::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#6  0x00007f59171aee45 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5DBus.so.5
#7  0x00007f59162edadb in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#8  0x00007f5911a0b6db in start_thread (arg=0x7f58fb14d700) at pthread_create.c:463
#9  0x00007f59159cd88f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 2 (Thread 0x7f590346a700 (LWP 12387)):
#0  0x00007f59159c0bf9 in __GI___poll (fds=0x7f5903469ca8, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007f590e3a8747 in ?? () from /usr/lib/x86_64-linux-gnu/libxcb.so.1
#2  0x00007f590e3aa36a in xcb_wait_for_event () from /usr/lib/x86_64-linux-gnu/libxcb.so.1
#3  0x00007f590642aed9 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5XcbQpa.so.5
#4  0x00007f59162edadb in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007f5911a0b6db in start_thread (arg=0x7f590346a700) at pthread_create.c:463
#6  0x00007f59159cd88f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 1 (Thread 0x7f5919571c80 (LWP 12374)):
#0  0x00007f5910094049 in g_mutex_lock () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#1  0x00007f591004dc81 in g_main_context_query () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f591004e4b7 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f591004e64c in g_main_context_iteration () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007f591651304b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007f59064b6761 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5XcbQpa.so.5
#6  0x00007f59164b730a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#7  0x00007f59164c04d0 in QCoreApplication::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#8  0x00007f5918f58349 in Akonadi::AgentBase::init(Akonadi::AgentBase*) () from /usr/lib/x86_64-linux-gnu/libKF5AkonadiAgentBase.so.5
#9  0x000055c813187834 in ?? ()
#10 0x00007f59158cdb97 in __libc_start_main (main=0x55c813182fb0, argc=3, argv=0x7ffcd7b580a8, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7ffcd7b58098) at ../csu/libc-start.c:310
#11 0x000055c813182fea in _start ()


The version of akonadi is 5.10.0, which isn't available yet in the bug reporter
Comment 1 Christoph Feck 2019-01-17 02:17:56 UTC

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