Bug 53000 - kmail crashes on retrieve of IMAP mail (after process for IMAP protocol dies)
Summary: kmail crashes on retrieve of IMAP mail (after process for IMAP protocol dies)
Status: RESOLVED FIXED
Alias: None
Product: kmail
Classification: Unmaintained
Component: IMAP (show other bugs)
Version: unspecified
Platform: Mandrake RPMs Linux
: NOR crash
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
: 51756 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-01-14 19:13 UTC by John van Spaandonk
Modified: 2007-09-14 12:17 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
kmail_xsession_errors (112.27 KB, text/plain)
2003-01-14 20:43 UTC, John van Spaandonk
Details
Backtrace on rare KMail crash when trying to exit (3.05 KB, text/plain)
2003-08-16 03:07 UTC, Lucius Chiaraviglio
Details

Note You need to log in before you can comment on or make changes to this bug.
Description John van Spaandonk 2003-01-14 19:13:56 UTC
Version:            (using KDE KDE 3.0.99)
Installed from:    Mandrake RPMs
Compiler:          gcc 3.2.1 compiled by Mandrake, used Cooker RPM
OS:          Linux

Let me start by saying I'm impressed by kmail's efficient email-handling,
yet simple user interface.

I have run into the following IMAP problem.
I am trying to use kmail (3.1.0, KDE 3.1RC6) to read my business email 
with our company's IMAP server at imap.ict.nl.

kmails imports the complete directory structure on the imap server, 
which is good. 
After this is done I select the inbox, so kmail starts getting 
the headers of the email in the inbox. This also looks promising...
The following message pops up after I retrieved header 224 of 553:

The process for the imap://imap.ict.nl protocol died unexpectedly.

BTW message 224 contained an attachement of 4.2 MB.
So I used kmail to move this message to another folder (out of the inbox) 
on the IMAP server, to see if this caused the problem.
Now I  tried again to retrieve the headers of the inbox.
But still I cannot read past (now) message 223.
So I removed message 224 from the inbox to another folder 
(this is the first message I cannot read the header of).
I did this not with kmail but with our web-interface to our email. 

Stil I get this message:

The process for the imap://imap.ict.nl protocol died unexpectedly.

At this point I gave up.

BTW the first time I tried several times in a row to read the inbox,
causing kmail to crash.

I copied the following backtrace from the crash handler:

[New Thread 16384 (LWP 2281)]
0x4162a539 in wait4 () from /lib/i686/libc.so.6
#0  0x4162a539 in wait4 () from /lib/i686/libc.so.6
#1  0x416aa910 in sys_sigabbrev () from /lib/i686/libc.so.6
#2  0x41437fc3 in waitpid () from /lib/i686/libpthread.so.0
#3  0x40b80bfe in KCrash::defaultCrashHandler(int) (sig=-1073745488)
    at kcrash.cpp:235
#4  0x080f1fce in KMFolderTree::writeConfig() (this=0xf67)
    at kmfoldertree.cpp:301
#5  0x08093a5e in KMMainWin::writeConfig() (this=0x83ed6a8)
    at kmmainwin.cpp:387
#6  0x08092263 in ~KMMainWin (this=0x83ed6a8) at kmmainwin.cpp:149
#7  0x081d966f in ~KMKernel (this=0xbffff730) at /usr/include/kdebug.h:178
#8  0x081e0296 in main (argc=-512, argv=0xfffffe00) at main.cpp:355
#9  0x41592b17 in __libc_start_main () from /lib/i686/libc.so.6

Hope this helps.


John
Comment 1 Carsten Burghardt 2003-01-14 19:51:40 UTC
Subject: Re:  New: kmail crashes on retrieve of IMAP mail (after process for IMAP protocol dies)

> Let me start by saying I'm impressed by kmail's efficient email-handling,
> yet simple user interface.

Thanks!

> I have run into the following IMAP problem.
> I am trying to use kmail (3.1.0, KDE 3.1RC6) to read my business email
> with our company's IMAP server at imap.ict.nl.
>
> kmails imports the complete directory structure on the imap server,
> which is good.
> After this is done I select the inbox, so kmail starts getting
> the headers of the email in the inbox. This also looks promising...
> The following message pops up after I retrieved header 224 of 553:
>
> The process for the imap://imap.ict.nl protocol died unexpectedly.

Do you get any error-message on your stdout (in most cases ~/.xsession-errors 
or the console)?

> BTW message 224 contained an attachement of 4.2 MB.

Shouldn't be a problem.
Do you have any problems with this server and other mail-clients? What kind of 
server is that?

> So I used kmail to move this message to another folder (out of the inbox)
> on the IMAP server, to see if this caused the problem.
> Now I  tried again to retrieve the headers of the inbox.
> But still I cannot read past (now) message 223.
> So I removed message 224 from the inbox to another folder
> (this is the first message I cannot read the header of).
> I did this not with kmail but with our web-interface to our email.

Can you select other mailboxes and download the headers?

> Stil I get this message:
>
> The process for the imap://imap.ict.nl protocol died unexpectedly.
>
> At this point I gave up.
>
> BTW the first time I tried several times in a row to read the inbox,
> causing kmail to crash.
>
> I copied the following backtrace from the crash handler:
>
> [New Thread 16384 (LWP 2281)]
> 0x4162a539 in wait4 () from /lib/i686/libc.so.6
> #0  0x4162a539 in wait4 () from /lib/i686/libc.so.6
> #1  0x416aa910 in sys_sigabbrev () from /lib/i686/libc.so.6
> #2  0x41437fc3 in waitpid () from /lib/i686/libpthread.so.0
> #3  0x40b80bfe in KCrash::defaultCrashHandler(int) (sig=-1073745488)
>     at kcrash.cpp:235
> #4  0x080f1fce in KMFolderTree::writeConfig() (this=0xf67)
>     at kmfoldertree.cpp:301
> #5  0x08093a5e in KMMainWin::writeConfig() (this=0x83ed6a8)
>     at kmmainwin.cpp:387
> #6  0x08092263 in ~KMMainWin (this=0x83ed6a8) at kmmainwin.cpp:149
> #7  0x081d966f in ~KMKernel (this=0xbffff730) at /usr/include/kdebug.h:178
> #8  0x081e0296 in main (argc=-512, argv=0xfffffe00) at main.cpp:355
> #9  0x41592b17 in __libc_start_main () from /lib/i686/libc.so.6
>
> Hope this helps.

Strange backtrace, seems like kmail tries to shutdown...

Comment 2 John van Spaandonk 2003-01-14 20:43:50 UTC
Subject: Re:  kmail crashes on retrieve of IMAP mail (after process for IMAP protocol dies)

On Tuesday 14 January 2003 19:51, you wrote:

[...]

Well, it seems the KDE developers are as efficient as the mail program itself!
It only took them 10 minutes to pick up my bug report :-)

>
> ------- Additional Comments From burghardt@kde.org  2003-01-14 19:51
> ------- Subject: Re:  New: kmail crashes on retrieve of IMAP mail (after
> process for IMAP protocol dies)
>
> > Let me start by saying I'm impressed by kmail's efficient email-handling,
> > yet simple user interface.
>
> Thanks!
>
> > I have run into the following IMAP problem.
> > I am trying to use kmail (3.1.0, KDE 3.1RC6) to read my business email
> > with our company's IMAP server at imap.ict.nl.
> >
> > kmails imports the complete directory structure on the imap server,
> > which is good.
> > After this is done I select the inbox, so kmail starts getting
> > the headers of the email in the inbox. This also looks promising...
> > The following message pops up after I retrieved header 224 of 553:
> >
> > The process for the imap://imap.ict.nl protocol died unexpectedly.
>
> Do you get any error-message on your stdout (in most cases
> ~/.xsession-errors or the console)?
>

I studied my ~/.xsession-errors and cut out the part that I think is relevant.
I attached it to this email.
It look likes from line 910 (IMHO!) things are going wrong.
It seems to show that problems are indeed occuring at reading of the inbox.

BTW I saved the complete ~/.xsession-errors, so if you want it I will send it
to burghardt@kde.org (about 3 MB).
I did not attacht it because of the confidential information in it (headers of 
emails etc.)

> > BTW message 224 contained an attachement of 4.2 MB.
>
> Shouldn't be a problem.
> Do you have any problems with this server and other mail-clients? What kind
> of server is that?
>
Never tried other email-clients with this server.
According to the log it seems to be a Domino IMAP4 Server Release 5.0.10.

> > So I used kmail to move this message to another folder (out of the inbox)
> > on the IMAP server, to see if this caused the problem.
> > Now I  tried again to retrieve the headers of the inbox.
> > But still I cannot read past (now) message 223.
> > So I removed message 224 from the inbox to another folder
> > (this is the first message I cannot read the header of).
> > I did this not with kmail but with our web-interface to our email.
>
> Can you select other mailboxes and download the headers?

Yes, this is not a problem. But I do not have any other mailboxes with
so many headers, the biggest one is 76 headers. Also selected a few
emails and they downloaded fine, including large attachment of  4.2MB.

>
> > Stil I get this message:
> >
> > The process for the imap://imap.ict.nl protocol died unexpectedly.
> >
> > At this point I gave up.
> >
> > BTW the first time I tried several times in a row to read the inbox,
> > causing kmail to crash.
> >
> > I copied the following backtrace from the crash handler:
> >
> > [New Thread 16384 (LWP 2281)]
> > 0x4162a539 in wait4 () from /lib/i686/libc.so.6
> > #0  0x4162a539 in wait4 () from /lib/i686/libc.so.6
> > #1  0x416aa910 in sys_sigabbrev () from /lib/i686/libc.so.6
> > #2  0x41437fc3 in waitpid () from /lib/i686/libpthread.so.0
> > #3  0x40b80bfe in KCrash::defaultCrashHandler(int) (sig=-1073745488)
> >     at kcrash.cpp:235
> > #4  0x080f1fce in KMFolderTree::writeConfig() (this=0xf67)
> >     at kmfoldertree.cpp:301
> > #5  0x08093a5e in KMMainWin::writeConfig() (this=0x83ed6a8)
> >     at kmmainwin.cpp:387
> > #6  0x08092263 in ~KMMainWin (this=0x83ed6a8) at kmmainwin.cpp:149
> > #7  0x081d966f in ~KMKernel (this=0xbffff730) at
> > /usr/include/kdebug.h:178 #8  0x081e0296 in main (argc=-512,
> > argv=0xfffffe00) at main.cpp:355 #9  0x41592b17 in __libc_start_main ()
> > from /lib/i686/libc.so.6
> >
> > Hope this helps.
>
> Strange backtrace, seems like kmail tries to shutdown...

extra information: I forgot to mention that I tried to shut down kmail after 
my unsucessful attempts to read my inbox. (I wanted to retry it from
a fresh start of kmail).
The little box (compressing folders) popped up in the top-left corner of the
screen, and after a while kmail crashed and the crash handler appeared.
So it is not strange that the log shows kmail trying to shut down.

Thx for your quick reply, and let me know if you need any other information.
Tomorrow at work I will clean up the inbox and see if kmail crashes.
Like this we will know if there might be a relation with number of messages.
Or shall I leave it like this to have a reproducable situation?

John

ps I hope that replying to this email updates the bug at bugs.kde.org,
     and that it handles the attachement correctly.
     Oh well, I will know soon enough... :-)

Created an attachment (id=743)
kmail_xsession_errors
Comment 3 Carsten Burghardt 2003-01-20 10:05:16 UTC
I just tried kmail 1.5 with a domino 6 server and had no problems to retrieve a mailbox with 1800 mails. It doesn't matter how big the emails are because kmail only downloads the headers when you click on the folder.
I really would like to know why the connection (aka the kioslave) died but the problem is that I can't see that from the console-output. Does you system-administrator have any logs from the imap-server that shows any error? 
Does it help to clean the inbox?
Comment 4 John van Spaandonk 2003-01-20 23:20:33 UTC
Subject: Re:  kmail crashes on retrieve of IMAP mail (after process for IMAP protocol dies)

