Closed Bug 912283 Opened 11 years ago Closed 9 years ago

Crash [@ js::ObjectImpl::setFixedSlot] with OOM and StructType

Categories

(Core :: JavaScript Engine, defect)

x86_64
Linux
defect
Not set
critical

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: decoder, Unassigned)

Details

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

Crash Data

The following testcase crashes on mozilla-central revision d54e0cce6c17 (run with --fuzzing-safe):


gcparam("maxBytes", gcparam("gcBytes") + 4*1024);
for (var i = 0; i < 4000; i++) {}
var PointType = new StructType({});
function foo() {
  var pt = new PointType();
  foo()
}
foo();
Whiteboard: [jsbugmon:update,bisect]
Whiteboard: [jsbugmon:update,bisect] → [jsbugmon:update,bisect,ignore]
JSBugMon: The testcase found in this bug no longer reproduces (tried revision 2c85e4d1d678).
Whiteboard: [jsbugmon:update,bisect,ignore] → [jsbugmon:bisectfix]
Whiteboard: [jsbugmon:bisectfix] → [jsbugmon:]
JSBugMon: Fix Bisection requested, result:
autoBisect shows this is probably related to the following changeset:

The first good revision is:
changeset:   http://hg.mozilla.org/mozilla-central/rev/5c2a0f1510bc
user:        Jason Orendorff
date:        Fri Sep 06 21:41:30 2013 -0500
summary:     Bug 895223, part 1 - Change perf/jsperf.cpp to use JSNative getters rather than PropertyOps. r=jandem.

This iteration took 368.234 seconds to run.
Jason, is bug 895223 a possible fix?
Flags: needinfo?(jorendorff)
No, I don't see how that could have fixed it.
Flags: needinfo?(jorendorff)
There have been a lot of changes to the typed objects code since this occurred, including moving a large portion of it to self-hosting (which simplifies error handling). When I run the test I see an uncaught exception (OOM) -- it seems very likely that there was some big of code that was forgetting to check for a false return code. It'd be possible to track down precisely which change that was, but it doesn't strike me as worthwhile.
Assignee: general → nobody
I can't reproduce this, after fixing the testcase.
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.