[ubuntu 8.10] kio_imap4 hangs

Bug #350902 reported by LimCore
22
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Karmic Backports
Fix Released
Medium
Unassigned
kdepimlibs
Fix Released
Medium
kdepimlibs (Ubuntu)
Fix Released
Medium
Unassigned
Karmic
Fix Released
Medium
Jonathan Thomas

Bug Description

#############
SRU information:
Impact: All imap users will probably experience this bug at some point. Very unpleasant.
How the bug was fixed: Upstream created a patch to stop an infinite recursion in the imap mail retrieval code.
Patch: http://websvn.kde.org/?revision=1074179&view=revision
How to reproduce the bug: There isn't any hard testcase, but in general resuming from sleep or loosing your internet connection triggers the bug.
Regression potential: Small, kdepim upstream is pretty good about such things.
#############

I quit kmail but then I notices two instances of kio_imap4 where running, using 100% cpu.
I am not sure if this hanging of kio_imap4 started before I quit kmail or after.
No other program uses mail.

Versions:
ii kdelibs-bin 4:4.1.4-0ubuntu1~intrepid executables for all KDE 4 core applications
ii kdepimlibs5 4:4.1.4-0ubuntu1~intrepid core libraries for KDE PIM 4 applications
ii kmail 4:4.1.4-0ubuntu1~intrepid KDE Email cli

Some info:

  PID SYSCPU USRCPU VGROW RGROW RDDSK WRDSK ST EXC S CPU CMD 1/1
 8487 0.00s 1.97s 0K 0K 0K 0K -- - R 56% kio_imap4
 8229 0.00s 1.08s 0K 0K 0K 0K -- - R 31% kio_imap4

  PID PPID USERNAME GROUP STDATE STTIME ST EXC S CPU CMD 1/1
 8229 7306 rafal rafal 2009/03/29 14:10:36 -- - R 36% kio_imap4
 8487 7306 rafal rafal 2009/03/29 14:20:37 -- - R 35% kio_imap4

0x00007f2180d7e570 in QObject::disconnect () from /usr/lib/libQtCore.so.4
(gdb) bt
#0 0x00007f2180d7e570 in QObject::disconnect () from /usr/lib/libQtCore.so.4
#1 0x00007f2180d0e2ce in QTextStream::QTextStream () from /usr/lib/libQtCore.so.4
#2 0x00007f2181133a1d in ?? () from /usr/lib/libkdecore.so.5
#3 0x00007f2181130ebb in kDebugStream () from /usr/lib/libkdecore.so.5
#4 0x00007f2181c4c760 in KIO::TCPSlaveBase::disconnectFromHost () from /usr/lib/libkio.so.5
#5 0x00007f2179be4c01 in ?? () from /usr/lib/kde4/kio_imap4.so
#6 0x00007f2179be6ada in ?? () from /usr/lib/kde4/kio_imap4.so
#7 0x00007f2179c07f62 in ?? () from /usr/lib/kde4/kio_imap4.so
#8 0x00007f2179c09808 in ?? () from /usr/lib/kde4/kio_imap4.so
#9 0x00007f2179be94cd in ?? () from /usr/lib/kde4/kio_imap4.so
#10 0x00007f2179bf1e79 in ?? () from /usr/lib/kde4/kio_imap4.so
#11 0x00007f2181c3f7db in KIO::SlaveBase::dispatch () from /usr/lib/libkio.so.5
#12 0x00007f2179be5ff4 in ?? () from /usr/lib/kde4/kio_imap4.so
#13 0x00007f2181c444ec in KIO::SlaveBase::dispatchLoop () from /usr/lib/libkio.so.5
#14 0x00007f2179be5d00 in kdemain () from /usr/lib/kde4/kio_imap4.so
#15 0x0000000000407015 in _start ()

#0 0x00007f2180d6f440 in QMetaObject::checkConnectArgs () from /usr/lib/libQtCore.so.4
#1 0x00007f2180d79cda in QObject::connect () from /usr/lib/libQtCore.so.4
#2 0x00007f2180d0e2f2 in QTextStream::QTextStream () from /usr/lib/libQtCore.so.4
#3 0x00007f2181133a1d in ?? () from /usr/lib/libkdecore.so.5
#4 0x00007f2181130ebb in kDebugStream () from /usr/lib/libkdecore.so.5
#5 0x00007f2179be36f9 in ?? () from /usr/lib/kde4/kio_imap4.so
#6 0x00007f2179be6b93 in ?? () from /usr/lib/kde4/kio_imap4.so
#7 0x00007f2179c07f62 in ?? () from /usr/lib/kde4/kio_imap4.so
#8 0x00007f2179c09808 in ?? () from /usr/lib/kde4/kio_imap4.so
#9 0x00007f2179be94cd in ?? () from /usr/lib/kde4/kio_imap4.so
#10 0x00007f2179bf1e79 in ?? () from /usr/lib/kde4/kio_imap4.so
#11 0x00007f2181c3f7db in KIO::SlaveBase::dispatch () from /usr/lib/libkio.so.5
#12 0x00007f2179be5ff4 in ?? () from /usr/lib/kde4/kio_imap4.so
#13 0x00007f2181c444ec in KIO::SlaveBase::dispatchLoop () from /usr/lib/libkio.so.5
#14 0x00007f2179be5d00 in kdemain () from /usr/lib/kde4/kio_imap4.so
#15 0x0000000000407015 in _start ()

Revision history for this message
Oren Held (oren-held) wrote :

Happens to me two. I think this might be related to the ancient bug https://bugs.kde.org/show_bug.cgi?id=114131 which I'm trying to reopen. Add votes, maybe.

Revision history for this message
Rian Schmits (m-j-schmits) wrote :

same for me (on kubuntu 9.04)

Revision history for this message
T. Middleton (timtoo) wrote :

I find something like this happens to me on my laptop sometimes after resume from sleep mode. It's happened many, many times, but never consistently, so I've been unable to see any pattern.

It does seem to have something to do with resuming from sleep mode for me. I suspect perhaps it could be the unexpected disappearance of network during some imap procedure that sends kio_imap4 into a loop, or something like that. Just a wild guess.

Revision history for this message
Jonathan Thomas (echidnaman) wrote :

Fix committed for KDE 4.4 RC2. I'll look into an SRU for Kubuntu 9.10.

affects: kdepim (Ubuntu) → kdepimlibs (Ubuntu)
Changed in kdepimlibs (Ubuntu):
importance: Undecided → Low
status: New → Fix Committed
Changed in kdepimlibs (Ubuntu Karmic):
assignee: nobody → Jonathan Thomas (echidnaman)
importance: Undecided → Low
status: New → In Progress
description: updated
Revision history for this message
Scott Kitterman (kitterman) wrote :

Ack from ubuntu-backporters for this fix in karmic-backports

Changed in karmic-backports:
importance: Undecided → Medium
status: New → Confirmed
Revision history for this message
Jonathan Thomas (echidnaman) wrote :
Changed in kdepimlibs (Ubuntu):
importance: Low → Medium
Changed in kdepimlibs (Ubuntu Karmic):
importance: Low → Medium
Revision history for this message
Jonathan Thomas (echidnaman) wrote :
Changed in karmic-backports:
status: Confirmed → Fix Released
Revision history for this message
John Dong (jdong) wrote :

ACK from -sru for kdepimlibs_4.3.2-0ubuntu1.1 ; proceed with upload and testing. Thanks!

Revision history for this message
Scott Kitterman (kitterman) wrote : Please test proposed package

Accepted into karmic-proposed, the package will build now and be available in a few hours. Please test and give feedback here. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Thank you in advance!

Changed in kdepimlibs (Ubuntu Karmic):
status: In Progress → Fix Committed
tags: added: verification-needed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package kdepimlibs - 4:4.3.95-0ubuntu1

---------------
kdepimlibs (4:4.3.95-0ubuntu1) lucid; urgency=low

  [ Jonathan Thomas ]
  * New upstream release candidate:
    - Bump build-depend versions
    Fixes LP: #350902

  [ Jonathan Riddell ]
  * kdepimlibs5-dev replaces old kdepim-runtime-libs4
 -- Jonathan Thomas <email address hidden> Tue, 19 Jan 2010 21:23:32 -0500

Changed in kdepimlibs (Ubuntu):
status: Fix Committed → Fix Released
Changed in kdepimlibs:
status: Unknown → Fix Released
Revision history for this message
Jonathan Thomas (echidnaman) wrote :

...anybody going to test?

Revision history for this message
LimCore (limcore) wrote :

How to test it, it is fixed in 9.10 or I need 10.04 beta?

Revision history for this message
Jonathan Thomas (echidnaman) wrote :

See comment #9.

Revision history for this message
Martin Pitt (pitti) wrote :

Anyone who can test the proposed package? If not, the proposed update will be removed again. Thanks!

Revision history for this message
Andreas Wenning (andreas-wenning) wrote :

I've been running with the proposed package since it was added to the archive and haven't noticed any problems, neither any hangs like described.

Martin Pitt (pitti)
tags: added: verification-done
removed: verification-needed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package kdepimlibs - 4:4.3.2-0ubuntu1.1

---------------
kdepimlibs (4:4.3.2-0ubuntu1.1) karmic-proposed; urgency=low

  * Add kubuntu_01_fix_kio_imap_cpu.diff from upstream to solve an infinite
    loop in the kio_imap4 kio slave (LP: #350902)
 -- Jonathan Thomas <email address hidden> Wed, 13 Jan 2010 11:18:35 -0500

Changed in kdepimlibs (Ubuntu Karmic):
status: Fix Committed → Fix Released
Changed in kdepimlibs:
importance: Unknown → Medium
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.