Closed
Bug 1198090
Opened 9 years ago
Closed 9 years ago
Assertion failure: CurrentThreadIsGCSweeping() || CurrentThreadIsHandlingInitFailure(), at gc/Barrier.h
Categories
(Core :: JavaScript Engine: JIT, defect)
Tracking
()
RESOLVED
FIXED
mozilla43
Tracking | Status | |
---|---|---|
firefox43 | --- | fixed |
People
(Reporter: gkw, Assigned: jonco)
Details
(Keywords: assertion, regression, testcase, Whiteboard: [jsbugmon:update])
Attachments
(2 files)
6.17 KB,
text/plain
|
Details | |
2.84 KB,
patch
|
terrence
:
review+
|
Details | Diff | Splinter Review |
for (let a of [ null, function() {}, function() {}, null, function() {}, function() {}, function() {}, null, null, null, null, null, null, null, null, function() {}, null, null, null, function() {} ]) { oomAtAllocation(5); } asserts js debug shell on m-c changeset 04b8c412d9f5 with --fuzzing-safe --no-threads --ion-eager --no-baseline at Assertion failure: CurrentThreadIsGCSweeping() || CurrentThreadIsHandlingInitFailure(), at gc/Barrier.h Configure options: CC="clang -Qunused-arguments" CXX="clang++ -Qunused-arguments" AR=ar AUTOCONF=/usr/local/Cellar/autoconf213/2.13/bin/autoconf213 sh /Users/skywalker/trees/mozilla-central/js/src/configure --target=x86_64-apple-darwin12.5.0 --enable-debug --enable-nspr-build --enable-more-deterministic --with-ccache --enable-gczeal --enable-debug-symbols --disable-tests python -u ~/funfuzz/js/compileShell.py -b "--enable-debug --enable-more-deterministic --enable-nspr-build" -r 04b8c412d9f5 autoBisect shows this is probably related to the following changeset: The first bad revision is: changeset: https://hg.mozilla.org/mozilla-central/rev/a9f12b317316 user: Jon Coppeard date: Wed Jul 01 18:53:04 2015 +0100 summary: Bug 1155618 - Don't retry memory allocation if we're simulating OOM r=terrence Jon, is bug 1155618 a likely regressor?
Flags: needinfo?(jcoppeard)
Reporter | ||
Updated•9 years ago
|
status-firefox43:
--- → affected
Reporter | ||
Comment 1•9 years ago
|
||
(lldb) bt 5 * thread #1: tid = 0x88a54, 0x00000001003d0d8e js-dbg-64-dm-nsprBuild-darwin-04b8c412d9f5`js::UnboxedLayout::~UnboxedLayout() + 52 at Barrier.h:406, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x0) * frame #0: 0x00000001003d0d8e js-dbg-64-dm-nsprBuild-darwin-04b8c412d9f5`js::UnboxedLayout::~UnboxedLayout() + 52 at Barrier.h:406 frame #1: 0x00000001003d0d5a js-dbg-64-dm-nsprBuild-darwin-04b8c412d9f5`js::UnboxedLayout::~UnboxedLayout() [inlined] js::HeapPtr<js::jit::JitCode*>::~HeapPtr() at Barrier.h:403 frame #2: 0x00000001003d0d5a js-dbg-64-dm-nsprBuild-darwin-04b8c412d9f5`js::UnboxedLayout::~UnboxedLayout(this=<unavailable>) + 330 at UnboxedObject.h:130 frame #3: 0x000000010037d5f0 js-dbg-64-dm-nsprBuild-darwin-04b8c412d9f5`js::TryConvertToUnboxedLayout(js::ExclusiveContext*, js::Shape*, js::ObjectGroup*, js::PreliminaryObjectArray*) [inlined] js::UnboxedLayout::~UnboxedLayout() + 5792 at UnboxedObject.h:120 frame #4: 0x000000010037d5e8 js-dbg-64-dm-nsprBuild-darwin-04b8c412d9f5`js::TryConvertToUnboxedLayout(js::ExclusiveContext*, js::Shape*, js::ObjectGroup*, js::PreliminaryObjectArray*) at Utility.h:254 (lldb)
Reporter | ||
Comment 2•9 years ago
|
||
CC'ing :bhackett as well because unboxed stuff is on the stack.
Assignee | ||
Comment 3•9 years ago
|
||
It's not that bug, no. It's another instance of the HeapPtr destructor asserting it is being called at the wrong time. We just need to use AutoInitGCManagedObject instead of UniquePtr when creating the UnboxedLayout object.
Assignee: nobody → jcoppeard
Flags: needinfo?(jcoppeard)
Assignee | ||
Comment 4•9 years ago
|
||
https://treeherder.mozilla.org/#/jobs?repo=try&revision=b5dd745c7a43
Assignee | ||
Comment 5•9 years ago
|
||
https://treeherder.mozilla.org/#/jobs?repo=try&revision=8879ebf2b7fc
Assignee | ||
Comment 6•9 years ago
|
||
Use AutoInitGCManagedObject when creating UnboxedLayout since it contains HeapPtrs.
Attachment #8652382 -
Flags: review?(terrence)
Updated•9 years ago
|
Attachment #8652382 -
Flags: review?(terrence) → review+
Assignee | ||
Comment 7•9 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/c3988a4230d27749414ec2fbd50459d595923baf Bug 1198090 - Use AutoInitGCManagedObject when creating UnboxedLayout in TryConvertToUnboxedLayout() r=terrence
Comment 8•9 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/c3988a4230d2
Status: NEW → RESOLVED
Closed: 9 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Target Milestone: --- → mozilla43
You need to log in
before you can comment on or make changes to this bug.
Description
•