My company uses a Domino IMAP4 5.010 server (supports IMAP4rev1).
You used a version 6 server.

I experimented a bit (removing the server and adding it again to kmail, plus
reducing the number of emails in my inbox)
and now the inbox reads fine. 
However now trying to get the headers of another
mailbox causes the "process for the imap://imap.ict.nl" to crash.

Here's what I did.
AFter I add the IMAP server to kmail (after having removed it) 
and press OK in the configuration, kmail starts to retrieve the folder 
structure plus the number of emails in each folder. So far so good.

After this I select a folder, and for a particular folder the imap slave dies.
What I find so typical is that the problem always occurs in the exact same
mailfolder. Once it crashes it will keep on crashing. Almost as if there went
something wrong when the headers in the folder are read the first time from
the server and the error persists thereafter. 
BTW the number of emails in the folder at which the process for the protocol 
dies is just 10!. Therefore I do not think that the number of headers has
anything to do with it.

Tomorrow I will contact my company's system administrator and hopefully
he can shed some light on the matter by producing a log file showing a bit
more information.

BTW I really appreciate you looking into this!

> ------- Additional Comments From burghardt@kde.org  2003-01-20 10:05
> ------- I just tried kmail 1.5 with a domino 6 server and had no problems
> to retrieve a mailbox with 1800 mails. It doesn't matter how big the emails
> are because kmail only downloads the headers when you click on the folder.
> I really would like to know why the connection (aka the kioslave) died but
> the problem is that I can't see that from the console-output. Does you
> system-administrator have any logs from the imap-server that shows any
> error? Does it help to clean the inbox?

Comment 5 Stephan Kulow 2003-04-13 22:16:16 UTC
*** Bug 51756 has been marked as a duplicate of this bug. ***
Comment 6 Lucius Chiaraviglio 2003-08-16 03:05:33 UTC
I have also seen this problem.  Usually I can continue working simply by retrying 
the message fetch from the IMAP server (even if I already retrieved all messages), 
but once this would not work, and then when I tried to quit KMail so that I could 
restart it (which did let me continue working, by the way), I got a crash with the 
attached backtrace (KMail_backtrace.txt with today's date on it). 
 
Comment 7 Lucius Chiaraviglio 2003-08-16 03:07:28 UTC
Created attachment 2248 [details]
Backtrace on rare KMail crash when trying to exit
Comment 8 Lucius Chiaraviglio 2003-08-16 03:11:41 UTC
Additional information:  the error "The process for the imap://MailAndNews.com 
protocol died unexpectedly." most often occurs while attempting to delete messages 
from either the "inbox" or "Deleted" folders on the IMAP server, but this is not an 
absolute requirement for this error to occur. 
 
Comment 9 Till Adam 2003-12-01 16:36:02 UTC
John, Lucius, are you still seeing this with the 3.2 beta or cvs?
Comment 10 John van Spaandonk 2003-12-01 18:42:52 UTC
Subject: Re:  kmail crashes on retrieve of IMAP mail (after process for IMAP protocol dies)

On Monday 01 December 2003 16:36, Till Adam said:
> ------- You are receiving this mail because: -------
> You reported the bug, or are watching the reporter.
>
> http://bugs.kde.org/show_bug.cgi?id=53000
>
>
>
>
> ------- Additional Comments From adam@kde.org  2003-12-01 16:36 -------
> John, Lucius, are you still seeing this with the 3.2 beta or cvs?

For my part it is not possible to verify.
I changed jobs and do not use IMAP anymore.
So you can consider it closed as far as I am concerned.

Thanks for all your trouble!

John

Comment 11 Till Adam 2003-12-28 12:24:27 UTC
This crash is believed to be fixed in the current development version of kmail. Lucius, if you can still reproduce it with the 3.2 betas or cvs, please reopen this bug report.