Thunderbird:Testing:Shutdown Hang
If you close, shut down or exit Thunderbird and it is still running, then you have a shutdown hang. But you shouldn't just report the issue with no detailed information, because there are many causes and symptoms for hangs.
Symptoms
To be most helpful, you will want to
- describe the environment
- obtain a hang stacktrace
- determine steps to reproduce, a sequence of steps that occur before you shut down
Describe the environment - Answer these easy questions in a bug report:
- Operating system and version, and Thunderbird version
- How often you see the hang (always, rarely, etc)?
- Does Thunderbird hang when started in safe mode? If it doesn't hang in safe mode then the problem could be an extension, and you will want to experiment by disabling add-ons until you find which add-on is causing the problem, then contact the add-on author.
- does hang happen without calendar/lightning extension? (bug 532435)
- Does Thunderbird hang with firewall or antivirus software disabled? If it does not, then the problem is with that software, not Thunderbird.
- CPU usage - is usage high (maxed or pegged), zero, low, or other?
- run netstat - any thunderbird connections to ldap, imap mail server, or other protocols?
- MS-Windows: in a dos command window, do netstat -a -b -o
- linux/Mac: do netstat -tp | grep -i thunderbird
- Is gloda indexing enabled or disabled? (Tools|Options|Advanced|General)
- Are your mail accounts pop, imap, or a combination?
- Did the computer go into sleep or hibernate while Thunderbird was running?
- Was online or offline used, either via your explicit action, or automatically due to a dropped network connection?
- If imap connections are shown in the netstat results above and if needed by the devoloper, get an imap:5 log in a log file, which can be attached to a bug report
- To recap, please concisely report: OS & Thunderbird version, frequency, safe mode results, cpu, netstat results, indexing on or off, pop or imap account types, sleep/hibernate usage, online/offline usage
Obtain a hang stacktrace - If you can, please get a stacktrace using _hang_ instructions in these references, then attach stacktrace file to a bug report. Anywhere you see "Firefox" in the instructions, please substitute "Thunderbird".
- Windows: [1] and use !analyze -v -hang instead of !analyze -v -f
- Mac: Thunderbird:Testing:Get_A_Debug_Thunderbird_Hang_Stack
- Linux: [2]
Steps to reproduce - Please determine if there is a list of steps
- 1. first step
- 2. second step
- 3. ...
which seem to cause the hang. This would be the things you see and a sequence of actions you do just before you shut down. You may need to experiment and test to find steps that seem reliable. But if you can't seem to find a unique set of steps, don't let that stop you from looking at the bug list or filing a bug report, because the environment information you have collected from the list above may be sufficient to identify the cause.
Bugs
You might check the bugs mentioned below to see which fit your symptoms. If none match your symptoms please file a bug and include all the information requested above.
All hang bugs: Bugzilla query - open, invalid and fixed bugs from the beginning of time
Open hang bugs:
- Click the Status column label of the bugzilla query link above to show bugs in Status order
- selected open bugs
- bug 479373 Hang on shutdown if there are outstanding SSL requests
- bug 508263 3.0b3 hangs on exit/shutdown with high cpu, no imap connections [Mac only?] [speculation: losing the network connection/sleeping]
References:
- bug 504971 see comment 12
- bug 504971 see comment 15
Fixed bugs in version 3 (most recent at top):
bug 494014shutdown hang, high cpu, no open imap connectionsbug 497598hang on shutdown appending msg to imap folder via a filterbug 487965hang on shutdown with open imap connections and zero cpubug 420744Shutdown fails with 100% cpu load when auto-complete over LDAPbug 495551hang on shutdown, zero cpu, few (1-2) imap connections - from imap url initiated during shutdown (modal alert from imap thread / proxy call to UI thread)bug 516388Hang when exiting Archives smart folder is usedbug 497059Hang with unreliable wifi connection, either when re-connecting to email server, or on shutdown
Hangs caused by other software
- bug 532435 Thunderbird 3.0RC 2 does not quit, high cpu, no imap connection and must be killed - with enigmail error [caused by Engimail]
- and see INVALID bugs in the bugzilla query above