Bug 319094 - Crash by forwarding complex mail
Summary: Crash by forwarding complex mail
Status: RESOLVED FIXED
Alias: None
Product: kmail2
Classification: Applications
Component: commands and actions (show other bugs)
Version: 4.10.2
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-04-29 22:58 UTC by ro.ggi
Modified: 2016-09-25 11:26 UTC (History)
0 users

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


Attachments
simplified.mbox (15.31 KB, application/mbox)
2013-04-29 22:59 UTC, ro.ggi
Details
original.mbox (68.44 KB, application/mbox)
2013-04-29 23:00 UTC, ro.ggi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ro.ggi 2013-04-29 22:58:56 UTC
I have attached the original and simplified mail.
Kmail crashes  if  I open this mail, press forward, then inline. Sometimes I get a message “Could not autosafe message: Asked to use word wrapping, but not given wrapped plain text.”


Application: Kontact (kontact), signal: Segmentation fault
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7fba9904c800 (LWP 1828))]

Thread 5 (Thread 0x7fba79256700 (LWP 1833)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007fba957d2585 in ?? () from /usr/lib/x86_64-linux-gnu/libQtWebKit.so.4
#2  0x00007fba957d25d9 in ?? () from /usr/lib/x86_64-linux-gnu/libQtWebKit.so.4
#3  0x00007fba90228f8e in start_thread (arg=0x7fba79256700) at pthread_create.c:311
#4  0x00007fba965cae1d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 4 (Thread 0x7fba3893b700 (LWP 1864)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007fba95518a09 in ?? () from /usr/lib/x86_64-linux-gnu/libQtWebKit.so.4
#2  0x00007fba95800cee in ?? () from /usr/lib/x86_64-linux-gnu/libQtWebKit.so.4
#3  0x00007fba90228f8e in start_thread (arg=0x7fba3893b700) at pthread_create.c:311
#4  0x00007fba965cae1d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 3 (Thread 0x7fba269fd700 (LWP 1905)):
#0  0x00007fff21db1af7 in ?? ()
#1  0x00007fba9907aaa8 in ?? ()
#2  0x0000000220002d00 in ?? ()
#3  0x00007fba20002660 in ?? ()
#4  0x00007fba269fcb40 in ?? ()
#5  0x00007fba269fcbf8 in ?? ()
#6  0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7fba2591b700 (LWP 1988)):
#0  0x00007fba8fba5361 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#1  0x00007fba8fba55e9 in g_mutex_unlock () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fba8fb6630e in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007fba979f0036 in QEventDispatcherGlib::processEvents (this=0x7fba180008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#4  0x00007fba979c038f in QEventLoop::processEvents (this=this@entry=0x7fba2591ad80, flags=...) at kernel/qeventloop.cpp:149
#5  0x00007fba979c0618 in QEventLoop::exec (this=this@entry=0x7fba2591ad80, flags=...) at kernel/qeventloop.cpp:204
#6  0x00007fba978c2410 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:542
#7  0x00007fba978c4bec in QThreadPrivate::start (arg=0xc1bee0) at thread/qthread_unix.cpp:338
#8  0x00007fba90228f8e in start_thread (arg=0x7fba2591b700) at pthread_create.c:311
#9  0x00007fba965cae1d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 1 (Thread 0x7fba9904c800 (LWP 1828)):
[KCrash Handler]
#6  deref (this=0x7fba00000000) at ../../include/QtCore/../../src/corelib/arch/qatomic_x86_64.h:133
#7  QList<QTextOption::Tab>::~QList (this=0x1ee7860, __in_chrg=<optimized out>) at ../../include/QtCore/../../src/corelib/tools/qlist.h:731
#8  0x00007fba96fdc53f in ~QTextOptionPrivate (this=0x1ee7860, __in_chrg=<optimized out>) at text/qtextoption.cpp:48
#9  QTextOption::operator= (this=0x1c0adc0, o=...) at text/qtextoption.cpp:129
#10 0x00007fba96fc790c in QTextLayout::setTextOption (this=this@entry=0x1df6810, option=...) at text/qtextlayout.cpp:426
#11 0x00007fba97004da6 in QTextDocumentLayoutPrivate::layoutBlock (this=this@entry=0x1c0a760, bl=..., blockPosition=blockPosition@entry=0, blockFormat=..., layoutStruct=layoutStruct@entry=0x7fff21c46a80, layoutFrom=layoutFrom@entry=223, layoutTo=layoutTo@entry=224, previousBlockFormat=previousBlockFormat@entry=0x0) at text/qtextdocumentlayout.cpp:2581
#12 0x00007fba9700ca30 in QTextDocumentLayoutPrivate::layoutFlow (this=this@entry=0x1c0a760, it=..., layoutStruct=layoutStruct@entry=0x7fff21c46a80, layoutFrom=layoutFrom@entry=223, layoutTo=layoutTo@entry=224, width=width@entry=...) at text/qtextdocumentlayout.cpp:2402
#13 0x00007fba9700b587 in QTextDocumentLayoutPrivate::layoutFrame (this=this@entry=0x1c0a760, f=f@entry=0x1c0acc0, layoutFrom=layoutFrom@entry=223, layoutTo=layoutTo@entry=224, frameWidth=..., frameWidth@entry=..., frameHeight=..., parentY=...) at text/qtextdocumentlayout.cpp:2143
#14 0x00007fba9700ba9f in QTextDocumentLayoutPrivate::layoutFrame (this=this@entry=0x1c0a760, f=f@entry=0x1c0acc0, layoutFrom=layoutFrom@entry=223, layoutTo=layoutTo@entry=224, parentY=parentY@entry=...) at text/qtextdocumentlayout.cpp:2049
#15 0x00007fba9700dde1 in QTextDocumentLayout::doLayout (this=this@entry=0x1c072b0, from=from@entry=223, oldLength=oldLength@entry=0, length=length@entry=1) at text/qtextdocumentlayout.cpp:2939
#16 0x00007fba9700eb99 in QTextDocumentLayout::documentChanged (this=0x1c072b0, from=223, oldLength=0, length=1) at text/qtextdocumentlayout.cpp:2902
#17 0x00007fba96feeac6 in QTextDocumentPrivate::finishEdit (this=this@entry=0x1c0f670) at text/qtextdocument_p.cpp:1220
#18 0x00007fba96ff19b0 in QTextDocumentPrivate::insert (this=0x1c0f670, pos=pos@entry=223, strPos=strPos@entry=1724, strLength=strLength@entry=1, format=format@entry=11) at text/qtextdocument_p.cpp:473
#19 0x00007fba97015f1b in QTextCursor::insertText (this=this@entry=0x7fff21c46f10, text=..., _format=...) at text/qtextcursor.cpp:1481
#20 0x00007fba97015f9f in QTextCursor::insertImage (this=this@entry=0x7fff21c46f10, format=...) at text/qtextcursor.cpp:2308
#21 0x00007fba31f43b07 in KPIMTextEdit::TextEdit::loadImage (this=0x1c0a450, image=..., matchName=..., resourceName=...) at ../../kpimtextedit/textedit.cpp:526
#22 0x00007fba2fee5e38 in Message::ComposerViewBase::collectImages (this=this@entry=0x1bb0670, root=<optimized out>) at ../../messagecomposer/composerviewbase.cpp:1506
#23 0x00007fba2feee971 in Message::ComposerViewBase::setMessage (this=0x1bb0670, msg=...) at ../../messagecomposer/composerviewbase.cpp:181
#24 0x00007fba308a3016 in KMComposeWin::setMessage (this=this@entry=0x1b84b10, newMsg=..., lastSignState=lastSignState@entry=false, lastEncryptState=lastEncryptState@entry=false, mayAutoSign=mayAutoSign@entry=true, allowDecryption=allowDecryption@entry=false, isModified=isModified@entry=false) at ../../kmail/kmcomposewin.cpp:1556
#25 0x00007fba308a66e7 in KMComposeWin::KMComposeWin (this=this@entry=0x1b84b10, aMsg=..., lastSignState=lastSignState@entry=false, lastEncryptState=lastEncryptState@entry=false, context=context@entry=KMail::Composer::Forward, id=id@entry=0, textSelection=..., customTemplate=..., __in_chrg=<optimized out>, __vtt_parm=<optimized out>) at ../../kmail/kmcomposewin.cpp:473
#26 0x00007fba308a7a5f in KMComposeWin::create (msg=..., lastSignState=<optimized out>, lastEncryptState=<optimized out>, context=context@entry=KMail::Composer::Forward, identity=identity@entry=0, textSelection=..., customTemplate=...) at ../../kmail/kmcomposewin.cpp:174
#27 0x00007fba308a7aac in KMail::makeComposer (msg=..., lastSignState=<optimized out>, lastEncryptState=<optimized out>, context=context@entry=KMail::Composer::Forward, identity=identity@entry=0, textSelection=..., customTemplate=...) at ../../kmail/kmcomposewin.cpp:168
#28 0x00007fba3083bd5d in KMForwardCommand::createComposer (this=this@entry=0x1b4dbc0, item=...) at ../../kmail/kmcommands.cpp:916
#29 0x00007fba3083c8ba in KMForwardCommand::execute (this=0x1b4dbc0) at ../../kmail/kmcommands.cpp:965
#30 0x00007fba30836841 in KMCommand::slotPostTransfer (this=0x1b4dbc0, result=KMCommand::OK) at ../../kmail/kmcommands.cpp:272
#31 0x00007fba979d60ef in QMetaObject::activate (sender=sender@entry=0x1b4dbc0, m=m@entry=0x7fba30b50d80 <KMCommand::staticMetaObject>, local_signal_index=local_signal_index@entry=0, argv=argv@entry=0x7fff21c48090) at kernel/qobject.cpp:3539
#32 0x00007fba3083675e in KMCommand::messagesTransfered (this=this@entry=0x1b4dbc0, _t1=_t1@entry=KMCommand::OK) at ./kmcommands.moc:117
#33 0x00007fba3084070e in KMCommand::start (this=this@entry=0x1b4dbc0) at ../../kmail/kmcommands.cpp:251
#34 0x00007fba308479cc in KMReaderMainWin::slotForwardInlineMsg (this=0x1866b80) at ../../kmail/kmreadermainwin.cpp:231
#35 0x00007fba979d60ef in QMetaObject::activate (sender=sender@entry=0x1a2dce0, m=m@entry=0x7fba978097a0 <QAction::staticMetaObject>, local_signal_index=local_signal_index@entry=1, argv=argv@entry=0x7fff21c482f0) at kernel/qobject.cpp:3539
#36 0x00007fba96d61152 in QAction::triggered (this=this@entry=0x1a2dce0, _t1=false) at .moc/release-shared/moc_qaction.cpp:277
#37 0x00007fba96d62580 in QAction::activate (this=this@entry=0x1a2dce0, event=event@entry=QAction::Trigger) at kernel/qaction.cpp:1257
#38 0x00007fba971a0933 in QMenuPrivate::activateCausedStack (this=this@entry=0x1a2afe0, causedStack=..., action=action@entry=0x1a2dce0, action_e=action_e@entry=QAction::Trigger, self=self@entry=true) at widgets/qmenu.cpp:1038
#39 0x00007fba971a5bf9 in QMenuPrivate::activateAction (this=0x1a2afe0, action=0x1a2dce0, action_e=action_e@entry=QAction::Trigger, self=self@entry=true) at widgets/qmenu.cpp:1130
#40 0x00007fba971a96ed in QMenu::mouseReleaseEvent (this=this@entry=0x1a317d0, e=e@entry=0x7fff21c48e90) at widgets/qmenu.cpp:2372
#41 0x00007fba984c1800 in KMenu::mouseReleaseEvent (this=0x1a317d0, e=0x7fff21c48e90) at ../../kdeui/widgets/kmenu.cpp:464
#42 0x00007fba96db4a89 in QWidget::event (this=this@entry=0x1a317d0, event=event@entry=0x7fff21c48e90) at kernel/qwidget.cpp:8375
#43 0x00007fba971a73db in QMenu::event (this=0x1a317d0, e=0x7fff21c48e90) at widgets/qmenu.cpp:2481
#44 0x00007fba96d678ec in QApplicationPrivate::notify_helper (this=this@entry=0x9c2f80, receiver=receiver@entry=0x1a317d0, e=e@entry=0x7fff21c48e90) at kernel/qapplication.cpp:4567
#45 0x00007fba96d6aa33 in QApplication::notify (this=this@entry=0x7fff21c4a760, receiver=receiver@entry=0x1a317d0, e=e@entry=0x7fff21c48e90) at kernel/qapplication.cpp:4110
#46 0x00007fba9840aaf6 in KApplication::notify (this=0x7fff21c4a760, receiver=0x1a317d0, event=0x7fff21c48e90) at ../../kdeui/kernel/kapplication.cpp:311
#47 0x00007fba979c163e in QCoreApplication::notifyInternal (this=0x7fff21c4a760, receiver=receiver@entry=0x1a317d0, event=event@entry=0x7fff21c48e90) at kernel/qcoreapplication.cpp:946
#48 0x00007fba96d6d933 in sendEvent (event=<optimized out>, receiver=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#49 QApplicationPrivate::sendMouseEvent (receiver=0x1a317d0, event=event@entry=0x7fff21c48e90, alienWidget=0x0, nativeWidget=nativeWidget@entry=0x1a317d0, buttonDown=buttonDown@entry=0x7fba97845308 <qt_button_down>, lastMouseReceiver=..., spontaneous=spontaneous@entry=true) at kernel/qapplication.cpp:3178
#50 0x00007fba96de2d8c in QETWidget::translateMouseEvent (this=this@entry=0x1a317d0, event=event@entry=0x7fff21c49610) at kernel/qapplication_x11.cpp:4565
#51 0x00007fba96de1ef1 in QApplication::x11ProcessEvent (this=0x7fff21c4a760, event=event@entry=0x7fff21c49610) at kernel/qapplication_x11.cpp:3746
#52 0x00007fba96e0d0b2 in x11EventSourceDispatch (s=0x9c3c00, callback=0x0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#53 0x00007fba8fb65f05 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#54 0x00007fba8fb66248 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#55 0x00007fba8fb66304 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#56 0x00007fba979f0016 in QEventDispatcherGlib::processEvents (this=0x93cb60, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#57 0x00007fba96e0d1ae in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#58 0x00007fba979c038f in QEventLoop::processEvents (this=this@entry=0x7fff21c499f0, flags=...) at kernel/qeventloop.cpp:149
#59 0x00007fba979c0618 in QEventLoop::exec (this=this@entry=0x7fff21c499f0, flags=...) at kernel/qeventloop.cpp:204
#60 0x00007fba971a4c65 in QMenu::exec (this=0x1a317d0, p=..., action=action@entry=0x0) at widgets/qmenu.cpp:2125
#61 0x00007fba971e2dd6 in QToolButtonPrivate::popupTimerDone (this=0x1a787f0) at widgets/qtoolbutton.cpp:952
#62 0x00007fba979db3ec in QObject::event (this=this@entry=0x1a76e80, e=e@entry=0x7fff21c4a350) at kernel/qobject.cpp:1156
#63 0x00007fba96db41ca in QWidget::event (this=0x1a76e80, event=0x7fff21c4a350) at kernel/qwidget.cpp:8845
#64 0x00007fba96d678ec in QApplicationPrivate::notify_helper (this=this@entry=0x9c2f80, receiver=receiver@entry=0x1a76e80, e=e@entry=0x7fff21c4a350) at kernel/qapplication.cpp:4567
#65 0x00007fba96d6a25b in QApplication::notify (this=this@entry=0x7fff21c4a760, receiver=receiver@entry=0x1a76e80, e=e@entry=0x7fff21c4a350) at kernel/qapplication.cpp:4428
#66 0x00007fba9840aaf6 in KApplication::notify (this=0x7fff21c4a760, receiver=0x1a76e80, event=0x7fff21c4a350) at ../../kdeui/kernel/kapplication.cpp:311
#67 0x00007fba979c163e in QCoreApplication::notifyInternal (this=0x7fff21c4a760, receiver=0x1a76e80, event=event@entry=0x7fff21c4a350) at kernel/qcoreapplication.cpp:946
#68 0x00007fba979f2b72 in sendEvent (event=0x7fff21c4a350, receiver=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#69 QTimerInfoList::activateTimers (this=0x9c3520) at kernel/qeventdispatcher_unix.cpp:622
#70 0x00007fba979ef9a4 in timerSourceDispatch (source=<optimized out>) at kernel/qeventdispatcher_glib.cpp:186
#71 timerSourceDispatch (source=<optimized out>) at kernel/qeventdispatcher_glib.cpp:180
#72 0x00007fba979ef9c1 in idleTimerSourceDispatch (source=<optimized out>) at kernel/qeventdispatcher_glib.cpp:233
#73 0x00007fba8fb65f05 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#74 0x00007fba8fb66248 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#75 0x00007fba8fb66304 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#76 0x00007fba979f0016 in QEventDispatcherGlib::processEvents (this=0x93cb60, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#77 0x00007fba96e0d1ae in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#78 0x00007fba979c038f in QEventLoop::processEvents (this=this@entry=0x7fff21c4a5d0, flags=...) at kernel/qeventloop.cpp:149
#79 0x00007fba979c0618 in QEventLoop::exec (this=this@entry=0x7fff21c4a5d0, flags=...) at kernel/qeventloop.cpp:204
#80 0x00007fba979c5cf6 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1218
#81 0x00007fba96d65ffc in QApplication::exec () at kernel/qapplication.cpp:3828
#82 0x00000000004033a9 in main (argc=3, argv=0x7fff21c4a8a8) at ../../../kontact/src/main.cpp:219


Reproducible: Always
Comment 1 ro.ggi 2013-04-29 22:59:48 UTC
Created attachment 79560 [details]
simplified.mbox
Comment 2 ro.ggi 2013-04-29 23:00:37 UTC
Created attachment 79561 [details]
original.mbox
Comment 3 Denis Kurz 2016-09-24 18:14:55 UTC
This bug has only been reported for versions before 4.14, which have been unsupported for at least two years now. Can anyone tell if this bug still present?

If noone confirms this bug for a Framework-based version of kmail2 (version 5.0 or later, as part of KDE Applications 15.12 or later), it gets closed in about three months.
Comment 4 ro.ggi 2016-09-25 11:26:26 UTC
The problem is no more present. Thanks for watching into this.