Bug 157596

Summary: Klamav crashes kmail whilst analyzing more than around 5 emails on an online imap account
Product: [Unmaintained] kmail Reporter: Ralph Moenchmeyer <rm>
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED DUPLICATE    
Severity: crash    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Ralph Moenchmeyer 2008-02-10 13:32:05 UTC
Version:            (using KDE 3.5.8)
Installed from:    SuSE RPMs
OS:                Linux

I have installed the latest KDE 3.5.8 rpms from SUSE's build service. OS is Opensuse 10.3, architecture x86_64, processor AMD X2 4800+. 
KDE base rpm from Suse : kdebase3 3.5.8-51.1
KDELibs rpm from Suse:  kdelibs3 3.5.8-44.1
Klamav rpm from SuSE: klamav 0.41.1-32.1
Clamav rpm from SuSE:  clamav 0.92-0.1

Kmail is connected to an Openxchange server  - i.e. to a cyrus imap server regarding mails. Imap-folders are accessed online (not via "disconnected imap"). TLS is activated. Everything worked OK until I integrated klamav into kmail. 

Whenever I mark several mails (more than 4 or 5 ) in an online imap folder and run a virus check on them Kmail crashes. However, when I check the same mails one by one everything is OK. It may also work with a list of less than around 5 mails. Whilst the virus check happens the mails analyzed disappear from the list of mails in the presently displayed folder. After the analysis - and if kmail does not crash - the kmail list of mails for the presently selected folder is refreshed; it then shows all mails again.   

So something is wrong when a sequence of mails from an online imap account is analyzed. 

Error protocol from KDE: 
--------------------------------- 
Überprüfung der Systemkonfiguration beim Start deaktiviert.

 [?1034hUsing host libthread_db library "/lib64/libthread_db.so.1".
[Thread debugging using libthread_db enabled]
[New Thread 0x2afee6d1ab50 (LWP 13728)]
[New Thread 0x42003950 (LWP 13732)]
[New Thread 0x41802950 (LWP 13731)]
[New Thread 0x41001950 (LWP 13730)]
[New Thread 0x40800950 (LWP 13729)]
[KCrash handler]
#5  0x0000000000000000 in ?? ()
#6  0x00002afeeb93d064 in KMMessage::setTransferInProgress ()
   from /opt/kde3/lib64/libkmailprivate.so
#7  0x00002afeebb2cbbd in KMCommand::slotPostTransfer ()
   from /opt/kde3/lib64/libkmailprivate.so
#8  0x00002afeebb359c2 in KMCommand::qt_invoke ()
   from /opt/kde3/lib64/libkmailprivate.so
#9  0x00002afeebb35d19 in KMFilterActionCommand::qt_invoke ()
   from /opt/kde3/lib64/libkmailprivate.so
#10 0x00002afee0305f7c in QObject::activate_signal ()
   from /usr/lib/qt3/lib64/libqt-mt.so.3
#11 0x00002afeebb2b8cc in KMCommand::messagesTransfered ()
   from /opt/kde3/lib64/libkmailprivate.so
#12 0x00002afeebb358ed in KMCommand::slotJobFinished ()
   from /opt/kde3/lib64/libkmailprivate.so
#13 0x00002afeebb359ea in KMCommand::qt_invoke ()
   from /opt/kde3/lib64/libkmailprivate.so
#14 0x00002afeebb35d19 in KMFilterActionCommand::qt_invoke ()
   from /opt/kde3/lib64/libkmailprivate.so
#15 0x00002afee0305f7c in QObject::activate_signal ()
   from /usr/lib/qt3/lib64/libqt-mt.so.3
#16 0x00002afee0306714 in QObject::activate_signal ()
   from /usr/lib/qt3/lib64/libqt-mt.so.3
#17 0x00002afeebb6e317 in KMail::FolderJob::~FolderJob ()
   from /opt/kde3/lib64/libkmailprivate.so
#18 0x00002afeebb77a62 in KMail::ImapJob::~ImapJob ()
   from /opt/kde3/lib64/libkmailprivate.so
#19 0x00002afee0305669 in QObject::event ()
   from /usr/lib/qt3/lib64/libqt-mt.so.3
#20 0x00002afee02af7ed in QApplication::internalNotify ()
   from /usr/lib/qt3/lib64/libqt-mt.so.3
#21 0x00002afee02b0508 in QApplication::notify ()
   from /usr/lib/qt3/lib64/libqt-mt.so.3
#22 0x00002afedfa978dd in KApplication::notify ()
   from /opt/kde3/lib64/libkdecore.so.4
#23 0x00002afee02b0e4a in QApplication::sendPostedEvents ()
   from /usr/lib/qt3/lib64/libqt-mt.so.3
#24 0x00002afee026593d in QEventLoop::processEvents ()
   from /usr/lib/qt3/lib64/libqt-mt.so.3
#25 0x00002afee02c4063 in QEventLoop::enterLoop ()
   from /usr/lib/qt3/lib64/libqt-mt.so.3
#26 0x00002afee02c3f12 in QEventLoop::exec ()
   from /usr/lib/qt3/lib64/libqt-mt.so.3
#27 0x00000000004190f9 in main ()
Comment 1 Ralph Moenchmeyer 2008-02-10 13:37:21 UTC
I checked again with TLS deactivated - the same crash happens. So encryption of the connection to the imap server does not play any role in this bug. 
Comment 2 Ralph Moenchmeyer 2008-02-10 13:41:52 UTC
The crash also occurs if I use just a direct filter for clamav (no klamav integration).
Comment 3 Ralph Moenchmeyer 2008-02-10 14:01:57 UTC
I tested again - this time for a disconnected imap folder. 
No problems there. No crashes. 
So the crash occurs for mails in online imap folders, only. 
Comment 4 Thomas McGuire 2008-02-10 14:58:56 UTC

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