Closed Bug 2014901 Opened 9 months ago Closed 9 months ago

Assertion failure: icScript->findInlinedChild(pcOffset)->active(), at /builds/worker/checkouts/gecko/js/src/jit/JitScript.cpp:793

Categories

(Core :: JavaScript Engine: JIT, defect, P1)

defect

Tracking

()

RESOLVED FIXED
149 Branch
Tracking Status
firefox-esr140 --- unaffected
firefox147 --- unaffected
firefox148 --- unaffected
firefox149 --- fixed

People

(Reporter: tsmith, Assigned: jandem)

References

(Blocks 1 open bug, Regression, )

Details

(Keywords: assertion, pernosco, regression)

Attachments

(1 external file)

Found with m-c 20260204-73cbf17ce89d (--enable-debug)

This was found by visiting a live website with a debug build.

STR:

  • Launch browser and visit site

This issue was triggered by visiting http://gshow.globo.com/. A Pernosco session is available here: https://pernos.co/debug/PK3sYbmmIOKL19-B1l5ABA/index.html

Assertion failure: icScript->findInlinedChild(pcOffset)->active(), at /builds/worker/checkouts/gecko/js/src/jit/JitScript.cpp:793

26|0|libxul.so|js::jit::MarkActiveICScriptsAndCopyStubs(JS::Zone*, js::jit::ICStubSpace&)|git:github.com/mozilla-firefox/firefox:js/src/jit/JitScript.cpp:81cd862538be1cf95842a2ddfb7a5dd22c11ab25|835|0xab3
26|1|libxul.so|JS::Zone::forceDiscardJitCode(JS::GCContext*, JS::Zone::JitDiscardOptions const&)|git:github.com/mozilla-firefox/firefox:js/src/gc/Zone.cpp:81cd862538be1cf95842a2ddfb7a5dd22c11ab25|329|0x16b
26|2|libxul.so|js::gc::GCRuntime::maybeDiscardJitCodeForGC()|git:github.com/mozilla-firefox/firefox:js/src/gc/GC.cpp:81cd862538be1cf95842a2ddfb7a5dd22c11ab25|2774|0x1dc
26|3|libxul.so|js::gc::GCRuntime::endPreparePhase(JS::GCReason)|git:github.com/mozilla-firefox/firefox:js/src/gc/GC.cpp:81cd862538be1cf95842a2ddfb7a5dd22c11ab25|3006|0x741
26|4|libxul.so|js::gc::GCRuntime::incrementalSlice(JS::SliceBudget&, JS::GCReason, bool)|git:github.com/mozilla-firefox/firefox:js/src/gc/GC.cpp:81cd862538be1cf95842a2ddfb7a5dd22c11ab25|4002|0x531
26|5|libxul.so|js::gc::GCRuntime::gcCycle(bool, JS::SliceBudget const&, JS::GCReason)|git:github.com/mozilla-firefox/firefox:js/src/gc/GC.cpp:81cd862538be1cf95842a2ddfb7a5dd22c11ab25|4634|0xa32
26|6|libxul.so|js::gc::GCRuntime::collect(bool, JS::SliceBudget const&, JS::GCReason)|git:github.com/mozilla-firefox/firefox:js/src/gc/GC.cpp:81cd862538be1cf95842a2ddfb7a5dd22c11ab25|4823|0x25a
26|7|libxul.so|js::gc::GCRuntime::gc(JS::GCOptions, JS::GCReason)|git:github.com/mozilla-firefox/firefox:js/src/gc/GC.cpp:81cd862538be1cf95842a2ddfb7a5dd22c11ab25|4903|0xde
26|8|libxul.so|JS::NonIncrementalGC(JSContext*, JS::GCOptions, JS::GCReason)|git:github.com/mozilla-firefox/firefox:js/src/gc/GCAPI.cpp:81cd862538be1cf95842a2ddfb7a5dd22c11ab25|300|0x5f
26|9|libxul.so|mozilla::dom::WorkerPrivate::GarbageCollectInternal(JSContext*, bool, bool)|git:github.com/mozilla-firefox/firefox:dom/workers/WorkerPrivate.cpp:81cd862538be1cf95842a2ddfb7a5dd22c11ab25|6139|0x153
26|10|libxul.so|mozilla::dom::(anonymous namespace)::IdleGCTimerCallback(nsITimer*, void*)|git:github.com/mozilla-firefox/firefox:dom/workers/WorkerPrivate.cpp:81cd862538be1cf95842a2ddfb7a5dd22c11ab25|720|0x33
26|11|libxul.so|nsTimerImpl::Fire(unsigned long)|git:github.com/mozilla-firefox/firefox:xpcom/threads/nsTimerImpl.cpp:81cd862538be1cf95842a2ddfb7a5dd22c11ab25|744|0x247
26|12|libxul.so|nsTimerEvent::Run()|git:github.com/mozilla-firefox/firefox:xpcom/threads/TimerThread.cpp:81cd862538be1cf95842a2ddfb7a5dd22c11ab25|560|0x436
26|13|libxul.so|mozilla::dom::(anonymous namespace)::WrappedDebuggerRunnable::WorkerRun(JSContext*, mozilla::dom::WorkerPrivate*)|git:github.com/mozilla-firefox/firefox:dom/workers/WorkerEventTarget.cpp:81cd862538be1cf95842a2ddfb7a5dd22c11ab25|109|0x12
26|14|libxul.so|mozilla::dom::WorkerThreadRunnable::Run()|git:github.com/mozilla-firefox/firefox:dom/workers/WorkerRunnable.cpp:81cd862538be1cf95842a2ddfb7a5dd22c11ab25|440|0x2fa
26|15|libxul.so|mozilla::dom::WorkerPrivate::ProcessAllControlRunnablesLocked()|git:github.com/mozilla-firefox/firefox:dom/workers/WorkerPrivate.cpp:81cd862538be1cf95842a2ddfb7a5dd22c11ab25|4661|0x19b
26|16|libxul.so|mozilla::dom::WorkerPrivate::InterruptCallback(JSContext*)|git:github.com/mozilla-firefox/firefox:dom/workers/WorkerPrivate.cpp:81cd862538be1cf95842a2ddfb7a5dd22c11ab25|4410|0xa9
26|17|libxul.so|HandleInterrupt(JSContext*, bool, bool)|git:github.com/mozilla-firefox/firefox:js/src/vm/Runtime.cpp:81cd862538be1cf95842a2ddfb7a5dd22c11ab25|429|0x106
26|18|libxul.so|js::jit::CheckOverRecursed(JSContext*)|git:github.com/mozilla-firefox/firefox:js/src/jit/VMFunctions.cpp:81cd862538be1cf95842a2ddfb7a5dd22c11ab25|627|0x45

Jan, this might be related to your changes for bug 2013583.

Flags: needinfo?(jdemooij)

The assertion was checking that if we have a stub frame and we're still doing trial
inlining at that location, the inlined ICScript is marked as active. This is mostly
correct, but didn't handle the case when we have recursive calls and the stub frame
was pushed on the stack before we triggered trial inlining in a younger frame.

Assignee: nobody → jdemooij
Status: NEW → ASSIGNED
Flags: needinfo?(jdemooij)
Keywords: regression
Regressed by: CVE-2026-2766
Severity: -- → S3
Priority: -- → P1
Status: ASSIGNED → RESOLVED
Closed: 9 months ago
Resolution: --- → FIXED
Target Milestone: --- → 149 Branch
QA Whiteboard: [qa-triage-done-c150/b149]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: