Closed Bug 1064844 Opened 10 years ago Closed 10 years ago

Assertion failure: baselineFrame->hasReturnValue(), at jit/IonFrames.cpp:480

Categories

(Core :: JavaScript Engine: JIT, defect)

x86_64
Linux
defect
Not set
critical

Tracking

()

RESOLVED FIXED
mozilla35
Tracking Status
firefox35 --- affected

People

(Reporter: decoder, Assigned: shu)

Details

(Keywords: assertion, testcase, Whiteboard: [jsbugmon:update,bisect])

Attachments

(2 files)

The following testcase asserts on mozilla-central revision 6b8da5940f74 (run with --no-threads --fuzzing-safe):


var lfcode = new Array();
lfcode.push = loadFile;
lfcode.push("");
lfcode.push("");
lfcode.push("");
lfcode.push("");
lfcode.push("");
lfcode.push("");
lfcode.push("");
lfcode.push("");
lfcode.push("");
lfcode.push("");
lfcode.push("\
function testResumptionVal(resumptionVal, turnOffDebugMode) {\
  var g = newGlobal();\
  var dbg = new Debugger;\
  setInterruptCallback(function () {\
    dbg.addDebuggee(g);\
    var frame = dbg.getNewestFrame();\
    frame.onStep = function () {\
      return resumptionVal;\
    };\
    return true;\
  });\
    return g.eval(\"(\" + function f() {\
      invokeInterruptCallback(function (interruptRv) {\
        assertEq(interruptRv, TypedObject.newGlobal == undefined);\
      });\
    } + \")();\");\
}\
assertEq(testResumptionVal({ return: \"not 42\" }), \"not 42\");\
");
function loadFile(lfVarx) {
    try {
        eval("(function() { " + lfVarx + " })();"); 
    } catch (lfVare) { }
}
Whiteboard: [jsbugmon:update,bisect]
New errors shouldn't be swallowed and should trump existing propagating forced
return behavior.
Attachment #8486608 - Flags: review?(jorendorff)
Comment on attachment 8486608 [details] [diff] [review]
Only restore propagatingForcedReturn state in AutoSaveExceptionState if there isn't a new error.

Review of attachment 8486608 [details] [diff] [review]:
-----------------------------------------------------------------

Yeah, that seems good.
Attachment #8486608 - Flags: review?(jorendorff) → review+
https://hg.mozilla.org/integration/mozilla-inbound/rev/8f515950193c
Assignee: nobody → shu
Status: NEW → ASSIGNED
https://hg.mozilla.org/mozilla-central/rev/8f515950193c
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla35
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: