Closed
Bug 876654
Opened 12 years ago
Closed 12 years ago
[jsdbg2] Assertion failure: kind == CrossCompartmentKey::DebuggerScript || kind == CrossCompartmentKey::DebuggerObject || kind == CrossCompartmentKey::DebuggerEnvironment, at jsgc.cpp:3241
Categories
(Core :: JavaScript Engine, defect)
Tracking
()
RESOLVED
FIXED
mozilla24
People
(Reporter: decoder, Assigned: jonco)
Details
(Keywords: assertion, testcase)
Attachments
(2 files)
|
837 bytes,
text/plain
|
Details | |
|
1.74 KB,
patch
|
terrence
:
review+
|
Details | Diff | Splinter Review |
The following testcase asserts on mozilla-central revision c190422547ed (run with --ion-eager):
gczeal(9, 2)
let g = newGlobal('new-compartment');
let dbg = new Debugger(g);
dbg.onNewScript = function (script) {
var text = script.source.text;
}
g.eval("function f() { function g() {} }");
assertEq(count, 6);
| Reporter | ||
Comment 1•12 years ago
|
||
| Assignee | ||
Comment 2•12 years ago
|
||
The GC needs updating in light of the new DebuggerSource object introduced by bug 637572.
| Assignee | ||
Comment 3•12 years ago
|
||
The assertion in JSCompartment::findOutgoingEdges() needs to be updated now DebuggerSource objects have been added.
Debugger::findCompartmentEdges() was already updated to add edges for these CCWs in one direction. With the assertion updated JSCompartment::findOutgoingEdges() will add them in the other direction and everything will be fine.
Comment 4•12 years ago
|
||
Comment on attachment 758486 [details] [diff] [review]
Proposed fix
Review of attachment 758486 [details] [diff] [review]:
-----------------------------------------------------------------
r=me
Attachment #758486 -
Flags: review?(terrence) → review+
| Assignee | ||
Comment 5•12 years ago
|
||
Comment 6•12 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Target Milestone: --- → mozilla24
You need to log in
before you can comment on or make changes to this bug.
Description
•