Closed Bug 906024 Opened 11 years ago Closed 11 years ago

Assertion failure: output.type() == MIRType_Int32, at jit/IonCaches.cpp:1024 or Crash [@ ToPrimitive]

Categories

(Core :: JavaScript Engine, defect)

x86_64
Linux
defect
Not set
critical

Tracking

()

RESOLVED DUPLICATE of bug 906035
Tracking Status
firefox25 --- unaffected
firefox26 --- affected
firefox-esr17 --- unaffected
b2g18 --- unaffected

People

(Reporter: decoder, Assigned: efaust)

Details

(Keywords: assertion, crash, testcase, Whiteboard: [jsbugmon:update])

Crash Data

Attachments

(1 file)

The following testcase asserts on mozilla-central revision 1ed5a88cd4d0 (run with --fuzzing-safe --ion-eager):


function y() { return "foo,bar"; }
function x() {
  var z = y().split(',');
  for (var i = 0; i < z.length; i++) {}
}
gczeal(2);
Object.prototype.length = function () {};
x();
Actually this should be a security-bug because gczeal is involved and we're crashing after confusing some types.
Group: core-security
Crash Signature: [@ ToPrimitive]
Keywords: crash
Whiteboard: [jsbugmon:update,bisect]
Whiteboard: [jsbugmon:update,bisect] → [jsbugmon:update]
JSBugMon: Bisection requested, result:
autoBisect shows this is probably related to the following changeset:

The first bad revision is:
changeset:   http://hg.mozilla.org/mozilla-central/rev/42776e928f7b
user:        Eric Faust
date:        Sat Aug 10 22:20:36 2013 -0700
summary:     Bug 902264 - Part 2: Expose Array.length optimization to idempotent GetPropertyICs. (r=jandem)

This iteration took 0.737 seconds to run.
Can you look at this Eric?  Thanks.
Flags: needinfo?(efaustbmo)
Over IRC, efaust said this is probably a dupe of something he has an unlanded patch for, so I'm just going to assign it to him, and decoder's robots can confirm this, or something.
Assignee: general → efaustbmo
Flags: needinfo?(efaustbmo)
This is indeed a dupe of 906035, with the same assertion.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → DUPLICATE
Group: core-security → core-security-release
Group: core-security-release
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: