Closed Bug 902744 Opened 11 years ago Closed 11 years ago

Assertion failure: mir->type() != MIRType_Value, at ion/shared/Lowering-shared-inl.h

Categories

(Core :: JavaScript Engine, defect)

x86
Windows 7
defect
Not set
critical

Tracking

()

RESOLVED FIXED
mozilla26
Tracking Status
firefox23 --- disabled
firefox24 --- disabled
firefox25 --- disabled
firefox26 + fixed
firefox-esr17 --- unaffected
firefox-esr24 --- disabled
b2g18 --- unaffected

People

(Reporter: gkw, Assigned: shu)

References

Details

(4 keywords, Whiteboard: [jsbugmon:])

Attachments

(1 file)

function f(code) {
    try {
        Function(code)()
    } catch (e) {}
}
f("\
    x = ArrayBuffer;\
    Object.defineProperty(this, \"m\", {\
        get: function() {\
            y.scatter([0, 0], undefined, f1)\
        }\
    });\
    y = new ParallelArray;\
    z = y.shape;\
    Array.prototype.push.call(z, x);\
    f1 = (function() {\
        y.scan(function() {})\
    });\
    Array.prototype.reverse.call(z);\
    Object.defineProperty(z, 7, {\
        get: f1,\
    });\
    Array.prototype.pop.call(z);\
");
f("\
    Array.prototype.reverse.call(z);\
");
f("\
    m;\
");
f("\
    y = ParallelArray(6, function(){});\
    m;\
    m;\
")

asserts js debug 32-bit threadsafe shell on m-c changeset 79b5c74ef97b with --baseline-eager at Assertion failure: mir->type() != MIRType_Value, at ion/shared/Lowering-shared-inl.h

Tested on Windows 7. The patch in bug 901391 does not fix this problem. s-s because that bug seems s-s. Will try running autoBisect.
Whiteboard: [jsbugmon:update] → [jsbugmon:]
JSBugMon: Cannot process bug: Unable to automatically reproduce, please track manually.
Attached patch bug902744.patchSplinter Review
Unrelated to bug 901391. This is a longer standing bug due to incorrect inlining of the NewDenseArray intrinsic.
Assignee: general → shu
Attachment #787294 - Flags: review?
I can't r? :nmatsakis on the patch, bugzilla complains about incorrect user groups.

decoder, what's up with that?
Niko needs to be cc'ed first as he does not have access to s-s bugs by default.
Attachment #787294 - Flags: review? → review?(nmatsakis)
But it used to auto cc the reviewer, no?
(In reply to Shu-yu Guo [:shu] from comment #5)
> But it used to auto cc the reviewer, no?

The auto-cc only works if he has permissions to view the bug (prior to being cc'ed), in this case, the security bugs.
autoBisect shows this is probably related to the following changeset:

The first bad revision is:
changeset:   http://hg.mozilla.org/mozilla-central/rev/ed26fdbe8444
user:        Shu-yu Guo
date:        Sat May 04 20:53:21 2013 -0700
summary:     Bug 646597 - Make functions made by the Function constructor compile-and-go. Most of patch was originally written by jorendorff. (r=luke)
Blocks: 646597
Assuming bug 646597 is the correct regressor, this means this bug goes back to Firefox 23.
That's not really the regressor. this probably has been around since we landed self hosted parallel arrays
(In reply to Shu-yu Guo [:shu] from comment #9)
> That's not really the regressor. this probably has been around since we
> landed self hosted parallel arrays

Probably bug 829602 then? Which means it goes back to Firefox 22.
Blocks: 829602
No longer blocks: 646597
(In reply to Gary Kwong [:gkw] [:nth10sd] from comment #10)
> (In reply to Shu-yu Guo [:shu] from comment #9)
> > That's not really the regressor. this probably has been around since we
> > landed self hosted parallel arrays
> 
> Probably bug 829602 then? Which means it goes back to Firefox 22.

Code was added in 807853 but had no way to be triggered until 829602.
Keep in mind that while it goes back to FF22, ParallelArray is *ifdef'd out* on everything but Nightly, so that code has no way to be triggered afaik outside of Nightly.
Attachment #787294 - Flags: review?(nmatsakis) → review+
(In reply to Shu-yu Guo [:shu] from comment #12)
> Keep in mind that while it goes back to FF22, ParallelArray is *ifdef'd out*
> on everything but Nightly, so that code has no way to be triggered afaik
> outside of Nightly.

Adjusting flags as follows.
might be worth also a testcase or ? :) 

fixed in mozilla-central

https://hg.mozilla.org/mozilla-central/rev/928f0878d1cd
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla26
Flags: in-testsuite?
Tracking so we can verify this fix.
Group: core-security
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: