Closed
Bug 1924504
Opened 2 years ago
Closed 2 years ago
Assertion failure during decommit phase
Categories
(Core :: JavaScript: GC, defect, P1)
Core
JavaScript: GC
Tracking
()
RESOLVED
FIXED
133 Branch
| Tracking | Status | |
|---|---|---|
| firefox133 | --- | fixed |
People
(Reporter: jonco, Assigned: jonco)
References
(Blocks 1 open bug)
Details
Attachments
(1 external file)
While working on bug 1911537 I started seeing occasional assertion failures on try like this:
[task 2024-10-13T11:26:56.235Z] 11:26:56 INFO - [13517] Assertion failure: !chunk->unused(), at /builds/worker/checkouts/gecko/js/src/gc/GC.cpp:2198
[task 2024-10-13T11:26:56.235Z] 11:26:56 INFO - #01: js::gc::GCRuntime::decommitFreeArenas(bool const&, js::AutoLockGC&)[/opt/worker/tasks/task_172881423059364/build/tests/bin/js +0xaa01a2]
[task 2024-10-13T11:26:56.235Z] 11:26:56 INFO - #02: js::gc::BackgroundDecommitTask::run(js::AutoLockHelperThreadState&)[/opt/worker/tasks/task_172881423059364/build/tests/bin/js +0xa9f814]
[task 2024-10-13T11:26:56.236Z] 11:26:56 INFO - #03: js::GCParallelTask::runTask(JS::GCContext*, js::AutoLockHelperThreadState&)[/opt/worker/tasks/task_172881423059364/build/tests/bin/js +0xac2cd9]
[task 2024-10-13T11:26:56.236Z] 11:26:56 INFO - #04: js::GCParallelTask::runFromMainThread(js::AutoLockHelperThreadState&)[/opt/worker/tasks/task_172881423059364/build/tests/bin/js +0xac28d0]
[task 2024-10-13T11:26:56.236Z] 11:26:56 INFO - #05: js::gc::GCRuntime::startDecommit()[/opt/worker/tasks/task_172881423059364/build/tests/bin/js +0xa9f322]
[task 2024-10-13T11:26:56.236Z] 11:26:56 INFO - #06: js::gc::GCRuntime::incrementalSlice(JS::SliceBudget&, JS::GCReason, bool)[/opt/worker/tasks/task_172881423059364/build/tests/bin/js +0xab49dc]
[task 2024-10-13T11:26:56.236Z] 11:26:56 INFO - #07: js::gc::GCRuntime::gcCycle(bool, JS::SliceBudget const&, JS::GCReason)[/opt/worker/tasks/task_172881423059364/build/tests/bin/js +0xab7d39]
This appears to be a race between background decommit and foreground allocation and does not appear to be related to my changes.
| Assignee | ||
Updated•2 years ago
|
Assignee: nobody → jcoppeard
Priority: -- → P1
Updated•2 years ago
|
Blocks: GC.stability
Severity: -- → S3
| Assignee | ||
Comment 1•2 years ago
|
||
The problem is that we can fail to allocate an arena in a new chunk for various
reason, but currently we eagerly move the chunk from the empty to the available
chunks list when getting an empty chunk and this causes an assertion failure
later when the chunk is found to stil be empty.
The patch makes it so that we leave the chunk on the empty chunk list until we
successfully allocate an arena in it. It also adds more assertions during the
decommit process.
I don't think anything here could have caused a crash.
Pushed by jcoppeard@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/c63801497940
Make GCRuntime::getOrAllocChunk leave chunk on the empty chunks list r=sfink
Comment 3•2 years ago
|
||
| bugherder | ||
Status: NEW → RESOLVED
Closed: 2 years ago
status-firefox133:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 133 Branch
You need to log in
before you can comment on or make changes to this bug.
Description
•