Bug 263584

Summary: kontact/kmail crashes on message reply
Product: [Applications] kontact Reporter: Charlie Figura <cfigura77>
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED DUPLICATE    
Severity: crash    
Priority: NOR    
Version: 4.6 beta4   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Charlie Figura 2011-01-18 21:56:27 UTC
Application: kontact (4.6 beta4)
KDE Platform Version: 4.5.95 (4.6 RC2)
Qt Version: 4.7.0
Operating System: Linux 2.6.35-25-generic i686
Distribution: Ubuntu 10.10

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

On various occasions, kontact crashes when I attempt to reply to an email.  There is no clear pattern to why this occurs - it happens to some emails from some senders, but not all from any individual sender.  This is repeatable - an email which causes a crash on reply will cause a crash on reply after restarting contact.

The crash can be reproduced every time.

-- Backtrace:
Application: Kontact (kontact), signal: Aborted
[Current thread is 1 (Thread 0xb7861730 (LWP 2961))]

Thread 3 (Thread 0xb5852b70 (LWP 2962)):
#0  0x0045f416 in __kernel_vsyscall ()
#1  0x02e564dc in pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/i386/i686/../i486/pthread_cond_wait.S:169
#2  0x00aaad9d in __pthread_cond_wait (cond=0x285f770, mutex=0x285f758) at forward.c:139
#3  0x023573a5 in ?? () from /usr/lib/libQtWebKit.so.4
#4  0x02357481 in ?? () from /usr/lib/libQtWebKit.so.4
#5  0x02e51cc9 in start_thread (arg=0xb5852b70) at pthread_create.c:304
#6  0x00a9d69e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

Thread 2 (Thread 0xb37edb70 (LWP 2974)):
#0  0x0045f416 in __kernel_vsyscall ()
#1  0x00a8edf6 in __poll (fds=0xb25ff4, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:87
#2  0x07e5da1b in g_poll () from /lib/libglib-2.0.so.0
#3  0x07e5043c in ?? () from /lib/libglib-2.0.so.0
#4  0x07e50848 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#5  0x034ce59f in QEventDispatcherGlib::processEvents (this=0x9074dc8, flags=...) at kernel/qeventdispatcher_glib.cpp:417
#6  0x0349e609 in QEventLoop::processEvents (this=0xb37ed270, flags=) at kernel/qeventloop.cpp:149
#7  0x0349ea8a in QEventLoop::exec (this=0xb37ed270, flags=...) at kernel/qeventloop.cpp:201
#8  0x0339ab7e in QThread::exec (this=0x927c0e8) at thread/qthread.cpp:490
#9  0x0347d35b in QInotifyFileSystemWatcherEngine::run (this=0x927c0e8) at io/qfilesystemwatcher_inotify.cpp:248
#10 0x0339ddf9 in QThreadPrivate::start (arg=0x927c0e8) at thread/qthread_unix.cpp:266
#11 0x02e51cc9 in start_thread (arg=0xb37edb70) at pthread_create.c:304
#12 0x00a9d69e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

Thread 1 (Thread 0xb7861730 (LWP 2961)):
[KCrash Handler]
#7  0x0045f416 in __kernel_vsyscall ()
#8  0x009f7941 in raise (sig=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#9  0x009fae42 in abort () at abort.c:92
#10 0x00961055 in __gnu_cxx::__verbose_terminate_handler() () from /usr/lib/libstdc++.so.6
#11 0x0095ef35 in ?? () from /usr/lib/libstdc++.so.6
#12 0x0095ef72 in std::terminate() () from /usr/lib/libstdc++.so.6
#13 0x0095f0e1 in __cxa_throw () from /usr/lib/libstdc++.so.6
#14 0x03393ea5 in qBadAlloc () at global/qglobal.cpp:1996
#15 0x033e9895 in q_check_ptr<void> (this=0xbfb9b274, alloc=1073741823) at ../../include/QtCore/../../src/corelib/global/qglobal.h:1708
#16 QString::realloc (this=0xbfb9b274, alloc=1073741823) at tools/qstring.cpp:1285
#17 0x033e9d27 in QString::append (this=0xbfb9b274, str=...) at tools/qstring.cpp:1500
#18 0x0402a431 in operator+= (wrappedText=..., indent=..., maxLength=<value optimized out>) at /usr/include/qt4/QtCore/qstring.h:281
#19 KPIMTextEdit::TextUtils::flowText (wrappedText=..., indent=..., maxLength=<value optimized out>) at ../../kpimtextedit/textutils.cpp:156
#20 0x06b87181 in MessageCore::StringUtil::flushPart (msg=<value optimized out>, textParts=<value optimized out>, indent=..., maxLength=20) at ../../messagecore/stringutil.cpp:158
#21 0x06b8b129 in MessageCore::StringUtil::smartQuote (msg=..., maxLineLength=76) at ../../messagecore/stringutil.cpp:897
#22 0x06a34e51 in TemplateParser::TemplateParser::asQuotedString (this=0xbfb9bf24, msg=..., aIndentStr=..., selection=..., aStripSignature=true, allowDecryption=true) at ../../templateparser/templateparser.cpp:1443
#23 0x06a38d08 in TemplateParser::TemplateParser::processWithTemplate (this=0xbfb9bf24, tmpl=...) at ../../templateparser/templateparser.cpp:393
#24 0x06a34021 in TemplateParser::TemplateParser::process (this=0xbfb9bf24, aorig_msg=..., afolder=...) at ../../templateparser/templateparser.cpp:271
#25 0x04eb842c in MessageComposer::MessageFactory::createReply (this=0xbfb9c1a0) at ../../messagecomposer/messagefactory.cpp:317
#26 0x06547cec in KMReplyToCommand::execute (this=0x98aebb8) at ../../kmail/kmcommands.cpp:824
#27 0x06541140 in KMCommand::slotPostTransfer (this=0x98aebb8, result=KMCommand::OK) at ../../kmail/kmcommands.cpp:268
#28 0x06545f8f in KMCommand::qt_metacall (this=0x98aebb8, _c=QMetaObject::InvokeMetaMethod, _id=7, _a=0xbfb9c3a8) at ./kmcommands.moc:88
#29 0x065465a2 in KMReplyToCommand::qt_metacall (this=0x98aebb8, _c=QMetaObject::InvokeMetaMethod, _id=7, _a=0xbfb9c3a8) at ./kmcommands.moc:680
#30 0x034a58ca in QMetaObject::metacall (object=0x98aebb8, cl=2961, idx=7, argv=0xbfb9c3a8) at kernel/qmetaobject.cpp:237
#31 0x034b86ad in QMetaObject::activate (sender=0x98aebb8, m=0x66c3980, local_signal_index=0, argv=0x0) at kernel/qobject.cpp:3280
#32 0x0653fc53 in KMCommand::messagesTransfered (this=0x98aebb8, _t1=KMCommand::OK) at ./kmcommands.moc:103
#33 0x065454dc in KMCommand::slotJobFinished (this=0x98aebb8) at ../../kmail/kmcommands.cpp:378
#34 0x06545f53 in KMCommand::qt_metacall (this=0x98aebb8, _c=QMetaObject::InvokeMetaMethod, _id=9, _a=0xbfb9c558) at ./kmcommands.moc:90
#35 0x065465a2 in KMReplyToCommand::qt_metacall (this=0x98aebb8, _c=QMetaObject::InvokeMetaMethod, _id=9, _a=0xbfb9c558) at ./kmcommands.moc:680
#36 0x034a58ca in QMetaObject::metacall (object=0x98aebb8, cl=2961, idx=9, argv=0xbfb9c558) at kernel/qmetaobject.cpp:237
#37 0x034b86ad in QMetaObject::activate (sender=0x9a9bec0, m=0x3ae548, local_signal_index=3, argv=0x0) at kernel/qobject.cpp:3280
#38 0x0022cd83 in KJob::result (this=0x9a9bec0, _t1=0x9a9bec0) at ./kjob.moc:194
#39 0x0022d0e8 in KJob::emitResult (this=0x9a9bec0) at ../../kdecore/jobs/kjob.cpp:312
#40 0x02c066f9 in delayedEmitResult (this=0x9a9bec0, _c=QMetaObject::InvokeMetaMethod, _id=34, _a=0x98ee220) at ../../akonadi/job.cpp:144
#41 Akonadi::Job::qt_metacall (this=0x9a9bec0, _c=QMetaObject::InvokeMetaMethod, _id=34, _a=0x98ee220) at ./job.moc:91
#42 0x02bf1f8a in Akonadi::ItemFetchJob::qt_metacall (this=0x9a9bec0, _c=QMetaObject::InvokeMetaMethod, _id=34, _a=0x98ee220) at ./itemfetchjob.moc:73
#43 0x034a58ca in QMetaObject::metacall (object=0x9a9bec0, cl=2961, idx=34, argv=0x98ee220) at kernel/qmetaobject.cpp:237
#44 0x034b0df6 in QMetaCallEvent::placeMetaCall (this=0x9931848, object=0x9a9bec0) at kernel/qobject.cpp:534
#45 0x034b26a2 in QObject::event (this=0x9a9bec0, e=0x6) at kernel/qobject.cpp:1219
#46 0x00caffdc in QApplicationPrivate::notify_helper (this=0x84fad58, receiver=0x9a9bec0, e=0x9931848) at kernel/qapplication.cpp:4396
#47 0x00cb604e in QApplication::notify (this=0xbfb9cea4, receiver=0x9a9bec0, e=0x9931848) at kernel/qapplication.cpp:3798
#48 0x006aef8a in KApplication::notify (this=0xbfb9cea4, receiver=0x9a9bec0, event=0x9931848) at ../../kdeui/kernel/kapplication.cpp:311
#49 0x0349fb3b in QCoreApplication::notifyInternal (this=0xbfb9cea4, receiver=0x9a9bec0, event=0x9931848) at kernel/qcoreapplication.cpp:732
#50 0x034a2d8b in sendEvent (receiver=0x0, event_type=0, data=0x84d3008) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#51 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x84d3008) at kernel/qcoreapplication.cpp:1373
#52 0x034a2f4d in QCoreApplication::sendPostedEvents (receiver=0x0, event_type=0) at kernel/qcoreapplication.cpp:1266
#53 0x034cea74 in sendPostedEvents (s=0x84f5da0) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:220
#54 postEventSourceDispatch (s=0x84f5da0) at kernel/qeventdispatcher_glib.cpp:277
#55 0x07e4c855 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#56 0x07e50668 in ?? () from /lib/libglib-2.0.so.0
#57 0x07e50848 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#58 0x034ce565 in QEventDispatcherGlib::processEvents (this=0x84f3618, flags=...) at kernel/qeventdispatcher_glib.cpp:415
#59 0x00d71be5 in QGuiEventDispatcherGlib::processEvents (this=0x84f3618, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#60 0x0349e609 in QEventLoop::processEvents (this=0xbfb9ce04, flags=) at kernel/qeventloop.cpp:149
#61 0x0349ea8a in QEventLoop::exec (this=0xbfb9ce04, flags=...) at kernel/qeventloop.cpp:201
#62 0x034a300f in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1009
#63 0x00caee07 in QApplication::exec () at kernel/qapplication.cpp:3672
#64 0x0804b20f in main (argc=1, argv=0xbfb9d0d4) at ../../../kontact/src/main.cpp:218

Possible duplicates by query: bug 263114.

Reported using DrKonqi
Comment 1 Christophe Marin 2011-01-22 14:30:45 UTC

*** This bug has been marked as a duplicate of bug 263114 ***
Comment 2 Torgny Nyblom 2011-01-22 18:07:49 UTC
Could you attach one of these crashing mails to bug: 263114 as an mbox file? I'm having a hard time debugging this without being able to reproduce.