Closed Bug 2094903 Opened 6 days ago Closed 5 days ago

Hit MOZ_CRASH(Resolving style on unstyled element) at servo/ports/geckolib/glue.rs:7285

Categories

(Core :: CSS Parsing and Computation, defect, P3)

defect

Tracking

()

VERIFIED FIXED
163 Branch
Tracking Status
firefox-esr115 --- unaffected
firefox-esr153 --- wontfix
firefox160 --- wontfix
firefox161 --- wontfix
firefox162 --- wontfix
firefox163 --- verified

People

(Reporter: tsmith, Assigned: emilio)

References

(Blocks 1 open bug, Regression)

Details

(4 keywords, Whiteboard: [bugmon:bisected,confirmed])

Attachments

(1 file, 1 external file)

Attached file testcase.html —

Found while fuzzing m-c 20260919-8e40c4fb7992 (--enable-debug --enable-fuzzing)

To reproduce via Grizzly Replay:

$ pip install fuzzfetch grizzly-framework --upgrade
$ python -m fuzzfetch -d --fuzzing -n firefox
$ python -m grizzly.replay.bugzilla ./firefox/firefox <bugid>

Hit MOZ_CRASH(Resolving style on unstyled element) at servo/ports/geckolib/glue.rs:7285

#0 0x7ffff00529ef in MOZ_CrashSequence /builds/worker/workspace/obj-build/dist/include/mozilla/Assertions.h:261:3
#1 0x7ffff00529ef in MOZ_Crash /builds/worker/workspace/obj-build/dist/include/mozilla/Assertions.h:402:3
#2 0x7ffff00529ef in RustMozCrash /builds/worker/checkouts/gecko/mozglue/static/rust/wrappers.cpp:17:3
#3 0x7ffff0052171 in mozglue_static::panic_hook /builds/worker/checkouts/gecko/mozglue/static/rust/lib.rs:99:9
#4 0x7ffff005297b in <mozglue_static::panic_hook as core::ops::function::Fn<(&std::panic::PanicHookInfo,)>>::call /builds/worker/fetches/rustc/lib/rustlib/src/rust/library/core/src/ops/function.rs:79:5
#5 0x7ffff1cb5d41 in <alloc::boxed::Box<dyn for<'a, 'b> core::ops::function::Fn<(&'a std::panic::PanicHookInfo<'b>,), Output = ()> + core::marker::Sync + core::marker::Send> as core::ops::function::Fn<(&std::panic::PanicHookInfo,)>>::call /rustc/59807616e1fa2540724bfbac14d7976d7e4a3860/library/alloc/src/boxed.rs:2254:9
#6 0x7ffff1cb5d41 in std::panicking::panic_with_hook /rustc/59807616e1fa2540724bfbac14d7976d7e4a3860/library/std/src/panicking.rs:833:13
#7 0x7ffff1ca19d7 in std::panicking::panic_handler::{closure#0} /rustc/59807616e1fa2540724bfbac14d7976d7e4a3860/library/std/src/panicking.rs:698:13
#8 0x7ffff1c98f38 in std::sys::backtrace::__rust_end_short_backtrace::<std::panicking::panic_handler::{closure#0}, !> /rustc/59807616e1fa2540724bfbac14d7976d7e4a3860/library/std/src/sys/backtrace.rs:182:18
#9 0x7ffff1ca261c in __rustc::rust_begin_unwind /rustc/59807616e1fa2540724bfbac14d7976d7e4a3860/library/std/src/panicking.rs:689:5
#10 0x7ffff1cd9d2b in core::panicking::panic_fmt /rustc/59807616e1fa2540724bfbac14d7976d7e4a3860/library/core/src/panicking.rs:80:14
#11 0x7ffff1cd99f3 in core::panicking::panic_display::<&str> /rustc/59807616e1fa2540724bfbac14d7976d7e4a3860/library/core/src/panicking.rs:259:5
#12 0x7ffff1cd99f3 in core::option::expect_failed /rustc/59807616e1fa2540724bfbac14d7976d7e4a3860/library/core/src/option.rs:2245:5
#13 0x7ffff128f3cf in core::option::Option$LT$T$GT$::expect::h6c14c58e787bfcaf /builds/worker/fetches/rustc/lib/rustlib/src/rust/library/core/src/option.rs:971:21
#14 0x7ffff128f3cf in Servo_ResolveStyle /builds/worker/checkouts/gecko/servo/ports/geckolib/glue.rs:7285:10
#15 0x7fffeb2a5fc4 in ResolveServoStyle /builds/worker/workspace/obj-build/dist/include/mozilla/ServoStyleSetInlines.h:20:10
#16 0x7fffeb2a5fc4 in nsCSSFrameConstructor::ResolveComputedStyle(nsIContent*) /builds/worker/workspace/obj-build/layout/base/./../../../../checkouts/gecko/layout/base/nsCSSFrameConstructor.cpp:4387:12
#17 0x7fffeb2a779f in nsCSSFrameConstructor::AddFrameConstructionItems(nsFrameConstructorState&, nsIContent*, bool, mozilla::ComputedStyle const&, nsCSSFrameConstructor::InsertionPoint const&, nsCSSFrameConstructor::FrameConstructionItemList&, mozilla::EnumSet<nsCSSFrameConstructor::ItemFlag, unsigned char>) /builds/worker/workspace/obj-build/layout/base/./../../../../checkouts/gecko/layout/base/nsCSSFrameConstructor.cpp:4906:41
#18 0x7fffeb29b571 in nsCSSFrameConstructor::ProcessChildren(nsFrameConstructorState&, nsIContent*, mozilla::ComputedStyle*, nsContainerFrame*, bool, nsFrameList&, bool, nsIFrame*) /builds/worker/workspace/obj-build/layout/base/./../../../../checkouts/gecko/layout/base/nsCSSFrameConstructor.cpp:9208:9
#19 0x7fffeb29f757 in nsCSSFrameConstructor::ConstructBlock(nsFrameConstructorState&, nsIContent*, nsContainerFrame*, nsContainerFrame*, mozilla::ComputedStyle*, nsContainerFrame**, nsFrameList&, nsIFrame*) /builds/worker/workspace/obj-build/layout/base/./../../../../checkouts/gecko/layout/base/nsCSSFrameConstructor.cpp:10105:3
#20 0x7fffeb2a188c in nsCSSFrameConstructor::ConstructScrollableBlockWithScrollContainer(nsFrameConstructorState&, nsCSSFrameConstructor::FrameConstructionItem&, nsContainerFrame*, nsStyleDisplay const*, nsFrameList&, nsContainerFrame*&) /builds/worker/workspace/obj-build/layout/base/./../../../../checkouts/gecko/layout/base/nsCSSFrameConstructor.cpp:4346:3
#21 0x7fffeb2a1a0f in nsCSSFrameConstructor::ConstructTextControl(nsFrameConstructorState&, nsCSSFrameConstructor::FrameConstructionItem&, nsContainerFrame*, nsStyleDisplay const*, nsFrameList&) /builds/worker/workspace/obj-build/layout/base/./../../../../checkouts/gecko/layout/base/nsCSSFrameConstructor.cpp:3006:3
#22 0x7fffeb2a4596 in nsCSSFrameConstructor::ConstructFrameFromItemInternal(nsCSSFrameConstructor::FrameConstructionItem&, nsFrameConstructorState&, nsContainerFrame*, nsFrameList&) /builds/worker/workspace/obj-build/layout/base/./../../../../checkouts/gecko/layout/base/nsCSSFrameConstructor.cpp:3682:16
#23 0x7fffeb2a868f in nsCSSFrameConstructor::ConstructFramesFromItem(nsFrameConstructorState&, nsCSSFrameConstructor::FrameConstructionItemList::Iterator&, nsContainerFrame*, nsFrameList&) /builds/worker/workspace/obj-build/layout/base/./../../../../checkouts/gecko/layout/base/nsCSSFrameConstructor.cpp:5313:3
#24 0x7fffeb29a245 in nsCSSFrameConstructor::ConstructFramesFromItemList(nsFrameConstructorState&, nsCSSFrameConstructor::FrameConstructionItemList&, nsContainerFrame*, bool, nsFrameList&) /builds/worker/workspace/obj-build/layout/base/./../../../../checkouts/gecko/layout/base/nsCSSFrameConstructor.cpp:8928:5
#25 0x7fffeb29b72f in nsCSSFrameConstructor::ProcessChildren(nsFrameConstructorState&, nsIContent*, mozilla::ComputedStyle*, nsContainerFrame*, bool, nsFrameList&, bool, nsIFrame*) /builds/worker/workspace/obj-build/layout/base/./../../../../checkouts/gecko/layout/base/nsCSSFrameConstructor.cpp:9231:3
#26 0x7fffeb29f757 in nsCSSFrameConstructor::ConstructBlock(nsFrameConstructorState&, nsIContent*, nsContainerFrame*, nsContainerFrame*, mozilla::ComputedStyle*, nsContainerFrame**, nsFrameList&, nsIFrame*) /builds/worker/workspace/obj-build/layout/base/./../../../../checkouts/gecko/layout/base/nsCSSFrameConstructor.cpp:10105:3
#27 0x7fffeb29dc39 in nsCSSFrameConstructor::ConstructDocElementFrame(mozilla::dom::Element*) /builds/worker/workspace/obj-build/layout/base/./../../../../checkouts/gecko/layout/base/nsCSSFrameConstructor.cpp:2490:5
#28 0x7fffeb2ac877 in nsCSSFrameConstructor::ContentRangeInserted(nsIContent*, nsIContent*, nsCSSFrameConstructor::InsertionKind, nsCSSFrameConstructor::SameInsertionPoint) /builds/worker/workspace/obj-build/layout/base/./../../../../checkouts/gecko/layout/base/nsCSSFrameConstructor.cpp:6208:9
#29 0x7fffeb248a45 in mozilla::PresShell::Initialize() /builds/worker/workspace/obj-build/layout/base/./../../../../checkouts/gecko/layout/base/PresShell.cpp:1729:26
#30 0x7fffeb694d7f in nsPrintJob::ReflowPrintObject(std::unique_ptr<nsPrintObject, std::default_delete<nsPrintObject>> const&) /builds/worker/workspace/obj-build/layout/printing/./../../../../checkouts/gecko/layout/printing/nsPrintJob.cpp:1360:28
#31 0x7fffeb6943c1 in nsPrintJob::ReflowDocList(std::unique_ptr<nsPrintObject, std::default_delete<nsPrintObject>> const&) /builds/worker/workspace/obj-build/layout/printing/./../../../../checkouts/gecko/layout/printing/nsPrintJob.cpp:981:11
#32 0x7fffeb6919e6 in nsPrintJob::InitPrintDocConstruction(bool) /builds/worker/workspace/obj-build/layout/printing/./../../../../checkouts/gecko/layout/printing/nsPrintJob.cpp:1022:13
#33 0x7fffeb6908bf in nsPrintJob::DoCommonPrint(bool, nsIPrintSettings*, nsIWebProgressListener*, mozilla::dom::Document&) /builds/worker/workspace/obj-build/layout/printing/./../../../../checkouts/gecko/layout/printing/nsPrintJob.cpp:445:3
#34 0x7fffeb691c83 in CommonPrint /builds/worker/workspace/obj-build/layout/printing/./../../../../checkouts/gecko/layout/printing/nsPrintJob.cpp:333:17
#35 0x7fffeb691c83 in nsPrintJob::PrintPreview(mozilla::dom::Document&, nsIPrintSettings*, nsIWebProgressListener*, std::function<void (mozilla::dom::PrintPreviewResultInfo const&)>&&) /builds/worker/workspace/obj-build/layout/printing/./../../../../checkouts/gecko/layout/printing/nsPrintJob.cpp:466:17
#36 0x7fffeb2c5f6b in nsDocumentViewer::PrintPreview(nsIPrintSettings*, nsIWebProgressListener*, std::function<void (mozilla::dom::PrintPreviewResultInfo const&)>&&) /builds/worker/workspace/obj-build/layout/base/./../../../../checkouts/gecko/layout/base/nsDocumentViewer.cpp:2430:27
#37 0x7fffe6d7258d in nsGlobalWindowOuter::Print(nsIPrintSettings*, mozilla::layout::RemotePrintJobChild*, nsIWebProgressListener*, nsIDocShell*, nsGlobalWindowOuter::IsPreview, nsGlobalWindowOuter::IsForWindowDotPrint, std::function<void (mozilla::dom::PrintPreviewResultInfo const&)>&&, RefPtr<mozilla::dom::BrowsingContext>*, mozilla::ErrorResult&) /builds/worker/checkouts/gecko/dom/base/nsGlobalWindowOuter.cpp:5277:33
#38 0x7fffe6d297d2 in nsGlobalWindowInner::PrintPreview(nsIPrintSettings*, nsIWebProgressListener*, nsIDocShell*, mozilla::ErrorResult&) /builds/worker/checkouts/gecko/dom/base/nsGlobalWindowInner.cpp:4093:7
#39 0x7fffe7f87ea6 in mozilla::dom::Window_Binding::printPreview(JSContext*, JS::Handle<JSObject*>, void*, JSJitMethodCallArgs const&) /builds/worker/workspace/obj-build/dom/bindings/./WindowBinding.cpp:4238:59
#40 0x7fffe83d9822 in bool mozilla::dom::binding_detail::GenericMethod<mozilla::dom::binding_detail::MaybeCrossOriginObjectThisPolicy, mozilla::dom::binding_detail::ThrowExceptions>(JSContext*, unsigned int, JS::Value*) /builds/worker/workspace/obj-build/dom/bindings/./../../../../checkouts/gecko/dom/bindings/BindingUtils.cpp:3208:13
#41 0x7fffed448e76 in CallJSNative(JSContext*, bool (*)(JSContext*, unsigned int, JS::Value*), js::CallReason, JS::CallArgs const&, bool) /builds/worker/checkouts/gecko/js/src/vm/Interpreter.cpp:530:13
#42 0x7fffed448713 in js::InternalCallOrConstruct(JSContext*, JS::CallArgs const&, js::MaybeConstruct, js::CallReason) /builds/worker/checkouts/gecko/js/src/vm/Interpreter.cpp:628:12
#43 0x7fffec9a6f4c in js::jit::DoCallFallback(JSContext*, js::jit::BaselineFrame*, js::jit::ICFallbackStub*, unsigned int, JS::Value*, JS::MutableHandle<JS::Value>) /builds/worker/workspace/obj-build/js/src/jit/./../../../../../checkouts/gecko/js/src/jit/BaselineIC.cpp:1718:10
#44 0x32cbf3a3856d  ([anon:js-executable-memory]+0xc56d)
Assignee: nobody → emilio
Status: NEW → ASSIGNED

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

Start: 64b3c91301e828515c9f7d6d6ff8bf5e0f15a47e (20260219215206)
End: abf3d62a59080fe0923c5e3865c94504095ddc02 (20260220092058)
Pushlog: https://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=64b3c91301e828515c9f7d6d6ff8bf5e0f15a47e&tochange=abf3d62a59080fe0923c5e3865c94504095ddc02

Keywords: regression
Whiteboard: [bugmon:bisected,confirmed]

Based on comment #2, this bug contains a bisection range found by bugmon. However, the Regressed by field is still not filled.

:emilio, if possible, could you fill the Regressed by field and investigate this regression?

For more information, please visit BugBot documentation.

Flags: needinfo?(emilio)
Severity: -- → S3
Flags: needinfo?(emilio)
Priority: -- → P3
Regressed by: 2017711

Set release status flags based on info from the regressing bug 2017711

Status: ASSIGNED → RESOLVED
Closed: 5 days ago
Resolution: --- → FIXED
Target Milestone: --- → 163 Branch
Pushed by smolnar@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/8f6ca2619683 https://hg.mozilla.org/integration/autoland/rev/2e632eadd1d3 Revert "Bug 2094903 - Create UA shadow tree if needed before static-cloning. r=layout-reviewers,jwatt" for causint wpt leackcheck failures
Status: RESOLVED → REOPENED
Flags: needinfo?(emilio)
Resolution: FIXED → ---
Target Milestone: 163 Branch → ---

