Closed Bug 527288 Opened 15 years ago Closed 15 years ago

TM: "Assertion failure: m != TT_INT32 || isInt32(*vp), at ../jstracer.cpp" with for, for...each

Categories

(Core :: JavaScript Engine, defect)

x86
macOS
defect
Not set
critical

Tracking

()

VERIFIED FIXED

People

(Reporter: gkw, Assigned: n.nethercote)

References

Details

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

Attachments

(1 file)

(function () { for (a = 0; a < 3; a++) { for each(b in [0, -0]) {} } })() asserts js debug shell with -j at Assertion failure: m != TT_INT32 || isInt32(*vp), at ../jstracer.cpp:3954 autoBisecting soon...
autoBisect shows this is probably related to bug 502778: The first bad revision is: changeset: 34384:1f4284d6be93 user: Nicholas Nethercote date: Thu Nov 05 09:40:33 2009 +1100 summary: Bug 502778 - nanojit: speed up CseFilter. r=edwsmith.
Blocks: 502778
Attached patch patch (deleted) — Splinter Review
The CseFilter change wasn't supposed to change any functional behaviour, but it did -- it made it so that 0.0 and -0.0 would be CSE'd together, which is not what we want. The patch uses type-punning to convert the relevant doubles into uint64s for the comparison.
Assignee: general → nnethercote
Status: NEW → ASSIGNED
Attachment #411122 - Flags: review?(edwsmith)
BTW, the patch copies the test case from comment 0 into trace-tests/. I'm not sure if this is the right thing to do. CC'ing bclary.
Nick, seems ok to me. The js/src/trace-test/ stuff has a life of its own independent of the js/src/tests/.
Attachment #411122 - Flags: review?(edwsmith) → review+
The Nanojit part was landed thusly: http://hg.mozilla.org/projects/nanojit-central/rev/8f59c1429621 The new TM test case will have to be landed separately.
Whiteboard: fixed-in-nanojit
Merge from nanojit-central: http://hg.mozilla.org/tracemonkey/rev/c9e5f4a7ca84 TM test case still requires landing separately.
Whiteboard: fixed-in-nanojit → fixed-in-nanojit, fixed-in-tracemonkey
Nick, thanks! Don't forget in-testsuite+ when you add a test! :-)
Flags: in-testsuite+
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
A type of test for this bug has already been landed because it is already marked in-testsuite+ -> VERIFIED.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: