<?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>245624</bug_id>
          
          <creation_ts>2022-09-24 09:42:42 -0700</creation_ts>
          <short_desc>[CMake] Various dependencies on derived sources are incorrect</short_desc>
          <delta_ts>2022-09-25 07:36:25 -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>CMake</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Philippe Normand">philn</reporter>
          <assigned_to name="Philippe Normand">philn</assigned_to>
          <cc>bugs-noreply</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1900895</commentid>
    <comment_count>0</comment_count>
    <who name="Philippe Normand">philn</who>
    <bug_when>2022-09-24 09:42:42 -0700</bug_when>
    <thetext>I somehow made a WPE build that triggers this crash, where the quirksUserAgentStyleSheet string is null...

(gdb) bt
#0  0x00007fa2a3141589 in WTF::StringView::StringView(WTF::StringImpl const*) (string=0x0, this=&lt;optimized out&gt;) at WTF/Headers/wtf/text/StringConcatenate.h:430
#1  WTF::StringTypeAdapter&lt;WTF::StringImpl*, void&gt;::writeTo&lt;unsigned char&gt;(unsigned char*) const (destination=0x7fa2940e84b0 &quot;&quot;, this=&lt;optimized out&gt;) at WTF/Headers/wtf/text/StringConcatenate.h:188
#2  WTF::stringTypeAdapterAccumulator&lt;unsigned char, WTF::StringTypeAdapter&lt;WTF::String, void&gt; &gt;(unsigned char*, WTF::StringTypeAdapter&lt;WTF::String, void&gt;) (result=0x7fa2940e84b0 &quot;&quot;, adapter=...) at WTF/Headers/wtf/text/StringConcatenate.h:423
#3  WTF::stringTypeAdapterAccumulator&lt;unsigned char, WTF::StringTypeAdapter&lt;WTF::String, void&gt;, WTF::StringTypeAdapter&lt;WTF::String, void&gt; &gt;(unsigned char*, WTF::StringTypeAdapter&lt;WTF::String, void&gt;, WTF::StringTypeAdapter&lt;WTF::String, void&gt;) (result=&lt;optimized out&gt;, adapter=..., adapters=...) at WTF/Headers/wtf/text/StringConcatenate.h:430
#4  WTF::tryMakeStringImplFromAdaptersInternal&lt;WTF::StringTypeAdapter&lt;WTF::String, void&gt;, WTF::StringTypeAdapter&lt;WTF::String, void&gt; &gt;(unsigned int, bool, WTF::StringTypeAdapter&lt;WTF::String, void&gt;, WTF::StringTypeAdapter&lt;WTF::String, void&gt;) (length=348, areAllAdapters8Bit=&lt;optimized out&gt;, adapter=..., adapters=...) at WTF/Headers/wtf/text/StringConcatenate.h:444
#5  0x00007fa2a33f90bd in WTF::tryMakeStringFromAdapters&lt;WTF::StringTypeAdapter&lt;WTF::String, void&gt;, WTF::StringTypeAdapter&lt;WTF::String, void&gt; &gt;(WTF::StringTypeAdapter&lt;WTF::String, void&gt;, WTF::StringTypeAdapter&lt;WTF::String, void&gt;) (adapter=..., adapters=...) at WTF/Headers/wtf/text/StringConcatenate.h:475
#6  WTF::tryMakeString&lt;WTF::String, WTF::String&gt;(WTF::String, WTF::String) (strings=..., strings=...) at WTF/Headers/wtf/text/StringConcatenate.h:481
#7  WTF::StringAppend&lt;WTF::String, WTF::String&gt;::operator WTF::String() const (this=0x7fff176fe608) at WTF/Headers/wtf/text/StringOperators.h:38
#8  0x00007fa2a5dc046c in WebCore::Style::UserAgentStyle::initDefaultStyleSheet() () at /usr/src/debug/wpewebkit-2.38.0-1.fc36.x86_64/Source/WebCore/style/UserAgentStyle.cpp:158
#9  0x00007fa2a5da6460 in WebCore::Style::Resolver::Resolver(WebCore::Document&amp;) (this=0x7fa0aa000a80, document=...) at /usr/src/debug/wpewebkit-2.38.0-1.fc36.x86_64/Source/WebCore/style/StyleResolver.cpp:147
#10 0x00007fa2a5daabfb in WebCore::Style::Resolver::create(WebCore::Document&amp;) (document=...) at /usr/src/debug/wpewebkit-2.38.0-1.fc36.x86_64/Source/WebCore/style/StyleResolver.cpp:139
#11 WebCore::Style::Scope::createDocumentResolver() (this=0x7fa2940c4400) at /usr/src/debug/wpewebkit-2.38.0-1.fc36.x86_64/Source/WebCore/style/StyleScope.cpp:104
#12 0x00007fa2a5daa5be in WebCore::Style::Scope::resolver() (this=0x7fa2940c4400) at /usr/src/debug/wpewebkit-2.38.0-1.fc36.x86_64/Source/WebCore/style/StyleScope.cpp:89
#13 0x00007fa2a5dbd310 in WebCore::Style::TreeResolver::resolve() (this=0x7fff176fe818) at /usr/src/debug/wpewebkit-2.38.0-1.fc36.x86_64/Source/WebCore/style/StyleTreeResolver.cpp:909
#14 0x00007fa2a529a6ad in WebCore::Document::resolveStyle(WebCore::Document::ResolveStyleType) (this=0x7fa2420e0000, type=&lt;optimized out&gt;) at /usr/src/debug/wpewebkit-2.38.0-1.fc36.x86_64/Source/WebCore/dom/Document.cpp:2091
#15 0x00007fa2a529bc61 in WebCore::Document::createRenderTree() (this=0x7fa2420e0000) at /usr/src/debug/wpewebkit-2.38.0-1.fc36.x86_64/Source/WebCore/dom/Document.cpp:2501
#16 0x00007fa2a529bcfe in WebCore::Document::didBecomeCurrentDocumentInFrame() (this=0x7fa2420e0000) at /usr/src/debug/wpewebkit-2.38.0-1.fc36.x86_64/Source/WebCore/dom/Document.cpp:2513
#17 0x00007fa2a58077c2 in WebCore::Frame::setDocument(WTF::RefPtr&lt;WebCore::Document, WTF::RawPtrTraits&lt;WebCore::Document&gt;, WTF::DefaultRefDerefTraits&lt;WebCore::Document&gt; &gt;&amp;&amp;) (this=0x7fa2940a0f00, newDocument=...) at /usr/src/debug/wpewebkit-2.38.0-1.fc36.x86_64/Source/WebCore/page/Frame.cpp:313
#18 0x00007fa2a57084a1 in WebCore::DocumentWriter::begin(WTF::URL const&amp;, bool, WebCore::Document*, WebCore::ProcessQualified&lt;WTF::UUID&gt;) (this=0x7fa24201d060, urlReference=..., dispatch=false, ownerDocument=0x0, documentIdentifier=...) at /usr/src/debug/wpewebkit-2.38.0-1.fc36.x86_64/Source/WebCore/loader/DocumentWriter.cpp:180
#19 0x00007fa2a57030cc in WebCore::DocumentLoader::commitData(WebCore::SharedBuffer const&amp;) (this=0x7fa24201d000, data=...) at /usr/src/debug/wpewebkit-2.38.0-1.fc36.x86_64/Source/WebCore/loader/DocumentLoader.cpp:1235
#20 0x00007fa2a5702a5c in WebCore::DocumentLoader::finishedLoading() (this=0x7fa24201d000) at /usr/src/debug/wpewebkit-2.38.0-1.fc36.x86_64/Source/WebCore/loader/DocumentLoader.cpp:493
#21 0x00007fa2a570ad07 in WebCore::DocumentLoader::maybeLoadEmpty() (this=0x7fa24201d000) at /usr/src/debug/wpewebkit-2.38.0-1.fc36.x86_64/Source/WebCore/loader/DocumentLoader.cpp:2043
#22 0x00007fa2a570afe4 in WebCore::DocumentLoader::startLoadingMainResource() (this=0x7fa24201d000) at /usr/src/debug/wpewebkit-2.38.0-1.fc36.x86_64/Source/WebCore/loader/DocumentLoader.cpp:2070
#23 0x00007fa2a5722e92 in WebCore::FrameLoader::init() (this=0x7fa294028340) at /usr/src/debug/wpewebkit-2.38.0-1.fc36.x86_64/Source/WebCore/loader/FrameLoader.cpp:351
#24 0x00007fa2a33e6812 in WebKit::WebFrame::initWithCoreMainFrame(WebKit::WebPage&amp;, WebCore::Frame&amp;) (this=0x7fa294004480, page=&lt;optimized out&gt;, coreFrame=...) at /usr/src/debug/wpewebkit-2.38.0-1.fc36.x86_64/Source/WebKit/WebProcess/WebPage/WebFrame.cpp:115
#25 0x00007fa2a33c27b7 in WebKit::WebPage::WebPage(WTF::ObjectIdentifier&lt;WebCore::PageIdentifierType&gt;, WebKit::WebPageCreationParameters&amp;&amp;) (this=0x7fa2940e4100, pageID=..., parameters=...) at /usr/src/debug/wpewebkit-2.38.0-1.fc36.x86_64/Source/WebKit/WebProcess/WebPage/WebPage.cpp:725
#26 0x00007fa2a33c12b3 in WebKit::WebPage::create(WTF::ObjectIdentifier&lt;WebCore::PageIdentifierType&gt;, WebKit::WebPageCreationParameters&amp;&amp;) (pageID=..., parameters=...) at /usr/src/debug/wpewebkit-2.38.0-1.fc36.x86_64/Source/WebKit/WebProcess/WebPage/WebPage.cpp:465
#27 0x00007fa2a32fffd5 in WebKit::WebProcess::createWebPage(WTF::ObjectIdentifier&lt;WebCore::PageIdentifierType&gt;, WebKit::WebPageCreationParameters&amp;&amp;) (this=0x7fa294030210, pageID=..., parameters=...) at /usr/src/debug/wpewebkit-2.38.0-1.fc36.x86_64/Source/WebKit/WebProcess/WebProcess.cpp:837
#28 0x00007fa2a2eed2d1 in IPC::callMemberFunctionImpl&lt;WebKit::WebProcess, void (WebKit::WebProcess::*)(WTF::ObjectIdentifier&lt;WebCore::PageIdentifierType&gt;, WebKit::WebPageCreationParameters&amp;&amp;), std::tuple&lt;WTF::ObjectIdentifier&lt;WebCore::PageIdentifierType&gt;, WebKit::WebPageCreationParameters&gt;, 0ul, 1ul&gt;(WebKit::WebProcess*, void (WebKit::WebProcess::*)(WTF::ObjectIdentifier&lt;WebCore::PageIdentifierType&gt;, WebKit::WebPageCreationParameters&amp;&amp;), std::tuple&lt;WTF::ObjectIdentifier&lt;WebCore::PageIdentifierType&gt;, WebKit::WebPageCreationParameters&gt;&amp;&amp;, std::integer_sequence&lt;unsigned long, 0ul, 1ul&gt;) (object=0x7fa294030210, function=&lt;optimized out&gt;, args=...) at /usr/src/debug/wpewebkit-2.38.0-1.fc36.x86_64/Source/WebKit/Platform/IPC/HandleMessage.h:131
#29 IPC::callMemberFunction&lt;WebKit::WebProcess, void (WebKit::WebProcess::*)(WTF::ObjectIdentifier&lt;WebCore::PageIdentifierType&gt;, WebKit::WebPageCreationParameters&amp;&amp;), std::tuple&lt;WTF::ObjectIdentifier&lt;WebCore::PageIdentifierType&gt;, WebKit::WebPageCreationParameters&gt;, std::integer_sequence&lt;unsigned long, 0ul, 1ul&gt; &gt;(std::tuple&lt;WTF::ObjectIdentifier&lt;WebCore::PageIdentifierType&gt;, WebKit::WebPageCreationParameters&gt;&amp;&amp;, WebKit::WebProcess*, void (WebKit::WebProcess::*)(WTF::ObjectIdentifier&lt;WebCore::PageIdentifierType&gt;, WebKit::WebPageCreationParameters&amp;&amp;)) (args=..., object=0x7fa294030210, function=&lt;optimized out&gt;) at /usr/src/debug/wpewebkit-2.38.0-1.fc36.x86_64/Source/WebKit/Platform/IPC/HandleMessage.h:137
#30 IPC::handleMessage&lt;Messages::WebProcess::CreateWebPage, WebKit::WebProcess, void (WebKit::WebProcess::*)(WTF::ObjectIdentifier&lt;WebCore::PageIdentifierType&gt;, WebKit::WebPageCreationParameters&amp;&amp;)&gt;(IPC::Connection&amp;, IPC::Decoder&amp;, WebKit::WebProcess*, void (WebKit::WebProcess::*)(WTF::ObjectIdentifier&lt;WebCore::PageIdentifierType&gt;, WebKit::WebPageCreationParameters&amp;&amp;)) (connection=&lt;optimized out&gt;, decoder=..., object=0x7fa294030210, function=&lt;optimized out&gt;) at /usr/src/debug/wpewebkit-2.38.0-1.fc36.x86_64/Source/WebKit/Platform/IPC/HandleMessage.h:259
#31 WebKit::WebProcess::didReceiveWebProcessMessage(IPC::Connection&amp;, IPC::Decoder&amp;) (this=0x7fa294030210, connection=&lt;optimized out&gt;, decoder=...) at DerivedSources/WebKit/WebProcessMessageReceiver.cpp:280
#32 0x00007fa2a30c462e in IPC::Connection::dispatchMessage(IPC::Decoder&amp;) (this=0x7fa2940501a0, decoder=...) at /usr/src/debug/wpewebkit-2.38.0-1.fc36.x86_64/Source/WebKit/Platform/IPC/Connection.cpp:1105
#33 0x00007fa2a30c4913 in IPC::Connection::dispatchMessage(std::unique_ptr&lt;IPC::Decoder, std::default_delete&lt;IPC::Decoder&gt; &gt;) (this=0x7fa2940501a0, message=std::unique_ptr&lt;IPC::Decoder&gt; = {...}) at /usr/src/debug/wpewebkit-2.38.0-1.fc36.x86_64/Source/WebKit/Platform/IPC/Connection.cpp:1150
#34 0x00007fa2a30c4c3e in IPC::Connection::dispatchOneIncomingMessage() (this=0x7fa2940501a0) at /usr/src/debug/wpewebkit-2.38.0-1.fc36.x86_64/Source/WebKit/Platform/IPC/Connection.cpp:1219
#35 0x00007fa2a4449ccd in WTF::Function&lt;void ()&gt;::operator()() const (this=&lt;optimized out&gt;) at /usr/src/debug/wpewebkit-2.38.0-1.fc36.x86_64/Source/WTF/wtf/Function.h:82
#36 WTF::RunLoop::performWork() (this=0x7fa2940100e0) at /usr/src/debug/wpewebkit-2.38.0-1.fc36.x86_64/Source/WTF/wtf/RunLoop.cpp:133
#37 0x00007fa2a44a7f8d in WTF::RunLoop::RunLoop()::$_1::operator()(void*) const (userData=0x7fa2940e8460, userData@entry=0x7fa2940100e0, this=&lt;optimized out&gt;) at /usr/src/debug/wpewebkit-2.38.0-1.fc36.x86_64/Source/WTF/wtf/glib/RunLoopGLib.cpp:80
#38 WTF::RunLoop::RunLoop()::$_1::__invoke(void*) (userData=0x7fa2940e8460) at /usr/src/debug/wpewebkit-2.38.0-1.fc36.x86_64/Source/WTF/wtf/glib/RunLoopGLib.cpp:79
#39 0x00007fa2a44a739e in WTF::RunLoop::$_0::operator()(_GSource*, int (*)(void*), void*) const (source=0x11df990, callback=0x7fa2a44a7f80 &lt;WTF::RunLoop::RunLoop()::$_1::__invoke(void*)&gt;, userData=0x7fa2940100e0, this=&lt;optimized out&gt;) at /usr/src/debug/wpewebkit-2.38.0-1.fc36.x86_64/Source/WTF/wtf/glib/RunLoopGLib.cpp:53
#40 WTF::RunLoop::$_0::__invoke(_GSource*, int (*)(void*), void*) (source=0x11df990, callback=0x7fa2a44a7f80 &lt;WTF::RunLoop::RunLoop()::$_1::__invoke(void*)&gt;, userData=0x7fa2940100e0) at /usr/src/debug/wpewebkit-2.38.0-1.fc36.x86_64/Source/WTF/wtf/glib/RunLoopGLib.cpp:45
#41 0x00007fa2a2088faf in g_main_context_dispatch () at /lib64/libglib-2.0.so.0
#42 0x00007fa2a20de2c8 in g_main_context_iterate.constprop () at /lib64/libglib-2.0.so.0
#43 0x00007fa2a20886cf in g_main_loop_run () at /lib64/libglib-2.0.so.0
#44 0x00007fa2a44a7983 in WTF::RunLoop::run() () at /usr/src/debug/wpewebkit-2.38.0-1.fc36.x86_64/Source/WTF/wtf/glib/RunLoopGLib.cpp:108
#45 0x00007fa2a33ff1f1 in WebKit::AuxiliaryProcessMainBase&lt;WebKit::WebProcess, true&gt;::run(int, char**) (this=0x7fff176ffee0, argc=3, argv=&lt;optimized out&gt;) at /usr/src/debug/wpewebkit-2.38.0-1.fc36.x86_64/Source/WebKit/Shared/AuxiliaryProcessMain.h:71
#46 WebKit::AuxiliaryProcessMain&lt;WebKit::WebProcessMainWPE&gt;(int, char**) (argc=3, argv=&lt;optimized out&gt;) at /usr/src/debug/wpewebkit-2.38.0-1.fc36.x86_64/Source/WebKit/Shared/AuxiliaryProcessMain.h:97
#47 0x00007fa2a24b0550 in __libc_start_call_main () at /lib64/libc.so.6
#48 0x00007fa2a24b0609 in __libc_start_main_impl () at /lib64/libc.so.6
#49 0x0000000000401075 in _start ()</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1900900</commentid>
    <comment_count>1</comment_count>
    <who name="Philippe Normand">pnormand</who>
    <bug_when>2022-09-24 09:51:47 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/4667</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1900930</commentid>
    <comment_count>2</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2022-09-24 14:30:42 -0700</bug_when>
    <thetext>Committed 254830@main (e02c5994bc76): &lt;https://commits.webkit.org/254830@main&gt;

Reviewed commits have been landed. Closing PR #4667 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1901015</commentid>
    <comment_count>3</comment_count>
    <who name="Philippe Normand">philn</who>
    <bug_when>2022-09-25 07:35:58 -0700</bug_when>
    <thetext>Issue is still present.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>