Bug 358346

Summary: Kmail crash on startup
Product: [Applications] kmail2 Reporter: Kuberboef <stefaans.mostert>
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED WORKSFORME    
Severity: crash CC: dav1dblunk3tt, squan
Priority: NOR Keywords: drkonqi
Version: 4.14.3   
Target Milestone: ---   
Platform: Mint (Ubuntu based)   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Kuberboef 2016-01-22 04:39:10 UTC
Application: kmail (4.14.3)
KDE Platform Version: 4.14.13
Qt Version: 4.8.6
Operating System: Linux 4.1.6-040106-generic x86_64
Distribution: Linux Mint 17.3 Rosa

-- Information about the crash:
- What I was doing when the application crashed:
Klicked the icon on the launcher bar to open Kmail.

The daemon is running in the background, as I get notifications of new mails.
I get mail from exchange server with davmail, this setup has been running with success for a month now, before this happened.

The crash can be reproduced every time.

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

Thread 2 (Thread 0x7f2cf7acd700 (LWP 7062)):
#0  __pthread_mutex_unlock_usercnt (decr=1, mutex=0x7f2cf0000a60) at pthread_mutex_unlock.c:81
#1  __GI___pthread_mutex_unlock (mutex=0x7f2cf0000a60) at pthread_mutex_unlock.c:310
#2  0x00007f2d144d69b1 in g_mutex_unlock () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f2d14494680 in g_main_context_prepare () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007f2d14494f03 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007f2d144950ec in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#6  0x00007f2d1dd0b7be in QEventDispatcherGlib::processEvents (this=0x7f2cf00008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:436
#7  0x00007f2d1dcdd0af in QEventLoop::processEvents (this=this@entry=0x7f2cf7accda0, flags=...) at kernel/qeventloop.cpp:149
#8  0x00007f2d1dcdd3a5 in QEventLoop::exec (this=this@entry=0x7f2cf7accda0, flags=...) at kernel/qeventloop.cpp:204
#9  0x00007f2d1dbd9c5f in QThread::exec (this=this@entry=0x101aa30) at thread/qthread.cpp:537
#10 0x00007f2d1dcbe823 in QInotifyFileSystemWatcherEngine::run (this=0x101aa30) at io/qfilesystemwatcher_inotify.cpp:265
#11 0x00007f2d1dbdc32f in QThreadPrivate::start (arg=0x101aa30) at thread/qthread_unix.cpp:349
#12 0x00007f2d19f8b182 in start_thread (arg=0x7f2cf7acd700) at pthread_create.c:312
#13 0x00007f2d1c6c947d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 1 (Thread 0x7f2d1f36b800 (LWP 7043)):
[KCrash Handler]
#6  0x00007f2d1c605cc9 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
#7  0x00007f2d1c6090d8 in __GI_abort () at abort.c:89
#8  0x00007f2d1c642394 in __libc_message (do_abort=do_abort@entry=1, fmt=fmt@entry=0x7f2d1c750b28 "*** Error in `%s': %s: 0x%s ***\n") at ../sysdeps/posix/libc_fatal.c:175
#9  0x00007f2d1c64e66e in malloc_printerr (ptr=<optimized out>, str=0x7f2d1c750cc8 "free(): invalid next size (fast)", action=1) at malloc.c:4996
#10 _int_free (av=<optimized out>, p=<optimized out>, have_lock=0) at malloc.c:3840
#11 0x00007f2d1d2ca48d in free (alignment=8, x=<optimized out>) at ../../include/QtCore/../../src/corelib/tools/qvector.h:99
#12 free (this=<optimized out>, x=<optimized out>) at ../../include/QtCore/../../src/corelib/tools/qvector.h:468
#13 operator= (v=..., this=0x1b8f2c0) at ../../include/QtCore/../../src/corelib/tools/qvector.h:395
#14 clear (this=0x1b8f2c0) at ../../include/QtCore/../../src/corelib/tools/qvector.h:348
#15 QTextEngine::clearLineData (this=0x1b8f2c0) at text/qtextengine.cpp:1483
#16 0x00007f2d1d2cc268 in QTextLayout::clearLayout (this=<optimized out>) at text/qtextlayout.cpp:659
#17 0x00007f2d1d2dde6c in QTextBlock::clearLayout (this=this@entry=0x7ffc51dc60d0) at text/qtextobject.cpp:1084
#18 0x00007f2d1d3150e3 in QTextDocumentLayout::documentChanged (this=0x1355ce0, from=0, oldLength=0, length=4897) at text/qtextdocumentlayout.cpp:2882
#19 0x00007f2d1d4cf663 in QTextEditPrivate::relayoutDocument (this=this@entry=0x17ee550) at widgets/qtextedit.cpp:1438
#20 0x00007f2d1d4cf9d7 in QTextEditPrivate::_q_adjustScrollbars (this=0x17ee550) at widgets/qtextedit.cpp:297
#21 0x00007f2d1d4d1b62 in _q_adjustScrollbars (this=<optimized out>) at widgets/qtextedit.cpp:260
#22 QTextEdit::qt_static_metacall (_o=<optimized out>, _id=<optimized out>, _a=<optimized out>, _c=<optimized out>) at .moc/release-shared/moc_qtextedit.cpp:212
#23 0x00007f2d1dcf287a in QMetaObject::activate (sender=0x17f89f0, m=m@entry=0x7f2d1db29e60 <QTextControl::staticMetaObject>, local_signal_index=local_signal_index@entry=9, argv=argv@entry=0x7ffc51dc6340) at kernel/qobject.cpp:3539
#24 0x00007f2d1d2b5d75 in QTextControl::documentSizeChanged (this=<optimized out>, _t1=...) at .moc/release-shared/moc_qtextcontrol_p.cpp:308
#25 0x00007f2d1d2bbd39 in QTextControl::qt_static_metacall (_o=0x1b83, _id=7043, _a=0x6, _c=<optimized out>) at .moc/release-shared/moc_qtextcontrol_p.cpp:139
#26 0x00007f2d1dcf287a in QMetaObject::activate (sender=sender@entry=0x1355ce0, m=m@entry=0x7f2d1db2a1e0 <QAbstractTextDocumentLayout::staticMetaObject>, local_signal_index=local_signal_index@entry=3, argv=argv@entry=0x7ffc51dc6490) at kernel/qobject.cpp:3539
#27 0x00007f2d1d3038d5 in QAbstractTextDocumentLayout::documentSizeChanged (this=this@entry=0x1355ce0, _t1=...) at .moc/release-shared/moc_qabstracttextdocumentlayout.cpp:136
#28 0x00007f2d1d315482 in QTextDocumentLayout::documentChanged (this=0x1355ce0, from=1725, oldLength=<optimized out>, length=0) at text/qtextdocumentlayout.cpp:2927
#29 0x00007f2d1d2f2d21 in QTextDocumentPrivate::finishEdit (this=0x17f8c60) at text/qtextdocument_p.cpp:1220
#30 0x00007f2d1d2f3264 in QTextDocumentPrivate::endEditBlock (this=<optimized out>) at text/qtextdocument_p.cpp:1201
#31 0x00007f2d1d2f32be in QTextDocumentPrivate::endEditBlock (this=<optimized out>) at text/qtextdocument_p.cpp:1187
#32 0x00007f2d1d31b44b in QTextCursor::removeSelectedText (this=this@entry=0x7ffc51dc66a0) at text/qtextcursor.cpp:1662
#33 0x00007f2d15aff8e7 in KPIMTextEdit::TextEdit::loadImage (this=0x17edbf0, image=..., matchName=..., resourceName=...) at ../../kpimtextedit/textedit.cpp:521
#34 0x00007f2d1882cb33 in MessageComposer::ComposerViewBase::collectImages (this=this@entry=0xf98d70, root=<optimized out>) at ../../messagecomposer/composer/composerviewbase.cpp:1532
#35 0x00007f2d1882d440 in MessageComposer::ComposerViewBase::setMessage (this=0xf98d70, msg=...) at ../../messagecomposer/composer/composerviewbase.cpp:191
#36 0x00007f2d1e1d5a38 in KMComposeWin::setMessage (this=0x177f880, newMsg=..., lastSignState=<optimized out>, lastEncryptState=<optimized out>, mayAutoSign=<optimized out>, allowDecryption=<optimized out>, isModified=false) at ../../kmail/editor/kmcomposewin.cpp:1605
#37 0x00007f2d1e0ffb68 in KMKernel::recoverDeadLetters (this=this@entry=0x7ffc51dc70c0) at ../../kmail/kmkernel.cpp:1154
#38 0x0000000000402ceb in main (argc=<optimized out>, argv=<optimized out>) at ../../kmail/main.cpp:136

Possible duplicates by query: bug 355228, bug 350048, bug 348699, bug 347139, bug 347134.

Reported using DrKonqi
Comment 1 davidblunkett 2016-09-14 07:09:23 UTC
I have a similar problem in 5.1.3.

kmail hangs "checking folder contents" - if I quit and restart I get a crash report (seg fault) and a new kmail, kmail remains useless (checking folder contents) until I log out and log back in (which I guess points to a backend failure of some sort).

This has occurred a 1/2 dozen times in the last 48 hours so it is quite irritating!

In one instance upon restart I appeared to have lost all email, IMAP and local folders - a message popped up and disappeared before I could read it and my email reappeared 20 minutes later.
Comment 2 squan 2016-10-13 11:34:29 UTC
Since recently I'm having the same problem on openSUSE Leap 42.1 with updated Qt-5.7.0 and  packages
   kmail5 16.04.3
   akonadiserver 16.08.1.
from http://download.opensuse.org/repositories/KDE:/Applications/openSUSE_Leap_42.1/

Running kmail from a newly created user account shows the same error, hence this is not a problem of a broken user configuration (in accordance with https://bugs.kde.org/show_bug.cgi?id=358145)

Note: The KDE crash agent correctly proposed my problem as duplicate of this bug, but it did not allow to proceed and append this information here.
Comment 3 Andrew Crouthamel 2018-11-01 13:46:00 UTC
Dear Bug Submitter,

This bug has been stagnant for a long time. Could you help us out and re-test if the bug is valid in the latest version? I am setting the status to NEEDSINFO pending your response, please change the Status back to REPORTED when you respond.

Thank you for helping us make KDE software even better for everyone!
Comment 4 Bug Janitor Service 2018-11-16 11:38:22 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 5 Bug Janitor Service 2018-12-01 03:52:10 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now 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

Thank you for helping us make KDE software even better for everyone!