Closed
Bug 474980
Opened 16 years ago
Closed 14 years ago
Hang on shutdown after being open for a while
Categories
(Core :: JavaScript Engine, defect)
Tracking
()
RESOLVED
INCOMPLETE
People
(Reporter: mossop, Unassigned)
References
Details
(Keywords: hang, Whiteboard: [TSnap][DUPEME][Ubiquity?])
Attachments
(4 files, 1 obsolete file)
Over the pat few days whenever I shutdown minefield after it has been open for multiple hours, or restart for updates I get a hung process consuming 100% CPU. Attached is the report from OSX after I kill it.
Reporter | ||
Updated•16 years ago
|
Attachment #358387 -
Attachment mime type: application/text → text/plain
Comment 1•16 years ago
|
||
Probably a dupe of bug 474699?
Reporter | ||
Comment 2•16 years ago
|
||
Perhaps, I don't have clear private data on shutdown though
Comment 3•16 years ago
|
||
I had this problem again a couple of minutes before. I have created a shark profile and will attach it to the bug. As what I can see we spend most of our time in js_ArrayToJSDoubleBuffer while consuming nearly 100% cpu load.
+ 99.8%, JS_CompareValues, libmozjs.dylib
| + 99.0%, js_ArrayToJSDoubleBuffer, libmozjs.dylib
| | + 79.7%, js_ArrayToJSDoubleBuffer, libmozjs.dylib
| | | 4.4%, js_ArrayToJSDoubleBuffer, libmozjs.dylib
| - 0.5%, 0xee9643 [unknown], XUL
| - 0.1%, js_CheckUndeclaredVarAssignment, libmozjs.dylib
| - 0.0%, js_LookupProperty, libmozjs.dylib
| 0.0%, js_FreeStack, libmozjs.dylib
| - 0.0%, 0xee961e [unknown], XUL
Assignee: nobody → general
Severity: normal → critical
Component: General → JavaScript Engine
Flags: blocking1.9.1?
QA Contact: general → general
Comment 4•16 years ago
|
||
Comment 5•16 years ago
|
||
(In reply to comment #3)
> I had this problem again a couple of minutes before. I have created a shark
> profile and will attach it to the bug.
Can you reproduce this reliably?
Comment 6•16 years ago
|
||
Need better symbols, some static function addresses are being truncated to the nearest lower extern neighbor.
/be
Comment 7•16 years ago
|
||
No, I'm not able to reproduce it reliable.
Brendan, means the Shark profile doesn't help you? Do you better need a gdb stack in such a situation?
Comment 8•16 years ago
|
||
I have running a debug build of Shiretoko now and saw a hang during shutdown today. But as long as I don't know what I have to do I cannot spend more time in trying to investigate this problem. It would be great to get some steps so I will know what information I have to acquire for you.
Comment 9•16 years ago
|
||
A profile from a shark build should work better:
http://ftp.mozilla.org/pub/mozilla.org/firefox/nightly/latest-trunk/firefox-3.6a1pre.en-US.mac-shark.dmg
Comment 10•16 years ago
|
||
I was already using a shark enabled build. No idea what was going wrong. Anyway, now I have used a shark enabled debug build and got this profile. Shiretoko needed a couple of minutes to shutdown. This profile shows a 30s range. If you need more I can try to get a bigger one.
Attachment #375553 -
Attachment is obsolete: true
Updated•16 years ago
|
Whiteboard: DUPEME
Comment 11•16 years ago
|
||
The patches from bug 475737 and bug 490592 might help here.
Comment 12•16 years ago
|
||
Maybe... but why is the root traversal so slow, exactly? How many roots do we have in this case? Is there something Henrik could do to output that information?
Comment 13•16 years ago
|
||
There's probably still another problem, but it's certainly going to be amplified by doing too many GCs on shutdown.
Comment 14•16 years ago
|
||
I don't think this a JS engine bug. This has happened to me a couple times, and I think it's imgCacheEntry thread safety problems.:
http://pastebin.mozilla.org/648509
Updated•16 years ago
|
Assignee: general → nobody
Component: JavaScript Engine → General
QA Contact: general → general
Comment 15•16 years ago
|
||
Joe, could you have a look at this bug?
Component: General → ImageLib
QA Contact: general → imagelib
Comment 16•16 years ago
|
||
There's nothing about imagelib in this shark profile.
Assignee: nobody → general
Component: ImageLib → JavaScript Engine
QA Contact: imagelib → general
Comment 17•16 years ago
|
||
(In reply to comment #16)
> There's nothing about imagelib in this shark profile.
See comment 14 and follow the pastebin link.
/be
Comment 18•16 years ago
|
||
Should we kick this over into someone else's department for trackability? Its still assigned to JS.
Comment 19•16 years ago
|
||
I sincerely doubt comment 14 and that pastebin output have anything to do with this bug as filed (and in particular, I doubt they lead to the shark profile posted herein).
There should be a seprate bug filed on that assertion, of course.
Comment 20•16 years ago
|
||
(In reply to comment #19)
> I sincerely doubt comment 14 and that pastebin output have anything to do with
> this bug as filed (and in particular, I doubt they lead to the shark profile
> posted herein).
yeah, my fault, could be two different bugs.
Comment 21•16 years ago
|
||
We just approved the patches peterv mentioned in comment 11 - clearing the blocker nom, please re-approve if we can reproduce this on branch and trunk after those land.
Flags: blocking1.9.1?
Comment 22•16 years ago
|
||
Adding both bugs to the dependency list so we don't forget this bug.
Comment 24•16 years ago
|
||
$0.02: I've seen this much less often in recent months; perhaps some unexplained hangs were related to Flash 9 (as mentioned in other bugs). I don't use "Always clear private data" (as in bug 474699). IIRC this (or something much like it) also happened in FF2 sometimes.
Blocks: cmd-q
Comment 25•15 years ago
|
||
Does anybody of you have Ubiquity installed? I suspect that this extension causes this problems at least for me. After its deactivation I don't have those problems anymore. A shutdown happens under 10s now.
Last time I tested this I made two snapshots of open files during the shutdown process. None of both lists show places.sqlite but a lot of SQLite files from Ubiquity.
Comment 26•15 years ago
|
||
This list shows open files during shutdown after the browser was open for about 3 days.
Comment 27•15 years ago
|
||
List of open files after I have restarted the browser and closed it immediately after all tabs have been finished loading.
Updated•15 years ago
|
Whiteboard: DUPEME → [TSnap][DUPEME]
Comment 30•14 years ago
|
||
Is this seen in 4.0?
Whiteboard: [TSnap][DUPEME] → [TSnap][DUPEME][Ubiquity?]
Updated•14 years ago
|
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → INCOMPLETE
You need to log in
before you can comment on or make changes to this bug.
Description
•