[Bug 95064] Duplicates messages in imap folder after filtering

tneumann at users.sourceforge.net tneumann at users.sourceforge.net
Fri Oct 10 12:11:35 BST 2008


http://bugs.kde.org/show_bug.cgi?id=95064


tneumann users sourceforge net changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tneumann at users.sourceforge.n
                   |                            |et




--- Comment #56 from tneumann users sourceforge net  2008-10-10 13:11:26 ---
I can reproduce this 100% reliable within a few seconds, and I am relatively
sure that it is caused by a lack of locking (or other synchronization). When it
happends some internal KMail data structures get currupted, as illustrated by
the example below.

How to reproduce:
1. start KMail
2. connect to some online IMAP server (tested with dovecot and Lotus Notes)
3. run the Spam wizard (default settings are fine) if not already done to get
some filters (not required if already installed)
4. enter the INBOX, select some message
5. send yourself a message. Do not open it!
6. quickly press ^L multiple times to check for mail. This creates a number of
duplicates.

Interesting observation:
7. quit KMail. Now KMail crashes and produces the following error message

ASSERT: "item_exists()" in file /usr/include/qt4/QtCore/qhash.h, line 1012


So most likely some hash table got corrupted as a side affect of unsynchonized
access.

I tested the SVN trunk as of today, the bug is still there. I tried to run
valgrind to get some insight, but unfortunately KMail crashes with some
apparently unrelated problems then.

If a KMail developer has some ideas about debugging I am willing to help, but I
am unsure where to start. The debug output shows no obvious problems at a first
glance.


-- 
Configure bugmail: http://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the Kdepim-bugs mailing list