Bug 76460

Summary: KMail crashes repeatable when filtering large amounts of messages in IMAP inboxes
Product: [Unmaintained] kmail Reporter: Christoph Sold <cs>
Component: IMAPAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED DUPLICATE    
Severity: crash    
Priority: NOR    
Version: 1.6   
Target Milestone: ---   
Platform: unspecified   
OS: FreeBSD   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Some mails and configuration file which crash kmail every time when filtered from IMAP server

Description Christoph Sold 2004-02-29 23:41:02 UTC
Version:           1.6 (using KDE 3.2.0, compiled sources)
Compiler:          gcc version 3.3.3 [FreeBSD] 20031106
OS:          FreeBSD (i386) release 5.2-CURRENT

When filtering large amounts of mail stored in an IMAP inbox, KMail crashes repeatably.
Comment 1 Carsten Burghardt 2004-03-01 19:31:54 UTC
On Sunday 29 February 2004 23:41, Christoph Sold wrote:
> When filtering large amounts of mail stored in an IMAP inbox, KMail crashes
> repeatably. _______________________________________________


And the backtrace?

Comment 2 Christoph Sold 2004-03-01 21:06:59 UTC
Here we go:
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
0x29c1cf27 in wait4 () from /lib/libc.so.5
#0  0x29c1cf27 in wait4 () from /lib/libc.so.5
#1  0x29c0f52f in waitpid () from /lib/libc.so.5
#2  0x29aacc51 in waitpid () from /usr/lib/libpthread.so.1
#3  0x2923334b in KCrash::defaultCrashHandler(int) ()
   from /usr/local/lib/libkdecore.so.6
#4  0x29ab306a in sigaction () from /usr/lib/libpthread.so.1
#5  <signal handler called>
#6  0x29678c81 in QListViewItem::firstChild() const ()
   from /usr/X11R6/lib/libqt-mt.so.3
#7  0x281ffa7d in KMHeaders::msgRemoved(int, QString, QString) ()
   from /usr/local/lib/libkmailprivate.so.0
#8  0x28208e20 in KMHeaders::qt_invoke(int, QUObject*) ()
   from /usr/local/lib/libkmailprivate.so.0
#9  0x295b0d8b in QObject::activate_signal(QConnectionList*, QUObject*)
()
   from /usr/X11R6/lib/libqt-mt.so.3
#10 0x282378a8 in KMFolder::msgRemoved(int, QString, QString) ()
   from /usr/local/lib/libkmailprivate.so.0
#11 0x28234c3d in KMFolder::take(int) ()
   from /usr/local/lib/libkmailprivate.so.0
#12 0x282c05f0 in KMFolderImap::take(int) ()
   from /usr/local/lib/libkmailprivate.so.0
#13 0x282d59ea in KMFolderMaildir::addMsg(KMMessage*, int*) ()
   from /usr/local/lib/libkmailprivate.so.0
#14 0x2823518e in KMFolder::moveMsg(KMMessage*, int*) ()
   from /usr/local/lib/libkmailprivate.so.0
#15 0x28276992 in KMFilterMgr::process(KMMessage*,
KMFilterMgr::FilterSet) ()
   from /usr/local/lib/libkmailprivate.so.0
#16 0x282003c0 in KMHeaders::slotFilterMsg(KMMessage*) ()
   from /usr/local/lib/libkmailprivate.so.0
#17 0x28208fc2 in KMHeaders::qt_invoke(int, QUObject*) ()
   from /usr/local/lib/libkmailprivate.so.0
#18 0x295b0d8b in QObject::activate_signal(QConnectionList*, QUObject*)
()
   from /usr/X11R6/lib/libqt-mt.so.3
#19 0x28358278 in KMail::FolderJob::messageRetrieved(KMMessage*) ()
   from /usr/local/lib/libkmailprivate.so.0
#20 0x28361ac6 in KMail::ImapJob::slotGetMessageResult(KIO::Job*) ()
   from /usr/local/lib/libkmailprivate.so.0
#21 0x28362df1 in KMail::ImapJob::qt_invoke(int, QUObject*) ()
   from /usr/local/lib/libkmailprivate.so.0
#22 0x295b0d8b in QObject::activate_signal(QConnectionList*, QUObject*)
()
   from /usr/X11R6/lib/libqt-mt.so.3
