Closed Bug 524264 Opened 15 years ago Closed 15 years ago

"Assertion failure: 0, at ../jsopcode.cpp" with uneval, yield, Function, do...while

Categories

(Core :: JavaScript Engine, defect)

x86
macOS
defect
Not set
critical

Tracking

()

VERIFIED FIXED

People

(Reporter: gkw, Assigned: jorendorff)

References

Details

(Keywords: assertion, regression, testcase, Whiteboard: fixed-in-tracemonkey)

Attachments

(1 file)

uneval(Function("\
  do {\
  for each(y in []) {\
    yield\
    }\
  }\
  while(x)\
"))

asserts js debug shell without -j on TM tip at Assertion failure: 0, at ../jsopcode.cpp:3312. This seems to occur frequently.
autoBisect shows this is probably related to bug 522624:

The first bad revision is:
changeset:   34070:5ab2276549b1
user:        David Anderson
date:        Fri Oct 23 14:28:35 2009 -0700
summary:     Fixed decompiler assertion related to JSOP_TRACE (bug 522624, r=brendan).
Blocks: 522624
Summary: "Assertion failure: 0, at ../jsopcode.cpp" → "Assertion failure: 0, at ../jsopcode.cpp" with uneval, yield, Function, do...while
I can't win against this thing.
Smaller test case:

uneval(function () { do yield; while (0); });

dvander and I figured this out on IRC. js_DecompileFunction is fixing up pc to skip a JSOP_TRACE opcode that isn't there for generators.
Attached patch v1Splinter Review
Assignee: general → jorendorff
Status: NEW → ASSIGNED
Attachment #409181 - Flags: review?(dvander)
Attachment #409181 - Flags: review?(dvander) → review+
http://hg.mozilla.org/tracemonkey/rev/bd1b0c451b85
Whiteboard: fixed-in-tracemonkey
http://hg.mozilla.org/mozilla-central/rev/bd1b0c451b85
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
A testcase for this bug was automatically identified at js/src/tests/js1_8_1/regress/regress-524264.js.
Flags: in-testsuite+
Testcases have been landed by virtue of being marked in-testsuite+ -> VERIFIED as well.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: