Closed
Bug 677367
Opened 15 years ago
Closed 15 years ago
[jsdbg2] Assertion failure: !fp->isEvalFrame(), at jsinterpinlines.h:276
Categories
(Core :: JavaScript Engine, defect)
Tracking
()
RESOLVED
FIXED
mozilla9
People
(Reporter: decoder, Assigned: luke)
Details
(Keywords: assertion, testcase, Whiteboard: [inbound])
Attachments
(1 file)
|
2.33 KB,
patch
|
jorendorff
:
review+
|
Details | Diff | Splinter Review |
The following code asserts on jsdbg2 branch (revision 82545b1e4129, options -j -m -d):
var g = newGlobal('new-compartment');
var dbg = new Debugger(g);
dbg.onDebuggerStatement = function (frame) {
var code = "assertEq(c, 'ok');\n";
assertEq(frame.evalWithBindings("eval(s)", {s: code, a: 1234}).return, undefined);
};
g.eval("function first() { return second(); }");
g.eval("function second() { return eval('third()'); }");
g.eval("function third() { debugger; }");
g.evaluate("first();");
Comment 1•15 years ago
|
||
Reduced a bit:
var g = newGlobal('new-compartment');
var dbg = new Debugger(g);
dbg.onDebuggerStatement = function (frame) {
frame.eval("eval('0')");
};
g.eval("(function () { debugger; })();");
Comment 2•15 years ago
|
||
This happens in m-i too, with -d:
function f() {}
trap(f, 0, 'eval("2+2")');
f();
| Assignee | ||
Comment 3•15 years ago
|
||
Sorry about ignoring your vote; I already had the patch :)
The heavyweight assert was removed since evalInFrame let's you put an eval frame inside a non-heavyweight function.
Comment 4•15 years ago
|
||
Comment on attachment 552259 [details] [diff] [review]
fix for m-i
Great!
Attachment #552259 -
Flags: review?(jorendorff) → review+
| Assignee | ||
Comment 5•15 years ago
|
||
Whiteboard: [inbound]
Comment 6•15 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla9
| Reporter | ||
Comment 7•13 years ago
|
||
A testcase for this bug was automatically identified at js/src/jit-test/tests/basic/testBug677367.js.
Flags: in-testsuite+
Pushed by clegnitto@mozilla.com:
https://hg.mozilla.org/releases/mozilla-release/rev/5bbc3615e387
Update pc in mjit throw-handling to match interp (r=dvander)
You need to log in
before you can comment on or make changes to this bug.
Description
•