Closed Bug 475593 Opened 16 years ago Closed 16 years ago

TM: Assertion failed: "Should not move data from GPR/XMM to x87 FPU": false (../nanojit/Nativei386.cpp:1851) (js_BooleanOrUndefinedToNumber emitted twice)

Categories

(Core :: JavaScript Engine, defect, P1)

Other Branch
defect

Tracking

()

VERIFIED FIXED

People

(Reporter: jorendorff, Assigned: jorendorff)

Details

(Keywords: verified1.9.1)

Attachments

(1 file)

      No description provided.
Attached patch v1Splinter Review
Attachment #359119 - Flags: review?(brendan)
Comment on attachment 359119 [details] [diff] [review]
v1

Ay caramba!

/be
Attachment #359119 - Flags: review?(brendan) → review+
Flags: blocking1.9.1?
Was this covered by a trace-test.js test? I didn't see any failures...

/be
Yes, testLoopWithUndefined2 triggered this for me.  The even-further-reduced test case is:

  a = true;
  for (i = 0; i < 6; i++)
      a = (8 == void 0);

But the bug either hits or sneaks by depending on the alignment of the field JSRuntime::jsNaN.  If it's aligned to 0, then DOUBLE_TO_JSVAL(&cx->runtime->jsNaN) is a bad DOUBLE jsval, and you get a potential (but very hard to trigger) correctness error.  If it's aligned to 4, then it's a bad BOOLEAN jsval, and you get this bug.

http://hg.mozilla.org/tracemonkey/rev/5d11bbac8fbe
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Flags: blocking1.9.1? → blocking1.9.1+
Priority: -- → P1
I've seen this occasionally but couldn't reproduce it reliably until today. Bisection points to an apparently unrelated patch http://hg.mozilla.org/tracemonkey/rev/799649d4e416 by Andrei. Andrei or Igor, would bug 474801 make the conditions Jason described in comment 4 more probable?

v 1.9.1 tracemonkey and by inference 1.9.2
Status: RESOLVED → VERIFIED
Whiteboard: [needs 191 landing]
covered by test added in Bug 456479 already in js/src/trace-test.js and js/js1_8_1/trace/trace-test.js
Flags: in-testsuite+
Flags: in-litmus-
v 1.9.1, 1.9.2
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: