Bug 405568 - Kmail crashes during startup before any window is displayed
Summary: Kmail crashes during startup before any window is displayed
Status: RESOLVED DUPLICATE of bug 403317
Alias: None
Product: kmail2
Classification: Applications
Component: general (show other bugs)
Version: 5.10.3
Platform: Neon Linux
: NOR crash
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2019-03-17 16:18 UTC by Andreas
Modified: 2019-03-31 09:37 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 Andreas 2019-03-17 16:18:31 UTC
Application: kmail (5.10.3)

Qt Version: 5.12.0
Frameworks Version: 5.56.0
Operating System: Linux 4.15.0-46-generic x86_64
Distribution: KDE neon User Edition 5.15

-- Information about the crash:
Konsole output

Hspell: can't open /usr/share/hspell/hebrew.wgz.sizes.
sonnet.plugins.hspell: HSpellDict::HSpellDict: Init failed
Connecting to deprecated signal QDBusConnectionInterface::serviceOwnerChanged(QString,QString,QString)
org.kde.pim.akonadiserver: Starting up the Akonadi Server...
No text-to-speech plug-ins were found.
QWidget::insertAction: Attempt to insert null action
*** KMail got signal 11 (Exiting)
*** Dead letters dumped.
KCrash: crashing... crashRecursionCounter = 2
KCrash: Application Name = kmail path = /usr/bin pid = 19277
KCrash: Arguments: /usr/bin/kmail 
KCrash: Attempting to start /usr/lib/x86_64-linux-gnu/libexec/drkonqi from kdeinit
sock_file=/run/user/1000/kdeinit5__0

-- Backtrace:
Application: KMail (kmail), signal: Segmentation fault
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f28f2659bc0 (LWP 19277))]

Thread 7 (Thread 0x7f28a998f700 (LWP 19285)):
#0  0x00007f28ef6a20b4 in __GI___libc_read (fd=14, buf=0x7f28a998e7d0, nbytes=16) at ../sysdeps/unix/sysv/linux/read.c:27
#1  0x00007f28e2fd6cd0 in  () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f28e2f92027 in g_main_context_check () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f28e2f924e0 in  () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007f28e2f9264c in g_main_context_iteration () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007f28effe915b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#6  0x00007f28eff8a64a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#7  0x00007f28efdb241a in QThread::exec() () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#8  0x00007f28efdb3bc2 in  () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#9  0x00007f28e4e5e6db in start_thread (arg=0x7f28a998f700) at pthread_create.c:463
#10 0x00007f28ef6b388f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 6 (Thread 0x7f28aa190700 (LWP 19282)):
#0  0x00007f28e2fd8049 in g_mutex_lock () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#1  0x00007f28e2f91905 in g_main_context_prepare () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f28e2f9246b in  () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f28e2f9264c in g_main_context_iteration () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007f28effe915b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007f28eff8a64a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#6  0x00007f28efdb241a in QThread::exec() () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#7  0x00007f28efdb3bc2 in  () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#8  0x00007f28e4e5e6db in start_thread (arg=0x7f28aa190700) at pthread_create.c:463
#9  0x00007f28ef6b388f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 5 (Thread 0x7f28aadee700 (LWP 19281)):
#0  0x00007f28effe8a2c in  () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#1  0x00007f28effe7279 in QTimerInfoList::updateCurrentTime() () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#2  0x00007f28effe7855 in QTimerInfoList::timerWait(timespec&) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#3  0x00007f28effe8e9e in  () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007f28e2f91a98 in g_main_context_prepare () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007f28e2f9246b in  () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#6  0x00007f28e2f9264c in g_main_context_iteration () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#7  0x00007f28effe915b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#8  0x00007f28eff8a64a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#9  0x00007f28efdb241a in QThread::exec() () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#10 0x00007f28efdb3bc2 in  () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#11 0x00007f28e4e5e6db in start_thread (arg=0x7f28aadee700) at pthread_create.c:463
#12 0x00007f28ef6b388f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 4 (Thread 0x7f28abfff700 (LWP 19280)):
#0  0x00007ffd00ed4979 in  ()
#1  0x00007ffd00ed4c30 in clock_gettime ()
#2  0x00007f28ef6c2ea6 in __GI___clock_gettime (clock_id=1, tp=0x7f28abffe720) at ../sysdeps/unix/clock_gettime.c:115
#3  0x00007f28effe8a41 in  () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007f28effe7279 in QTimerInfoList::updateCurrentTime() () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007f28effe7855 in QTimerInfoList::timerWait(timespec&) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#6  0x00007f28effe8e9e in  () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#7  0x00007f28e2f91a98 in g_main_context_prepare () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#8  0x00007f28e2f9246b in  () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#9  0x00007f28e2f9264c in g_main_context_iteration () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#10 0x00007f28effe915b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#11 0x00007f28eff8a64a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#12 0x00007f28efdb241a in QThread::exec() () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#13 0x00007f28ee398015 in  () at /usr/lib/x86_64-linux-gnu/libQt5DBus.so.5
#14 0x00007f28efdb3bc2 in  () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#15 0x00007f28e4e5e6db in start_thread (arg=0x7f28abfff700) at pthread_create.c:463
#16 0x00007f28ef6b388f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 3 (Thread 0x7f28b2563700 (LWP 19279)):
#0  0x00007f28e4e649f3 in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x558881725d28) at ../sysdeps/unix/sysv/linux/futex-internal.h:88
#1  0x00007f28e4e649f3 in __pthread_cond_wait_common (abstime=0x0, mutex=0x558881725cd8, cond=0x558881725d00) at pthread_cond_wait.c:502
#2  0x00007f28e4e649f3 in __pthread_cond_wait (cond=0x558881725d00, mutex=0x558881725cd8) at pthread_cond_wait.c:655
#3  0x00007f28b36e5b1b in  () at /usr/lib/x86_64-linux-gnu/dri/i965_dri.so
#4  0x00007f28b36e5847 in  () at /usr/lib/x86_64-linux-gnu/dri/i965_dri.so
#5  0x00007f28e4e5e6db in start_thread (arg=0x7f28b2563700) at pthread_create.c:463
#6  0x00007f28ef6b388f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 2 (Thread 0x7f28bb148700 (LWP 19278)):
#0  0x00007f28ef6a6bf9 in __GI___poll (fds=0x7f28bb1478f8, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007f28e23bb747 in  () at /usr/lib/x86_64-linux-gnu/libxcb.so.1
#2  0x00007f28e23bd36a in xcb_wait_for_event () at /usr/lib/x86_64-linux-gnu/libxcb.so.1
#3  0x00007f28bbe3b32a in  () at /usr/lib/x86_64-linux-gnu/libQt5XcbQpa.so.5
#4  0x00007f28efdb3bc2 in  () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007f28e4e5e6db in start_thread (arg=0x7f28bb148700) at pthread_create.c:463
#6  0x00007f28ef6b388f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 1 (Thread 0x7f28f2659bc0 (LWP 19277)):
[KCrash Handler]
#6  0x00007f28effb9eaa in QObject::property(char const*) const () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#7  0x00007f28ef0d0ccb in  () at /usr/lib/x86_64-linux-gnu/libKF5XmlGui.so.5
#8  0x00007f28ef0d1d29 in KXMLGUIFactory::plugActionList(KXMLGUIClient*, QString const&, QList<QAction*> const&) () at /usr/lib/x86_64-linux-gnu/libKF5XmlGui.so.5
#9  0x00007f28f1fd634e in KMComposerWin::initializePluginActions() (this=this@entry=0x558881c35100) at ./src/editor/kmcomposerwin.cpp:1361
#10 0x00007f28f1fdc839 in KMComposerWin::setupActions() (this=this@entry=0x558881c35100) at ./src/editor/kmcomposerwin.cpp:1299
#11 0x00007f28f1febacf in KMComposerWin::KMComposerWin(QSharedPointer<KMime::Message> const&, bool, bool, KMail::Composer::TemplateContext, unsigned int, QString const&, QString const&) (this=this@entry=0x558881c35100, aMsg=..., lastSignState=lastSignState@entry=false, lastEncryptState=lastEncryptState@entry=false, context=context@entry=KMail::Composer::NoTemplate, id=id@entry=0, textSelection=..., customTemplate=..., __in_chrg=<optimized out>, __vtt_parm=<optimized out>) at ./src/editor/kmcomposerwin.cpp:440
#12 0x00007f28f1fec5c1 in KMComposerWin::create(QSharedPointer<KMime::Message> const&, bool, bool, KMail::Composer::TemplateContext, unsigned int, QString const&, QString const&) (msg=..., lastSignState=lastSignState@entry=false, lastEncryptState=lastEncryptState@entry=false, context=context@entry=KMail::Composer::NoTemplate, identity=identity@entry=0, textSelection=..., customTemplate=...) at ./src/editor/kmcomposerwin.cpp:226
#13 0x00007f28f1fec5fc in KMail::makeComposer(QSharedPointer<KMime::Message> const&, bool, bool, KMail::Composer::TemplateContext, unsigned int, QString const&, QString const&) (msg=..., lastSignState=lastSignState@entry=false, lastEncryptState=lastEncryptState@entry=false, context=context@entry=KMail::Composer::NoTemplate, identity=identity@entry=0, textSelection=..., customTemplate=...) at ./src/editor/kmcomposerwin.cpp:220
#14 0x00007f28f1ee9df4 in KMKernel::recoverDeadLetters() (this=<optimized out>) at ./src/kmkernel.cpp:986
#15 0x000055887f4e0825 in main(int, char**) (argc=<optimized out>, argv=<optimized out>) at ./src/main.cpp:163

Reported using DrKonqi
Comment 1 Andreas 2019-03-28 21:22:26 UTC
Workaround:

I tried the usual akonadi trickery and also deleting kmail config files, but these things did not help.

After finding out that kmail still works for other users, I looked for hints in the strace output and guessed a relationship with 
"/home/andreas/.local/share/kmail2/autosave/*"

Deleting all those files, I am able to start kmail again.
Comment 2 Christoph Feck 2019-03-31 09:37:27 UTC

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