Closed Bug 900405 Opened 11 years ago Closed 11 years ago

GenerationalGC: Assertion failure: nslots > 2, at gc/Nursery.cpp

Categories

(Core :: JavaScript Engine, defect)

x86_64
macOS
defect
Not set
critical

Tracking

()

RESOLVED FIXED
mozilla25

People

(Reporter: gkw, Assigned: terrence)

References

Details

(Keywords: assertion, regression, testcase)

Attachments

(2 files)

Attached file stack
(function() {
    [{ "9": [] }.watch([], function(){})]
})()

crashes js debug shell (tested with a threadsafe deterministic 64-bit debug build) on m-c changeset 95870d5337eb without any CLI arguments at Assertion failure: nslots > 2, at gc/Nursery.cpp when the shell is compiled with --enable-gcgenerational --enable-exact-rooting.
Flags: needinfo?(terrence)
The assertion that is firing here is simply incorrect. It should be >= instead of >. Additionally, I noticed when debugging that NULL slots are getting inserting into the external slots/elements set, causing us to free(NULL) -- for no effect -- during minor GC. I threw that fix in here since it is also trivial.
Assignee: general → terrence
Status: NEW → ASSIGNED
Attachment #784546 - Flags: review?(wmccloskey)
Flags: needinfo?(terrence)
Attachment #784546 - Flags: review?(wmccloskey) → review+
https://hg.mozilla.org/mozilla-central/rev/69c38726a5ad
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla25
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: