Closed Bug 549521 Opened 14 years ago Closed 14 years ago

JM: "Assertion failure: js_ReconstructStackDepth(cx, script, pc) == stackDepth, at ../methodjit/BytecodeAnalyzer.cpp"

Categories

(Core :: JavaScript Engine, defect)

x86
macOS
defect
Not set
critical

Tracking

()

RESOLVED FIXED

People

(Reporter: gkw, Unassigned)

References

Details

(Keywords: assertion, testcase)

let(x) {
  for (;;) {}
}

asserts js debug shell with -m on JM tip at Assertion failure: js_ReconstructStackDepth(cx, script, pc) == stackDepth, at ../methodjit/BytecodeAnalyzer.cpp:91
The bytecode analyzer was assuming anything after a JSOP_GOTO would have at least one incoming edge, which isn't true in this case since it's an infinite loop.

forgot to attach the bugno on this cset sorry: http://hg.mozilla.org/users/danderson_mozilla.com/jaegermonkey/rev/b6271e02f257
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
A testcase for this bug was automatically identified at js/src/jit-test/tests/jaeger/bug549521.js.
Flags: in-testsuite+
You need to log in before you can comment on or make changes to this bug.