SPARC Solaris - Assertion failure: DecommitEnabled(), at mozilla-central-build/js/src/gc/Memory.cpp:836
Categories
(Core :: JavaScript: GC, defect)
Tracking
()
People
(Reporter: petr.sumbera, Unassigned)
References
(Regression)
Details
(Keywords: regression)
Steps to reproduce:
This is happening just on SPARC which is big endian platform. I386 runs just fine.
[31816] Assertion failure: DecommitEnabled(), at /builds/psumbera/mozilla-central-build/js/src/gc/Memory.cpp:836
#01: js::gc::MarkPagesUnusedSoft(void*, unsigned long)[/builds/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x2624e92c]
#02: js::gc::BufferAllocator::addSweptRegion(js::gc::BufferChunk*, unsigned long, unsigned long, bool, bool, js::gc::BufferAllocator::FreeLists&)[/builds/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x2612d6e0]
#03: js::gc::BufferAllocator::sweepChunk(js::gc::BufferChunk*, js::gc::BufferAllocator::OwnerKind, bool, js::gc::BufferAllocator::FreeLists&)[/builds/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x2612d340]
#04: js::gc::BufferAllocator::sweepForMajorCollection(bool)[/builds/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x26127c98]
#05: js::gc::GCRuntime::sweepBackgroundThings(js::gc::ZoneList&)[/builds/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x262b98b0]
#06: js::gc::GCRuntime::sweepFromBackgroundThread(js::AutoLockHelperThreadState&)[/builds/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x262ba12c]
#07: js::gc::BackgroundSweepTask::run(js::AutoLockHelperThreadState&)[/builds/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x262ba06c]
#08: js::GCParallelTask::runTask(JS::GCContext*, js::AutoLockHelperThreadState&)[/builds/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x261a3920]
#09: js::GCParallelTask::runFromMainThread(js::AutoLockHelperThreadState&)[/builds/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x261a36b0]
#10: js::GCParallelTask::runFromMainThread()[/builds/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x261a3490]
#11: js::gc::GCRuntime::queueZonesAndStartBackgroundSweep(js::gc::ZoneList&&)[/builds/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x262b9fac]
#12: js::gc::GCRuntime::endSweepingSweepGroup(JS::GCContext*, JS::SliceBudget&)[/builds/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x262c1f28]
#13: sweepaction::SweepActionCall::run(js::gc::SweepAction::Args&)[/builds/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x262e532c]
#14: sweepaction::SweepActionSequence::run(js::gc::SweepAction::Args&)[/builds/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x262e56d0]
#15: sweepaction::SweepActionForEach<js::gc::SweepGroupsIter, JSRuntime*>::run(js::gc::SweepAction::Args&)[/builds/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x26337308]
#16: js::gc::GCRuntime::performSweepActions(JS::SliceBudget&)[/builds/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x262c4e78]
#17: js::gc::GCRuntime::incrementalSlice(JS::SliceBudget&, JS::GCReason, bool)[/builds/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x26193310]
#18: js::gc::GCRuntime::gcCycle(bool, JS::SliceBudget const&, JS::GCReason)[/builds/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x261964f8]
#19: js::gc::GCRuntime::collect(bool, JS::SliceBudget const&, JS::GCReason)[/builds/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x261975d8]
#20: js::gc::GCRuntime::gc(JS::GCOptions, JS::GCReason)[/builds/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x26197cc0]
#21: JS::NonIncrementalGC(JSContext*, JS::GCOptions, JS::GCReason)[/builds/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x2619ea20]
#22: mozilla::dom::WorkerPrivate::GarbageCollectInternal(JSContext*, bool, bool)[/builds/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x222c2500]
#23: mozilla::dom::(anonymous namespace)::IdleGCTimerCallback(nsITimer*, void*)[/builds/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x222a0a68]
#24: nsTimerImpl::Fire(int)::{lambda(nsTimerImpl::FuncCallback const&)#1}::operator()(nsTimerImpl::FuncCallback const&) const[/builds/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x1825fa04]
#25: decltype(auto) mozilla::detail::VariantImplementation<unsigned char, 3ul, nsTimerImpl::FuncCallback, nsTimerImpl::ClosureCallback>::matchN<mozilla::Variant<nsTimerImpl::UnknownCallback, nsCOMPtr<nsITimerCallback>, nsCOMPtr<nsIObser
ver>, nsTimerImpl::FuncC[/builds/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x1825fb1c]
#26: decltype(auto) mozilla::detail::VariantImplementation<unsigned char, 2ul, nsCOMPtr<nsIObserver>, nsTimerImpl::FuncCallback, nsTimerImpl::ClosureCallback>::matchN<mozilla::Variant<nsTimerImpl::UnknownCallback, nsCOMPtr<nsITimerCallb
ack>, nsCOMPtr<nsIObserv[/builds/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x1825fc20]
#27: decltype(auto) mozilla::detail::VariantImplementation<unsigned char, 1ul, nsCOMPtr<nsITimerCallback>, nsCOMPtr<nsIObserver>, nsTimerImpl::FuncCallback, nsTimerImpl::ClosureCallback>::matchN<mozilla::Variant<nsTimerImpl::UnknownCall
back, nsCOMPtr<nsITimerC[/builds/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x1825fd04]
#28: decltype(auto) mozilla::detail::VariantImplementation<unsigned char, 0ul, nsTimerImpl::UnknownCallback, nsCOMPtr<nsITimerCallback>, nsCOMPtr<nsIObserver>, nsTimerImpl::FuncCallback, nsTimerImpl::ClosureCallback>::matchN<mozilla::Va
riant<nsTimerImpl::Unkno[/builds/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x1825fe00]
#29: decltype(auto) mozilla::Variant<nsTimerImpl::UnknownCallback, nsCOMPtr<nsITimerCallback>, nsCOMPtr<nsIObserver>, nsTimerImpl::FuncCallback, nsTimerImpl::ClosureCallback>::matchN<mozilla::Variant<nsTimerImpl::UnknownCallback, nsCOMP
tr<nsITimerCallback>, ns[/builds/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x1825fea8]
#30: decltype(auto) mozilla::Variant<nsTimerImpl::UnknownCallback, nsCOMPtr<nsITimerCallback>, nsCOMPtr<nsIObserver>, nsTimerImpl::FuncCallback, nsTimerImpl::ClosureCallback>::match<nsTimerImpl::Fire(int)::{lambda(nsTimerImpl::UnknownCa
llback const&)#1}, nsTim[/builds/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x1825ff40]
#31: nsTimerImpl::Fire(int)[/builds/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x182605b8]
#32: nsTimerEvent::Run()[/builds/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x1823a578]
#33: mozilla::dom::(anonymous namespace)::WrappedControlRunnable::WorkerRun(JSContext*, mozilla::dom::WorkerPrivate*)[/builds/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x22267474]
#34: mozilla::dom::WorkerThreadRunnable::Run()[/builds/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x222cc960]
#35: mozilla::dom::WorkerPrivate::ProcessAllControlRunnablesLocked()[/builds/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x222b6dbc]
#36: mozilla::dom::WorkerPrivate::RunCurrentSyncLoop()[/builds/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x222bb690]
#37: mozilla::dom::AutoSyncLoopHolder::Run()[/builds/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x222c7c44]
#38: mozilla::dom::workerinternals::(anonymous namespace)::LoadAllScripts(mozilla::dom::WorkerPrivate*, mozilla::UniquePtr<mozilla::dom::SerializedStackHolder, mozilla::DefaultDelete<mozilla::dom::SerializedStackHolder> >, nsTArray<nsTS
tring<char16_t> > const&[/builds/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x2224fe4c]
#39: mozilla::dom::workerinternals::LoadMainScript(mozilla::dom::WorkerPrivate*, mozilla::UniquePtr<mozilla::dom::SerializedStackHolder, mozilla::DefaultDelete<mozilla::dom::SerializedStackHolder> >, nsTSubstring<char16_t> const&, mozil
la::dom::WorkerScriptTyp[/builds/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x2225b6e4]
#40: mozilla::dom::(anonymous namespace)::CompileScriptRunnable::WorkerRun(JSContext*, mozilla::dom::WorkerPrivate*)[/builds/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x2229f2e0]
#41: mozilla::dom::WorkerThreadRunnable::Run()[/builds/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x222cc960]
#42: nsThread::ProcessNextEvent(bool, bool*)[/builds/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x18247dd8]
#43: NS_ProcessNextEvent(nsIThread*, bool)[/builds/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x18259d98]
#44: mozilla::dom::WorkerPrivate::DoRunLoop(JSContext*)[/builds/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x222b2908]
#45: mozilla::dom::workerinternals::(anonymous namespace)::WorkerThreadPrimaryRunnable::Run()[/builds/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x2224d6f0]
#46: nsThread::ProcessNextEvent(bool, bool*)[/builds/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x18247dd8]
#47: NS_ProcessNextEvent(nsIThread*, bool)[/builds/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x18259d98]
#48: mozilla::ipc::MessagePumpForNonMainThreads::Run(base::MessagePump::Delegate*)[/builds/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x19959f04]
#49: MessageLoop::RunInternal()[/builds/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x1980f24c]
#50: MessageLoop::RunHandler()[/builds/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x1980f174]
#51: MessageLoop::Run()[/builds/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x1980f118]
#52: nsThread::ThreadFunc(void*)[/builds/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libxul.so +0x1824359c]
#53: _pt_root[/builds/psumbera/mozilla-central-build/INSTALLED/lib/firefox/libnspr4.so +0x59f74]
#54: _lwp_start[/lib/sparcv9/libc.so.1 +0x1c624c]
The first bad revision is likely:
changeset: 768341:f5d3e5da3f01
user: Jon Coppeard <jcoppeard@mozilla.com>
date: Tue Jan 07 19:13:33 2025 +0100
description:
Bug 1934856 - Part 0: Don't recommit pages that contain previous allocations r=sfink
Reporter | ||
Updated•1 month ago
|
Comment 1•1 month ago
|
||
The Bugbug bot thinks this bug should belong to the 'Core::JavaScript: GC' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.
Comment 2•1 month ago
|
||
:jonco, since you are the author of the regressor, bug 1934856, could you take a look? Also, could you set the severity field?
For more information, please visit BugBot documentation.
Reporter | ||
Comment 3•28 days ago
|
||
Following assetion is hit on SPARC:
https://searchfox.org/mozilla-central/rev/6d06ffc186ac356648f1feeadd52cc61b2ad6737/js/src/gc/Memory.cpp#836
SystemPageSize()=8192 and PageSize 4096 (on i386 both are 4096).
Comment 4•28 days ago
|
||
This is the same issue as bug 1940692.
Description
•