Closed Bug 426827 Opened 18 years ago Closed 17 years ago

"Assertion failure: !(js_CodeSpec[op2].format & JOF_DEL), at jsinterp.c" or "Assertion failure: !(js_CodeSpec[op2].format & JOF_DEL), at ../jsinterp.cpp"

Categories

(Core :: JavaScript Engine, defect)

defect
Not set
critical

Tracking

()

VERIFIED FIXED

People

(Reporter: jdarmochwal, Assigned: igor)

References

Details

(4 keywords, Whiteboard: fixed-in-tracemonkey)

Attachments

(2 files)

js> eval()=delete a; Assertion failure: !(js_CodeSpec[op2].format & JOF_DEL), at jsinterp.c:4878 expected: SyntaxError: invalid assignment left-hand side
Version: unspecified → Trunk
This does yield an invalid assignment error in OPT.
Severity: normal → minor
Status: UNCONFIRMED → NEW
Ever confirmed: true
OS: Linux → All
Hardware: PC → All
Keywords: testcase
Attached file backtrace, full
Still occurs with TM tip and 1.9.0.x branch.
Summary: Assertion failure: !(js_CodeSpec[op2].format & JOF_DEL), at jsinterp.c → "Assertion failure: !(js_CodeSpec[op2].format & JOF_DEL), at jsinterp.c" or "Assertion failure: !(js_CodeSpec[op2].format & JOF_DEL), at ../jsinterp.cpp"
This should be a regression of bug 423300. Seems to work as expected with cvs js shell checkout at 2008-03-18 18:37 PDT Asserts with cvs js shell checkout at 2008-03-18 18:39 PDT http://bonsai.mozilla.org/cvsquery.cgi?treeid=default&module=all&branch=HEAD&branchtype=match&dir=&file=&filetype=match&who=&whotype=match&sortby=Date&hours=2&date=explicit&mindate=2008-03-18+18%3A37%3A00&maxdate=2008-03-18+18%3A39%3A00&cvsroot=%2Fcvsroot Bonsai message: Fix JSOP_SETCALL to cope with delete f() and the like (423300, r=mrbkap, a=beltzner).
Blocks: 423300
Severity: minor → critical
Flags: blocking1.9.1?
Keywords: regression
Flags: wanted1.9.1+
Flags: blocking1.9.1?
Flags: blocking1.9.1-
The bug is not crytical - when the assert is violated in an optimized build, the interpreter throws an exception as it would do when the same code path would be hit with the assertion condition held.
Attached patch fix v1Splinter Review
The fix just removes the assert. An alternative is to replace it with one that requires the absence of JOF_DEL only if opcode uses at least one stack operand, but then such assert would look rather arbitrary.
Assignee: general → igor
Attachment #367988 - Flags: review?(mrbkap)
Attachment #367988 - Flags: review?(mrbkap) → review+
Whiteboard: fixed-in-tracemonkey
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Flags: in-testsuite+
v 1.9.1, 1.9.2
Status: RESOLVED → VERIFIED
/cvsroot/mozilla/js/tests/js1_5/Regress/regress-426827.js,v <-- regress-426827.js initial revision: 1.1
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: