Bug 293783 - Kmail crashes when replying
Summary: Kmail crashes when replying
Status: RESOLVED UNMAINTAINED
Alias: None
Product: kmail2
Classification: Applications
Component: general (show other bugs)
Version: 4.8.0
Platform: openSUSE Linux
: NOR crash
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords: reproducible
Depends on:
Blocks:
 
Reported: 2012-02-10 16:20 UTC by S. Burmeister
Modified: 2017-01-07 21:25 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description S. Burmeister 2012-02-10 16:20:26 UTC
Application: kmail (4.8.0)
KDE Platform Version: 4.8.00 (4.8.0 "release 462"
Qt Version: 4.8.0
Operating System: Linux 3.1.9-1.4-desktop x86_64
Distribution: "openSUSE 12.1 (x86_64)"

-- Information about the crash:
- What I was doing when the application crashed:

I have an email html+plaint ext in my impa's inbox. I can open and read it, yet if I click on reply or press "R" kmail crashes reproducibly.

The crash can be reproduced every time.

-- Backtrace:
Application: KMail (kmail), signal: Aborted
[Current thread is 1 (Thread 0x7f93cd1ef780 (LWP 11508))]

Thread 4 (Thread 0x7f93af224700 (LWP 11512)):
#0  0x00007f93c833ce6c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f93bea09c12 in ?? () from /usr/lib64/libQtWebKit.so.4
#2  0x00007f93bea09c49 in ?? () from /usr/lib64/libQtWebKit.so.4
#3  0x00007f93c8338f05 in start_thread () from /lib64/libpthread.so.0
#4  0x00007f93ca52f63d in clone () from /lib64/libc.so.6

Thread 3 (Thread 0x7f93ae923700 (LWP 11513)):
#0  g_private_get_posix_impl (private_key=0x64c7b0) at gthread-posix.c:287
#1  0x00007f93c2a47edd in g_thread_self () at gthread.c:2178
#2  0x00007f93c2a20140 in g_main_context_acquire (context=0x7f93a80009a0) at gmain.c:2507
#3  0x00007f93c2a218b1 in g_main_context_iterate (context=0x7f93a80009a0, block=1, dispatch=1, self=<optimized out>) at gmain.c:3017
#4  0x00007f93c2a21f59 in g_main_context_iteration (context=0x7f93a80009a0, may_block=1) at gmain.c:3136
#5  0x00007f93cbb8c956 in QEventDispatcherGlib::processEvents (this=0x7f93a80008c0, flags=<optimized out>) at kernel/qeventdispatcher_glib.cpp:426
#6  0x00007f93cbb5c682 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#7  0x00007f93cbb5c8d7 in QEventLoop::exec (this=0x7f93ae922e00, flags=...) at kernel/qeventloop.cpp:204
#8  0x00007f93cba5d537 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:501
#9  0x00007f93cba6055b in QThreadPrivate::start (arg=0xb54750) at thread/qthread_unix.cpp:298
#10 0x00007f93c8338f05 in start_thread () from /lib64/libpthread.so.0
#11 0x00007f93ca52f63d in clone () from /lib64/libc.so.6

Thread 2 (Thread 0x7f93ace08700 (LWP 11641)):
#0  0x00007f93c833d1eb in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f93cba609cf in wait (time=30000, this=0xc91430) at thread/qwaitcondition_unix.cpp:84
#2  QWaitCondition::wait (this=<optimized out>, mutex=0xc913d8, time=30000) at thread/qwaitcondition_unix.cpp:158
#3  0x00007f93cba53ddf in QThreadPoolThread::run (this=0xca53d0) at concurrent/qthreadpool.cpp:141
#4  0x00007f93cba6055b in QThreadPrivate::start (arg=0xca53d0) at thread/qthread_unix.cpp:298
#5  0x00007f93c8338f05 in start_thread () from /lib64/libpthread.so.0
#6  0x00007f93ca52f63d in clone () from /lib64/libc.so.6

Thread 1 (Thread 0x7f93cd1ef780 (LWP 11508)):
[KCrash Handler]
#6  0x00007f93ca48ad95 in raise () from /lib64/libc.so.6
#7  0x00007f93ca48c2ab in abort () from /lib64/libc.so.6
#8  0x00007f93ca4c4ece in __libc_message () from /lib64/libc.so.6
#9  0x00007f93ca4cac06 in malloc_printerr () from /lib64/libc.so.6
#10 0x00007f93cbaaa75c in QString::free (d=0x2586740) at tools/qstring.cpp:1232
#11 0x00007f93cb15bbaf in ~QString (this=0x7fffb9848650, __in_chrg=<optimized out>) at ../../src/corelib/tools/qstring.h:880
#12 QTextHtmlExporter::emitCharFormatStyle (this=0x7fffb984a2a0, format=...) at text/qtextdocument.cpp:2158
#13 0x00007f93cb15d2b7 in QTextHtmlExporter::emitFragment (this=0x7fffb984a2a0, fragment=<optimized out>) at text/qtextdocument.cpp:2477
#14 0x00007f93cb15ffb2 in QTextHtmlExporter::emitBlock (this=0x7fffb984a2a0, block=...) at text/qtextdocument.cpp:2720
#15 0x00007f93cb162def in QTextHtmlExporter::emitFrame (this=0x7fffb984a2a0, frameIt=<optimized out>) at text/qtextdocument.cpp:2955
#16 0x00007f93cb1626e0 in QTextHtmlExporter::emitTable (this=0x7fffb984a2a0, table=0x2647770) at text/qtextdocument.cpp:2919
#17 0x00007f93cb162d8f in QTextHtmlExporter::emitFrame (this=0x7fffb984a2a0, frameIt=<optimized out>) at text/qtextdocument.cpp:2950
#18 0x00007f93cb1626e0 in QTextHtmlExporter::emitTable (this=0x7fffb984a2a0, table=0x2645f50) at text/qtextdocument.cpp:2919
#19 0x00007f93cb162d8f in QTextHtmlExporter::emitFrame (this=0x7fffb984a2a0, frameIt=<optimized out>) at text/qtextdocument.cpp:2950
#20 0x00007f93cb1626e0 in QTextHtmlExporter::emitTable (this=0x7fffb984a2a0, table=0x26436c0) at text/qtextdocument.cpp:2919
#21 0x00007f93cb162d8f in QTextHtmlExporter::emitFrame (this=0x7fffb984a2a0, frameIt=<optimized out>) at text/qtextdocument.cpp:2950
#22 0x00007f93cb1637fd in QTextHtmlExporter::toHtml (this=0x7fffb984a2a0, encoding=<optimized out>, mode=<optimized out>) at text/qtextdocument.cpp:2136
#23 0x00007f93cb163bf4 in QTextDocument::toHtml (this=<optimized out>, encoding=...) at text/qtextdocument.cpp:3045
#24 0x00007f93cccd7da3 in toHtml (this=<optimized out>) at /usr/include/QtGui/qtextedit.h:193
#25 KRichTextEdit::toCleanHtml (this=<optimized out>) at /usr/src/debug/kdelibs-4.8.0/kdeui/widgets/krichtextedit.cpp:525
#26 0x00007f93c6402d9d in Message::KMeditor::fillComposerTextPart (this=0x2b8c410, textPart=0x2632cc0) at /usr/src/debug/kdepim-4.8.0/messagecomposer/kmeditor.cpp:686
#27 0x00007f93c63ee967 in Message::ComposerViewBase::createSimpleComposer (this=0x2494e70) at /usr/src/debug/kdepim-4.8.0/messagecomposer/composerviewbase.cpp:1024
#28 0x00007f93c63eea38 in Message::ComposerViewBase::autoSaveMessage (this=0x2494e70) at /usr/src/debug/kdepim-4.8.0/messagecomposer/composerviewbase.cpp:801
#29 0x00007f93cc011227 in KMComposeWin::autoSaveMessage (this=0x23ab4a0, force=true) at /usr/src/debug/kdepim-4.8.0/kmail/kmcomposewin.cpp:1811
#30 0x00007f93cbf97f69 in KMKernel::dumpDeadLetters (this=<optimized out>) at /usr/src/debug/kdepim-4.8.0/kmail/kmkernel.cpp:1276
#31 0x00007f93cbf98227 in kmCrashHandler (sigId=<optimized out>) at /usr/src/debug/kdepim-4.8.0/kmail/kmkernel.cpp:1130
#32 0x00007f93ccc69ce9 in KCrash::defaultCrashHandler (sig=6) at /usr/src/debug/kdelibs-4.8.0/kdeui/util/kcrash.cpp:307
#33 <signal handler called>
#34 0x00007f93ca48ad95 in raise () from /lib64/libc.so.6
#35 0x00007f93ca48c2ab in abort () from /lib64/libc.so.6
#36 0x00007f93ca4c4ece in __libc_message () from /lib64/libc.so.6
#37 0x00007f93ca4cac06 in malloc_printerr () from /lib64/libc.so.6
#38 0x00007f93cbaaa75c in QString::free (d=0x2586740) at tools/qstring.cpp:1232
#39 0x00007f93cb0ff753 in ~QExplicitlySharedDataPointer (this=<optimized out>, __in_chrg=<optimized out>) at ../../src/corelib/tools/qshareddata.h:166
#40 ~QExplicitlySharedDataPointer (this=<optimized out>, __in_chrg=<optimized out>) at text/qfont.cpp:853
#41 QFont::~QFont (this=<optimized out>, __in_chrg=<optimized out>) at text/qfont.cpp:853
#42 0x00007f93cb1384f5 in QTextEngine::fontEngine (this=0x26a2440, si=..., ascent=0x261c45c, descent=0x261c458, leading=0x261c460) at text/qtextengine.cpp:1871
#43 0x00007f93cb139899 in QTextEngine::shapeTextWithHarfbuzz (this=0x26a2440, item=0) at text/qtextengine.cpp:1182
#44 0x00007f93cb13a9eb in QTextEngine::shapeText (this=0x26a2440, item=0) at text/qtextengine.cpp:922
#45 0x00007f93cb13ad3e in QTextEngine::shape (this=0x26a2440, item=0) at text/qtextengine.cpp:1437
#46 0x00007f93cb14a835 in QTextLine::layout_helper (this=0x7fffb984c6f0, maxGlyphs=<optimized out>) at text/qtextlayout.cpp:1752
#47 0x00007f93cb183c5a in QTextDocumentLayoutPrivate::layoutBlock (this=0x2b8c530, bl=<optimized out>, blockPosition=4090, blockFormat=..., layoutStruct=0x7fffb984cfb0, layoutFrom=397, layoutTo=397, previousBlockFormat=0x0) at text/qtextdocumentlayout.cpp:2614
#48 0x00007f93cb18cecd in QTextDocumentLayoutPrivate::layoutFlow (this=0x2b8c530, it=..., layoutStruct=0x7fffb984cfb0, layoutFrom=397, layoutTo=397, width=...) at text/qtextdocumentlayout.cpp:2402
#49 0x00007f93cb1877dc in QTextDocumentLayoutPrivate::layoutCell (this=0x2b8c530, t=0x2657460, cell=..., width=..., layoutFrom=397, layoutTo=397, td=0x26414e0, absoluteTableY=..., withPageBreaks=false) at text/qtextdocumentlayout.cpp:1532
#50 0x00007f93cb188114 in QTextDocumentLayoutPrivate::layoutTable (this=0x2b8c530, table=0x2657460, layoutFrom=397, layoutTo=397, parentY=...) at text/qtextdocumentlayout.cpp:1642
#51 0x00007f93cb18a39f in QTextDocumentLayoutPrivate::layoutFrame (this=0x2b8c530, f=0x2657460, layoutFrom=397, layoutTo=397, frameWidth=<optimized out>, frameHeight=..., parentY=...) at text/qtextdocumentlayout.cpp:2107
#52 0x00007f93cb18cb5b in QTextDocumentLayoutPrivate::layoutFlow (this=0x2b8c530, it=..., layoutStruct=0x7fffb984e060, layoutFrom=397, layoutTo=397, width=...) at text/qtextdocumentlayout.cpp:2309
#53 0x00007f93cb1877dc in QTextDocumentLayoutPrivate::layoutCell (this=0x2b8c530, t=0x264cc80, cell=..., width=..., layoutFrom=397, layoutTo=397, td=0x2641410, absoluteTableY=..., withPageBreaks=false) at text/qtextdocumentlayout.cpp:1532
#54 0x00007f93cb188114 in QTextDocumentLayoutPrivate::layoutTable (this=0x2b8c530, table=0x264cc80, layoutFrom=397, layoutTo=397, parentY=...) at text/qtextdocumentlayout.cpp:1642
#55 0x00007f93cb18a39f in QTextDocumentLayoutPrivate::layoutFrame (this=0x2b8c530, f=0x264cc80, layoutFrom=397, layoutTo=397, frameWidth=<optimized out>, frameHeight=..., parentY=...) at text/qtextdocumentlayout.cpp:2107
#56 0x00007f93cb18cb5b in QTextDocumentLayoutPrivate::layoutFlow (this=0x2b8c530, it=..., layoutStruct=0x7fffb984f110, layoutFrom=397, layoutTo=397, width=...) at text/qtextdocumentlayout.cpp:2309
#57 0x00007f93cb1877dc in QTextDocumentLayoutPrivate::layoutCell (this=0x2b8c530, t=0x2669b20, cell=..., width=..., layoutFrom=397, layoutTo=397, td=0x258b600, absoluteTableY=..., withPageBreaks=false) at text/qtextdocumentlayout.cpp:1532
#58 0x00007f93cb188114 in QTextDocumentLayoutPrivate::layoutTable (this=0x2b8c530, table=0x2669b20, layoutFrom=397, layoutTo=397, parentY=...) at text/qtextdocumentlayout.cpp:1642
#59 0x00007f93cb18a39f in QTextDocumentLayoutPrivate::layoutFrame (this=0x2b8c530, f=0x2669b20, layoutFrom=397, layoutTo=397, frameWidth=<optimized out>, frameHeight=..., parentY=...) at text/qtextdocumentlayout.cpp:2107
#60 0x00007f93cb18ab7d in QTextDocumentLayoutPrivate::layoutFrame (this=0x2b8c530, f=0x2669b20, layoutFrom=397, layoutTo=397, parentY=...) at text/qtextdocumentlayout.cpp:2049
#61 0x00007f93cb18d360 in QTextDocumentLayoutPrivate::layoutFlow (this=0x2b8c530, it=..., layoutStruct=0x7fffb9850080, layoutFrom=397, layoutTo=397, width=...) at text/qtextdocumentlayout.cpp:2311
#62 0x00007f93cb18a64e in QTextDocumentLayoutPrivate::layoutFrame (this=0x2b8c530, f=0x2b8ca90, layoutFrom=397, layoutTo=397, frameWidth=<optimized out>, frameHeight=..., parentY=...) at text/qtextdocumentlayout.cpp:2143
#63 0x00007f93cb18ab7d in QTextDocumentLayoutPrivate::layoutFrame (this=0x2b8c530, f=0x2b8ca90, layoutFrom=397, layoutTo=397, parentY=...) at text/qtextdocumentlayout.cpp:2049
#64 0x00007f93cb18ae18 in QTextDocumentLayout::doLayout (this=0x2b8c510, from=397, oldLength=<optimized out>, length=0) at text/qtextdocumentlayout.cpp:2939
#65 0x00007f93cb18bc7a in QTextDocumentLayout::documentChanged (this=0x2b8c510, from=397, oldLength=1, length=0) at text/qtextdocumentlayout.cpp:2902
#66 0x00007f93cb16c678 in QTextDocumentPrivate::finishEdit (this=0x2b919b0) at text/qtextdocument_p.cpp:1220
#67 0x00007f93cb193bdb in removeSelectedText (this=0x7fffb98505c0) at text/qtextcursor.cpp:1640
#68 QTextCursor::removeSelectedText (this=0x7fffb98505c0) at text/qtextcursor.cpp:1633
#69 0x00007f93c3bb6b1a in KPIMTextEdit::TextEdit::loadImage (this=0x2b8c410, image=..., matchName=..., resourceName=...) at /usr/src/debug/kdepimlibs-4.8.0/kpimtextedit/textedit.cpp:422
#70 0x00007f93c63e795d in Message::ComposerViewBase::collectImages (this=0x2494e70, root=<optimized out>) at /usr/src/debug/kdepim-4.8.0/messagecomposer/composerviewbase.cpp:1305
#71 0x00007f93c63ef4af in Message::ComposerViewBase::setMessage (this=0x2494e70, msg=...) at /usr/src/debug/kdepim-4.8.0/messagecomposer/composerviewbase.cpp:182
#72 0x00007f93cc014b65 in KMComposeWin::setMsg (this=0x23ab4a0, newMsg=..., mayAutoSign=true, allowDecryption=<optimized out>, isModified=false) at /usr/src/debug/kdepim-4.8.0/kmail/kmcomposewin.cpp:1481
#73 0x00007f93cc018189 in KMComposeWin::KMComposeWin (this=0x23ab4a0, aMsg=..., context=<optimized out>, id=<optimized out>, textSelection=<optimized out>, customTemplate=<optimized out>, __in_chrg=<optimized out>, __vtt_parm=<optimized out>) at /usr/src/debug/kdepim-4.8.0/kmail/kmcomposewin.cpp:453
#74 0x00007f93cc019105 in KMComposeWin::create (msg=..., context=KMail::Composer::Reply, identity=0, textSelection=..., customTemplate=...) at /usr/src/debug/kdepim-4.8.0/kmail/kmcomposewin.cpp:168
#75 0x00007f93cbfb2e80 in KMReplyCommand::execute (this=0x16beb30) at /usr/src/debug/kdepim-4.8.0/kmail/kmcommands.cpp:818
#76 0x00007f93cbfb1e91 in KMCommand::slotPostTransfer (this=0x16beb30, result=KMCommand::OK) at /usr/src/debug/kdepim-4.8.0/kmail/kmcommands.cpp:268
#77 0x00007f93cbb71761 in QMetaObject::activate (sender=0x16beb30, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7fffb9851660) at kernel/qobject.cpp:3556
#78 0x00007f93cbfb1c9e in KMCommand::messagesTransfered (this=<optimized out>, _t1=KMCommand::OK) at /usr/src/debug/kdepim-4.8.0/build/kmail/kmcommands.moc:117
#79 0x00007f93cbfb6f19 in KMCommand::slotJobFinished (this=0x16beb30) at /usr/src/debug/kdepim-4.8.0/kmail/kmcommands.cpp:378
#80 0x00007f93cbb71761 in QMetaObject::activate (sender=0x239c5a0, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7fffb9851810) at kernel/qobject.cpp:3556
#81 0x00007f93cc61e412 in KJob::result (this=<optimized out>, _t1=0x239c5a0) at /usr/src/debug/kdelibs-4.8.0/build/kdecore/kjob.moc:208
#82 0x00007f93cc61e450 in KJob::emitResult (this=0x239c5a0) at /usr/src/debug/kdelibs-4.8.0/kdecore/jobs/kjob.cpp:318
#83 0x00007f93cbb76926 in QObject::event (this=0x239c5a0, e=<optimized out>) at kernel/qobject.cpp:1204
#84 0x00007f93caee2e84 in notify_helper (e=0x238fd10, receiver=0x239c5a0, this=0x6623e0) at kernel/qapplication.cpp:4550
#85 QApplicationPrivate::notify_helper (this=0x6623e0, receiver=0x239c5a0, e=0x238fd10) at kernel/qapplication.cpp:4522
#86 0x00007f93caee7d03 in QApplication::notify (this=0x7fffb9852280, receiver=0x239c5a0, e=0x238fd10) at kernel/qapplication.cpp:4411
#87 0x00007f93ccc07786 in KApplication::notify (this=0x7fffb9852280, receiver=0x239c5a0, event=0x238fd10) at /usr/src/debug/kdelibs-4.8.0/kdeui/kernel/kapplication.cpp:311
#88 0x00007f93cbb5d89c in QCoreApplication::notifyInternal (this=0x7fffb9852280, receiver=0x239c5a0, event=0x238fd10) at kernel/qcoreapplication.cpp:876
#89 0x00007f93cbb6113a in sendEvent (event=0x238fd10, receiver=0x239c5a0) at kernel/qcoreapplication.h:231
#90 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x60b720) at kernel/qcoreapplication.cpp:1500
#91 0x00007f93cbb8c4c3 in sendPostedEvents () at kernel/qcoreapplication.h:236
#92 postEventSourceDispatch (s=<optimized out>) at kernel/qeventdispatcher_glib.cpp:279
#93 0x00007f93c2a2158d in g_main_dispatch (context=0x664c00) at gmain.c:2425
#94 g_main_context_dispatch (context=0x664c00) at gmain.c:2995
#95 0x00007f93c2a21d88 in g_main_context_iterate (context=0x664c00, block=<optimized out>, dispatch=1, self=<optimized out>) at gmain.c:3073
#96 0x00007f93c2a21f59 in g_main_context_iteration (context=0x664c00, may_block=1) at gmain.c:3136
#97 0x00007f93cbb8c8ef in QEventDispatcherGlib::processEvents (this=0x60b000, flags=<optimized out>) at kernel/qeventdispatcher_glib.cpp:424
#98 0x00007f93caf862de in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=<optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#99 0x00007f93cbb5c682 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#100 0x00007f93cbb5c8d7 in QEventLoop::exec (this=0x7fffb9852160, flags=...) at kernel/qeventloop.cpp:204
#101 0x00007f93cbb61435 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1148
#102 0x0000000000402df3 in main (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/kdepim-4.8.0/kmail/main.cpp:145

Reported using DrKonqi
Comment 1 Laurent Montel 2012-02-10 17:30:00 UTC
is it possible to have this email in private ?
(juste to test it ?)
Regards
Comment 2 Laurent Montel 2012-02-13 08:59:18 UTC
I can reproduce it with your test email. (and your woraround works).
Will look at how to fix it
Thanks
Comment 3 Denis Kurz 2016-09-24 18:02:27 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 Denis Kurz 2017-01-07 21:25:06 UTC
Just as announced in my last comment, I close this bug. If you encounter it again in a recent version (at least 5.0 aka 15.08), please open a new one unless it already exists. Thank you for all your input.