Bug 127494 - kmail crashes when deleting Russian spam
Summary: kmail crashes when deleting Russian spam
Status: RESOLVED FIXED
Alias: None
Product: SUSE LINUX 10.0
Classification: openSUSE
Component: KDE (show other bugs)
Version: RC 4
Hardware: Other All
: P5 - None : Critical
Target Milestone: ---
Assignee: Will Stephenson
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-11 07:33 UTC by Andreas Kleen
Modified: 2006-02-18 07:05 UTC (History)
2 users (show)

See Also:
Found By: Other
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
it was either this (12.98 KB, application/octet-stream)
2005-10-11 07:46 UTC, Andreas Kleen
Details
... or this spam that caused the crash (17.33 KB, application/octet-stream)
2005-10-11 07:46 UTC, Andreas Kleen
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Kleen 2005-10-11 07:33:59 UTC
While deleting some spam mails.

[KCrash handler]
#3  0x00002aaaaade58fb in KMMsgBase::storage ()
   from /opt/kde3/lib64/libkmailprivate.so
#4  0x00002aaaaaf6e2ce in KMail::ImapJob::slotGetBodyStructureResult ()
   from /opt/kde3/lib64/libkmailprivate.so
#5  0x00002aaaaaf6eab2 in KMail::ImapJob::qt_invoke ()
   from /opt/kde3/lib64/libkmailprivate.so
#6  0x00002aaaaba332d8 in QObject::activate_signal ()
   from /usr/lib/qt3/lib64/libqt-mt.so.3
#7  0x00002aaaaddc15bb in KIO::Job::result () from /opt/kde3/lib64/libkio.so.4
#8  0x00002aaaade0c999 in KIO::Job::emitResult ()
   from /opt/kde3/lib64/libkio.so.4
#9  0x00002aaaade0cb16 in KIO::SimpleJob::slotFinished ()
   from /opt/kde3/lib64/libkio.so.4
#10 0x00002aaaade0d16a in KIO::TransferJob::slotFinished ()
   from /opt/kde3/lib64/libkio.so.4
#11 0x00002aaaade0e4e8 in KIO::TransferJob::qt_invoke ()
   from /opt/kde3/lib64/libkio.so.4
#12 0x00002aaaaba332d8 in QObject::activate_signal ()
   from /usr/lib/qt3/lib64/libqt-mt.so.3
#13 0x00002aaaaba336fd in QObject::activate_signal ()
   from /usr/lib/qt3/lib64/libqt-mt.so.3
#14 0x00002aaaade21d1f in KIO::SlaveInterface::dispatch ()
   from /opt/kde3/lib64/libkio.so.4
#15 0x00002aaaaddd9448 in KIO::SlaveInterface::dispatch ()
   from /opt/kde3/lib64/libkio.so.4
#16 0x00002aaaaddd59aa in KIO::Slave::gotInput ()
   from /opt/kde3/lib64/libkio.so.4
#17 0x00002aaaaddd5b48 in KIO::Slave::qt_invoke ()
   from /opt/kde3/lib64/libkio.so.4
#18 0x00002aaaaba332d8 in QObject::activate_signal ()
   from /usr/lib/qt3/lib64/libqt-mt.so.3
#19 0x00002aaaaba33844 in QObject::activate_signal ()
   from /usr/lib/qt3/lib64/libqt-mt.so.3
#20 0x00002aaaaba4e77b in QSocketNotifier::event ()
   from /usr/lib/qt3/lib64/libqt-mt.so.3
#21 0x00002aaaab9dd2a3 in QApplication::internalNotify ()
   from /usr/lib/qt3/lib64/libqt-mt.so.3
#22 0x00002aaaab9ddd30 in QApplication::notify ()
   from /usr/lib/qt3/lib64/libqt-mt.so.3
#23 0x00002aaaab3cf98f in KApplication::notify ()
   from /opt/kde3/lib64/libkdecore.so.4
#24 0x00002aaaab9d2650 in QEventLoop::activateSocketNotifiers ()
   from /usr/lib/qt3/lib64/libqt-mt.so.3
#25 0x00002aaaab9943de in QEventLoop::processEvents ()
   from /usr/lib/qt3/lib64/libqt-mt.so.3
#26 0x00002aaaab9f1ee3 in QEventLoop::enterLoop ()
   from /usr/lib/qt3/lib64/libqt-mt.so.3
#27 0x00002aaaab9f1de2 in QEventLoop::exec ()
   from /usr/lib/qt3/lib64/libqt-mt.so.3
Comment 1 Andreas Kleen 2005-10-11 07:41:49 UTC
Happened a second time while deleting the same cyrillic spam mail.

Comment 2 Andreas Kleen 2005-10-11 07:46:07 UTC
Created attachment 53599 [details]
it was either this
Comment 3 Andreas Kleen 2005-10-11 07:46:29 UTC
Created attachment 53601 [details]
... or this spam that caused the crash
Comment 4 Will Stephenson 2005-10-12 11:56:49 UTC
This is connected imap, not disconnected/cached imap, isn't it? 
Comment 5 Andreas Kleen 2005-10-12 12:01:25 UTC
Connected yes.

In addition I must add I don't only see crashes while deleting Russian
spam, it crashes when deleting some other mails too. Usually often
when you delete a lot of them quickly.
Comment 6 Andreas Kleen 2005-10-13 09:32:05 UTC
I got a lot more crashes while deleting email. Sometimes it also doesn't
delete a mail and just says "Moving failed" (and if you retry a few times
it eventually crashes). In one case it also quitted without calling kcrash.

Anyways, installed debuginfo now and i got this backtrace.

KCrash handler]
#3  0x0000000000000000 in ?? ()
#4  0x00002aaaaadf1b7d in KMMsgBase::transferInProgress (
    this=<value optimized out>) at kmmsgbase.cpp:1043
#5  0x00002aaaaaf6e2d9 in KMail::ImapJob::slotGetBodyStructureResult (
    this=0xf80d10, job=0x1199920) at imapjob.cpp:456
#6  0x00002aaaaaf6eab2 in KMail::ImapJob::qt_invoke (this=0xf80d10, _id=3, 
    _o=0x7fffffe1fac0) at imapjob.moc:127
#7  0x00002aaaaba332d8 in QObject::activate_signal ()
   from /usr/lib/qt3/lib64/libqt-mt.so.3
#8  0x00002aaaaddc15bb in KIO::Job::result () from /opt/kde3/lib64/libkio.so.4
#9  0x00002aaaade0c999 in KIO::Job::emitResult ()
   from /opt/kde3/lib64/libkio.so.4
#10 0x00002aaaade0cb16 in KIO::SimpleJob::slotFinished ()
   from /opt/kde3/lib64/libkio.so.4
#11 0x00002aaaade0d16a in KIO::TransferJob::slotFinished ()
   from /opt/kde3/lib64/libkio.so.4
#12 0x00002aaaade0e4e8 in KIO::TransferJob::qt_invoke ()
   from /opt/kde3/lib64/libkio.so.4
#13 0x00002aaaaba332d8 in QObject::activate_signal ()
   from /usr/lib/qt3/lib64/libqt-mt.so.3
#14 0x00002aaaaba336fd in QObject::activate_signal ()
   from /usr/lib/qt3/lib64/libqt-mt.so.3
#15 0x00002aaaade21d1f in KIO::SlaveInterface::dispatch ()
   from /opt/kde3/lib64/libkio.so.4
#16 0x00002aaaaddd9448 in KIO::SlaveInterface::dispatch ()
   from /opt/kde3/lib64/libkio.so.4
#17 0x00002aaaaddd59aa in KIO::Slave::gotInput ()
   from /opt/kde3/lib64/libkio.so.4
#18 0x00002aaaaddd5b48 in KIO::Slave::qt_invoke ()
   from /opt/kde3/lib64/libkio.so.4
#19 0x00002aaaaba332d8 in QObject::activate_signal ()
   from /usr/lib/qt3/lib64/libqt-mt.so.3
#20 0x00002aaaaba33844 in QObject::activate_signal ()
   from /usr/lib/qt3/lib64/libqt-mt.so.3
#21 0x00002aaaaba4e77b in QSocketNotifier::event ()
   from /usr/lib/qt3/lib64/libqt-mt.so.3
#22 0x00002aaaab9dd2a3 in QApplication::internalNotify ()
   from /usr/lib/qt3/lib64/libqt-mt.so.3
#23 0x00002aaaab9ddd30 in QApplication::notify ()
   from /usr/lib/qt3/lib64/libqt-mt.so.3
#24 0x00002aaaab3cf98f in KApplication::notify ()
   from /opt/kde3/lib64/libkdecore.so.4
#25 0x00002aaaab9d2650 in QEventLoop::activateSocketNotifiers ()
   from /usr/lib/qt3/lib64/libqt-mt.so.3
#26 0x00002aaaab9943de in QEventLoop::processEvents ()
   from /usr/lib/qt3/lib64/libqt-mt.so.3
#27 0x00002aaaab9f1ee3 in QEventLoop::enterLoop ()
   from /usr/lib/qt3/lib64/libqt-mt.so.3
#28 0x00002aaaab9f1de2 in QEventLoop::exec ()
   from /usr/lib/qt3/lib64/libqt-mt.so.3
#29 0x000000000040294d in main (argc=<value optimized out>, 
    argv=<value optimized out>)
    at /usr/src/debug/kdepim-3.4.2/kmail/main.cpp:95
Comment 7 Andreas Kleen 2005-10-13 19:24:46 UTC
Another backtrace

[KCrash handler]
#3  KMMsgBase::storage (this=0x140e370) at kmmsgbase.cpp:89
#4  0x00002aaaaaf6e2ce in KMail::ImapJob::slotGetBodyStructureResult (
    this=0xe4c430, job=0xfc0e90) at imapjob.cpp:455
#5  0x00002aaaaaf6eab2 in KMail::ImapJob::qt_invoke (this=0xe4c430, _id=3, 
    _o=0x7ffffff533f0) at imapjob.moc:127
#6  0x00002aaaaba332d8 in QObject::activate_signal ()
   from /usr/lib/qt3/lib64/libqt-mt.so.3
#7  0x00002aaaaddc15bb in KIO::Job::result () from /opt/kde3/lib64/libkio.so.4
#8  0x00002aaaade0c999 in KIO::Job::emitResult ()
   from /opt/kde3/lib64/libkio.so.4
#9  0x00002aaaade0cb16 in KIO::SimpleJob::slotFinished ()
   from /opt/kde3/lib64/libkio.so.4
#10 0x00002aaaade0d16a in KIO::TransferJob::slotFinished ()
   from /opt/kde3/lib64/libkio.so.4
#11 0x00002aaaade0e4e8 in KIO::TransferJob::qt_invoke ()
   from /opt/kde3/lib64/libkio.so.4
#12 0x00002aaaaba332d8 in QObject::activate_signal ()
   from /usr/lib/qt3/lib64/libqt-mt.so.3
#13 0x00002aaaaba336fd in QObject::activate_signal ()
   from /usr/lib/qt3/lib64/libqt-mt.so.3
#14 0x00002aaaade21d1f in KIO::SlaveInterface::dispatch ()
   from /opt/kde3/lib64/libkio.so.4
#15 0x00002aaaaddd9448 in KIO::SlaveInterface::dispatch ()
   from /opt/kde3/lib64/libkio.so.4
#16 0x00002aaaaddd59aa in KIO::Slave::gotInput ()
   from /opt/kde3/lib64/libkio.so.4
#17 0x00002aaaaddd5b48 in KIO::Slave::qt_invoke ()
   from /opt/kde3/lib64/libkio.so.4
#18 0x00002aaaaba332d8 in QObject::activate_signal ()
   from /usr/lib/qt3/lib64/libqt-mt.so.3
#19 0x00002aaaaba33844 in QObject::activate_signal ()
   from /usr/lib/qt3/lib64/libqt-mt.so.3
#20 0x00002aaaaba4e77b in QSocketNotifier::event ()
   from /usr/lib/qt3/lib64/libqt-mt.so.3
#21 0x00002aaaab9dd2a3 in QApplication::internalNotify ()
   from /usr/lib/qt3/lib64/libqt-mt.so.3
#22 0x00002aaaab9ddd30 in QApplication::notify ()
   from /usr/lib/qt3/lib64/libqt-mt.so.3
#23 0x00002aaaab3cf98f in KApplication::notify ()
   from /opt/kde3/lib64/libkdecore.so.4
#24 0x00002aaaab9d2650 in QEventLoop::activateSocketNotifiers ()
   from /usr/lib/qt3/lib64/libqt-mt.so.3
#25 0x00002aaaab9943de in QEventLoop::processEvents ()
   from /usr/lib/qt3/lib64/libqt-mt.so.3
#26 0x00002aaaab9f1ee3 in QEventLoop::enterLoop ()
   from /usr/lib/qt3/lib64/libqt-mt.so.3
#27 0x00002aaaab9f1de2 in QEventLoop::exec ()
   from /usr/lib/qt3/lib64/libqt-mt.so.3
#28 0x000000000040294d in main (argc=<value optimized out>, 
    argv=<value optimized out>)
    at /usr/src/debug/kdepim-3.4.2/kmail/main.cpp:95
#29 0x00002aaaac2305aa in __libc_start_main () from /lib64/tls/libc.so.6
#30 0x00000000004026da in _start () at start.S:113
Comment 8 Tobias Haf 2005-12-30 10:22:36 UTC
Same Problem here (Kmail 1.8.2, KDE 3.4.2 Level "b"). Using IMAP (connected) and it crashes every time I delete mails (not only russian spam *g*) or when I try to move a mail to another folder.

For me, witht this, kmail is unusable at the moment :(
Comment 9 Will Stephenson 2006-01-07 17:30:53 UTC
Andi: I've just had the kmail online-imap maintainer look at this, he says your crash is unfixable without a redesign (that we are currently busy with).  Workarounds are to not use search folders, not delete mail during mail checks, and try to delete mail in smaller quantities.
Comment 10 Will Stephenson 2006-01-07 17:32:45 UTC
Tobias: as this bug happens on every move and delete for you it must be different to Andis. Please attach some backtraces with kdepim3-debuginfo.rpm installed - which is on the DVD or on FTP install sources.
Comment 11 Martin Mrazik 2006-01-09 08:31:16 UTC
I have the same problem (kmail crashes while deleting a dozen of e-mails on IMAP = not always) with kdepim3-3.5.0-12 on SLES10. 

Here is my backtrace:

System configuration startup check disabled.

Using host libthread_db library "/lib/libthread_db.so.1".
[Thread debugging using libthread_db enabled]
[New Thread -1247656272 (LWP 30328)]
[New Thread -1276740688 (LWP 30335)]
[New Thread -1268347984 (LWP 30334)]
[New Thread -1259955280 (LWP 30333)]
[New Thread -1251562576 (LWP 30332)]
[KCrash handler]
#4  KMMessage::transferInProgress (this=0x0) at kmmessage.cpp:237
#5  0xb7c60575 in KMMoveCommand::execute (this=0x83c7698)
    at kmcommands.cpp:1907
#6  0xb7bf87f9 in KMCommand::slotPostTransfer (this=0x83c7698, 
    result=KMCommand::OK) at kmcommands.cpp:254
#7  0xb7c618b6 in KMCommand::qt_invoke (this=0x83c7698, _id=5, _o=0xbf870604)
    at kmcommands.moc:148
#8  0xb7c61c8b in KMMenuCommand::qt_invoke (this=0x83c7698, _id=5, 
    _o=0xbf870604) at kmcommands.moc:2436
#9  0xb7c61d23 in KMMoveCommand::qt_invoke (this=0x83c7698, _id=5, 
    _o=0xbf870604) at kmcommands.moc:2619
#10 0xb736d219 in QObject::activate_signal ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#11 0xb7bf891e in KMCommand::messagesTransfered (this=0x83c7698, 
    t0=KMCommand::OK) at kmcommands.moc:126
#12 0xb7cb9294 in KMCommand::transferSelectedMsgs (this=0x83c7698)
    at kmcommands.cpp:349
#13 0xb7cb93f7 in KMCommand::slotStart (this=0x83c7698) at kmcommands.cpp:246
#14 0xb7c618c8 in KMCommand::qt_invoke (this=0x83c7698, _id=4, _o=0xbf870784)
    at kmcommands.moc:147
#15 0xb7c61c8b in KMMenuCommand::qt_invoke (this=0x83c7698, _id=4, 
    _o=0xbf870784) at kmcommands.moc:2436
#16 0xb7c61d23 in KMMoveCommand::qt_invoke (this=0x83c7698, _id=4, 
    _o=0xbf870784) at kmcommands.moc:2619
#17 0xb736d219 in QObject::activate_signal ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#18 0xb76ab62e in QSignal::signal () from /usr/lib/qt3/lib/libqt-mt.so.3
#19 0xb7388ff5 in QSignal::activate () from /usr/lib/qt3/lib/libqt-mt.so.3
#20 0xb73904d3 in QSingleShotTimer::event ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#21 0xb730d957 in QApplication::internalNotify ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#22 0xb730e641 in QApplication::notify () from /usr/lib/qt3/lib/libqt-mt.so.3
#23 0xb79cb8de in KApplication::notify () from /opt/kde3/lib/libkdecore.so.4
#24 0xb730295f in QEventLoop::activateTimers ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#25 0xb72bc89c in QEventLoop::processEvents ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#26 0xb7324731 in QEventLoop::enterLoop () from /usr/lib/qt3/lib/libqt-mt.so.3
#27 0xb73245ae in QEventLoop::exec () from /usr/lib/qt3/lib/libqt-mt.so.3
#28 0xb730d3ef in QApplication::exec () from /usr/lib/qt3/lib/libqt-mt.so.3
#29 0x0804a0c4 in main (argc=)
    at /usr/src/debug/kdepim-3.5.0/kmail/main.cpp:110
#30 0xb6f0f6f8 in __libc_start_main () from /lib/libc.so.6
#31 0x08049e41 in _start ()
Comment 12 Will Stephenson 2006-02-17 13:27:08 UTC
Andi: I've just fixed #135882 which is related due to a logic error in the imap bodystructure parser code.  Please can you try again with 10.1beta>4 to test.  I am unable to reproduce this crash using your spam though.  

Tobias, Martin: Your bug is a different bug to 'specific emails (Russian spam) crash kmail'.  Do the workarounds I mention above help at all?
Comment 13 Tobias Haf 2006-02-17 13:33:03 UTC
Sorry!

It seems that my crahes were results of a misconfigured IMAP-Server (is sth. like that possible?). I deleted an imap-account and now it'S working like expected. No crashes anymore...
Comment 14 Martin Mrazik 2006-02-17 13:38:53 UTC
I am unable to reproduce this any more :(

I have observed this with first versions of SLES10 (preview?) but I have'nt seen this for a long time now. Thus for me this is no longer a problem ;)
Comment 15 Andreas Kleen 2006-02-17 13:41:16 UTC
It also went away here.
Comment 16 Will Stephenson 2006-02-17 16:02:10 UTC
Tobias: no, it's a KMail problem.  It hasn't gone away, you were just lucky so far.  We fixed some individual bugs in KMail but the design problem still stands.  If you have more crashes, please post backtraces here.

Andi: even with those russian spams?
Comment 17 Will Stephenson 2006-02-18 07:05:38 UTC
Please reopen if still an issue.