<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>259342</bug_id>
          
          <creation_ts>2023-07-19 10:33:36 -0700</creation_ts>
          <short_desc>REGRESSION(265506@Main): [ Monterey+ Release ] fast/layoutformattingcontext (Layout-Tests) are a constant crash</short_desc>
          <delta_ts>2023-09-13 17:35:43 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Layout and Rendering</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>REOPENED</bug_status>
          <resolution></resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=258493</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Robert Jenner">jenner</reporter>
          <assigned_to name="Robert Jenner">jenner</assigned_to>
          <cc>bfulgham</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>webkit-bot-watchers-bugzilla</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>zalan</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1967371</commentid>
    <comment_count>0</comment_count>
    <who name="Robert Jenner">jenner</who>
    <bug_when>2023-07-19 10:33:36 -0700</bug_when>
    <thetext>The following 10 fast/layoutformattingcontext layout-tests are constant crashes on Release for Monterey and higher:

fast/layoutformattingcontext/fit-content-width-simple.html
fast/layoutformattingcontext/inline-text-outside-of-inline-container-simple.html
fast/layoutformattingcontext/line-heigt-when-text-is-inside-inline-container.html
fast/layoutformattingcontext/table-basic-row-baseline-align.html
fast/layoutformattingcontext/table-basic-row-vertical-align-baseline.html
fast/layoutformattingcontext/table-cell-baseline-offset-simple.html
fast/layoutformattingcontext/table-cell-baseline-offset-simple2.html
fast/layoutformattingcontext/table-cell-vertical-alignment-simple.html
fast/layoutformattingcontext/table-with-margin-content-simple.html
fast/layoutformattingcontext/vertical-align-middle-simple.html

HISTORY:
https://results.webkit.org/?suite=layout-tests&amp;suite=layout-tests&amp;suite=layout-tests&amp;suite=layout-tests&amp;suite=layout-tests&amp;suite=layout-tests&amp;suite=layout-tests&amp;suite=layout-tests&amp;suite=layout-tests&amp;suite=layout-tests&amp;test=fast%2Flayoutformattingcontext%2Ffit-content-width-simple.html&amp;test=fast%2Flayoutformattingcontext%2Finline-text-outside-of-inline-container-simple.html&amp;test=fast%2Flayoutformattingcontext%2Fline-heigt-when-text-is-inside-inline-container.html&amp;test=fast%2Flayoutformattingcontext%2Ftable-basic-row-baseline-align.html&amp;test=fast%2Flayoutformattingcontext%2Ftable-basic-row-vertical-align-baseline.html&amp;test=fast%2Flayoutformattingcontext%2Ftable-cell-baseline-offset-simple.html&amp;test=fast%2Flayoutformattingcontext%2Ftable-cell-baseline-offset-simple2.html&amp;test=fast%2Flayoutformattingcontext%2Ftable-cell-vertical-alignment-simple.html&amp;test=fast%2Flayoutformattingcontext%2Ftable-with-margin-content-simple.html&amp;test=fast%2Flayoutformattingcontext%2Fvertical-align-middle-simple.html

There is no crash log that appears to have been collected. The following is the stdout from these tests:

STDOUT TEXT:
No crash log found for com.apple.WebKit.WebContent.Development:39354.

stdout:

stderr:
com.apple.WebKit.WebContent.Development terminated (pid 39354) for reason: crash


https://build.webkit.org/results/Apple-Ventura-Release-WK2-Tests/266158@main%20(2948)/fast/layoutformattingcontext/fit-content-width-simple-crash-log.txt</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1967372</commentid>
    <comment_count>1</comment_count>
    <who name="Robert Jenner">jenner</who>
    <bug_when>2023-07-19 10:34:42 -0700</bug_when>
    <thetext>These tests all appear to have a pretty clear cut regression point as well. All starting at crashing at: https://commits.webkit.org/265506@main</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1967374</commentid>
    <comment_count>2</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2023-07-19 10:35:05 -0700</bug_when>
    <thetext>&lt;rdar://problem/112540099&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1967375</commentid>
    <comment_count>3</comment_count>
    <who name="Robert Jenner">jenner</who>
    <bug_when>2023-07-19 10:42:11 -0700</bug_when>
    <thetext>I was also able reproduce the crash at Ventura Release ToT running the test as follows:

Run-webkit-tests &lt;test_goes_here&gt;

Here is the crashed thread from my local repo case:

Thread 0 Crashed::  Dispatch queue: com.apple.main-thread
0   WebCore                       	       0x10f129d14 WebCore::Layout::LineBuilder::inlineItemWidth(WebCore::Layout::InlineItem const&amp;, float) const + 380
1   WebCore                       	       0x10f12be98 WebCore::Layout::LineBuilder::placeInlineAndFloatContent(WebCore::Layout::InlineItemRange const&amp;) + 4292
2   WebCore                       	       0x10f12a0c4 WebCore::Layout::LineBuilder::layoutInlineContent(WebCore::Layout::LineBuilder::LineInput const&amp;, std::__1::optional&lt;WebCore::Layout::PreviousLine&gt; const&amp;) + 136
3   WebCore                       	       0x10f11b778 WebCore::Layout::InlineFormattingContext::computedIntrinsicWidthForConstraint(WebCore::Layout::IntrinsicWidthMode) const + 496
4   WebCore                       	       0x10f11b4cc WebCore::Layout::InlineFormattingContext::computedIntrinsicWidthConstraints() + 116
5   WebCore                       	       0x10f0ffe18 WebCore::Layout::FormattingGeometry::computedWidthValue(WebCore::Layout::Box const&amp;, WebCore::Layout::FormattingGeometry::WidthType, WebCore::LayoutUnit) const + 1280
6   WebCore                       	       0x10f100098 WebCore::Layout::FormattingGeometry::computedWidth(WebCore::Layout::Box const&amp;, WebCore::LayoutUnit) const + 36
7   WebCore                       	       0x10f10a01c WebCore::Layout::BlockFormattingGeometry::inFlowNonReplacedContentWidthAndMargin(WebCore::Layout::ElementBox const&amp;, WebCore::Layout::HorizontalConstraints const&amp;, WebCore::Layout::OverriddenHorizontalValues const&amp;) const + 272
8   WebCore                       	       0x10f10ad28 auto WebCore::Layout::BlockFormattingGeometry::computedContentWidthAndMargin(WebCore::Layout::ElementBox const&amp;, WebCore::Layout::HorizontalConstraints const&amp;, std::__1::optional&lt;WebCore::LayoutUnit&gt;) const::$_17::operator()&lt;WebCore::Layout::HorizontalConstraints&gt;(WebCore::Layout::HorizontalConstraints, std::__1::optional&lt;WebCore::LayoutUnit&gt;) const + 440
9   WebCore                       	       0x10f105fc4 WebCore::Layout::BlockFormattingContext::layoutInFlowContent(WebCore::Layout::ConstraintsForInFlowContent const&amp;) + 1620
10  WebCore                       	       0x10f0f76cc WebCore::Layout::LayoutContext::layout(WebCore::LayoutSize const&amp;) + 556
11  WebCore                       	       0x10f2c9b88 WebCore::LocalFrameViewLayoutContext::performLayout() + 2592
12  WebCore                       	       0x10f2acc34 WebCore::LocalFrameViewLayoutContext::layout() + 44
13  WebCore                       	       0x10d611d80 WebCore::Document::implicitClose() + 772
14  WebCore                       	       0x10d6118ec WebCore::FrameLoader::checkCompleted() + 312
15  WebCore                       	       0x10d6109b0 WebCore::FrameLoader::finishedParsing() + 340
16  WebCore                       	       0x10d60fbec WebCore::Document::finishedParsing() + 612
17  WebCore                       	       0x10d6094e4 WebCore::HTMLDocumentParser::prepareToStopParsing() + 256
18  WebCore                       	       0x10d6091b0 WebCore::HTMLDocumentParser::finish() + 236
19  WebCore                       	       0x10d608ddc WebCore::DocumentWriter::end() + 148
20  WebCore                       	       0x10f175748 WebCore::DocumentLoader::finishedLoading() + 308
21  WebCore                       	       0x10f2232a8 WebCore::CachedResource::checkNotify(WebCore::NetworkLoadMetrics const&amp;) + 404
22  WebCore                       	       0x10f220fd8 WebCore::CachedRawResource::finishLoading(WebCore::FragmentedSharedBuffer const*, WebCore::NetworkLoadMetrics const&amp;) + 360
23  WebCore                       	       0x10f1e9820 WebCore::SubresourceLoader::didFinishLoading(WebCore::NetworkLoadMetrics const&amp;) + 692
24  WebKit                        	       0x1042ed700 WebKit::WebResourceLoader::didFinishResourceLoad(WebCore::NetworkLoadMetrics&amp;&amp;) + 232
25  WebKit                        	       0x1044be810 WebKit::WebResourceLoader::didReceiveWebResourceLoaderMessage(IPC::Connection&amp;, IPC::Decoder&amp;) + 748
26  WebKit                        	       0x1044f1460 IPC::Connection::dispatchMessage(std::__1::unique_ptr&lt;IPC::Decoder, std::__1::default_delete&lt;IPC::Decoder&gt;&gt;) + 332
27  WebKit                        	       0x1044f3ef4 WTF::Detail::CallableWrapper&lt;IPC::Connection::enqueueIncomingMessage(std::__1::unique_ptr&lt;IPC::Decoder, std::__1::default_delete&lt;IPC::Decoder&gt;&gt;)::$_15, void&gt;::call() + 148
28  JavaScriptCore                	       0x101575360 WTF::RunLoop::performWork() + 200
29  JavaScriptCore                	       0x10157622c WTF::RunLoop::performWork(void*) + 36
30  CoreFoundation                	       0x18e38e63c __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 28
31  CoreFoundation                	       0x18e38e5d0 __CFRunLoopDoSource0 + 176
32  CoreFoundation                	       0x18e38e340 __CFRunLoopDoSources0 + 244
33  CoreFoundation                	       0x18e38cf48 __CFRunLoopRun + 828
34  CoreFoundation                	       0x18e38c4b8 CFRunLoopRunSpecific + 612
35  Foundation                    	       0x18f305fcc -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 212
36  Foundation                    	       0x18f37eccc -[NSRunLoop(NSRunLoop) run] + 64
37  libxpc.dylib                  	       0x18dffe594 _xpc_objc_main + 860
38  libxpc.dylib                  	       0x18dffdeb4 xpc_main + 108
39  WebKit                        	       0x103cd2d34 WebKit::XPCServiceMain(int, char const**) + 248
40  dyld                          	       0x18df57f28 start + 2236</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1967377</commentid>
    <comment_count>4</comment_count>
    <who name="Robert Jenner">jenner</who>
    <bug_when>2023-07-19 10:51:11 -0700</bug_when>
    <thetext>I have also confirmed that 265506@main is what introduced this. These all start crashing when testing at 265506@main. They were not crashing at 265505@main. 

Starting on Alan who introduced: https://commits.webkit.org/265506@main that caused these tests to start crashing constantly.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1967462</commentid>
    <comment_count>5</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2023-07-20 09:33:14 -0700</bug_when>
    <thetext>Test gardening commit 266181@main (3b4b5509d96e): &lt;https://commits.webkit.org/266181@main&gt;

Reviewed commits have been landed. Closing PR #15948 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1967464</commentid>
    <comment_count>6</comment_count>
    <who name="alan">zalan</who>
    <bug_when>2023-07-20 09:36:27 -0700</bug_when>
    <thetext>Thank you for taking care of this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1970002</commentid>
    <comment_count>7</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2023-08-07 17:57:41 -0700</bug_when>
    <thetext>Test gardening commit 266670@main (7e928333021b): &lt;https://commits.webkit.org/266670@main&gt;

Reviewed commits have been landed. Closing PR #16458 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1977402</commentid>
    <comment_count>8</comment_count>
    <who name="Robert Jenner">jenner</who>
    <bug_when>2023-09-13 17:30:33 -0700</bug_when>
    <thetext>Re-opening for pull request https://github.com/apple/WebKit/pull/770</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1977405</commentid>
    <comment_count>9</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2023-09-13 17:35:43 -0700</bug_when>
    <thetext>Test gardening commit 265870.556@safari-7616-branch (e28e46dcc8a9): &lt;https://commits.webkit.org/265870.556@safari-7616-branch&gt;

Reviewed commits have been landed. Closing PR #770 and removing active labels.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>