Version: (using KDE Devel) Installed from: Compiled sources Compiler: gcc 4.2 OS: Linux When KMail tries to list the messages in my inbox, it fails and pops up a dialog saying that the process for imap://localhost/ (my IMAP "server") has closed unexpectedly. There are no messages in my xsession-errors to indicate what went wrong. However -- and this is just a guess -- I did notice that KMail was going through and systematically marking all my messages as "Unread" (I'll try to isolate that bug later -- for now it's useful). I checked the message it stopped on, and found a bunch of "=00"s at the end of the message. This leads me to believe that kio_imap is choking on unexpected NULLs. (Unfortunately I can't provide the message itself as it contains private information.) Any suggestions for isolating this further?
See also bug 152652 (about the unread problem).
I confim this on my citadel server. But no messages with =00 at the end..
I think, this could occur if you switch fast between non-cached (is there a cache?) mails and too many connections are made. My server is pretty slow and probably doesn't respond quick enough. I look into it.
Ah, something i forgot: In my case, kmail doesn't always crash after the dialog and i can use it further. It restarts the ioslave (so that it can crash on some other mail ;)).
My investigation status: The ioslave dies because of an out of bounds access to a qbytearray: ASSERT: "i < uint(size())" in file /usr/include/QtCore/qbytearray.h, line 351 After I attached gdb to the ioslave, i couldn't reproduce the bug anymore. So this means hard work :(. I think crashing of kmail is bug #154041.
SVN commit 771672 by winterz: Mischael's fix for "IMAP KIO process dies (due to trailing nulls?)" BUG: 153885 M +7 -4 imapinfo.cpp WebSVN link: http://websvn.kde.org/?view=rev&revision=771672