#23 0x28cf9414 in KIO::Job::result(KIO::Job*) ()
   from /usr/local/lib/libkio.so.6
#24 0x28ce699a in KIO::Job::emitResult() ()
from /usr/local/lib/libkio.so.6
#25 0x28ce7de9 in KIO::SimpleJob::slotFinished() ()
   from /usr/local/lib/libkio.so.6
#26 0x28cea26b in KIO::TransferJob::slotFinished() ()
   from /usr/local/lib/libkio.so.6
#27 0x28cfa7e4 in KIO::TransferJob::qt_invoke(int, QUObject*) ()
   from /usr/local/lib/libkio.so.6
#28 0x295b0d8b in QObject::activate_signal(QConnectionList*, QUObject*)
()
   from /usr/X11R6/lib/libqt-mt.so.3
#29 0x295b0cad in QObject::activate_signal(int) ()
   from /usr/X11R6/lib/libqt-mt.so.3
#30 0x28cdbf02 in KIO::SlaveInterface::finished() ()
   from /usr/local/lib/libkio.so.6
#31 0x28cda702 in KIO::SlaveInterface::dispatch(int, QMemArray<char>
const&) ()
   from /usr/local/lib/libkio.so.6
#32 0x28cda448 in KIO::SlaveInterface::dispatch() ()
   from /usr/local/lib/libkio.so.6
#33 0x28cd818c in KIO::Slave::gotInput() ()
from /usr/local/lib/libkio.so.6
#34 0x28cd9ac9 in KIO::Slave::qt_invoke(int, QUObject*) ()
   from /usr/local/lib/libkio.so.6
#35 0x295b0d8b in QObject::activate_signal(QConnectionList*, QUObject*)
()
   from /usr/X11R6/lib/libqt-mt.so.3
#36 0x295b1000 in QObject::activate_signal(int, int) ()
   from /usr/X11R6/lib/libqt-mt.so.3
#37 0x29877fed in QSocketNotifier::activated(int) ()
   from /usr/X11R6/lib/libqt-mt.so.3
#38 0x295c8fbb in QSocketNotifier::event(QEvent*) ()
   from /usr/X11R6/lib/libqt-mt.so.3
#39 0x2955e1c9 in QApplication::internalNotify(QObject*, QEvent*) ()
   from /usr/X11R6/lib/libqt-mt.so.3
#40 0x2955df7d in QApplication::notify(QObject*, QEvent*) ()
   from /usr/X11R6/lib/libqt-mt.so.3
#41 0x291afd81 in KApplication::notify(QObject*, QEvent*) ()
   from /usr/local/lib/libkdecore.so.6
#42 0x2954f183 in QEventLoop::activateSocketNotifiers() ()
   from /usr/X11R6/lib/libqt-mt.so.3
#43 0x295137fc in QEventLoop::processEvents(unsigned) ()
   from /usr/X11R6/lib/libqt-mt.so.3
#44 0x2956f113 in QEventLoop::enterLoop() ()
from /usr/X11R6/lib/libqt-mt.so.3
#45 0x2956f064 in QEventLoop::exec() ()
from /usr/X11R6/lib/libqt-mt.so.3
#46 0x2955e324 in QApplication::exec() ()
from /usr/X11R6/lib/libqt-mt.so.3
#47 0x0804a604 in main ()
#48 0x0804a376 in _start ()

Sorry, didn't realize the trace did not make it into the web interface.

Hope this helps
-Christoph Sold
Comment 3 Christoph Sold 2004-03-01 22:31:19 UTC
[Warning: mungled headers. Use common sense to unmungle my mail address,
or reply to the bug automaton.]

On Monday 01 March 2004 19:31, Carsten Burghardt wrote:
> ------- You are receiving this mail because: -------
> You reported the bug, or are watching the reporter.
>
> http://bugs.kde.org/show_bug.cgi?id=76460
>
>
>
>
> ------- Additional Comments From burghardt kde org  2004-03-01 19:31
> -------
>
> On Sunday 29 February 2004 23:41, Christoph Sold wrote:
> > When filtering large amounts of mail stored in an IMAP inbox, KMail
> > crashes repeatably. _______________________________________________
>
> And the backtrace?

