Open Bug 2074846 Opened 2 months ago Updated 17 days ago

Assertion failure: IsAncestor(aOne, aTwo) || IsAncestor(aTwo, aOne), at checkouts/gecko/layout/painting/nsDisplayList.h:201

Categories

(Core :: Web Painting, defect, P3)

x86_64
Linux
defect

Tracking

()

Tracking Status
firefox-esr115 --- unaffected
firefox-esr140 --- unaffected
firefox-esr153 --- fix-optional
firefox156 --- wontfix
firefox157 --- wontfix
firefox158 --- wontfix
firefox159 --- fix-optional

People

(Reporter: jkratzer, Assigned: tnikkel)

References

(Blocks 1 open bug, Regression)

Details

(Keywords: regression, testcase, Whiteboard: [bugmon:bisected,confirmed][tracked-in:FFXP-3942])

Attachments

(1 file)

Testcase found while fuzzing mozilla-central rev 6d44638b635c (built with: --enable-debug --enable-fuzzing).

Testcase can be reproduced using the following commands:

$ pip install fuzzfetch grizzly-framework pipx --upgrade
$ python -m pipx ensurepath
$ fuzzfetch --build 6d44638b635c --debug --fuzzing  -n firefox
$ grizzly-replay-bugzilla ./firefox/firefox <bugid>
Assertion failure: IsAncestor(aOne, aTwo) || IsAncestor(aTwo, aOne), at checkouts/gecko/layout/painting/nsDisplayList.h:201

    ==2686707==ERROR: UndefinedBehaviorSanitizer: SEGV on unknown address 0x000000000000 (pc 0x753cb9cc1d10 bp 0x7ffd674ff620 sp 0x7ffd674ff620 T2686707)
    ==2686707==The signal is caused by a WRITE memory access.
    ==2686707==Hint: address points to the zero page.
        #0 0x753cb9cc1d10 in MOZ_CrashSequence /builds/worker/workspace/obj-build/dist/include/mozilla/Assertions.h:261:3
        #1 0x753cb9cc1d10 in mozilla::ActiveScrolledRoot::PickAncestor(mozilla::ActiveScrolledRoot const*, mozilla::ActiveScrolledRoot const*) /builds/worker/workspace/obj-build/layout/painting/./../../../../checkouts/gecko/layout/painting/nsDisplayList.h:201:5
        #2 0x753cb9cf278f in SelectContainerASR /builds/worker/workspace/obj-build/layout/painting/./../../../../checkouts/gecko/layout/painting/RetainedDisplayListBuilder.cpp:377:7
        #3 0x753cb9cf278f in mozilla::MergeState::UpdateContainerASR(mozilla::nsDisplayItem*) /builds/worker/workspace/obj-build/layout/painting/./../../../../checkouts/gecko/layout/painting/RetainedDisplayListBuilder.cpp:651:21
        #4 0x753cb9cf2128 in mozilla::MergeState::AddNewNode(mozilla::nsDisplayItem*, mozilla::Maybe<mozilla::Index<mozilla::OldListUnits>> const&, mozilla::Span<mozilla::Index<mozilla::MergedListUnits> const, 18446744073709551615ul>, mozilla::Maybe<mozilla::Index<mozilla::MergedListUnits>> const&) /builds/worker/workspace/obj-build/layout/painting/./../../../../checkouts/gecko/layout/painting/RetainedDisplayListBuilder.cpp:660:7
        #5 0x753cb9c993c3 in mozilla::MergeState::ProcessItemFromNewList(mozilla::nsDisplayItem*, mozilla::Maybe<mozilla::Index<mozilla::MergedListUnits>> const&) /builds/worker/workspace/obj-build/layout/painting/./../../../../checkouts/gecko/layout/painting/RetainedDisplayListBuilder.cpp:499:17
        #6 0x753cb9c98e85 in mozilla::RetainedDisplayListBuilder::MergeDisplayLists(mozilla::nsDisplayList*, mozilla::RetainedDisplayList*, mozilla::RetainedDisplayList*, mozilla::Maybe<mozilla::ActiveScrolledRoot const*>&, mozilla::nsDisplayItem*) /builds/worker/workspace/obj-build/layout/painting/./../../../../checkouts/gecko/layout/painting/RetainedDisplayListBuilder.cpp:838:31
        #7 0x753cb9cf1a4b in mozilla::MergeState::MergeChildLists(mozilla::nsDisplayItem*, mozilla::nsDisplayItem*, mozilla::nsDisplayItem*) /builds/worker/workspace/obj-build/layout/painting/./../../../../checkouts/gecko/layout/painting/RetainedDisplayListBuilder.cpp:511:37
        #8 0x753cb9c99482 in mozilla::MergeState::ProcessItemFromNewList(mozilla::nsDisplayItem*, mozilla::Maybe<mozilla::Index<mozilla::MergedListUnits>> const&) /builds/worker/workspace/obj-build/layout/painting/./../../../../checkouts/gecko/layout/painting/RetainedDisplayListBuilder.cpp:483:9
        #9 0x753cb9c98e85 in mozilla::RetainedDisplayListBuilder::MergeDisplayLists(mozilla::nsDisplayList*, mozilla::RetainedDisplayList*, mozilla::RetainedDisplayList*, mozilla::Maybe<mozilla::ActiveScrolledRoot const*>&, mozilla::nsDisplayItem*) /builds/worker/workspace/obj-build/layout/painting/./../../../../checkouts/gecko/layout/painting/RetainedDisplayListBuilder.cpp:838:31
        #10 0x753cb9cf1a4b in mozilla::MergeState::MergeChildLists(mozilla::nsDisplayItem*, mozilla::nsDisplayItem*, mozilla::nsDisplayItem*) /builds/worker/workspace/obj-build/layout/painting/./../../../../checkouts/gecko/layout/painting/RetainedDisplayListBuilder.cpp:511:37
        #11 0x753cb9c99482 in mozilla::MergeState::ProcessItemFromNewList(mozilla::nsDisplayItem*, mozilla::Maybe<mozilla::Index<mozilla::MergedListUnits>> const&) /builds/worker/workspace/obj-build/layout/painting/./../../../../checkouts/gecko/layout/painting/RetainedDisplayListBuilder.cpp:483:9
        #12 0x753cb9c98e85 in mozilla::RetainedDisplayListBuilder::MergeDisplayLists(mozilla::nsDisplayList*, mozilla::RetainedDisplayList*, mozilla::RetainedDisplayList*, mozilla::Maybe<mozilla::ActiveScrolledRoot const*>&, mozilla::nsDisplayItem*) /builds/worker/workspace/obj-build/layout/painting/./../../../../checkouts/gecko/layout/painting/RetainedDisplayListBuilder.cpp:838:31
        #13 0x753cb9c9c884 in mozilla::RetainedDisplayListBuilder::AttemptPartialUpdate(unsigned int) /builds/worker/workspace/obj-build/layout/painting/./../../../../checkouts/gecko/layout/painting/RetainedDisplayListBuilder.cpp:1664:9
        #14 0x753cb9964790 in nsLayoutUtils::PaintFrame(gfxContext*, nsIFrame*, nsRegion const&, unsigned int, mozilla::nsDisplayListBuilderMode, nsLayoutUtils::PaintFrameFlags) /builds/worker/workspace/obj-build/layout/base/./../../../../checkouts/gecko/layout/base/nsLayoutUtils.cpp:3253:38
        #15 0x753cb98e5670 in mozilla::PresShell::PaintInternal(nsIFrame*, mozilla::WindowRenderer*, mozilla::PaintInternalFlags) /builds/worker/workspace/obj-build/layout/base/./../../../../checkouts/gecko/layout/base/PresShell.cpp:6812:5
        #16 0x753cb98fcca4 in mozilla::PresShell::PaintSynchronously() /builds/worker/workspace/obj-build/layout/base/./../../../../checkouts/gecko/layout/base/PresShell.cpp:12727:3
        #17 0x753cb989e844 in nsRefreshDriver::PaintIfNeeded() /layout/base/nsRefreshDriver.cpp:2667:9
        #18 0x753cb989e0b7 in operator() /layout/base/nsRefreshDriver.cpp:2582:60
        #19 0x753cb989e0b7 in void nsRefreshDriver::RunRenderingPhaseLegacy<nsRefreshDriver::Tick(mozilla::layers::BaseTransactionId<mozilla::VsyncIdType>, mozilla::TimeStamp, nsRefreshDriver::IsExtraTick)::$_14>(mozilla::RenderingPhase, nsRefreshDriver::Tick(mozilla::layers::BaseTransactionId<mozilla::VsyncIdType>, mozilla::TimeStamp, nsRefreshDriver::IsExtraTick)::$_14&&) /layout/base/nsRefreshDriver.cpp:1281:3
        #20 0x753cb9897740 in nsRefreshDriver::Tick(mozilla::layers::BaseTransactionId<mozilla::VsyncIdType>, mozilla::TimeStamp, nsRefreshDriver::IsExtraTick) /layout/base/nsRefreshDriver.cpp:2580:3
        #21 0x753cb98a468f in operator() /layout/base/nsRefreshDriver.cpp:1818:25
        #22 0x753cb98a468f in mozilla::detail::RunnableFunction<nsRefreshDriver::EnsureTimerStarted(nsRefreshDriver::EnsureTimerStartedFlags)::$_1>::Run() /builds/worker/workspace/obj-build/dist/include/nsThreadUtils.h:535:5
        #23 0x753cb3e780d7 in mozilla::RunnableTask::Run() /builds/worker/workspace/obj-build/xpcom/threads/./../../../../checkouts/gecko/xpcom/threads/TaskController.cpp:721:16
        #24 0x753cb3e6d055 in mozilla::TaskController::DoExecuteNextTaskOnlyMainThreadInternal(mozilla::detail::BaseAutoLock<mozilla::Mutex&> const&) /builds/worker/workspace/obj-build/xpcom/threads/./../../../../checkouts/gecko/xpcom/threads/TaskController.cpp:1367:20
        #25 0x753cb3e6bbb7 in mozilla::TaskController::ExecuteNextTaskOnlyMainThreadInternal(mozilla::detail::BaseAutoLock<mozilla::Mutex&> const&) /builds/worker/workspace/obj-build/xpcom/threads/./../../../../checkouts/gecko/xpcom/threads/TaskController.cpp:1190:15
        #26 0x753cb3e6c025 in mozilla::TaskController::ProcessPendingMTTask(bool) /builds/worker/workspace/obj-build/xpcom/threads/./../../../../checkouts/gecko/xpcom/threads/TaskController.cpp:657:36
        #27 0x753cb3e777f6 in operator() /builds/worker/workspace/obj-build/xpcom/threads/./../../../../checkouts/gecko/xpcom/threads/TaskController.cpp:349:37
        #28 0x753cb3e777f6 in mozilla::detail::RunnableFunction<mozilla::TaskController::TaskController()::$_0>::Run() /xpcom/threads/nsThreadUtils.h:535:5
        #29 0x753cb3e8d053 in nsThread::ProcessNextEvent(bool, bool*) /builds/worker/workspace/obj-build/xpcom/threads/./../../../../checkouts/gecko/xpcom/threads/nsThread.cpp:1319:16
        #30 0x753cb3e9292f in NS_ProcessNextEvent(nsIThread*, bool) /builds/worker/workspace/obj-build/xpcom/threads/./../../../../checkouts/gecko/xpcom/threads/nsThreadUtils.cpp:471:32
        #31 0x753cb3fab0c5 in mozilla::ipc::MessagePump::Run(base::MessagePump::Delegate*) /builds/worker/workspace/obj-build/ipc/glue/./../../../../checkouts/gecko/ipc/glue/MessagePump.cpp:83:21
        #32 0x753cb3f06181 in RunHandler /builds/worker/workspace/obj-build/ipc/chromium/./../../../../checkouts/gecko/ipc/chromium/src/base/message_loop.cc:364:3
        #33 0x753cb3f06181 in MessageLoop::Run() /builds/worker/workspace/obj-build/ipc/chromium/./../../../../checkouts/gecko/ipc/chromium/src/base/message_loop.cc:346:3
        #34 0x753cb9449548 in nsBaseAppShell::Run() /builds/worker/workspace/obj-build/widget/./../../../checkouts/gecko/widget/nsBaseAppShell.cpp:151:27
        #35 0x753cb952bbf4 in nsAppShell::Run() /builds/worker/workspace/obj-build/widget/gtk/./../../../../checkouts/gecko/widget/gtk/nsAppShell.cpp:580:33
        #36 0x753cba5c93ab in XRE_RunAppShell() /toolkit/xre/nsEmbedFunctions.cpp:644:20
        #37 0x753cb3fabf74 in mozilla::ipc::MessagePumpForChildProcess::Run(base::MessagePump::Delegate*) /builds/worker/workspace/obj-build/ipc/glue/./../../../../checkouts/gecko/ipc/glue/MessagePump.cpp:233:19
        #38 0x753cb3f06181 in RunHandler /builds/worker/workspace/obj-build/ipc/chromium/./../../../../checkouts/gecko/ipc/chromium/src/base/message_loop.cc:364:3
        #39 0x753cb3f06181 in MessageLoop::Run() /builds/worker/workspace/obj-build/ipc/chromium/./../../../../checkouts/gecko/ipc/chromium/src/base/message_loop.cc:346:3
        #40 0x753cba5c8af4 in XRE_InitChildProcess(int, char**, XREChildData const*) /toolkit/xre/nsEmbedFunctions.cpp:582:34
        #41 0x63059f4470ac in main /browser/app/nsBrowserApp.cpp:469:22
        #42 0x753cc5c2a1c9 in __libc_start_call_main ./csu/../sysdeps/nptl/libc_start_call_main.h:58:16
        #43 0x753cc5c2a28a in __libc_start_main ./csu/../csu/libc-start.c:360:3
        #44 0x63059f41a5e8 in _start ??:0:0
    
    ==2686707==Register values:
    rax = 0x0000000000000000  rbx = 0x00007ffd674ff780  rcx = 0x00000000000000c9  rdx = 0x0000753cc5e05563
    rdi = 0x0000753cc5e06700  rsi = 0x0000000000000000  rbp = 0x00007ffd674ff620  rsp = 0x00007ffd674ff620
     r8 = 0x0000000000000000   r9 = 0x0000000000000003  r10 = 0x0000000000000002  r11 = 0x0000000000000293
    r12 = 0x00007ffd674ff780  r13 = 0x00006305bdcd9330  r14 = 0x0000000000000004  r15 = 0x0000000000000000
    UndefinedBehaviorSanitizer can not provide additional info.
    SUMMARY: UndefinedBehaviorSanitizer: SEGV (/home/jkratzer/builds/m-c-20260923091338-fuzzing-debug/libxul.so+0xb2c1d10) (BuildId: 60f654969ba3d13419eb385b9c6546a9e0b11357)
    ==2686707==ABORTING
Attached file Testcase —

Uses position sticky.

See Also: → 2000312

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

:botond, since you are the author of the regressor, bug 1730749, could you take a look? Also, could you set the severity field?

For more information, please visit BugBot documentation.

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

Start: 524a7cb7683b8b073da891ac6266d85d23da805d (20260126151042)
End: fcad94c3a8e858a93e1fc2bc6e405846f526e8a8 (20260126213906)
Pushlog: https://hg.mozilla.org/integration/autoland/pushloghtml?fromchange=524a7cb7683b8b073da891ac6266d85d23da805d&tochange=fcad94c3a8e858a93e1fc2bc6e405846f526e8a8

Whiteboard: [bugmon:confirm] → [bugmon:bisected,confirmed]

Thanks for the report. We'll track this in FFXP-3942 (APZ 2026 H2 Maintenance Quick Fixes) alongside bug 2000312.

Flags: needinfo?(botond)
Whiteboard: [bugmon:bisected,confirmed] → [bugmon:bisected,confirmed][tracked-in:FFXP-3942]
Severity: -- → S3
Priority: -- → P3

I think I know what's going on here.

Assignee: nobody → tnikkel

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

Testcase crashes using the initial build (mozilla-central 20260923091338-6d44638b635c) but not with tip (mozilla-central 20261113211532-a05145e48701.)

Unable to bisect testcase (End build crashes!):

Start: 6d44638b635cbd69b01e21aeb96eddffcf33db0a (20260923091338)
End: a05145e48701d1e9f3a7d30b123cf699f3d006c5 (20261113211532)
BuildFlags: BuildFlags(asan=False, tsan=False, debug=True, fuzzing=True, coverage=False, valgrind=False, no_opt=False, fuzzilli=False, nyx=False, searchfox=False, afl=False)

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: