Closed Bug 803983 Opened 12 years ago Closed 10 years ago

Thunderbird hangs on shutdown: have to use "Force Quit" to complete shutdown.

Categories

(Thunderbird :: General, defect)

16 Branch
All
macOS
defect
Not set
critical

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: ian.graham, Unassigned)

References

()

Details

(Keywords: hang, stackwanted)

Attachments

(5 files)

Summary says it all - Thunderbird (16.0.1) hangs when I attempt to shutdown, such that I need to use Force Quit (or explicit kill) to stop the process (gave it an hour to quit on it's own, figured that was enough time to call this a bug ;-) ) Reproducible: Sometimes. And don't see a pattern as of yet. The only active extension is Test Pilot 1.3.9. Conversations 2.5.2 is installed but disabled. Plugins: iPhotoPhotocast 7.0 Java Applet Plug-In 13.8.5 Quicktime Plug-in 7.6.6 SharePoint Browser Plug-in 14.2.4 Shockwave Flash 11.4.402.287 I've attached the Apple dump from the force quit. Is easy to 'work around' but thought I'd report it as I did not see this otherwise reported (after a quick search).
please see https://wiki.mozilla.org/Thunderbird:Testing:Shutdown_Hang and, can you get a stacktrace with Thunderbird symbols? instructions at https://wiki.mozilla.org/Thunderbird:Backtraces_On_OS_X (perhaps dated though)
Severity: minor → critical
Keywords: hang
Will do, when it hangs next --
Flags: needinfo?(ian.graham)
Keywords: stackwanted
On Mac OS X, a good way to get a stack trace from a hung Thunderbird is to start up Activity Monitor, select Thunderbird and click "Sample Process". You can export that report to a file and attach it to the bug.
On bug 729536 we landed a fix for Firefox 17.0 beta and Thunderbird 17.0 beta which should have fixed that deadlock. Sadly I was still able to see it today when I have updated the former Thunderbird 17.0 beta to the latest one. It was before Irving gave us the hint with the sample process step. Ian, so if you want to test it again, it would be great if you could use the latest beta build of Thunderbird 17.0. http://ftp.mozilla.org/pub/mozilla.org/thunderbird/releases/17.0b3/
Depends on: 729536
Hardware: x86 → All
Will do the download and testing this week (all depends on it crashing, of course ;-). Sorry for being out of touch - had a death in my family.
Flags: needinfo?(ian.graham)
Just hit it again when upgrading Thunderbird to 18.0b2. It hung on shutdown. Attached you can find the sample via the activity console.
Hung again - have attached a stack trace from the activity monitor
Flags: needinfo?(irving)
(In reply to Ian Graham from comment #7) > Created attachment 690227 [details] > stack trace (from activity monitor) > > Hung again - have attached a stack trace from the activity monitor Ian, thank you! But the stack trace seems to give wrong function names. Do you know how to work with GDB, the linux debugger? The stacktrace seems to be result of badly used symbols, since the function names don't seem to be correct. Next time you hang it would be better to attach GDB and type "thread apply all backtrace" in its prompt after you are attached. Just google for "gdb attach" to know how to attach. To load the proper symbols please read this article, needs to be done before GDB is attached: https://developer.mozilla.org/en-US/docs/Using_the_Mozilla_symbol_server#The_source_server Thanks.
Honza can you please check my attached sample?
(In reply to Henrik Skupin (:whimboo) from comment #9) > Honza can you please check my attached sample? Have you seen it actually? There are just ??? instead of function names.
Hm strange. I was sure it contained the function names. I will check it better the next time it will happen.
(from comment #8) - Alas I have limited management rights over the Mac I use, and cannot easily install gdb. Will dmb.
Unfortunately we're having trouble getting Thunderbird/Mac symbols from the Mozilla symbol server right now. Is there any chance you could run a Nightly build of Thunderbird? Those come with symbols built in, so the Activity Monitor dumps will be a lot more useful. http://ftp.mozilla.org/pub/mozilla.org/thunderbird/nightly/latest-comm-central/
Flags: needinfo?(irving)
Given that this happens so rarely and I only have my personal mail account setup I'm not going to use nightly builds for it. I had dataloss once and don't want to have it again. Sorry. But probably someone else could help out.
(In reply to Irving Reid (:irving) from comment #13) > Unfortunately we're having trouble getting Thunderbird/Mac symbols from the > Mozilla symbol server right now. Is there any chance you could run a Nightly > build of Thunderbird? Those come with symbols built in, so the Activity > Monitor dumps will be a lot more useful. > > http://ftp.mozilla.org/pub/mozilla.org/thunderbird/nightly/latest-comm- > central/ Ian, can you do this?
Flags: needinfo?(ian.graham)
Not sure what happened this time but the log looks kinda messy. :/
I am in Henrik's position: I only have my personal email account for testing and do not want to risk data loss by going with nightly builds. I would be happy to test with a release version that is compiled to include symbols.
Flags: needinfo?(ian.graham)
(In reply to Irving Reid (:irving) from comment #13) > Unfortunately we're having trouble getting Thunderbird/Mac symbols from the > Mozilla symbol server right now. Is there any chance you could run a Nightly > build of Thunderbird? Those come with symbols built in, so the Activity > Monitor dumps will be a lot more useful. > > http://ftp.mozilla.org/pub/mozilla.org/thunderbird/nightly/latest-comm- > central/ Irving, do you know if this is resolved? If not, bug# ?
Flags: needinfo?(irving)
Updating to the most recent version of fetch_symbols.py (http://hg.mozilla.org/users/jwatt_jwatt.org/fetch-symbols/file/6f7ab0270fc6/fetch-symbols.py) and now I can fetch the Thunderbird symbols.
Flags: needinfo?(irving)
Attached file Stack trace with gdb
Here's a stack trace taken with gdb using Irving's updated fetch-symbols.py that was able to get the correct symbols for thunderbird-17.0.8-Darwin-20130801144703. I had Thunderbird consume 100% CPU for a while and tried to quit it when it got hung.
Comment on attachment 801379 [details] Stack trace with gdb What we need is Thread 0, and that is missing in the log. Did you store the whole log?
(In reply to Honza Bambas (:mayhemer) from comment #21) > Comment on attachment 801379 [details] > Stack trace with gdb > > What we need is Thread 0, and that is missing in the log. Did you store the > whole log? Yes, and I'm pretty sure I didn't have anything else in the log, but I'll verify when I get to machine.
(In reply to Honza Bambas (:mayhemer) from comment #21) > Comment on attachment 801379 [details] > Stack trace with gdb > > What we need is Thread 0, and that is missing in the log. Did you store the > whole log? I finally got around to check my records and even retried getting a backtrace and thread 1 is the last one I ever get. I also had an activity monitor sample which looks pretty much like attachment 687702 [details], so the first thread there looks like thread 1 in my gdb stack. If there's anything else I can do, I'd be happy to try it whenever I encounter this again.
(In reply to Wayne Mery (:wsmwk) from comment #1) > please see https://wiki.mozilla.org/Thunderbird:Testing:Shutdown_Hang > > and, can you get a stacktrace with Thunderbird symbols? > instructions at https://wiki.mozilla.org/Thunderbird:Backtraces_On_OS_X > (perhaps dated though) update howto to lldb? (on Mavericks is no gdb support)
(In reply to Wayne Mery (:wsmwk) from comment #25) > does https://developer.mozilla.org/en-US/docs/Debugging_on_Mac_OS_X help?
Flags: needinfo?(moz_bug)
Whiteboard: [closeme 2014-03-01]
Resolved per whiteboard
Status: NEW → RESOLVED
Closed: 11 years ago
Flags: needinfo?(moz_bug)
Resolution: --- → INCOMPLETE
Whiteboard: [closeme 2014-03-01]
Sorry this got closed. Are you still seeing hangs when using version 31?
Status: RESOLVED → REOPENED
Flags: needinfo?(ian.graham)
Flags: needinfo?(hskupin)
Flags: needinfo?(emaijala+moz)
Resolution: INCOMPLETE → ---
To be fair it hasn't hung in a while (year or so), so I will close as WORKSFORME.
Status: REOPENED → RESOLVED
Closed: 11 years ago10 years ago
Flags: needinfo?(ian.graham)
Resolution: --- → WORKSFORME
Flags: needinfo?(hskupin)
Flags: needinfo?(emaijala+moz)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: