Closed
Bug 632314
Opened 15 years ago
Closed 15 years ago
Ephemeral stack frames do not get cleaned up
Categories
(Core :: JavaScript Engine, defect)
Tracking
()
RESOLVED
FIXED
| Tracking | Status | |
|---|---|---|
| blocking2.0 | --- | betaN+ |
People
(Reporter: sfink, Assigned: sfink)
Details
(Whiteboard: [hardblocker][fixed-in-tracemonkey][has patch])
Attachments
(1 file)
|
839 bytes,
patch
|
timeless
:
review+
|
Details | Diff | Splinter Review |
When turning off debugging (now in jsdService::Deactivate called by jsdService::Off, until recently directly in jsdService::Off), almost all ephemeral objects are invalidated:
jsdContext::InvalidateAll();
jsdScript::InvalidateAll();
jsdValue::InvalidateAll();
jsdProperty::InvalidateAll();
notably missing is jsdStackFrame::InvalidateAll(). I see no reason for the omission, and I ran into a crash when using a stack frame from a dead JSDContext. I seem to crash a bit less if I invalidate those stack frames too, which admittedly isn't a very sound argument, but I think I'm running into crashes for multiple other reasons, so it's hard to tell what's what.
Vague STR: install the latest Firebug 1.7 and FBTest 1.7. Run it. Crash.
| Assignee | ||
Comment 1•15 years ago
|
||
Invalidate jsdStackFrames when the rest of the ephemerals get invalidated.
Attachment #510520 -
Flags: review?(timeless)
Comment on attachment 510520 [details] [diff] [review]
Invalidate jsdStackFrames when deactivating debugging
i'll buy that.
historically there are some shutdown things which intentionally leak, but this isn't that. i think that the off + on again path is probably relatively untested / historically unused.
Attachment #510520 -
Flags: review?(timeless) → review+
Updated•15 years ago
|
blocking2.0: ? → betaN+
Whiteboard: hardblocker
Updated•15 years ago
|
Whiteboard: hardblocker → [hardblocker][has patch]
Updated•15 years ago
|
Assignee: nobody → sphink
| Assignee | ||
Comment 3•15 years ago
|
||
Whiteboard: [hardblocker][has patch] → [hardblocker][fixed-in-tracemonkey]
Updated•15 years ago
|
Whiteboard: [hardblocker][fixed-in-tracemonkey] → [hardblocker][fixed-in-tracemonkey][has patch]
Comment 4•15 years ago
|
||
cdleary-bot mozilla-central merge info:
http://hg.mozilla.org/mozilla-central/rev/7f471033a507
Updated•15 years ago
|
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Updated•15 years ago
|
Component: JavaScript Debugging/Profiling APIs → JavaScript Engine
You need to log in
before you can comment on or make changes to this bug.
Description
•