100% CPU usage on exit

Bug #612907 reported by Michael Stevens
36
This bug affects 7 people
Affects Status Importance Assigned to Milestone
thunderbird (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: thunderbird

mstevens@mstevens-desktop:~ % lsb_release -rd
Description: Ubuntu 10.04.1 LTS
Release: 10.04

mstevens@mstevens-desktop:~ % apt-cache policy thunderbird
thunderbird:
  Installed: 3.0.6+build2+nobinonly-0ubuntu0.10.04.1
  Candidate: 3.0.6+build2+nobinonly-0ubuntu0.10.04.1
  Version table:
 *** 3.0.6+build2+nobinonly-0ubuntu0.10.04.1 0
        500 http://gb.archive.ubuntu.com/ubuntu/ lucid-updates/main Packages
        500 http://security.ubuntu.com/ubuntu/ lucid-security/main Packages
        100 /var/lib/dpkg/status
     3.0.4+nobinonly-0ubuntu4 0
        500 http://gb.archive.ubuntu.com/ubuntu/ lucid/main Packages

Intermittently on exit Thunderbird goes to 100% CPU usage and the process does not terminate. Running strace on the process shows a loop of:
gettimeofday({1280832062, 643465}, NULL) = 0
read(19, "\372", 1) = 1
write(20, "\372", 1) = 1
gettimeofday({1280832062, 643667}, NULL) = 0
read(3, 0xb755e058, 4096) = -1 EAGAIN (Resource temporarily unavailable)
gettimeofday({1280832062, 643782}, NULL) = 0
poll([{fd=4, events=POLLIN}, {fd=3, events=POLLIN}, {fd=8, events=POLLIN|POLLPRI}, {fd=12, events=POLLIN|POLLPRI}, {fd=13, events=POLLIN|POLLPRI}, {fd=14, events=POLLIN|POLLPRI}, {fd=18, events=POLLIN}, {fd=10, events=POLLIN|POLLPRI}, {fd=62, events=POLLIN}, {fd=35, events=POLLIN}, {fd=31, events=POLLIN}, {fd=33, events=POLLIN}, {fd=19, events=POLLIN}], 13, 0) = 1 ([{fd=19, revents=POLLIN}])
gettimeofday({1280832062, 643977}, NULL) = 0
read(19, "\372", 1) = 1
gettimeofday({1280832062, 644069}, NULL) = 0
read(3, 0xb755e058, 4096) = -1 EAGAIN (Resource temporarily unavailable)
gettimeofday({1280832062, 644156}, NULL) = 0
poll([{fd=4, events=POLLIN}, {fd=3, events=POLLIN}, {fd=8, events=POLLIN|POLLPRI}, {fd=12, events=POLLIN|POLLPRI}, {fd=13, events=POLLIN|POLLPRI}, {fd=14, events=POLLIN|POLLPRI}, {fd=18, events=POLLIN}, {fd=10, events=POLLIN|POLLPRI}, {fd=62, events=POLLIN}, {fd=35, events=POLLIN}, {fd=31, events=POLLIN}, {fd=33, events=POLLIN}, {fd=19, events=POLLIN}], 13, 0) = 0 (Timeout)
gettimeofday({1280832062, 644294}, NULL) = 0
write(20, "\372", 1) = 1
gettimeofday({1280832062, 644386}, NULL) = 0
gettimeofday({1280832062, 644426}, NULL) = 0
read(3, 0xb755e058, 4096) = -1 EAGAIN (Resource temporarily unavailable)
gettimeofday({1280832062, 644512}, NULL) = 0
poll([{fd=4, events=POLLIN}, {fd=3, events=POLLIN}, {fd=8, events=POLLIN|POLLPRI}, {fd=12, events=POLLIN|POLLPRI}, {fd=13, events=POLLIN|POLLPRI}, {fd=14, events=POLLIN|POLLPRI}, {fd=18, events=POLLIN}, {fd=10, events=POLLIN|POLLPRI}, {fd=62, events=POLLIN}, {fd=35, events=POLLIN}, {fd=31, events=POLLIN}, {fd=33, events=POLLIN}, {fd=19, events=POLLIN}], 13, 0) = 1 ([{fd=19, revents=POLLIN}])

The system is:

mstevens@mstevens-desktop:~ % uname -a
Linux mstevens-desktop 2.6.32-24-generic #38-Ubuntu SMP Mon Jul 5 09:22:14 UTC 2010 i686 GNU/Linux

Revision history for this message
Bill McGonigle (bill-launchpad-net) wrote :

Somebody on the gentoo forum said enigmail will do this, which I have. You?

Revision history for this message
Michael Stevens (mstevens-etla-deactivatedaccount) wrote : Re: [Bug 612907] Re: 100% CPU usage on exit

I do not have enigmail installed.

On Fri, Aug 27, 2010 at 12:35:23AM -0000, Bill McGonigle wrote:
> Somebody on the gentoo forum said enigmail will do this, which I have.
> You?
>
> --
> 100% CPU usage on exit
> https://bugs.launchpad.net/bugs/612907
> You received this bug notification because you are a direct subscriber
> of the bug.

Revision history for this message
Glenn Enright (glenn-enright) wrote :

Me too... strace attached to running process provided the following, usually only seen after thunderbird had been running for a bit (a few hours)...

read(3, 0x7f5b97573074, 4096) = -1 EAGAIN (Resource temporarily unavailable)
poll([{fd=4, events=POLLIN}, {fd=3, events=POLLIN}, {fd=8, events=POLLIN|POLLPRI}, {fd=12, events=POLLIN|POLLPRI}, {fd=13, events=POLLIN|POLLPRI}, {fd=14, events=POLLIN|POLLPRI}, {fd=18, events=POLLIN}, {fd=10, events=POLLIN|POLLPRI}, {fd=32, events=POLLIN}, {fd=68, events=POLLIN}, {fd=19, events=POLLIN}], 11, 0) = 0 (Timeout)
write(20, "\372", 1) = 1
read(3, 0x7f5b97573074, 4096) = -1 EAGAIN (Resource temporarily unavailable)
poll([{fd=4, events=POLLIN}, {fd=3, events=POLLIN}, {fd=8, events=POLLIN|POLLPRI}, {fd=12, events=POLLIN|POLLPRI}, {fd=13, events=POLLIN|POLLPRI}, {fd=14, events=POLLIN|POLLPRI}, {fd=18, events=POLLIN}, {fd=10, events=POLLIN|POLLPRI}, {fd=32, events=POLLIN}, {fd=68, events=POLLIN}, {fd=19, events=POLLIN}], 11, 0) = 1 ([{fd=19, revents=POLLIN}])
read(19, "\372", 1) = 1
read(3, 0x7f5b97573074, 4096) = -1 EAGAIN (Resource temporarily unavailable)
poll([{fd=4, events=POLLIN}, {fd=3, events=POLLIN}, {fd=8, events=POLLIN|POLLPRI}, {fd=12, events=POLLIN|POLLPRI}, {fd=13, events=POLLIN|POLLPRI}, {fd=14, events=POLLIN|POLLPRI}, {fd=18, events=POLLIN}, {fd=10, events=POLLIN|POLLPRI}, {fd=32, events=POLLIN}, {fd=68, events=POLLIN}, {fd=19, events=POLLIN}], 11, 0) = 0 (Timeout)

:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 10.04.1 LTS
Release: 10.04
Codename: lucid
:~$ uname -a
Linux behemoth 2.6.32-25-generic #45-Ubuntu SMP Sat Oct 16 19:52:42 UTC 2010 x86_64 GNU/Linux

Disabling assorted plugins seemed to help alleviate, but not fix altogether, I still have extensions check&send, quicktext and the standard addon for openoffice. using default theme

Revision history for this message
Thomas Antepoth (ta-ubuntu-antepoth) wrote :

I also experience the 100%-CPU-on-exit-Bug.

A "strace -tttvp <PID>" of a hung thunderbird process gives:

1291570615.512403 read(3, 0x7fe302066074, 4096) = -1 EAGAIN (Resource temporarily unavailable)

1291570615.512427 poll([{fd=4, events=POLLIN}, {fd=3, events=POLLIN}, {fd=8, events=POLLIN|POLLPRI}, {fd=12, events=POLLIN|POLLPRI}, {fd=13, events=POLLIN|POLLPRI}, {fd=14, events=POLLIN|POLLPRI}, {fd=18, events=POLLIN}, {fd=10, events=POLLIN|POLLPRI}, {fd=32, events=POLLIN}, {fd=33, events=POLLIN}, {fd=35, events=POLLIN}, {fd=19, events=POLLIN}], 12, 0) = 0 (Timeout)

1291570615.512468 read(3, 0x7fe302066074, 4096) = -1 EAGAIN (Resource temporarily unavailable)

1291570615.512491 poll([{fd=4, events=POLLIN}, {fd=3, events=POLLIN}, {fd=8, events=POLLIN|POLLPRI}, {fd=12, events=POLLIN|POLLPRI}, {fd=13, events=POLLIN|POLLPRI}, {fd=14, events=POLLIN|POLLPRI}, {fd=18, events=POLLIN}, {fd=10, events=POLLIN|POLLPRI}, {fd=32, events=POLLIN}, {fd=33, events=POLLIN}, {fd=35, events=POLLIN}, {fd=19, events=POLLIN}], 12, 0) = 0 (Timeout)

1291570615.512533 write(20, "\372", 1) = 1

1291570615.512556 read(3, 0x7fe302066074, 4096) = -1 EAGAIN (Resource temporarily unavailable)

1291570615.512579 poll([{fd=4, events=POLLIN}, {fd=3, events=POLLIN}, {fd=8, events=POLLIN|POLLPRI}, {fd=12, events=POLLIN|POLLPRI}, {fd=13, events=POLLIN|POLLPRI}, {fd=14, events=POLLIN|POLLPRI}, {fd=18, events=POLLIN}, {fd=10, events=POLLIN|POLLPRI}, {fd=32, events=POLLIN}, {fd=33, events=POLLIN}, {fd=35, events=POLLIN}, {fd=19, events=POLLIN}], 12, 0) = 1 ([{fd=19, revents=POLLIN}])

1291570615.512630 read(19, "\372", 1) = 1

1291570615.512653 read(3, 0x7fe302066074, 4096) = -1 EAGAIN (Resource temporarily unavailable)

1291570615.512677 poll([{fd=4, events=POLLIN}, {fd=3, events=POLLIN}, {fd=8, events=POLLIN|POLLPRI}, {fd=12, events=POLLIN|POLLPRI}, {fd=13, events=POLLIN|POLLPRI}, {fd=14, events=POLLIN|POLLPRI}, {fd=18, events=POLLIN}, {fd=10, events=POLLIN|POLLPRI}, {fd=32, events=POLLIN}, {fd=33, events=POLLIN}, {fd=35, events=POLLIN}, {fd=19, events=POLLIN}], 12, 0) = 0 (Timeout)

1291570615.512718 read(3, 0x7fe302066074, 4096) = -1 EAGAIN (Resource temporarily unavailable)

1291570615.512742 poll([{fd=4, events=POLLIN}, {fd=3, events=POLLIN}, {fd=8, events=POLLIN|POLLPRI}, {fd=12, events=POLLIN|POLLPRI}, {fd=13, events=POLLIN|POLLPRI}, {fd=14, events=POLLIN|POLLPRI}, {fd=18, events=POLLIN}, {fd=10, events=POLLIN|POLLPRI}, {fd=32, events=POLLIN}, {fd=33, events=POLLIN}, {fd=35, events=POLLIN}, {fd=19, events=POLLIN}], 12, 0 <unfinished ...>
Process 11856 detached

The failed read() call is on the file descriptor #3.

The open file descriptor #3 of the hung process is:

thunderbi 11856 t_antepoth 3u unix 0xffff88003cc049c0 0t0 398985827 socket

:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 10.04.1 LTS
Release: 10.04
Codename: lucid

enigmail is installed but disabling the plugin does not alleviate the problem.

Revision history for this message
Thomas Antepoth (ta-ubuntu-antepoth) wrote :

Installed version is:
root@sofa:~# apt-cache policy thunderbird
thunderbird:
  Installiert: 3.0.10+build1+nobinonly-0ubuntu0.10.04.1
  Kandidat: 3.0.10+build1+nobinonly-0ubuntu0.10.04.1
  Versions-Tabelle:
 *** 3.0.10+build1+nobinonly-0ubuntu0.10.04.1 0
        500 http://apt.so.antepoth.de/de.archive.ubuntu.com/ubuntu/ lucid-updates/main Packages
        500 http://apt.so.antepoth.de/security.ubuntu.com/ubuntu/ lucid-security/main Packages
        100 /var/lib/dpkg/status
     3.0.4+nobinonly-0ubuntu4 0
        500 http://apt.so.antepoth.de/de.archive.ubuntu.com/ubuntu/ lucid/main Packages

Revision history for this message
Alex Mandel (wildintellect) wrote :

This does not appear to be an ubuntu specific issue:
https://wiki.mozilla.org/Thunderbird:Testing:Shutdown_Hang
and the linked
https://bugzilla.mozilla.org/show_bug.cgi?id=532435
are possible culprits.

Revision history for this message
Michael Nagel (nailor) wrote :

is this still an issue with thunderbird 12 installed by default now?
can this be merged with the following bug:

thunderbird uses excessive cpu power
Ubuntu “thunderbird” package Bugs Bug #927515

Changed in thunderbird (Ubuntu):
status: New → Incomplete
Revision history for this message
Paul White (paulw2u) wrote :

Upstream bug was closed "RESOLVED INVALID" on 2010-01-04
No reply to comment #7 (six and a half years ago)
Marking "Invalid" to close

Changed in thunderbird (Ubuntu):
status: Incomplete → Invalid
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.