Bug 132088 - Switching between IMAP folders randomly causes kmail to hang
Summary: Switching between IMAP folders randomly causes kmail to hang
Status: RESOLVED DUPLICATE of bug 186936
Alias: None
Product: kmail
Classification: Applications
Component: IMAP (show other bugs)
Version: 1.9.1
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-08 21:14 UTC by Josh Restivo
Modified: 2009-11-14 22:09 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Josh Restivo 2006-08-08 21:14:50 UTC
Version:           1.9.1 (using KDE 3.5.2, Kubuntu Package 4:3.5.2-0ubuntu18 dapper)
Compiler:          Target: i486-linux-gnu
OS:                Linux (i686) release 2.6.15-23-386

I've had this same problem through the years. It got better for a while but recent version of kmail are inducing hair loss. The symptoms have persisted through various versions of kmail and various mail servers to which I;ve been connected.

When switching between IMAP folders (currently connected to a courier server), I experience random instances where, instead of displaying message headers, the "Retrieving Folder Contents...Please Wait..." message will appear indefinitely. Sometimes clicking on another folder and then back again cures the condition. Other times, I must track down the three-five kmail related process and kill them all individually in order to restore proper operation (simply closing kmail and re-opening without killing the processes will result in the same behavior).

In previous versions of kmail, the "Retrieving Folder Contents" screen did not exist and it would, instead, just keep displaying the previous folder's headers.

When this event occurs, strace attached to the kmail process reveals the following...

gettimeofday({1155062911, 450737}, NULL) = 0
select(30, [3 4 5 6 8 20 21 29], [], [], {0, 92333}) = 0 (Timeout)
gettimeofday({1155062911, 543721}, NULL) = 0
gettimeofday({1155062911, 544555}, NULL) = 0
ioctl(4, FIONREAD, [0])                 = 0
gettimeofday({1155062911, 544695}, NULL) = 0
select(30, [3 4 5 6 8 20 21 29], [], [], {0, 16018}) = 0 (Timeout)
gettimeofday({1155062911, 578632}, NULL) = 0
gettimeofday({1155062911, 580484}, NULL) = 0
gettimeofday({1155062911, 580743}, NULL) = 0
ioctl(4, FIONREAD, [0])                 = 0
gettimeofday({1155062911, 580869}, NULL) = 0
select(30, [3 4 5 6 8 20 21 29], [], [], {0, 999615}) = 0 (Timeout)
gettimeofday({1155062912, 580614}, NULL) = 0
gettimeofday({1155062912, 581342}, NULL) = 0
gettimeofday({1155062912, 581531}, NULL) = 0
ioctl(4, FIONREAD, [0])                 = 0
gettimeofday({1155062912, 581654}, NULL) = 0
select(30, [3 4 5 6 8 20 21 29], [], [], {0, 999688}) = 0 (Timeout)
gettimeofday({1155062913, 581438}, NULL) = 0
gettimeofday({1155062913, 582563}, NULL) = 0
gettimeofday({1155062913, 582959}, NULL) = 0
ioctl(4, FIONREAD, [0])                 = 0
gettimeofday({1155062913, 583097}, NULL) = 0
select(30, [3 4 5 6 8 20 21 29], [], [], {0, 999466}) = 0 (Timeout)
gettimeofday({1155062914, 583325}, NULL) = 0
gettimeofday({1155062914, 584244}, NULL) = 0
gettimeofday({1155062914, 584431}, NULL) = 0
ioctl(4, FIONREAD, [0])                 = 0
gettimeofday({1155062914, 584691}, NULL) = 0
select(30, [3 4 5 6 8 20 21 29], [], [], {0, 42430}) = 0 (Timeout)
gettimeofday({1155062914, 628303}, NULL) = 0
gettimeofday({1155062914, 629360}, NULL) = 0
ioctl(4, FIONREAD, [0])                 = 0
gettimeofday({1155062914, 630607}, NULL) = 0
select(30, [3 4 5 6 8 20 21 29], [], [], {0, 953637}) = 0 (Timeout)
gettimeofday({1155062915, 585145}, NULL) = 0
gettimeofday({1155062915, 620021}, NULL) = 0
gettimeofday({1155062915, 621475}, NULL) = 0
ioctl(4, FIONREAD, [0])                 = 0
gettimeofday({1155062915, 623526}, NULL) = 0
select(30, [3 4 5 6 8 20 21 29], [], [], {0, 996495}) = 0 (Timeout)
gettimeofday({1155062916, 622018}, NULL) = 0
gettimeofday({1155062916, 623022}, NULL) = 0
gettimeofday({1155062916, 624935}, NULL) = 0
ioctl(4, FIONREAD, [0])                 = 0
gettimeofday({1155062916, 627177}, NULL) = 0
select(30, [3 4 5 6 8 20 21 29], [], [], {0, 995845}) = 0 (Timeout)
gettimeofday({1155062917, 623857}, NULL) = 0
gettimeofday({1155062917, 629443}, NULL) = 0
gettimeofday({1155062917, 629647}, NULL) = 0
ioctl(4, FIONREAD, [0])                 = 0
gettimeofday({1155062917, 629770}, NULL) = 0
select(30, [3 4 5 6 8 20 21 29], [], [], {0, 999673}) = 0 (Timeout)
gettimeofday({1155062918, 629808}, NULL) = 0
gettimeofday({1155062918, 630830}, NULL) = 0
gettimeofday({1155062918, 631724}, NULL) = 0

Over and over again.

What other information is required to troubleshoot this?
Comment 1 Torgny Nyblom 2008-07-07 18:53:16 UTC
Is this still present in a resent version?
I used to have this problem but can't reproduce it on trunk.
Comment 2 Patrick Hallen 2008-12-20 19:50:35 UTC
With KDE 4.1.3 this problem still exists for me. A network sniffer shows, that there is no commumication between kmail and the imap server. When clicking "check mail" or "refresh folder lists" nothing happens in the network according to my sniffer. So it seems that kmail just does nothing on the network side.

When this happens I always have to restart kmail.
Comment 3 Peter Lewis 2009-10-06 10:40:26 UTC
Is this possibly the same as bug 186936, which is probably also the same as bug 172410?

I'm getting the same behaviour too.
Comment 4 Raúl 2009-10-21 11:42:18 UTC
Hello:

I think as Peter (#3) says this is a dupe of those bugs. I'll be attaching more info on https://bugs.kde.org/show_bug.cgi?id=172410 which I consider the most comprehensively explain and thus "primary".

Regards,
Comment 5 Christophe Marin 2009-11-14 22:09:58 UTC

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