Set release status flags based on info from the regressing bug 2017711

I removed the test for now.

Flags: needinfo?(emilio)
Pushed by sstanca@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/b20c7dcdfa58 https://hg.mozilla.org/integration/autoland/rev/87f79728cbcf Revert "Bug 2094903 - Create UA shadow tree if needed before static-cloning. r=layout-reviewers,jwatt" for causing macOS wpt failures in textarea-insertfrompaste-type-inputevent-data.html.

Reverted this because it was causing macOS wpt failures in textarea-insertfrompaste-type-inputevent-data.html.

  • Revert link
  • Push with failures
  • Failure Log
  • Failure line: TEST-UNEXPECTED-FAIL | /input-events/textarea-insertfrompaste-type-inputevent-data.html | Input event data for inputType insertFromPaste should be set - assert_equals: expected (string) "Copying" but got (undefined) undefined
Flags: needinfo?(emilio)

I assume that means it wasn't my patch :)

Flags: needinfo?(emilio)
Status: REOPENED → RESOLVED
Closed: 5 days ago → 5 days ago
Resolution: --- → FIXED
Target Milestone: --- → 163 Branch

Verified bug as fixed on rev mozilla-central 20261119211919-55b1289e3236.
Removing bugmon keyword as no further action possible. Please review the bug and re-add the keyword for further analysis.

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

Attachment

General

Created:
Updated:
Size: