Bug 205309

Summary: KMail segfaults during certain IMAP operations (KMMsgBase::storage, KMail::ImapJob::slotGetMessageResult)
Product: [Unmaintained] kmail Reporter: Benjamin Lewis <ben.lewis>
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED UNMAINTAINED    
Severity: crash CC: andreiamenta, andresbajotierra, bjoern, david.krapohl, jnelson-kde, jussi01, karl.gasteiner, robert.durgeat, ungethym
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Unlisted Binaries   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Benjamin Lewis 2009-08-27 10:06:30 UTC
Application that crashed: kmail
Version of the application: 1.12.0
KDE Version: 4.3.00 (KDE 4.3.0)
Qt Version: 4.5.2
Operating System: Linux 2.6.29.6-217.2.8.fc11.i686.PAE i686
Distribution: "Fedora release 11 (Leonidas)"

What I was doing when the application crashed:
During certain operations, ranging from deleting IMAP folders to downloading very large (> 4,000 e-mails) folders kmail segfaults.

 -- Backtrace:
Application: KMail (kmail), signal: Segmentation fault
[KCrash Handler]
#6  0x003d642f in KMMsgBase::storage() const () from /usr/lib/libkmailprivate.so.4
#7  0x0057c612 in KMail::ImapJob::slotGetMessageResult(KJob*) () from /usr/lib/libkmailprivate.so.4
#8  0x0058132f in KMail::ImapJob::qt_metacall(QMetaObject::Call, int, void**) () from /usr/lib/libkmailprivate.so.4
#9  0x04c69c73 in QMetaObject::activate (sender=0xa48ef08, from_signal_index=7, to_signal_index=7, argv=0xbfb50698) at kernel/qobject.cpp:3113
#10 0x04c6a8d2 in QMetaObject::activate (sender=0xa48ef08, m=0x5bfd8a8, local_signal_index=3, argv=0xbfb50698) at kernel/qobject.cpp:3187
#11 0x05a68d53 in KJob::result (this=0xa48ef08, _t1=0xa48ef08) at /usr/src/debug/kdelibs-4.3.0/i586-redhat-linux-gnu/kdecore/kjob.moc:188
#12 0x05a691f9 in KJob::emitResult (this=0xa48ef08) at /usr/src/debug/kdelibs-4.3.0/kdecore/jobs/kjob.cpp:304
#13 0x06f0f350 in KIO::SimpleJob::slotFinished (this=0xa48ef08) at /usr/src/debug/kdelibs-4.3.0/kio/kio/job.cpp:477
#14 0x06f0f87a in KIO::TransferJob::slotFinished (this=0xa48ef08) at /usr/src/debug/kdelibs-4.3.0/kio/kio/job.cpp:948
#15 0x06f0d0f3 in KIO::SimpleJob::slotError (this=0xa48ef08, err=111, errorText=@0xbfb50ad8) at /usr/src/debug/kdelibs-4.3.0/kio/kio/job.cpp:489
#16 0x06f0d23e in KIO::SimpleJob::qt_metacall (this=0xa48ef08, _c=QMetaObject::InvokeMetaMethod, _id=31, _a=0xbfb509d4) at /usr/src/debug/kdelibs-4.3.0/i586-redhat-linux-gnu/kio/jobclasses.moc:158
#17 0x06f0d3fa in KIO::TransferJob::qt_metacall (this=0xa48ef08, _c=QMetaObject::InvokeMetaMethod, _id=31, _a=0xbfb509d4) at /usr/src/debug/kdelibs-4.3.0/i586-redhat-linux-gnu/kio/jobclasses.moc:331
#18 0x04c69c73 in QMetaObject::activate (sender=0xa409910, from_signal_index=6, to_signal_index=6, argv=0xbfb509d4) at kernel/qobject.cpp:3113
#19 0x04c6a8d2 in QMetaObject::activate (sender=0xa409910, m=0x70f2b64, local_signal_index=2, argv=0xbfb509d4) at kernel/qobject.cpp:3187
#20 0x06fdaed9 in KIO::SlaveInterface::error (this=0xa409910, _t1=111, _t2=@0xbfb50ad8) at /usr/src/debug/kdelibs-4.3.0/i586-redhat-linux-gnu/kio/slaveinterface.moc:153
#21 0x06fdee8c in KIO::SlaveInterface::dispatch (this=0xa409910, _cmd=102, rawdata=@0xbfb50b28) at /usr/src/debug/kdelibs-4.3.0/kio/kio/slaveinterface.cpp:208
#22 0x06fdb313 in KIO::SlaveInterface::dispatch (this=0xa409910) at /usr/src/debug/kdelibs-4.3.0/kio/kio/slaveinterface.cpp:91
#23 0x06fcd3ea in KIO::Slave::gotInput (this=0xa409910) at /usr/src/debug/kdelibs-4.3.0/kio/kio/slave.cpp:322
#24 0x06fcf7e3 in KIO::Slave::qt_metacall (this=0xa409910, _c=QMetaObject::InvokeMetaMethod, _id=30, _a=0xbfb50c6c) at /usr/src/debug/kdelibs-4.3.0/i586-redhat-linux-gnu/kio/slave.moc:76
#25 0x04c69c73 in QMetaObject::activate (sender=0xa405df8, from_signal_index=4, to_signal_index=4, argv=0x0) at kernel/qobject.cpp:3113
#26 0x04c6a8d2 in QMetaObject::activate (sender=0xa405df8, m=0x70ef4a0, local_signal_index=0, argv=0x0) at kernel/qobject.cpp:3187
#27 0x06ed64b7 in KIO::Connection::readyRead (this=0xa405df8) at /usr/src/debug/kdelibs-4.3.0/i586-redhat-linux-gnu/kio/connection.moc:86
#28 0x06ed828e in KIO::ConnectionPrivate::dequeue (this=0xa406830) at /usr/src/debug/kdelibs-4.3.0/kio/kio/connection.cpp:82
#29 0x06ed83b6 in KIO::Connection::qt_metacall (this=0xa405df8, _c=QMetaObject::InvokeMetaMethod, _id=5, _a=0xa407f30) at /usr/src/debug/kdelibs-4.3.0/i586-redhat-linux-gnu/kio/connection.moc:73
#30 0x04c6291b in QMetaCallEvent::placeMetaCall (this=0xa8a9110, object=0xa405df8) at kernel/qobject.cpp:477
#31 0x04c6400e in QObject::event (this=0xa405df8, e=0xa8a9110) at kernel/qobject.cpp:1111
#32 0x04e70884 in QApplicationPrivate::notify_helper (this=0x9ae9360, receiver=0xa405df8, e=0xa8a9110) at kernel/qapplication.cpp:4056
#33 0x04e77f0e in QApplication::notify (this=0xbfb51580, receiver=0xa405df8, e=0xa8a9110) at kernel/qapplication.cpp:4021
#34 0x05dd8a7a in KApplication::notify (this=0xbfb51580, receiver=0xa405df8, event=0xa8a9110) at /usr/src/debug/kdelibs-4.3.0/kdeui/kernel/kapplication.cpp:302
#35 0x04c53f4b in QCoreApplication::notifyInternal (this=0xbfb51580, receiver=0xa405df8, event=0xa8a9110) at kernel/qcoreapplication.cpp:610
#36 0x04c54b68 in QCoreApplication::sendEvent (event=<value optimized out>, receiver=<value optimized out>) at kernel/qcoreapplication.h:213
#37 QCoreApplicationPrivate::sendPostedEvents (event=<value optimized out>, receiver=<value optimized out>) at kernel/qcoreapplication.cpp:1247
#38 0x04c54d3d in QCoreApplication::sendPostedEvents (receiver=0x0, event_type=0) at kernel/qcoreapplication.cpp:1140
#39 0x04c7edaf in QCoreApplication::sendPostedEvents () at kernel/qcoreapplication.h:218
#40 postEventSourceDispatch () at kernel/qeventdispatcher_glib.cpp:210
#41 0x092e5cf8 in g_main_dispatch (context=<value optimized out>) at gmain.c:1824
#42 IA__g_main_context_dispatch (context=<value optimized out>) at gmain.c:2377
#43 0x092e9370 in g_main_context_iterate (context=0x9aeab10, block=<value optimized out>, dispatch=1, self=0x9b17160) at gmain.c:2455
#44 0x092e94a3 in IA__g_main_context_iteration (context=0x9aeab10, may_block=1) at gmain.c:2518
#45 0x04c7e9dc in QEventDispatcherGlib::processEvents (this=0x9ac0df8, flags={i = 36}) at kernel/qeventdispatcher_glib.cpp:327
#46 0x04f0f9e5 in QGuiEventDispatcherGlib::processEvents (this=0x9ac0df8, flags={i = 36}) at kernel/qguieventdispatcher_glib.cpp:202
#47 0x04c52539 in QEventLoop::processEvents (this=0xbfb51464, flags={i = 36}) at kernel/qeventloop.cpp:149
#48 0x04c5298a in QEventLoop::exec (this=0xbfb51464, flags={i = 0}) at kernel/qeventloop.cpp:201
#49 0x04c54dff in QCoreApplication::exec () at kernel/qcoreapplication.cpp:888
#50 0x04e70707 in QApplication::exec () at kernel/qapplication.cpp:3525
#51 0x0804a592 in main (argc=3, argv=0xbfb51734) at /usr/src/debug/kdepim-4.3.0/kmail/main.cpp:146

Reported using DrKonqi
Comment 1 Dario Andres 2009-08-28 20:25:06 UTC
- Is the crash reproduceable at will ?
This seems to be bug 117572. 
Thanks
Comment 2 Christophe Marin 2009-10-23 09:40:41 UTC
*** Bug 211487 has been marked as a duplicate of this bug. ***
Comment 3 Dario Andres 2009-12-14 22:55:54 UTC
From bug 213677:
---
What I was doing when the application crashed:
Kontact crashes when deleting a lot of files one-by-one in the inbox of
googlemail. The same happens if I start kmail alone...

Most time deleting works perfect but after about 45 or 50 mails the program
crashes.

--- 
Updated complete backtrace:
---
[KCrash Handler]
#6  KMMsgBase::storage (this=0xa0e48c8) at ../../kmail/kmmsgbase.cpp:140
#7  0xb461b8e2 in KMail::ImapJob::slotGetMessageResult (this=0x9aacd20,
job=0x9defa60) at ../../kmail/imapjob.cpp:373
#8  0xb462060f in KMail::ImapJob::qt_metacall (this=0x9aacd20,
_c=QMetaObject::InvokeMetaMethod, _id=12, _a=0xbff87d98) at ./imapjob.moc:82
#9  0x05eb4263 in QMetaObject::activate (sender=0x9defa60, from_signal_index=7,
to_signal_index=7, argv=0xbff87d98) at kernel/qobject.cpp:3113
#10 0x05eb4ec2 in QMetaObject::activate (sender=0x9defa60, m=0x468d68,
local_signal_index=3, argv=0xbff87d98) at kernel/qobject.cpp:3187
#11 0x00302fe3 in KJob::result (this=0x9defa60, _t1=0x9defa60) at
./kjob.moc:188
#12 0x00303469 in KJob::emitResult (this=0x9defa60) at
../../kdecore/jobs/kjob.cpp:304
#13 0x015cd660 in KIO::SimpleJob::slotFinished (this=0x9defa60) at
../../kio/kio/job.cpp:477
#14 0x015cdb7a in KIO::TransferJob::slotFinished (this=0x9defa60) at
../../kio/kio/job.cpp:948
#15 0x015cb8a3 in KIO::TransferJob::qt_metacall (this=0x9defa60,
_c=QMetaObject::InvokeMetaMethod, _id=47, _a=0xbff87ffc) at
./jobclasses.moc:343
...
Comment 4 Dario Andres 2009-12-14 22:55:57 UTC
*** Bug 213677 has been marked as a duplicate of this bug. ***
Comment 5 Dario Andres 2009-12-14 23:02:28 UTC
*** Bug 218597 has been marked as a duplicate of this bug. ***
Comment 6 Björn Ruberg 2010-03-15 00:24:19 UTC

*** This bug has been marked as a duplicate of bug 189513 ***
Comment 7 Christophe Marin 2010-06-07 01:19:15 UTC
reopen. bug 189513 is about filtering
Comment 8 Christophe Marin 2010-06-07 01:19:27 UTC
*** Bug 235467 has been marked as a duplicate of this bug. ***
Comment 9 Dario Andres 2010-11-18 18:47:03 UTC
*** Bug 252787 has been marked as a duplicate of this bug. ***
Comment 10 Dario Andres 2010-12-31 23:25:13 UTC
*** Bug 261727 has been marked as a duplicate of this bug. ***
Comment 11 Stephen Kelly 2011-04-18 09:55:07 UTC
*** Bug 271199 has been marked as a duplicate of this bug. ***
Comment 12 Myriam Schweingruber 2012-08-19 11:05:36 UTC
Thank you for your report. Kmail1 is currently unmaintained and the code has changed sufficiently in Kmail2 so the backtraces are not really useful anymore. Should you experience the same crash in Kmail 4.8.5 or later, please open a new report for Kmail2. Thank you for your understanding