Bug 228198

Summary: kmail crashes when a mail containing an attachment is clicked on in the message list
Product: [Unmaintained] kmail Reporter: Ciaran Farrell <cfarrell1980>
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED DUPLICATE    
Severity: crash    
Priority: NOR    
Version: 1.13.0   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Ciaran Farrell 2010-02-23 14:07:27 UTC
Application: kmail (1.13.0)
KDE Platform Version: 4.4.00 (KDE 4.4.0) "release 223"
Qt Version: 4.6.1
Operating System: Linux 2.6.31.12-0.1-pae i686
Distribution: "openSUSE 11.2 (i586)"

-- Information about the crash:
In the message list (i.e. email overview), I just have to single click (system set up to only open on double click) the mail containing an attachment (in this case a relatively large PDF) and kmail immediately crashes

The crash can be reproduced every time.

 -- Backtrace:
Application: KMail (kmail), signal: Segmentation fault
[Current thread is 1 (Thread 0xb2604760 (LWP 18505))]

Thread 3 (Thread 0xaef39b70 (LWP 18511)):
#0  0xffffe424 in __kernel_vsyscall ()
#1  0xb55510c2 in pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S:179
#2  0xb58d62d4 in pthread_cond_timedwait () from /lib/libc.so.6
#3  0xb656d01c in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#4  0xb65617ce in ?? () from /usr/lib/libQtCore.so.4
#5  0xb656c03f in ?? () from /usr/lib/libQtCore.so.4
#6  0xb554c6e5 in start_thread (arg=0x0) at pthread_create.c:297
#7  0xb554c600 in ?? () at pthread_create.c:216 from /lib/libpthread.so.0

Thread 2 (Thread 0xae738b70 (LWP 18513)):
#0  0xffffe424 in __kernel_vsyscall ()
#1  0xb55510c2 in pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S:179
#2  0xb58d62d4 in pthread_cond_timedwait () from /lib/libc.so.6
#3  0xb656d01c in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#4  0xb65617ce in ?? () from /usr/lib/libQtCore.so.4
#5  0xb656c03f in ?? () from /usr/lib/libQtCore.so.4
#6  0xb554c6e5 in start_thread (arg=0x0) at pthread_create.c:297
#7  0xb554c600 in ?? () at pthread_create.c:216 from /lib/libpthread.so.0

Thread 1 (Thread 0xb2604760 (LWP 18505)):
[KCrash Handler]
#6  0xb61e1b0d in QTreeWidgetItem::addChild(QTreeWidgetItem*) () from /usr/lib/libQtGui.so.4
#7  0xb61e1f73 in QTreeWidgetItem::QTreeWidgetItem(QTreeWidgetItem*, int) () from /usr/lib/libQtGui.so.4
#8  0xb6c3f839 in KMMimePartTreeItem::KMMimePartTreeItem (this=0x83536a0, parent=0x852e9e0, node=0x8881cf8, description=..., mimetype=..., encoding=..., size=0, revertOrder=false)
    at /usr/src/debug/kdepim-4.4.0/kmail/kmmimeparttree.cpp:378
#9  0xb6c8a3b3 in partNode::fillMimePartTree (this=0x8881cf8, parentItem=0x852e9e0, mimePartTree=0x0, labelDescr=..., labelCntType=..., labelEncoding=..., size=0, revertOrder=false)
    at /usr/src/debug/kdepim-4.4.0/kmail/partNode.cpp:549
#10 0xb6c77491 in KMail::ObjectTreeParser::insertAndParseNewChildNode (this=0xbfb314e0, startNode=..., content=0xb678c3bc "", cntDesc=0xb6f60e42 "encapsulated message", append=<value optimized out>, 
    addToTextualContent=false) at /usr/src/debug/kdepim-4.4.0/kmail/objecttreeparser.cpp:232
#11 0xb6c7b803 in KMail::ObjectTreeParser::processMessageRfc822Subtype (this=0xbfb314e0, node=0x87b0490) at /usr/src/debug/kdepim-4.4.0/kmail/objecttreeparser.cpp:1582
#12 0xb6c847bb in (anonymous namespace)::MessageRfc822BodyPartFormatter::process (this=0x87b7980, otp=0xbfb314e0, node=0x87b0490, result=...)
    at /usr/src/debug/kdepim-4.4.0/kmail/bodypartformatter.cpp:116
#13 0xb6c76a7a in KMail::ObjectTreeParser::parseObjectTree (this=0xbfb314e0, node=0x87b0490) at /usr/src/debug/kdepim-4.4.0/kmail/objecttreeparser.cpp:318
#14 0xb6c76e2f in KMail::ObjectTreeParser::stdChildHandling (this=0xbfb316ec, child=0x89c9f88) at /usr/src/debug/kdepim-4.4.0/kmail/objecttreeparser.cpp:1278
#15 0xb6c77230 in KMail::ObjectTreeParser::processMultiPartMixedSubtype (this=0xbfb316ec, node=0x85397a0) at /usr/src/debug/kdepim-4.4.0/kmail/objecttreeparser.cpp:1291
#16 0xb6c8478b in (anonymous namespace)::MultiPartMixedBodyPartFormatter::process (this=0x8845bb8, otp=0xbfb316ec, node=0x85397a0, result=...)
    at /usr/src/debug/kdepim-4.4.0/kmail/bodypartformatter.cpp:118
#17 0xb6c76a7a in KMail::ObjectTreeParser::parseObjectTree (this=0xbfb316ec, node=0x85397a0) at /usr/src/debug/kdepim-4.4.0/kmail/objecttreeparser.cpp:318
#18 0xb6ad08a2 in KMReaderWin::parseMsg (this=0x8366ca8, aMsg=0x89f1298) at /usr/src/debug/kdepim-4.4.0/kmail/kmreaderwin.cpp:1611
#19 0xb6ac5a80 in KMReaderWin::displayMessage (this=0x8366ca8) at /usr/src/debug/kdepim-4.4.0/kmail/kmreaderwin.cpp:1535
#20 0xb6ac5c5d in KMReaderWin::updateReaderWin (this=0x8366ca8) at /usr/src/debug/kdepim-4.4.0/kmail/kmreaderwin.cpp:1478
#21 0xb6ac65b0 in KMReaderWin::update (this=0x8366ca8, observable=0x8a28601) at /usr/src/debug/kdepim-4.4.0/kmail/kmreaderwin.cpp:903
#22 0xb6d27ab2 in KMail::ISubject::notify (this=0x89f1308) at /usr/src/debug/kdepim-4.4.0/kmail/isubject.cpp:33
#23 0xb69ccf3d in KMMessage::updateBodyPart (this=0x89f1298, partSpecifier=) at /usr/src/debug/kdepim-4.4.0/kmail/kmmessage.cpp:3185
#24 0xb6cfb5ec in KMail::ImapJob::slotGetMessageResult (this=0x8847e00, job=0x8847880) at /usr/src/debug/kdepim-4.4.0/kmail/imapjob.cpp:435
#25 0xb6cfd4dd in KMail::ImapJob::qt_metacall (this=0x8847e00, _c=InvokeMetaMethod, _id=12, _a=0xbfb31cc8) at /usr/src/debug/kdepim-4.4.0/build/kmail/imapjob.moc:88
#26 0xb667a32d in QMetaObject::metacall(QObject*, QMetaObject::Call, int, void**) () from /usr/lib/libQtCore.so.4
#27 0xb668918a in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4
#28 0xb71260d5 in KJob::result (this=0x8847880, _t1=0x8847880) at /usr/src/debug/kdelibs-4.4.0/build/kdecore/kjob.moc:194
#29 0xb712f818 in KJob::emitResult (this=0x8847880) at /usr/src/debug/kdelibs-4.4.0/kdecore/jobs/kjob.cpp:312
#30 0xb519055f in KIO::SimpleJob::slotFinished (this=0x8847880) at /usr/src/debug/kdelibs-4.4.0/kio/kio/job.cpp:486
#31 0xb5239151 in KIO::TransferJob::slotFinished (this=0x8847880) at /usr/src/debug/kdelibs-4.4.0/kio/kio/job.cpp:1058
#32 0xb521fd44 in KIO::TransferJob::qt_metacall (this=0x8847880, _c=InvokeMetaMethod, _id=47, _a=0xbfb31f4c) at /usr/src/debug/kdelibs-4.4.0/build/kio/jobclasses.moc:367
#33 0xb667a32d in QMetaObject::metacall(QObject*, QMetaObject::Call, int, void**) () from /usr/lib/libQtCore.so.4
#34 0xb668918a in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4
#35 0xb51265f5 in KIO::SlaveInterface::finished (this=0x82505d8) at /usr/src/debug/kdelibs-4.4.0/build/kio/slaveinterface.moc:171
#36 0xb5283898 in KIO::SlaveInterface::dispatch (this=0x82505d8, _cmd=104, rawdata=...) at /usr/src/debug/kdelibs-4.4.0/kio/kio/slaveinterface.cpp:175
#37 0xb514af1a in KIO::SlaveInterface::dispatch (this=0x82505d8) at /usr/src/debug/kdelibs-4.4.0/kio/kio/slaveinterface.cpp:91
#38 0xb5194688 in KIO::Slave::gotInput (this=0x82505d8) at /usr/src/debug/kdelibs-4.4.0/kio/kio/slave.cpp:324
#39 0xb51948b4 in KIO::Slave::qt_metacall (this=0x82505d8, _c=InvokeMetaMethod, _id=30, _a=0xbfb3223c) at /usr/src/debug/kdelibs-4.4.0/build/kio/slave.moc:82
#40 0xb667a32d in QMetaObject::metacall(QObject*, QMetaObject::Call, int, void**) () from /usr/lib/libQtCore.so.4
#41 0xb668918a in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4
#42 0xb5129265 in KIO::Connection::readyRead (this=0x82510e8) at /usr/src/debug/kdelibs-4.4.0/build/kio/connection.moc:92
#43 0xb514d07a in KIO::ConnectionPrivate::dequeue (this=0x8251460) at /usr/src/debug/kdelibs-4.4.0/kio/kio/connection.cpp:82
#44 0xb514d157 in KIO::Connection::qt_metacall (this=0x82510e8, _c=InvokeMetaMethod, _id=5, _a=0x887ef20) at /usr/src/debug/kdelibs-4.4.0/build/kio/connection.moc:79
#45 0xb667a32d in QMetaObject::metacall(QObject*, QMetaObject::Call, int, void**) () from /usr/lib/libQtCore.so.4
#46 0xb6684cb5 in QMetaCallEvent::placeMetaCall(QObject*) () from /usr/lib/libQtCore.so.4
#47 0xb6685e5f in QObject::event(QEvent*) () from /usr/lib/libQtCore.so.4
#48 0xb5b9f2ac in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#49 0xb5ba60f8 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#50 0xb74a5b71 in KApplication::notify (this=0xbfb32bfc, receiver=0x82510e8, event=0x8867818) at /usr/src/debug/kdelibs-4.4.0/kdeui/kernel/kapplication.cpp:302
#51 0xb6674fbe in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/libQtCore.so.4
#52 0xb66779c3 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /usr/lib/libQtCore.so.4
#53 0xb6677b1c in QCoreApplication::sendPostedEvents(QObject*, int) () from /usr/lib/libQtCore.so.4
#54 0xb66a204d in ?? () from /usr/lib/libQtCore.so.4
#55 0xb3d044c2 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#56 0xb3d07d98 in ?? () from /usr/lib/libglib-2.0.so.0
#57 0xb3d07ebe in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#58 0xb66a1b31 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#59 0xb5c5f6ca in ?? () from /usr/lib/libQtGui.so.4
#60 0xb667362d in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#61 0xb6673a79 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#62 0xb6677bf0 in QCoreApplication::exec() () from /usr/lib/libQtCore.so.4
#63 0xb5b9f354 in QApplication::exec() () from /usr/lib/libQtGui.so.4
#64 0x0804abee in main (argc=3, argv=0xbfb32db4) at /usr/src/debug/kdepim-4.4.0/kmail/main.cpp:156

This bug may be a duplicate of or related to bug 226977.

Possible duplicates by query: bug 228171, bug 228074, bug 227496, bug 227207, bug 226977.

Reported using DrKonqi
Comment 1 Thomas McGuire 2010-03-05 11:51:01 UTC

*** This bug has been marked as a duplicate of bug 186502 ***