Assertion failure: length (This doesn't handle none / auto), at /layout/generic/nsIFrame.h:5044
Categories
(Core :: Layout, defect)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox147 | --- | verified |
People
(Reporter: jkratzer, Assigned: dshin, NeedInfo)
References
(Blocks 1 open bug)
Details
(Keywords: pernosco, testcase, Whiteboard: [bugmon:bisected,confirmed], [anchorpositioning:m2], [wptsync upstream])
Attachments
(1 file, 1 external file)
|
183 bytes,
text/html
|
Details |
Testcase found while fuzzing mozilla-central rev 57ecaf4b76dc (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 57ecaf4b76dc --debug --fuzzing -n firefox
$ grizzly-replay-bugzilla ./firefox/firefox <bugid>
Assertion failure: length (This doesn't handle none / auto), at /layout/generic/nsIFrame.h:5044
==41182==ERROR: UndefinedBehaviorSanitizer: SEGV on unknown address 0x000000000000 (pc 0x7b98b2413f22 bp 0x7ffdf4e8e8a0 sp 0x7ffdf4e8e840 T41182)
==41182==The signal is caused by a WRITE memory access.
==41182==Hint: address points to the zero page.
#0 0x7b98b2413f22 in MOZ_CrashSequence /builds/worker/workspace/obj-build/dist/include/mozilla/Assertions.h:237:3
#1 0x7b98b2413f22 in nsIFrame::ISizeComputationResult nsIFrame::ComputeISizeValue<mozilla::StyleGenericMaxSize<mozilla::StyleLengthPercentageUnion>>(gfxContext*, mozilla::WritingMode, mozilla::LogicalSize const&, mozilla::LogicalSize const&, int, mozilla::StyleGenericMaxSize<mozilla::StyleLengthPercentageUnion> const&, mozilla::StyleGenericSize<mozilla::StyleLengthPercentageUnion> const&, mozilla::AspectRatio const&, mozilla::EnumSet<mozilla::ComputeSizeFlag, unsigned char>) /layout/generic/nsIFrame.h:5044:5
#2 0x7b98b24a0256 in nsIFrame::ComputeSize(gfxContext*, mozilla::WritingMode, mozilla::LogicalSize const&, int, mozilla::LogicalSize const&, mozilla::LogicalSize const&, mozilla::StyleSizeOverrides const&, mozilla::EnumSet<mozilla::ComputeSizeFlag, unsigned char>) /layout/generic/nsIFrame.cpp:6664:9
#3 0x7b98b241026e in mozilla::ReflowInput::InitConstraints(nsPresContext*, mozilla::Maybe<mozilla::LogicalSize> const&, mozilla::Maybe<mozilla::LogicalMargin> const&, mozilla::Maybe<mozilla::LogicalMargin> const&, mozilla::LayoutFrameType) /layout/generic/ReflowInput.cpp:2464:19
#4 0x7b98b240b5b1 in mozilla::ReflowInput::Init(nsPresContext*, mozilla::Maybe<mozilla::LogicalSize> const&, mozilla::Maybe<mozilla::LogicalMargin> const&, mozilla::Maybe<mozilla::LogicalMargin> const&) /layout/generic/ReflowInput.cpp:500:3
#5 0x7b98b240c8ab in mozilla::ReflowInput::ReflowInput(nsPresContext*, mozilla::ReflowInput const&, nsIFrame*, mozilla::LogicalSize const&, mozilla::Maybe<mozilla::LogicalSize> const&, mozilla::EnumSet<mozilla::ReflowInput::InitFlag, unsigned char>, mozilla::StyleSizeOverrides const&, mozilla::EnumSet<mozilla::ComputeSizeFlag, unsigned char>, mozilla::AnchorPosResolutionCache*) /layout/generic/ReflowInput.cpp:350:5
#6 0x7b98b24a5907 in nsFlexContainerFrame::GenerateFlexItemForChild(nsFlexContainerFrame::FlexLine&, nsIFrame*, mozilla::ReflowInput const&, nsFlexContainerFrame::FlexboxAxisTracker const&, int) /layout/generic/nsFlexContainerFrame.cpp:1483:15
#7 0x7b98b24ae9a1 in nsFlexContainerFrame::GenerateFlexLines(mozilla::ReflowInput const&, int, int, nsTArray<nsFlexContainerFrame::StrutInfo> const&, nsFlexContainerFrame::FlexboxAxisTracker const&, int, nsTArray<nsIFrame*>&, nsTArray<nsFlexContainerFrame::FlexLine>&, bool&) /layout/generic/nsFlexContainerFrame.cpp:4268:7
#8 0x7b98b24b2006 in nsFlexContainerFrame::DoFlexLayout(mozilla::ReflowInput const&, int, int, nsFlexContainerFrame::FlexboxAxisTracker const&, int, int, nsTArray<nsFlexContainerFrame::StrutInfo>&, ComputedFlexContainerInfo*) /layout/generic/nsFlexContainerFrame.cpp:5313:3
#9 0x7b98b24b0fad in nsFlexContainerFrame::Reflow(nsPresContext*, mozilla::ReflowOutput&, mozilla::ReflowInput const&, nsReflowStatus&) /layout/generic/nsFlexContainerFrame.cpp:4722:11
#10 0x7b98b2487c14 in nsContainerFrame::ReflowChild(nsIFrame*, nsPresContext*, mozilla::ReflowOutput&, mozilla::ReflowInput const&, mozilla::WritingMode const&, mozilla::LogicalPoint const&, nsSize const&, nsIFrame::ReflowChildFlags, nsReflowStatus&, nsOverflowContinuationTracker*) /layout/generic/nsContainerFrame.cpp:793:14
#11 0x7b98b24a8771 in nsFlexContainerFrame::MeasureBSizeForFlexItem(nsFlexContainerFrame::FlexItem&, mozilla::ReflowInput&) /layout/generic/nsFlexContainerFrame.cpp:2080:3
#12 0x7b98b24afb97 in nsFlexContainerFrame::SizeItemInCrossAxis(mozilla::ReflowInput&, nsFlexContainerFrame::FlexItem&) /layout/generic/nsFlexContainerFrame.cpp:4593:7
#13 0x7b98b24b2804 in nsFlexContainerFrame::DoFlexLayout(mozilla::ReflowInput const&, int, int, nsFlexContainerFrame::FlexboxAxisTracker const&, int, int, nsTArray<nsFlexContainerFrame::StrutInfo>&, ComputedFlexContainerInfo*) /layout/generic/nsFlexContainerFrame.cpp:5391:9
#14 0x7b98b24b0fad in nsFlexContainerFrame::Reflow(nsPresContext*, mozilla::ReflowOutput&, mozilla::ReflowInput const&, nsReflowStatus&) /layout/generic/nsFlexContainerFrame.cpp:4722:11
#15 0x7b98b2487c14 in nsContainerFrame::ReflowChild(nsIFrame*, nsPresContext*, mozilla::ReflowOutput&, mozilla::ReflowInput const&, mozilla::WritingMode const&, mozilla::LogicalPoint const&, nsSize const&, nsIFrame::ReflowChildFlags, nsReflowStatus&, nsOverflowContinuationTracker*) /layout/generic/nsContainerFrame.cpp:793:14
#16 0x7b98b247bd07 in nsCanvasFrame::Reflow(nsPresContext*, mozilla::ReflowOutput&, mozilla::ReflowInput const&, nsReflowStatus&) /layout/generic/nsCanvasFrame.cpp:505:7
#17 0x7b98b2487c14 in nsContainerFrame::ReflowChild(nsIFrame*, nsPresContext*, mozilla::ReflowOutput&, mozilla::ReflowInput const&, mozilla::WritingMode const&, mozilla::LogicalPoint const&, nsSize const&, nsIFrame::ReflowChildFlags, nsReflowStatus&, nsOverflowContinuationTracker*) /layout/generic/nsContainerFrame.cpp:793:14
#18 0x7b98b2424b46 in mozilla::ScrollContainerFrame::ReflowScrolledFrame(mozilla::ScrollReflowInput&, bool, bool, mozilla::ReflowOutput*) /layout/generic/ScrollContainerFrame.cpp:913:3
#19 0x7b98b2425174 in mozilla::ScrollContainerFrame::ReflowContents(mozilla::ScrollReflowInput&, mozilla::ReflowOutput const&) /layout/generic/ScrollContainerFrame.cpp:1029:3
#20 0x7b98b2427670 in mozilla::ScrollContainerFrame::Reflow(nsPresContext*, mozilla::ReflowOutput&, mozilla::ReflowInput const&, nsReflowStatus&) /layout/generic/ScrollContainerFrame.cpp:1492:3
#21 0x7b98b2492a24 in nsContainerFrame::ReflowChild(nsIFrame*, nsPresContext*, mozilla::ReflowOutput&, mozilla::ReflowInput const&, int, int, nsIFrame::ReflowChildFlags, nsReflowStatus&, nsOverflowContinuationTracker*) /layout/generic/nsContainerFrame.cpp:834:14
#22 0x7b98b2450542 in mozilla::ViewportFrame::Reflow(nsPresContext*, mozilla::ReflowOutput&, mozilla::ReflowInput const&, nsReflowStatus&) /layout/generic/ViewportFrame.cpp:422:7
#23 0x7b98b232a0ab in mozilla::PresShell::DoReflow(nsIFrame*, bool, mozilla::OverflowChangedTracker*) /layout/base/PresShell.cpp:10728:11
#24 0x7b98b23510b1 in mozilla::PresShell::ProcessReflowCommands(bool) /layout/base/PresShell.cpp:10868:22
#25 0x7b98b233413a in DoFlushLayout /layout/base/PresShell.cpp:10910:10
#26 0x7b98b233413a in mozilla::PresShell::DoFlushPendingNotifications(mozilla::ChangesToFlush) /layout/base/PresShell.cpp:4476:9
#27 0x7b98ae2f1565 in FlushPendingNotifications /builds/worker/workspace/obj-build/dist/include/mozilla/PresShell.h:1508:5
#28 0x7b98ae2f1565 in mozilla::dom::Document::FlushPendingNotifications(mozilla::ChangesToFlush) /dom/base/Document.cpp:11664:16
#29 0x7b98ad2d1c72 in nsDocLoader::DocLoaderIsEmpty(bool, mozilla::Maybe<nsresult> const&) /uriloader/base/nsDocLoader.cpp:785:14
#30 0x7b98ad2d390a in nsDocLoader::OnStopRequest(nsIRequest*, nsresult) /uriloader/base/nsDocLoader.cpp:722:5
#31 0x7b98b28473ff in nsDocShell::OnStopRequest(nsIRequest*, nsresult) /docshell/base/nsDocShell.cpp:14527:23
#32 0x7b98ac66b24f in mozilla::net::nsLoadGroup::NotifyRemovalObservers(nsIRequest*, nsresult) /netwerk/base/nsLoadGroup.cpp:656:22
#33 0x7b98ac66c3f6 in mozilla::net::nsLoadGroup::RemoveRequest(nsIRequest*, nsISupports*, nsresult) /netwerk/base/nsLoadGroup.cpp:540:10
#34 0x7b98ae2f72dc in mozilla::dom::Document::DoUnblockOnload() /dom/base/Document.cpp:12503:18
#35 0x7b98ae2dd31e in mozilla::dom::Document::DispatchContentLoadedEvents() /dom/base/Document.cpp:8748:3
#36 0x7b98ae3a64e5 in operator()<> /builds/worker/workspace/obj-build/dist/include/nsThreadUtils.h:1083:18
#37 0x7b98ae3a64e5 in __invoke_impl<void, (lambda at /builds/worker/workspace/obj-build/dist/include/nsThreadUtils.h:1082:9)> /builds/worker/fetches/sysroot-x86_64-linux-gnu/usr/lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/bits/invoke.h:60:14
#38 0x7b98ae3a64e5 in __invoke<(lambda at /builds/worker/workspace/obj-build/dist/include/nsThreadUtils.h:1082:9)> /builds/worker/fetches/sysroot-x86_64-linux-gnu/usr/lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/bits/invoke.h:95:14
#39 0x7b98ae3a64e5 in __apply_impl<(lambda at /builds/worker/workspace/obj-build/dist/include/nsThreadUtils.h:1082:9), std::tuple<> &> /builds/worker/fetches/sysroot-x86_64-linux-gnu/usr/lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/tuple:1740:14
#40 0x7b98ae3a64e5 in apply<(lambda at /builds/worker/workspace/obj-build/dist/include/nsThreadUtils.h:1082:9), std::tuple<> &> /builds/worker/fetches/sysroot-x86_64-linux-gnu/usr/lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/tuple:1751:14
#41 0x7b98ae3a64e5 in apply<mozilla::dom::Document, void (mozilla::dom::Document::*)()> /builds/worker/workspace/obj-build/dist/include/nsThreadUtils.h:1081:12
#42 0x7b98ae3a64e5 in mozilla::detail::RunnableMethodImpl<mozilla::dom::Document*, void (mozilla::dom::Document::*)(), true, (mozilla::RunnableKind)0>::Run() /builds/worker/workspace/obj-build/dist/include/nsThreadUtils.h:1132:13
#43 0x7b98ac3f59f7 in mozilla::RunnableTask::Run() /xpcom/threads/TaskController.cpp:705:16
#44 0x7b98ac3f0347 in mozilla::TaskController::DoExecuteNextTaskOnlyMainThreadInternal(mozilla::detail::BaseAutoLock<mozilla::Mutex&> const&) /xpcom/threads/TaskController.cpp:1325:20
#45 0x7b98ac3eefe7 in mozilla::TaskController::ExecuteNextTaskOnlyMainThreadInternal(mozilla::detail::BaseAutoLock<mozilla::Mutex&> const&) /xpcom/threads/TaskController.cpp:1148:15
#46 0x7b98ac3ef465 in mozilla::TaskController::ProcessPendingMTTask(bool) /xpcom/threads/TaskController.cpp:641:36
#47 0x7b98ac3fc8e6 in operator() /xpcom/threads/TaskController.cpp:333:37
#48 0x7b98ac3fc8e6 in mozilla::detail::RunnableFunction<mozilla::TaskController::TaskController()::$_0>::Run() /xpcom/threads/nsThreadUtils.h:549:5
#49 0x7b98ac40e913 in nsThread::ProcessNextEvent(bool, bool*) /xpcom/threads/nsThread.cpp:1166:16
#50 0x7b98ac4151df in NS_ProcessNextEvent(nsIThread*, bool) /xpcom/threads/nsThreadUtils.cpp:461:10
#51 0x7b98ad002907 in mozilla::ipc::MessagePump::Run(base::MessagePump::Delegate*) /ipc/glue/MessagePump.cpp:85:21
#52 0x7b98acf5d7a1 in RunHandler /ipc/chromium/src/base/message_loop.cc:361:3
#53 0x7b98acf5d7a1 in MessageLoop::Run() /ipc/chromium/src/base/message_loop.cc:343:3
#54 0x7b98b1efbc48 in nsBaseAppShell::Run() /widget/nsBaseAppShell.cpp:152:27
#55 0x7b98b1fcac74 in nsAppShell::Run() /widget/gtk/nsAppShell.cpp:470:33
#56 0x7b98b2ffffdb in XRE_RunAppShell() /toolkit/xre/nsEmbedFunctions.cpp:656:20
#57 0x7b98ad0037b4 in mozilla::ipc::MessagePumpForChildProcess::Run(base::MessagePump::Delegate*) /ipc/glue/MessagePump.cpp:235:9
#58 0x7b98acf5d7a1 in RunHandler /ipc/chromium/src/base/message_loop.cc:361:3
#59 0x7b98acf5d7a1 in MessageLoop::Run() /ipc/chromium/src/base/message_loop.cc:343:3
#60 0x7b98b2fff731 in XRE_InitChildProcess(int, char**, XREChildData const*) /toolkit/xre/nsEmbedFunctions.cpp:594:34
#61 0x62519ac47aac in main /browser/app/nsBrowserApp.cpp:465:22
#62 0x7b98bd4791c9 in __libc_start_call_main ./csu/../sysdeps/nptl/libc_start_call_main.h:58:16
#63 0x7b98bd47928a in __libc_start_main ./csu/../csu/libc-start.c:360:3
#64 0x62519ac1b2e8 in _start ??:0:0
==41182==Register values:
rax = 0x0000000000000000 rbx = 0x00007ffdf4e8eef8 rcx = 0x00000000000013b4 rdx = 0x00007b98bd653563
rdi = 0x00007b98bd654700 rsi = 0x0000000000000000 rbp = 0x00007ffdf4e8e8a0 rsp = 0x00007ffdf4e8e840
r8 = 0x0000000000000000 r9 = 0x0000000000000003 r10 = 0x0000000000000000 r11 = 0x0000000000000293
r12 = 0x000062519cc33180 r13 = 0x00007ffdf4e8eb90 r14 = 0x000062519cc3b038 r15 = 0x0000000000000000
UndefinedBehaviorSanitizer can not provide additional info.
SUMMARY: UndefinedBehaviorSanitizer: SEGV (/home/jkratzer/builds/m-c-20251105082217-fuzzing-debug/libxul.so+0xa3a0f22) (BuildId: 41f083ee2c3314c6d134ba61049dfd438b3faed3)
==41182==ABORTING
| Reporter | ||
Comment 1•1 year ago
|
||
| Reporter | ||
Updated•1 year ago
|
Comment 2•1 year ago
|
||
Looks like we're tripping an assertion in a testcase with -webkit-flex-basis: anchor-size() (the webkit prefix there is likely irrelevant and is just treated as an alias)
jwatt/dshin, mind taking a look & triaging as part of anchor work?
Comment 3•1 year ago
|
||
Verified bug as reproducible on mozilla-central 20251105102839-9a81a01d61b6.
Unable to bisect testcase (Unable to launch the end build!):
Start: 3c04841f5975ca656ba0b025ebe4acac3a9eb850 (20241106050531)
End: 57ecaf4b76dc4aa0a708829997a8fe224af6f41b (20251105082217)
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)
| Assignee | ||
Comment 4•1 year ago
|
||
Updated•1 year ago
|
Comment 5•1 year ago
|
||
Successfully recorded a pernosco session. A link to the pernosco session will be added here shortly.
| Assignee | ||
Updated•1 year ago
|
Updated•1 year ago
|
Comment 9•1 year ago
|
||
| bugherder | ||
Comment 10•1 year ago
|
||
Verified bug as fixed on rev mozilla-central 20251111094532-8b434e72bd1e.
Removing bugmon keyword as no further action possible. Please review the bug and re-add the keyword for further analysis.
Description
•