Bug 361381

Summary: Kmail crashes when replying to specific email
Product: [Applications] kontact Reporter: noucamp13
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED UNMAINTAINED    
Severity: crash CC: kdenis, noucamp13
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 noucamp13 2016-04-04 15:48:18 UTC
Application: kontact (4.14.2)
KDE Platform Version: 4.14.2 (Compiled from sources)
Qt Version: 4.8.6
Operating System: Linux 3.19.0-32-generic x86_64
Distribution: Linux Mint 17.3 Rosa

-- Information about the crash:
- What I was doing when the application crashed:
Hit Reply to answer an email on Hotmail (IMAP) account. Other emails in same and other accounts do not produce the same behaviour. Have not tried restarting system to see if problem is gone, but every instance of Kmail I open after the crash produces the exact same behaviour.

The crash can be reproduced every time.

-- Backtrace:
Application: Kontact (kontact), signal: Aborted
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7ff3d7a4e800 (LWP 4141))]

Thread 5 (Thread 0x7ff3b7e89700 (LWP 4142)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007ff3d27f081d in ?? () from /usr/lib/x86_64-linux-gnu/libQtWebKit.so.4
#2  0x00007ff3d27f0859 in ?? () from /usr/lib/x86_64-linux-gnu/libQtWebKit.so.4
#3  0x00007ff3cef11182 in start_thread (arg=0x7ff3b7e89700) at pthread_create.c:312
#4  0x00007ff3d4fc547d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 4 (Thread 0x7ff377586700 (LWP 4143)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007ff3d253120d in ?? () from /usr/lib/x86_64-linux-gnu/libQtWebKit.so.4
#2  0x00007ff3d281ffd6 in ?? () from /usr/lib/x86_64-linux-gnu/libQtWebKit.so.4
#3  0x00007ff3cef11182 in start_thread (arg=0x7ff377586700) at pthread_create.c:312
#4  0x00007ff3d4fc547d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 3 (Thread 0x7ff367ed5700 (LWP 4150)):
#0  0x00007ffefa7d8cb6 in ?? ()
#1  0x00007ff3d573feae in QTimerInfoList::repairTimersIfNeeded (this=0x1) at kernel/qeventdispatcher_unix.cpp:413
#2  0x000000007fffffff in ?? ()
#3  0x00007ff367ed4c30 in ?? ()
#4  0x00007ff3d4fd392d in __GI___clock_gettime (clock_id=<optimized out>, tp=<optimized out>) at ../sysdeps/unix/clock_gettime.c:115
#5  0x00007ff3d5663ad7 in do_gettime (frac=0x7ff367ed4bc0, sec=0x7ff367ed4bb8) at tools/qelapsedtimer_unix.cpp:127
#6  qt_gettime () at tools/qelapsedtimer_unix.cpp:144
#7  0x00007ff3d573fb79 in QTimerInfoList::updateCurrentTime (this=0x7ff360003130, this@entry=0x4cd19a) at kernel/qeventdispatcher_unix.cpp:354
#8  0x00007ff3d573ea4b in timerSourceCheckHelper (src=0x4cd13a) at kernel/qeventdispatcher_glib.cpp:157
#9  0x00007ff3cea31a61 in g_main_context_check () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#10 0x00007ff3cea31f7b in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#11 0x00007ff3cea320ec in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#12 0x00007ff3d573e7be in QEventDispatcherGlib::processEvents (this=0x7ff3600008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:436
#13 0x00007ff3d57100af in QEventLoop::processEvents (this=this@entry=0x7ff367ed4de0, flags=...) at kernel/qeventloop.cpp:149
#14 0x00007ff3d57103a5 in QEventLoop::exec (this=this@entry=0x7ff367ed4de0, flags=...) at kernel/qeventloop.cpp:204
#15 0x00007ff3d560cc5f in QThread::exec (this=<optimized out>) at thread/qthread.cpp:537
#16 0x00007ff3d560f32f in QThreadPrivate::start (arg=0x1b4b880) at thread/qthread_unix.cpp:349
#17 0x00007ff3cef11182 in start_thread (arg=0x7ff367ed5700) at pthread_create.c:312
#18 0x00007ff3d4fc547d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 2 (Thread 0x7ff364eca700 (LWP 4169)):
#0  0x00007ff3d4fb812d in poll () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007ff3cea31fe4 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007ff3cea320ec in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007ff3d573e7be in QEventDispatcherGlib::processEvents (this=0x7ff3580008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:436
#4  0x00007ff3d57100af in QEventLoop::processEvents (this=this@entry=0x7ff364ec9da0, flags=...) at kernel/qeventloop.cpp:149
#5  0x00007ff3d57103a5 in QEventLoop::exec (this=this@entry=0x7ff364ec9da0, flags=...) at kernel/qeventloop.cpp:204
#6  0x00007ff3d560cc5f in QThread::exec (this=this@entry=0x2a90ee0) at thread/qthread.cpp:537
#7  0x00007ff3d56f1823 in QInotifyFileSystemWatcherEngine::run (this=0x2a90ee0) at io/qfilesystemwatcher_inotify.cpp:265
#8  0x00007ff3d560f32f in QThreadPrivate::start (arg=0x2a90ee0) at thread/qthread_unix.cpp:349
#9  0x00007ff3cef11182 in start_thread (arg=0x7ff364eca700) at pthread_create.c:312
#10 0x00007ff3d4fc547d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 1 (Thread 0x7ff3d7a4e800 (LWP 4141)):
[KCrash Handler]
#6  0x00007ff3d4f01cc9 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
#7  0x00007ff3d4f050d8 in __GI_abort () at abort.c:89
#8  0x00007ff3d4f3e394 in __libc_message (do_abort=do_abort@entry=1, fmt=fmt@entry=0x7ff3d504cb28 "*** Error in `%s': %s: 0x%s ***\n") at ../sysdeps/posix/libc_fatal.c:175
#9  0x00007ff3d4f4a66e in malloc_printerr (ptr=<optimized out>, str=0x7ff3d504ccc8 "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 0x00007ff3d635648d 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=0x5d8b3b0) at ../../include/QtCore/../../src/corelib/tools/qvector.h:395
#14 clear (this=0x5d8b3b0) at ../../include/QtCore/../../src/corelib/tools/qvector.h:348
#15 QTextEngine::clearLineData (this=0x5d8b3b0) at text/qtextengine.cpp:1483
#16 0x00007ff3d6358268 in QTextLayout::clearLayout (this=<optimized out>) at text/qtextlayout.cpp:659
#17 0x00007ff3d6369e6c in QTextBlock::clearLayout (this=this@entry=0x7ffefa7ba1f0) at text/qtextobject.cpp:1084
#18 0x00007ff3d63a10e3 in QTextDocumentLayout::documentChanged (this=0x4f15170, from=0, oldLength=0, length=8851) at text/qtextdocumentlayout.cpp:2882
#19 0x00007ff3d655b663 in QTextEditPrivate::relayoutDocument (this=this@entry=0x51e2160) at widgets/qtextedit.cpp:1438
#20 0x00007ff3d655be60 in QTextEdit::resizeEvent (this=<optimized out>, e=0x7ffefa7ba6f0) at widgets/qtextedit.cpp:1397
#21 0x00007ff3d61532ce in QWidget::event (this=this@entry=0x52627f0, event=event@entry=0x7ffefa7ba6f0) at kernel/qwidget.cpp:8541
#22 0x00007ff3d64f504e in QFrame::event (this=0x52627f0, e=0x7ffefa7ba6f0) at widgets/qframe.cpp:557
#23 0x00007ff3d5711646 in QCoreApplicationPrivate::sendThroughObjectEventFilters (this=this@entry=0x18b8530, receiver=receiver@entry=0x50e7e90, event=event@entry=0x7ffefa7ba6f0) at kernel/qcoreapplication.cpp:1063
#24 0x00007ff3d6103e0c in QApplicationPrivate::notify_helper (this=this@entry=0x18b8530, receiver=receiver@entry=0x50e7e90, e=e@entry=0x7ffefa7ba6f0) at kernel/qapplication.cpp:4563
#25 0x00007ff3d610a4a0 in QApplication::notify (this=this@entry=0x7ffefa7bbb10, receiver=receiver@entry=0x50e7e90, e=e@entry=0x7ffefa7ba6f0) at kernel/qapplication.cpp:4353
#26 0x00007ff3d6e0ecca in KApplication::notify (this=0x7ffefa7bbb10, receiver=0x50e7e90, event=0x7ffefa7ba6f0) at ../../kdeui/kernel/kapplication.cpp:311
#27 0x00007ff3d57114dd in QCoreApplication::notifyInternal (this=0x7ffefa7bbb10, receiver=receiver@entry=0x50e7e90, event=event@entry=0x7ffefa7ba6f0) at kernel/qcoreapplication.cpp:953
#28 0x00007ff3d619c22e in sendEvent (event=0x7ffefa7ba6f0, receiver=0x50e7e90) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#29 QWidgetPrivate::setGeometry_sys (this=this@entry=0x51e1740, x=<optimized out>, y=3, w=<optimized out>, h=<optimized out>, isMove=isMove@entry=true) at kernel/qwidget_x11.cpp:2676
#30 0x00007ff3d614ba75 in QWidget::setGeometry (this=0x50e7e90, r=...) at kernel/qwidget.cpp:6974
#31 0x00007ff3d6570081 in QAbstractScrollAreaPrivate::layoutChildren (this=this@entry=0x51e2160) at widgets/qabstractscrollarea.cpp:480
#32 0x00007ff3d65714fd in QAbstractScrollArea::event (this=this@entry=0x52627f0, e=e@entry=0x7ffefa7bace0) at widgets/qabstractscrollarea.cpp:924
#33 0x00007ff3d655df0a in QTextEdit::event (this=0x52627f0, e=0x7ffefa7bace0) at widgets/qtextedit.cpp:1070
#34 0x00007ff3d6103e2c in QApplicationPrivate::notify_helper (this=this@entry=0x18b8530, receiver=receiver@entry=0x52627f0, e=e@entry=0x7ffefa7bace0) at kernel/qapplication.cpp:4567
#35 0x00007ff3d610a4a0 in QApplication::notify (this=this@entry=0x7ffefa7bbb10, receiver=receiver@entry=0x52627f0, e=e@entry=0x7ffefa7bace0) at kernel/qapplication.cpp:4353
#36 0x00007ff3d6e0ecca in KApplication::notify (this=0x7ffefa7bbb10, receiver=0x52627f0, event=0x7ffefa7bace0) at ../../kdeui/kernel/kapplication.cpp:311
#37 0x00007ff3d57114dd in QCoreApplication::notifyInternal (this=0x7ffefa7bbb10, receiver=receiver@entry=0x52627f0, event=event@entry=0x7ffefa7bace0) at kernel/qcoreapplication.cpp:953
#38 0x00007ff3d614f0c2 in sendEvent (event=0x7ffefa7bace0, receiver=0x52627f0) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#39 QWidget::setContentsMargins (this=this@entry=0x52627f0, left=<optimized out>, top=<optimized out>, right=<optimized out>, bottom=<optimized out>) at kernel/qwidget.cpp:7203
#40 0x00007ff3d64f4c6b in QFrame::setFrameRect (this=this@entry=0x52627f0, r=...) at widgets/qframe.cpp:469
#41 0x00007ff3d65701ea in QAbstractScrollAreaPrivate::layoutChildren (this=this@entry=0x51e2160) at widgets/qabstractscrollarea.cpp:403
#42 0x00007ff3d6570ea5 in QAbstractScrollAreaPrivate::_q_showOrHideScrollBars (this=this@entry=0x51e2160) at widgets/qabstractscrollarea.cpp:1324
#43 0x00007ff3d655b9a4 in QTextEditPrivate::_q_adjustScrollbars (this=0x51e2160) at widgets/qtextedit.cpp:289
#44 0x00007ff3d655db62 in _q_adjustScrollbars (this=<optimized out>) at widgets/qtextedit.cpp:260
#45 QTextEdit::qt_static_metacall (_o=<optimized out>, _id=<optimized out>, _a=<optimized out>, _c=<optimized out>) at .moc/release-shared/moc_qtextedit.cpp:212
#46 0x00007ff3d572587a in QMetaObject::activate (sender=0x4eb4890, m=m@entry=0x7ff3d6bb5e60 <QTextControl::staticMetaObject>, local_signal_index=local_signal_index@entry=9, argv=argv@entry=0x7ffefa7bafa0) at kernel/qobject.cpp:3539
#47 0x00007ff3d6341d75 in QTextControl::documentSizeChanged (this=<optimized out>, _t1=...) at .moc/release-shared/moc_qtextcontrol_p.cpp:308
#48 0x00007ff3d6347d39 in QTextControl::qt_static_metacall (_o=0x102d, _id=4141, _a=0x6, _c=<optimized out>) at .moc/release-shared/moc_qtextcontrol_p.cpp:139
#49 0x00007ff3d572587a in QMetaObject::activate (sender=sender@entry=0x4f15170, m=m@entry=0x7ff3d6bb61e0 <QAbstractTextDocumentLayout::staticMetaObject>, local_signal_index=local_signal_index@entry=3, argv=argv@entry=0x7ffefa7bb0f0) at kernel/qobject.cpp:3539
#50 0x00007ff3d638f8d5 in QAbstractTextDocumentLayout::documentSizeChanged (this=this@entry=0x4f15170, _t1=...) at .moc/release-shared/moc_qabstracttextdocumentlayout.cpp:136
#51 0x00007ff3d63a1482 in QTextDocumentLayout::documentChanged (this=0x4f15170, from=0, oldLength=<optimized out>, length=80) at text/qtextdocumentlayout.cpp:2927
#52 0x00007ff3d637ed21 in QTextDocumentPrivate::finishEdit (this=0x4be8f70) at text/qtextdocument_p.cpp:1220
#53 0x00007ff3d637f264 in QTextDocumentPrivate::endEditBlock (this=<optimized out>) at text/qtextdocument_p.cpp:1201
#54 0x00007ff3d637f2be in QTextDocumentPrivate::endEditBlock (this=<optimized out>) at text/qtextdocument_p.cpp:1187
#55 0x00007ff3d63a5b45 in QTextCursor::endEditBlock (this=this@entry=0x7ffefa7bb290) at text/qtextcursor.cpp:2517
#56 0x00007ff375245fff in insertSignatureHelper (signature=..., textEdit=textEdit@entry=0x52627f0, placement=placement@entry=KPIMIdentities::Signature::Start, isHtml=<optimized out>, addNewlines=addNewlines@entry=true) at ../../kpimidentities/signature.cpp:490
#57 0x00007ff37524880b in insertSignatureHelper (addNewlines=true, isHtml=<optimized out>, placement=KPIMIdentities::Signature::Start, textEdit=0x52627f0, signature=...) at ../../kpimidentities/signature.cpp:553
#58 KPIMIdentities::Signature::insertSignatureText (this=this@entry=0x7ffefa7bb3d0, placement=placement@entry=KPIMIdentities::Signature::Start, addedText=..., textEdit=0x52627f0, forceDisplay=forceDisplay@entry=false) at ../../kpimidentities/signature.cpp:553
#59 0x00007ff375248844 in KPIMIdentities::Signature::insertIntoTextEdit (this=this@entry=0x7ffefa7bb3d0, placement=placement@entry=KPIMIdentities::Signature::Start, addedText=..., textEdit=<optimized out>) at ../../kpimidentities/signature.cpp:528
#60 0x00007ff36cd1aa24 in MessageComposer::SignatureController::insertSignatureHelper (this=0x4d075e0, placement=KPIMIdentities::Signature::Start) at ../../messagecomposer/composer/signaturecontroller.cpp:132
#61 0x00007ff3d5729c1e in QObject::event (this=0x4d075e0, e=<optimized out>) at kernel/qobject.cpp:1194
#62 0x00007ff3d6103e2c in QApplicationPrivate::notify_helper (this=this@entry=0x18b8530, receiver=receiver@entry=0x4d075e0, e=e@entry=0x5b09a60) at kernel/qapplication.cpp:4567
#63 0x00007ff3d610a4a0 in QApplication::notify (this=this@entry=0x7ffefa7bbb10, receiver=receiver@entry=0x4d075e0, e=e@entry=0x5b09a60) at kernel/qapplication.cpp:4353
#64 0x00007ff3d6e0ecca in KApplication::notify (this=0x7ffefa7bbb10, receiver=0x4d075e0, event=0x5b09a60) at ../../kdeui/kernel/kapplication.cpp:311
#65 0x00007ff3d57114dd in QCoreApplication::notifyInternal (this=0x7ffefa7bbb10, receiver=receiver@entry=0x4d075e0, event=event@entry=0x5b09a60) at kernel/qcoreapplication.cpp:953
#66 0x00007ff3d5714b3d in sendEvent (event=0x5b09a60, receiver=0x4d075e0) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#67 QCoreApplicationPrivate::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=0, data=0x18762b0) at kernel/qcoreapplication.cpp:1577
#68 0x00007ff3d5714fe3 in QCoreApplication::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=0) at kernel/qcoreapplication.cpp:1470
#69 0x00007ff3d573ef83 in sendPostedEvents () at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:236
#70 postEventSourceDispatch (s=0x18b2d20) at kernel/qeventdispatcher_glib.cpp:287
#71 0x00007ff3cea31e04 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#72 0x00007ff3cea32048 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#73 0x00007ff3cea320ec in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#74 0x00007ff3d573e7a1 in QEventDispatcherGlib::processEvents (this=0x1877bb0, flags=...) at kernel/qeventdispatcher_glib.cpp:434
#75 0x00007ff3d61a5be6 in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#76 0x00007ff3d57100af in QEventLoop::processEvents (this=this@entry=0x7ffefa7bba10, flags=...) at kernel/qeventloop.cpp:149
#77 0x00007ff3d57103a5 in QEventLoop::exec (this=this@entry=0x7ffefa7bba10, flags=...) at kernel/qeventloop.cpp:204
#78 0x00007ff3d5715b79 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1225
#79 0x00007ff3d610237c in QApplication::exec () at kernel/qapplication.cpp:3828
#80 0x0000000000403660 in main (argc=1, argv=0x7ffefa7bbc58) at ../../../kontact/src/main.cpp:219

Possible duplicates by query: bug 360716, bug 359798, bug 358364, bug 355279, bug 354573.

Reported using DrKonqi
Comment 1 noucamp13 2016-07-07 13:11:51 UTC
Created attachment 99923 [details]
New crash information added by DrKonqi

kontact (4.14.2) on KDE Platform 4.14.2 using Qt 4.8.6

- What I was doing when the application crashed:

Replying to email (IMAP). Although it may be unrelated, I have noticed that some of my IMAP accounts fail to synchronize after Kmail has been opened for several hours. This was not the case (this time) with the account I was replying from.

-- Backtrace (Reduced):
#6  0x00007f0f3f3c1c37 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
#7  0x00007f0f3f3c5028 in __GI_abort () at abort.c:89
[...]
#9  0x00007f0f3f40a55e in malloc_printerr (ptr=<optimized out>, str=0x7f0f3f50c7e0 "double free or corruption (out)", action=1) at malloc.c:4996
#10 _int_free (av=<optimized out>, p=<optimized out>, have_lock=0) at malloc.c:3840
#11 0x00007f0f4082c929 in QTextOption::operator= (this=0x826aa50, o=...) at text/qtextoption.cpp:129
Comment 2 Denis Kurz 2017-06-23 22:20:44 UTC
This bug has never been confirmed for a KDE PIM version that is based on KDE Frameworks, except possibly a Technology Preview version 5.0.x. Those Framework-based versions differ significantly from the old 4.x series. Therefore, I plan to close it in around two or three months. In the meantime, it is set to WAITINGFORINFO to give reporters the opportunity to check if it is still valid. As soon as someone confirms it for a recent version (at least 5.1, ideally even more recent), I'll gladly reopen it.

Please understand that we lack the manpower to triage bugs reported for versions almost two years beyond their end of life.
Comment 3 Denis Kurz 2018-02-01 09:55:04 UTC
Just as announced in my last comment, I close this bug. If you encounter it again in a recent version (at least 5.1 aka 15.12; preferably much more recent), please open a new one unless it already exists. Thank you for all your input.