Here we go:
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
0x29c1cf27 in wait4 () from /lib/libc.so.5
#0  0x29c1cf27 in wait4 () from /lib/libc.so.5
#1  0x29c0f52f in waitpid () from /lib/libc.so.5
#2  0x29aacc51 in waitpid () from /usr/lib/libpthread.so.1
#3  0x2923334b in KCrash::defaultCrashHandler(int) ()
   from /usr/local/lib/libkdecore.so.6
#4  0x29ab306a in sigaction () from /usr/lib/libpthread.so.1
#5  <signal handler called>
#6  0x29678c81 in QListViewItem::firstChild() const ()
   from /usr/X11R6/lib/libqt-mt.so.3
#7  0x281ffa7d in KMHeaders::msgRemoved(int, QString, QString) ()
   from /usr/local/lib/libkmailprivate.so.0
#8  0x28208e20 in KMHeaders::qt_invoke(int, QUObject*) ()
   from /usr/local/lib/libkmailprivate.so.0
#9  0x295b0d8b in QObject::activate_signal(QConnectionList*, QUObject*)
()
   from /usr/X11R6/lib/libqt-mt.so.3
#10 0x282378a8 in KMFolder::msgRemoved(int, QString, QString) ()
   from /usr/local/lib/libkmailprivate.so.0
#11 0x28234c3d in KMFolder::take(int) ()
   from /usr/local/lib/libkmailprivate.so.0
#12 0x282c05f0 in KMFolderImap::take(int) ()
   from /usr/local/lib/libkmailprivate.so.0
#13 0x282d59ea in KMFolderMaildir::addMsg(KMMessage*, int*) ()
   from /usr/local/lib/libkmailprivate.so.0
#14 0x2823518e in KMFolder::moveMsg(KMMessage*, int*) ()
   from /usr/local/lib/libkmailprivate.so.0
#15 0x28276992 in KMFilterMgr::process(KMMessage*,
KMFilterMgr::FilterSet) ()
   from /usr/local/lib/libkmailprivate.so.0
#16 0x282003c0 in KMHeaders::slotFilterMsg(KMMessage*) ()
   from /usr/local/lib/libkmailprivate.so.0
#17 0x28208fc2 in KMHeaders::qt_invoke(int, QUObject*) ()
   from /usr/local/lib/libkmailprivate.so.0
#18 0x295b0d8b in QObject::activate_signal(QConnectionList*, QUObject*)
()
   from /usr/X11R6/lib/libqt-mt.so.3
#19 0x28358278 in KMail::FolderJob::messageRetrieved(KMMessage*) ()
   from /usr/local/lib/libkmailprivate.so.0
#20 0x28361ac6 in KMail::ImapJob::slotGetMessageResult(KIO::Job*) ()
   from /usr/local/lib/libkmailprivate.so.0
#21 0x28362df1 in KMail::ImapJob::qt_invoke(int, QUObject*) ()
   from /usr/local/lib/libkmailprivate.so.0
#22 0x295b0d8b in QObject::activate_signal(QConnectionList*, QUObject*)
()
   from /usr/X11R6/lib/libqt-mt.so.3
#23 0x28cf9414 in KIO::Job::result(KIO::Job*) ()
   from /usr/local/lib/libkio.so.6
#24 0x28ce699a in KIO::Job::emitResult() ()
from /usr/local/lib/libkio.so.6
#25 0x28ce7de9 in KIO::SimpleJob::slotFinished() ()
   from /usr/local/lib/libkio.so.6
#26 0x28cea26b in KIO::TransferJob::slotFinished() ()
   from /usr/local/lib/libkio.so.6
#27 0x28cfa7e4 in KIO::TransferJob::qt_invoke(int, QUObject*) ()
   from /usr/local/lib/libkio.so.6
#28 0x295b0d8b in QObject::activate_signal(QConnectionList*, QUObject*)
()
   from /usr/X11R6/lib/libqt-mt.so.3
#29 0x295b0cad in QObject::activate_signal(int) ()
   from /usr/X11R6/lib/libqt-mt.so.3
#30 0x28cdbf02 in KIO::SlaveInterface::finished() ()
   from /usr/local/lib/libkio.so.6
#31 0x28cda702 in KIO::SlaveInterface::dispatch(int, QMemArray<char>
const&) ()
   from /usr/local/lib/libkio.so.6
#32 0x28cda448 in KIO::SlaveInterface::dispatch() ()
   from /usr/local/lib/libkio.so.6
#33 0x28cd818c in KIO::Slave::gotInput() ()
from /usr/local/lib/libkio.so.6
#34 0x28cd9ac9 in KIO::Slave::qt_invoke(int, QUObject*) ()
   from /usr/local/lib/libkio.so.6
#35 0x295b0d8b in QObject::activate_signal(QConnectionList*, QUObject*)
()
   from /usr/X11R6/lib/libqt-mt.so.3
#36 0x295b1000 in QObject::activate_signal(int, int) ()
   from /usr/X11R6/lib/libqt-mt.so.3
#37 0x29877fed in QSocketNotifier::activated(int) ()
   from /usr/X11R6/lib/libqt-mt.so.3
#38 0x295c8fbb in QSocketNotifier::event(QEvent*) ()
   from /usr/X11R6/lib/libqt-mt.so.3
#39 0x2955e1c9 in QApplication::internalNotify(QObject*, QEvent*) ()
   from /usr/X11R6/lib/libqt-mt.so.3
#40 0x2955df7d in QApplication::notify(QObject*, QEvent*) ()
   from /usr/X11R6/lib/libqt-mt.so.3
#41 0x291afd81 in KApplication::notify(QObject*, QEvent*) ()
   from /usr/local/lib/libkdecore.so.6
#42 0x2954f183 in QEventLoop::activateSocketNotifiers() ()
   from /usr/X11R6/lib/libqt-mt.so.3
#43 0x295137fc in QEventLoop::processEvents(unsigned) ()
   from /usr/X11R6/lib/libqt-mt.so.3
#44 0x2956f113 in QEventLoop::enterLoop() ()
from /usr/X11R6/lib/libqt-mt.so.3
#45 0x2956f064 in QEventLoop::exec() ()
from /usr/X11R6/lib/libqt-mt.so.3
#46 0x2955e324 in QApplication::exec() ()
from /usr/X11R6/lib/libqt-mt.so.3
#47 0x0804a604 in main ()
#48 0x0804a376 in _start ()

Sorry, didn't realize the trace did not make it into the web interface.

Hope this helps
- --
Christoph Sold
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (FreeBSD)

iD8DBQFAQ6t1jGVuYEZ1RPYRAjXaAJ0axq7CsQX1+xPRzo1tYA6rlMy94gCeKrpH
Pv7KGCD30uI9t4W7BVGOL44=
=K17R
-----END PGP SIGNATURE-----

Comment 4 Carsten Burghardt 2004-03-01 23:42:31 UTC
> Here we go:
> (no debugging symbols found)...(no debugging symbols found)...

You're using a binary without debug info. Can you compile kmail yourself
as described in kmail.ingo-kloecker.de ?

Comment 5 Christoph Sold 2004-03-02 00:45:06 UTC
On Monday 01 March 2004 23:42, Carsten Burghardt wrote:
> ------- You are receiving this mail because: -------
> You reported the bug, or are watching the reporter.
>
> http://bugs.kde.org/show_bug.cgi?id=76460
>
>
>
>
> ------- Additional Comments From burghardt kde org  2004-03-01 23:42
> -------
>
> > Here we go:
> > (no debugging symbols found)...(no debugging symbols found)...
>
> You're using a binary without debug info. Can you compile kmail
> yourself as described in kmail.ingo-kloecker.de ?

Since I run FreeBSD, I prefer to enable debugging symbols the KDE way. 
Anyhow, recompile crunches slowly through tons of source right now. 
More information tomorrow.

- -Christoph Sold
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (FreeBSD)

iD8DBQFAQ8rbjGVuYEZ1RPYRAvt5AKClnnQxfd8QOVPkHLwndhMCpMbtyACgrWq9
dKK6hxvCNFCamQS8UfsgOXI=
=jrb6
-----END PGP SIGNATURE-----

Comment 6 Andreas Gungl 2004-04-11 21:01:29 UTC
Christoph, you didn't come up with newer backtrace. Can you provide a new one or at least describe what you mean by "filtering large amounts of mail stored in an IMAP inbox"? I'm using a dIMAP account at work and I'm filtering several hundreds of messages out of my INBOX every day. I've had no crash for the last six weeks but I have to admit that I'm using CVS snapshots (not older than two weeks) _most_ of the time.
If you're not able to reproduce the crashes, I would like to close the report with a remark that the problem does no longer exist in CVS HEAD.
Comment 7 Andreas Gungl 2004-05-01 21:22:59 UTC
Closing as there hasn't been any feedback from the reporter for two months. Christoph, please understand that I want to clean up reports lacking detailed information for reproducing the problem. You can reopen the report as soon as you can provide additional information.
Comment 8 Christoph Sold 2004-05-01 23:07:46 UTC
Created attachment 5847 [details]
Some mails and configuration file which crash kmail every time when filtered from IMAP server

