Bug 335415 - segfault when replying to mail
Summary: segfault when replying to mail
Status: RESOLVED UNMAINTAINED
Alias: None
Product: kmail2
Classification: Applications
Component: general (show other bugs)
Version: 4.13
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2014-05-27 14:03 UTC by Sébastien Le Ray
Modified: 2017-01-07 21:34 UTC (History)
0 users

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ébastien Le Ray 2014-05-27 14:03:58 UTC
Application: kmail (4.13)
KDE Platform Version: 4.13.0
Qt Version: 4.8.6
Operating System: Linux 3.13.0-26-generic x86_64
Distribution: Ubuntu 14.04 LTS

-- Information about the crash:
When doing a reply to a mail (in this attached case a reply to all), KDE segfaults. When relaunching it, compose window is open, without my signature.

The crash can be reproduced every time.

-- 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 0x7fb075766800 (LWP 455))]

Thread 5 (Thread 0x7fb04bd64700 (LWP 467)):
#0  0x00007fb06ab56f52 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#1  0x00007fb06ab570ec in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fb0734627be in QEventDispatcherGlib::processEvents (this=0x7fb0440008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:436
#3  0x00007fb0734340af in QEventLoop::processEvents (this=this@entry=0x7fb04bd63da0, flags=...) at kernel/qeventloop.cpp:149
#4  0x00007fb0734343a5 in QEventLoop::exec (this=this@entry=0x7fb04bd63da0, flags=...) at kernel/qeventloop.cpp:204
#5  0x00007fb073330c5f in QThread::exec (this=this@entry=0x1676ea0) at thread/qthread.cpp:537
#6  0x00007fb073415823 in QInotifyFileSystemWatcherEngine::run (this=0x1676ea0) at io/qfilesystemwatcher_inotify.cpp:265
#7  0x00007fb07333332f in QThreadPrivate::start (arg=0x1676ea0) at thread/qthread_unix.cpp:349
#8  0x00007fb070394182 in start_thread (arg=0x7fb04bd64700) at pthread_create.c:312
#9  0x00007fb072ad330d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 4 (Thread 0x7fb0488d1700 (LWP 490)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007fb06707581d in ?? () from /usr/lib/x86_64-linux-gnu/libQtWebKit.so.4
#2  0x00007fb067075859 in ?? () from /usr/lib/x86_64-linux-gnu/libQtWebKit.so.4
#3  0x00007fb070394182 in start_thread (arg=0x7fb0488d1700) at pthread_create.c:312
#4  0x00007fb072ad330d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 3 (Thread 0x7fb00366e700 (LWP 494)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007fb066db620d in ?? () from /usr/lib/x86_64-linux-gnu/libQtWebKit.so.4
#2  0x00007fb0670a4fd6 in ?? () from /usr/lib/x86_64-linux-gnu/libQtWebKit.so.4
#3  0x00007fb070394182 in start_thread (arg=0x7fb00366e700) at pthread_create.c:312
#4  0x00007fb072ad330d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 2 (Thread 0x7fb002a6d700 (LWP 497)):
#0  0x00007fb06ab9862d in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#1  0x00007fb06ab98989 in g_mutex_lock () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fb06ab56699 in g_main_context_prepare () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007fb06ab56f03 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007fb06ab570ec in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007fb0734627be in QEventDispatcherGlib::processEvents (this=0x7faff40008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:436
#6  0x00007fb0734340af in QEventLoop::processEvents (this=this@entry=0x7fb002a6cde0, flags=...) at kernel/qeventloop.cpp:149
#7  0x00007fb0734343a5 in QEventLoop::exec (this=this@entry=0x7fb002a6cde0, flags=...) at kernel/qeventloop.cpp:204
#8  0x00007fb073330c5f in QThread::exec (this=<optimized out>) at thread/qthread.cpp:537
#9  0x00007fb07333332f in QThreadPrivate::start (arg=0x1fed960) at thread/qthread_unix.cpp:349
#10 0x00007fb070394182 in start_thread (arg=0x7fb002a6d700) at pthread_create.c:312
#11 0x00007fb072ad330d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 1 (Thread 0x7fb075766800 (LWP 455)):
[KCrash Handler]
#6  0x00007fb073bbb523 in QTextLayout::position (this=this@entry=0x9b8bfc0) at text/qtextlayout.cpp:876
#7  0x00007fb073bf9277 in QTextDocumentLayoutPrivate::layoutBlock (this=this@entry=0x99cbde0, bl=..., blockPosition=blockPosition@entry=1864, blockFormat=..., layoutStruct=layoutStruct@entry=0x7fff5b76a340, layoutFrom=layoutFrom@entry=190, layoutTo=layoutTo@entry=191, previousBlockFormat=previousBlockFormat@entry=0x7fff5b76a0a0) at text/qtextdocumentlayout.cpp:2572
#8  0x00007fb073c01603 in QTextDocumentLayoutPrivate::layoutFlow (this=this@entry=0x99cbde0, it=..., layoutStruct=layoutStruct@entry=0x7fff5b76a340, layoutFrom=layoutFrom@entry=190, layoutTo=layoutTo@entry=191, width=..., width@entry=...) at text/qtextdocumentlayout.cpp:2415
#9  0x00007fb073bfff9d in QTextDocumentLayoutPrivate::layoutFrame (this=this@entry=0x99cbde0, f=f@entry=0x9842a00, layoutFrom=layoutFrom@entry=190, layoutTo=layoutTo@entry=191, frameWidth=..., frameWidth@entry=..., frameHeight=..., parentY=parentY@entry=...) at text/qtextdocumentlayout.cpp:2156
#10 0x00007fb073c0066d in QTextDocumentLayoutPrivate::layoutFrame (this=this@entry=0x99cbde0, f=f@entry=0x9842a00, layoutFrom=layoutFrom@entry=190, layoutTo=layoutTo@entry=191, parentY=parentY@entry=...) at text/qtextdocumentlayout.cpp:2062
#11 0x00007fb073c03120 in QTextDocumentLayout::doLayout (this=this@entry=0x98442f0, from=from@entry=190, oldLength=oldLength@entry=0, length=length@entry=1) at text/qtextdocumentlayout.cpp:2952
#12 0x00007fb073c0415e in QTextDocumentLayout::documentChanged (this=0x98442f0, from=190, oldLength=0, length=1) at text/qtextdocumentlayout.cpp:2915
#13 0x00007fb073be1c81 in QTextDocumentPrivate::finishEdit (this=this@entry=0x984da80) at text/qtextdocument_p.cpp:1220
#14 0x00007fb073be2076 in QTextDocumentPrivate::insert (this=0x984da80, pos=pos@entry=190, strPos=strPos@entry=2406, strLength=strLength@entry=1, format=format@entry=57) at text/qtextdocument_p.cpp:473
#15 0x00007fb073c0cd1f in QTextCursor::insertText (this=this@entry=0x7fff5b76a820, text=..., _format=...) at text/qtextcursor.cpp:1481
#16 0x00007fb073c0ce8c in QTextCursor::insertImage (this=this@entry=0x7fff5b76a820, format=...) at text/qtextcursor.cpp:2308
#17 0x00007fb06bf309a0 in KPIMTextEdit::TextEdit::loadImage (this=0x9a37830, image=..., matchName=..., resourceName=...) at ../../kpimtextedit/textedit.cpp:530
#18 0x00007fb06ec38dc3 in MessageComposer::ComposerViewBase::collectImages (this=this@entry=0x2465460, root=<optimized out>) at ../../messagecomposer/composer/composerviewbase.cpp:1528
#19 0x00007fb06ec396e8 in MessageComposer::ComposerViewBase::setMessage (this=0x2465460, msg=...) at ../../messagecomposer/composer/composerviewbase.cpp:191
#20 0x00007fb0745d9268 in KMComposeWin::setMessage (this=this@entry=0x96cb640, newMsg=..., lastSignState=lastSignState@entry=false, lastEncryptState=lastEncryptState@entry=false, mayAutoSign=mayAutoSign@entry=true, allowDecryption=allowDecryption@entry=false, isModified=isModified@entry=false) at ../../kmail/editor/kmcomposewin.cpp:1596
#21 0x00007fb0745df197 in KMComposeWin::KMComposeWin (this=this@entry=0x96cb640, aMsg=..., lastSignState=lastSignState@entry=false, lastEncryptState=lastEncryptState@entry=false, context=context@entry=KMail::Composer::Reply, id=id@entry=0, textSelection=..., customTemplate=..., __in_chrg=<optimized out>, __vtt_parm=<optimized out>) at ../../kmail/editor/kmcomposewin.cpp:486
#22 0x00007fb0745dfedb in KMComposeWin::create (msg=..., lastSignState=<optimized out>, lastEncryptState=<optimized out>, context=KMail::Composer::Reply, identity=identity@entry=0, textSelection=..., customTemplate=...) at ../../kmail/editor/kmcomposewin.cpp:182
#23 0x00007fb0745dff0c in KMail::makeComposer (msg=..., lastSignState=<optimized out>, lastEncryptState=<optimized out>, context=<optimized out>, identity=identity@entry=0, textSelection=..., customTemplate=...) at ../../kmail/editor/kmcomposewin.cpp:176
#24 0x00007fb074510d6f in KMReplyCommand::execute (this=0x94c4e30) at ../../kmail/kmcommands.cpp:833
#25 0x00007fb07450b861 in KMCommand::slotPostTransfer (this=0x94c4e30, result=KMCommand::OK) at ../../kmail/kmcommands.cpp:267
#26 0x00007fb07344987a in QMetaObject::activate (sender=sender@entry=0x94c4e30, m=m@entry=0x7fb07489f3e0 <KMCommand::staticMetaObject>, local_signal_index=local_signal_index@entry=0, argv=argv@entry=0x7fff5b76b400) at kernel/qobject.cpp:3539
#27 0x00007fb07460495e in KMCommand::messagesTransfered (this=this@entry=0x94c4e30, _t1=_t1@entry=KMCommand::OK) at moc_kmcommands.cpp:116
#28 0x00007fb07450cf33 in KMCommand::slotJobFinished (this=0x94c4e30) at ../../kmail/kmcommands.cpp:367
#29 0x00007fb07344987a in QMetaObject::activate (sender=sender@entry=0x94cc620, m=m@entry=0x7fb074f71600 <KJob::staticMetaObject>, local_signal_index=local_signal_index@entry=3, argv=argv@entry=0x7fff5b76b5a0) at kernel/qobject.cpp:3539
#30 0x00007fb074be1622 in KJob::result (this=this@entry=0x94cc620, _t1=_t1@entry=0x94cc620) at ./kjob.moc:207
#31 0x00007fb074be1660 in KJob::emitResult (this=0x94cc620) at ../../kdecore/jobs/kjob.cpp:318
#32 0x00007fb07344dc1e in QObject::event (this=0x94cc620, e=<optimized out>) at kernel/qobject.cpp:1194
#33 0x00007fb073966e2c in QApplicationPrivate::notify_helper (this=this@entry=0x127c2d0, receiver=receiver@entry=0x94cc620, e=e@entry=0x96bcbc0) at kernel/qapplication.cpp:4567
#34 0x00007fb07396d4a0 in QApplication::notify (this=this@entry=0x7fff5b76bf80, receiver=receiver@entry=0x94cc620, e=e@entry=0x96bcbc0) at kernel/qapplication.cpp:4353
#35 0x00007fb0751a1baa in KApplication::notify (this=0x7fff5b76bf80, receiver=0x94cc620, event=0x96bcbc0) at ../../kdeui/kernel/kapplication.cpp:311
#36 0x00007fb0734354dd in QCoreApplication::notifyInternal (this=0x7fff5b76bf80, receiver=receiver@entry=0x94cc620, event=event@entry=0x96bcbc0) at kernel/qcoreapplication.cpp:953
#37 0x00007fb073438b3d in sendEvent (event=0x96bcbc0, receiver=0x94cc620) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#38 QCoreApplicationPrivate::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=0, data=0x11c5220) at kernel/qcoreapplication.cpp:1577
#39 0x00007fb073438fe3 in QCoreApplication::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=0) at kernel/qcoreapplication.cpp:1470
#40 0x00007fb073462f83 in sendPostedEvents () at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:236
#41 postEventSourceDispatch (s=0x1285000) at kernel/qeventdispatcher_glib.cpp:287
#42 0x00007fb06ab56e04 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#43 0x00007fb06ab57048 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#44 0x00007fb06ab570ec in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#45 0x00007fb0734627a1 in QEventDispatcherGlib::processEvents (this=0x11c6b20, flags=...) at kernel/qeventdispatcher_glib.cpp:434
#46 0x00007fb073a08bb6 in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#47 0x00007fb0734340af in QEventLoop::processEvents (this=this@entry=0x7fff5b76bbd0, flags=...) at kernel/qeventloop.cpp:149
#48 0x00007fb0734343a5 in QEventLoop::exec (this=this@entry=0x7fff5b76bbd0, flags=...) at kernel/qeventloop.cpp:204
#49 0x00007fb073439b79 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1225
#50 0x00007fb07396537c in QApplication::exec () at kernel/qapplication.cpp:3828
#51 0x0000000000402d18 in main (argc=<optimized out>, argv=<optimized out>) at ../../kmail/main.cpp:146

Reported using DrKonqi
Comment 1 Denis Kurz 2016-09-24 17:52:06 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 2 Denis Kurz 2017-01-07 21:34:13 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.