Assertion failure: !IsDeadProxyObject(wrappedDebugger), at js/src/debugger/Debugger.cpp:455
Categories
(Core :: JavaScript Engine, defect, P1)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox-esr115 | --- | unaffected |
| firefox-esr140 | 147+ | fixed |
| firefox145 | --- | unaffected |
| firefox146 | --- | wontfix |
| firefox147 | --- | verified |
People
(Reporter: decoder, Assigned: jonco)
References
(Regression)
Details
(5 keywords, Whiteboard: [bugmon:update,bisected,confirmed] [adv-main147+r] [adv-esr140.7+r])
Attachments
(2 files, 2 external files)
The following testcase crashes on mozilla-central revision 20251128-1ee69c5b61db (debug build, run with --fuzzing-safe --cpu-count=2 --ion-offthread-compile=off):
var dbgA = new Debugger;
var g1 = newGlobal({newCompartment: true});
g1.eval('function g1f() { print("Weltuntergang"); }');
var DOAg1 = dbgA.addDebuggee(g1);
var DOAg1f = DOAg1.getOwnPropertyDescriptor('g1f').value;
DOAg1f.script.setBreakpoint(0, { hit: () => { logA += '1'; } });
gczeal(2,1)
class Base { }
recomputeWrappers();
Backtrace:
received signal SIGSEGV, Segmentation fault.
#0 0x00005555577b0a20 in js::Breakpoint::trace(JSTracer*) ()
#1 0x00005555577b153b in js::JSBreakpointSite::trace(JSTracer*) ()
#2 0x00005555577ad1db in js::DebugScriptObject::trace(JSTracer*, JSObject*) ()
#3 0x0000555557ab001b in CallTraceHook(JSTracer*, JSObject*) ()
#4 0x0000555557a85f9c in bool js::GCMarker::processMarkStackTop<4u>(JS::SliceBudget&) ()
#5 0x0000555557aadbc2 in bool js::GCMarker::markOneColor<4u, (js::gc::MarkColor)2>(JS::SliceBudget&) ()
#6 0x0000555557a83c24 in bool js::GCMarker::doMarking<4u>(JS::SliceBudget&, js::gc::ShouldReportMarkTime) ()
#7 0x0000555557a5b344 in js::GCMarker::markUntilBudgetExhausted(JS::SliceBudget&, js::gc::ShouldReportMarkTime) ()
#8 0x0000555557ae1e6c in js::gc::IncrementalProgress js::gc::GCRuntime::markWeakReferences<js::gc::SweepGroupZonesIter>(JS::SliceBudget&) ()
#9 0x0000555557ae8651 in js::gc::GCRuntime::endMarkingSweepGroup(JS::GCContext*, JS::SliceBudget&) ()
#10 0x0000555557b2381c in sweepaction::SweepActionSequence::run(js::gc::SweepAction::Args&) ()
#11 0x0000555557b10739 in sweepaction::SweepActionForEach<js::gc::SweepGroupsIter, JSRuntime*>::run(js::gc::SweepAction::Args&) ()
#12 0x0000555557af44f9 in js::gc::GCRuntime::performSweepActions(JS::SliceBudget&) ()
#13 0x0000555557a5fe66 in js::gc::GCRuntime::incrementalSlice(JS::SliceBudget&, JS::GCReason, bool) ()
#14 0x0000555557a63e63 in js::gc::GCRuntime::gcCycle(bool, JS::SliceBudget const&, JS::GCReason) ()
#15 0x0000555557a657cb in js::gc::GCRuntime::collect(bool, JS::SliceBudget const&, JS::GCReason) ()
#16 0x0000555557a4b017 in js::gc::GCRuntime::gc(JS::GCOptions, JS::GCReason) ()
#17 0x0000555557a69d54 in js::gc::GCRuntime::runDebugGC() ()
#18 0x00005555570a9111 in void* js::gc::CellAllocator::AllocNurseryOrTenuredCell<(JS::TraceKind)0, (js::AllowGC)1>(JSContext*, js::gc::AllocKind, unsigned long, js::gc::Heap, js::gc::AllocSite*) ()
#19 0x00005555570a8f0e in js::NativeObject* js::gc::CellAllocator::NewObject<js::NativeObject, (js::AllowGC)1>(JSContext*, js::gc::AllocKind, js::gc::Heap, JSClass const*, js::gc::AllocSite*) ()
#20 0x0000555557451cb1 in js::ProxyObject::New(JSContext*, js::BaseProxyHandler const*, JS::Handle<JS::Value>, js::TaggedProto, JSClass const*) ()
#21 0x000055555776a20b in js::NewProxyObject(JSContext*, js::BaseProxyHandler const*, JS::Handle<JS::Value>, JSObject*, js::ProxyOptions const&) ()
#22 0x000055555777f2fe in js::Wrapper::New(JSContext*, JSObject*, js::Wrapper const*, js::WrapperOptions const&) ()
#23 0x00005555577805d7 in js::TransparentObjectWrapper(JSContext*, JS::Handle<JSObject*>, JS::Handle<JSObject*>) ()
#24 0x000055555724248e in JS::Compartment::getOrCreateWrapper(JSContext*, JS::Handle<JSObject*>, JS::MutableHandle<JSObject*>) ()
#25 0x0000555557242bb9 in JS::Compartment::rewrap(JSContext*, JS::MutableHandle<JSObject*>, JS::Handle<JSObject*>) ()
#26 0x00005555577643a1 in js::RemapDeadWrapper(JSContext*, JS::Handle<JSObject*>, JS::Handle<JSObject*>) ()
#27 0x0000555557763e76 in js::RemapWrapper(JSContext*, JSObject*, JSObject*) ()
#28 0x0000555557765218 in js::RecomputeWrappers(JSContext*, js::CompartmentFilter const&, js::CompartmentFilter const&) ()
#29 0x0000555556fb4e8d in RecomputeWrappers(JSContext*, unsigned int, JS::Value*) ()
#30 0x00005555570fa285 in CallJSNative(JSContext*, bool (*)(JSContext*, unsigned int, JS::Value*), js::CallReason, JS::CallArgs const&) ()
[...]
#41 0x0000555556f76978 in main ()
rax 0x0 0
rbx 0x7fffee22b040 140737188638784
rcx 0x1c7 455
rdx 0x7ffff7804563 140737345766755
rsi 0x0 0
rdi 0x7ffff7805700 140737345771264
rbp 0x7fffffffb800 140737488336896
rsp 0x7fffffffb7e0 140737488336864
r8 0x0 0
r9 0x3 3
r10 0x2 2
r11 0x293 659
r12 0x7fffffffbda0 140737488338336
r13 0x7fffee22b080 140737188638848
r14 0x7fffee22a4c0 140737188635840
r15 0x7fffee22a4c0 140737188635840
rip 0x5555577b0a20 <js::Breakpoint::trace(JSTracer*)+160>
=> 0x5555577b0a20 <_ZN2js10Breakpoint5traceEP8JSTracer+160>: mov %rcx,(%rax)
0x5555577b0a23 <_ZN2js10Breakpoint5traceEP8JSTracer+163>: call 0x5555570151b0 <abort>
| Reporter | ||
Comment 1•1 year ago
|
||
| Reporter | ||
Comment 2•1 year ago
|
||
| Reporter | ||
Comment 3•1 year ago
|
||
This bug was originally discovered on Sat, 22 Nov 2025 08:50:38 +0000 but that report's testcase reduced to bug 2001969. After that bug is resolved, we still had a new report for this bug in FuzzManager with the test above.
Comment 4•1 year ago
|
||
Verified bug as reproducible on mozilla-central 20251129091101-5d9afcd27956.
The bug appears to have been introduced in the following build range:
Start: 561083a968493a9c32eeae91632396c4ab535923 (20251119132251)
End: e4b3aaadb10a910e2cceb178858d6650fd7fb5c8 (20251119144711)
Pushlog: https://hg.mozilla.org/integration/autoland/pushloghtml?fromchange=561083a968493a9c32eeae91632396c4ab535923&tochange=e4b3aaadb10a910e2cceb178858d6650fd7fb5c8
Comment 5•1 year ago
|
||
Set release status flags based on info from the regressing bug 1999464
:jonco, since you are the author of the regressor, bug 1999464, could you take a look? Also, could you set the severity field?
For more information, please visit BugBot documentation.
| Assignee | ||
Updated•1 year ago
|
| Assignee | ||
Comment 7•1 year ago
|
||
We rely on tracing a CCW to the debugger from a script with a breakpoint that's
in another compartment. The problem here is that wrapper remapping can trigger
a GC after nuking the original CCW but before remapping is complete, meaning
that we wouldn't trace the debugger target in this case.
The patch suppresses GC during remapping.
Updated•1 year ago
|
Updated•1 year ago
|
Comment 9•1 year ago
|
||
Comment 10•1 year ago
|
||
Verified bug as fixed on rev mozilla-central 20251202211324-8d7ce95293b5.
Removing bugmon keyword as no further action possible. Please review the bug and re-add the keyword for further analysis.
| Assignee | ||
Comment 11•11 months ago
|
||
We rely on tracing a CCW to the debugger from a script with a breakpoint that's
in another compartment. The problem here is that wrapper remapping can trigger
a GC after nuking the original CCW but before remapping is complete, meaning
that we wouldn't trace the debugger target in this case.
The patch suppresses GC during remapping.
Original Revision: https://phabricator.services.mozilla.com/D274575
Updated•11 months ago
|
Updated•11 months ago
|
Updated•11 months ago
|
Updated•11 months ago
|
Comment 12•11 months ago
|
||
| uplift | ||
Updated•11 months ago
|
Updated•11 months ago
|
Updated•11 months ago
|
Updated•6 months ago
|
Description
•