# ls -alF kmail-*
-rw-r--r--  1 root  lusers  13741 May  1 23:04 kmail-filter-crash.tar.gz
# tar tzf kmail-filter-crash.tar.gz
kmail-crash/
kmail-crash/kmailrc
kmail-crash/Evil_KMails
Comment 9 Christoph Sold 2004-05-01 23:10:12 UTC
Sorry about the delay, was collecting testcases.
Please reopen the bug, 'cause KMail 1.6.2 (KDE 3.2.2) still shows the same behaviour.
Comment 10 Andreas Gungl 2004-05-02 20:24:06 UTC
Okay, bug report is open again. How can I reproduce what gives you a crash? Do you use an IMAP or disconnected IMAP account? How do you apply the filters (mark all and press Crtl-J)? As I understand, KMail crashes only when the messages are in an IMAP folder (inbox). Did you try to filter the same messages in a local folder (if yes, what was the result)?
I really need this information to reproduce the crash.
Comment 11 Christoph Sold 2004-05-03 01:29:06 UTC
> How can I reproduce what gives you a crash?
> Do you use an IMAP or disconnected IMAP account?
It's uw-imap on a remote box. KMail is connected when filtering.

> How do you apply the filters (mark all and press Crtl-J)?
Yes.

> As I understand, KMail crashes only when the messages are in an IMAP folder
> (inbox). Did you try to filter the same messages in a local folder (if yes,
> what was the result)?
I tried. The filters apply cleanly.
Comment 12 Christoph Sold 2004-05-03 01:34:50 UTC
$ uname -a
FreeBSD xxxxx.dyndns.org 4.9-STABLE FreeBSD 4.9-STABLE #207: Mon Apr  5 14:11:31 CEST 2004     root@xxxxx.dyndns.org:/usr/obj/usr/src/sys/XXXXX  i386
$ pkg_info -aI | grep imap
imap-uw-2002d,1     University of Washington IMAP4rev1/POP2/POP3 mail servers
Comment 13 Andreas Gungl 2004-05-03 16:29:35 UTC
Here is what I did:
I set up an IMAP account (Cyrrus IMAP as in Kolab 1.0.8). I copied your filters into the kmailrc file and created the folders needed to transfer the files as local folders. I copied your test messages into the inbox. After having selected all messages by Ctrl-A, I filtered them by Ctrl-J. All messages were filtered into local directories, there was no crash. I checked with both Load Attachments on Demand set to on and off.

Differences are: I'm using a kdepim CVS snapshot from 27.04.2004. The IMAP server is different (see above). And I'm using Linux (SuSE 8.2).

Can you check if the crash occurs on just moving the messages (without filtering)? Perhaps something with the IMAP stuff is wrong. And can you check with the latest KMail from the development branch (you might use a recent snapshot)?
Comment 14 Christoph Sold 2004-05-04 00:35:09 UTC
> Can you check if the crash occurs on just moving the messages (without
> filtering)?

Works as expected.

> And can you check with the latest KMail from the development branch (you
> might use a recent snapshot)?

This proves to be difficult. FreeBSD ports isn't prepared for snap stuff. Anyhow, I'll try to convince the ports system to accept the sources.
Comment 15 Rafael Ávila de Espíndola 2004-07-14 15:35:42 UTC
I have exactly the same problem in debian (kde package 3.2.2-2).

the imap server is * OK [CAPABILITY IMAP4REV1 LOGIN-REFERRALS STARTTLS AUTH=LOGIN] brasilia.ic.unicamp.br IMAP4rev1 2001.315rh at Wed, 14 Jul 2004 10:34:07 -0300 (BRT)

The computer is a pentium 2 so it will thak a while to compile kmail with debug.
Comment 16 Rafael Ávila de Espíndola 2004-07-17 03:32:24 UTC
Compiling the kmail debian package with --enable-debug=all resulted in a slower kmail that does not crash!
Comment 17 Till Adam 2004-07-18 17:15:42 UTC

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