Closed Bug 2044832 Opened 5 months ago Closed 3 months ago

Assertion failure: WeakMapBase::checkMarkingForZone(zone), at js/src/gc/Sweeping.cpp:1263

Categories

(Core :: JavaScript: GC, defect, P3)

x86_64
Linux
defect

Tracking

()

RESOLVED DUPLICATE of bug 2042768
Tracking Status
firefox153 --- wontfix

People

(Reporter: decoder, Unassigned)

References

(Blocks 1 open bug)

Details

(Keywords: assertion, regression, testcase, Whiteboard: [bugmon:update,bisected,confirmed][fuzzblocker])

Attachments

(2 files)

The following testcase crashes on mozilla-central revision 20260603-14f381ab3699 (debug build, run with --fuzzing-safe --ion-offthread-compile=off):

gczeal(8,1);
b = new WeakMap;
c = Symbol();
b.set(c);
grayRoot().push(c);
c = undefined;
gc();
grayRoot().length = 0;

Backtrace:

received signal SIGSEGV, Segmentation fault.
#0  0x00005555575be4f7 in js::gc::GCRuntime::endMarkingSweepGroup(JS::GCContext*, JS::SliceBudget&) ()
#1  0x00005555575fec6c in sweepaction::SweepActionSequence::run(js::gc::SweepAction::Args&) ()
#2  0x00005555575e8359 in sweepaction::SweepActionForEach<js::gc::SweepGroupsIter, JSRuntime*>::run(js::gc::SweepAction::Args&) ()
#3  0x00005555575ccd14 in js::gc::GCRuntime::sweepPhase(JS::SliceBudget&) ()
#4  0x000055555751c251 in js::gc::GCRuntime::incrementalSlice(JS::SliceBudget&, JS::GCReason, bool) ()
#5  0x0000555557520002 in js::gc::GCRuntime::gcCycle(bool, JS::SliceBudget const&, JS::GCReason) ()
#6  0x0000555557521975 in js::gc::GCRuntime::collect(bool, JS::SliceBudget const&, JS::GCReason) ()
#7  0x00005555574fb8b7 in js::gc::GCRuntime::finishGC(JS::GCReason) ()
#8  0x0000555557ebcc75 in JSRuntime::destroyRuntime() ()
#9  0x000055555810f294 in js::DestroyContext(JSContext*) ()
#10 0x0000555556eadb9a in main ()
rax	0x0	0
rbx	0x1	1
rcx	0x4ef	1263
rdx	0x7ffff7804563	140737345766755
rsi	0x0	0
rdi	0x7ffff7805700	140737345771264
rbp	0x7fffffffd530	140737488344368
rsp	0x7fffffffd4c0	140737488344256
r8	0x0	0
r9	0x3	3
r10	0x2	2
r11	0x293	659
r12	0x7ffff7e377d0	140737352267728
r13	0x7fffee258b80	140737188825984
r14	0x7fffed098000	140737170210816
r15	0x7fffee238918	140737188694296
rip	0x5555575be4f7 <js::gc::GCRuntime::endMarkingSweepGroup(JS::GCContext*, JS::SliceBudget&)+1223>
=> 0x5555575be4f7 <_ZN2js2gc9GCRuntime20endMarkingSweepGroupEPN2JS9GCContextERNS2_11SliceBudgetE+1223>:	mov    %rcx,(%rax)
   0x5555575be4fa <_ZN2js2gc9GCRuntime20endMarkingSweepGroupEPN2JS9GCContextERNS2_11SliceBudgetE+1226>:	call   0x555556f51a70 <abort>
Attached file Testcase —

Verified bug as reproducible on mozilla-central 20260603204655-14f381ab3699.
The bug appears to have been introduced in the following build range:

Start: 786b8e8325e27d0a140dee01e8c1ee4d408e39db (20260501155519)
End: 2bd1df969f76b581b333daea253a3c176b9ff9ab (20260501140046)
Pushlog: https://hg.mozilla.org/integration/autoland/pushloghtml?fromchange=786b8e8325e27d0a140dee01e8c1ee4d408e39db&tochange=2bd1df969f76b581b333daea253a3c176b9ff9ab

Whiteboard: [bugmon:update,bisect][fuzzblocker] → [bugmon:update,bisected,confirmed][fuzzblocker]

Bug 2036116 looks like the most GC-related thing in that range.

Blocks: GC
Severity: -- → S3
Priority: -- → P3

This bug prevents fuzzing from making progress; however, it has low severity. It is important for fuzz blocker bugs to be addressed in a timely manner (see here why?).
:gtonietto, could you consider increasing the severity?

For more information, please visit BugBot documentation.

Flags: needinfo?(gtonietto)
Severity: S3 → S2
Flags: needinfo?(gtonietto)

Jon: can we unhide this?

Flags: needinfo?(jcoppeard)

The was a bogus assertion which has been removed in bug 2042768.

Status: NEW → RESOLVED
Closed: 3 months ago
Duplicate of bug: 2042768
Flags: needinfo?(jcoppeard)
Resolution: --- → DUPLICATE
Group: javascript-core-security

No valid actions for resolution (DUPLICATE).
Removing bugmon keyword as no further action possible. Please review the bug and re-add the keyword for further analysis.

Keywords: bugmon
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: