<?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>247756</bug_id>
          
          <creation_ts>2022-11-10 12:29:49 -0800</creation_ts>
          <short_desc>REGRESSION (256493@main): [iOS] 13 API tests crashing in dlopen of SafariServices: Symbol not found: __ZN3WTF16weakRandomUint32Ev</short_desc>
          <delta_ts>2022-11-10 14:22:11 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>New Bugs</component>
          <version>Other</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=247581</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="Ryan Haddad">ryanhaddad</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>commit-queue</cc>
    
    <cc>darin</cc>
    
    <cc>webkit-bot-watchers-bugzilla</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1911616</commentid>
    <comment_count>0</comment_count>
    <who name="Ryan Haddad">ryanhaddad</who>
    <bug_when>2022-11-10 12:29:49 -0800</bug_when>
    <thetext>The following API tests are asserting on iOS bots:

TestWebKitAPI.ActionSheetTests.CopyImageElementWithHREF
TestWebKitAPI.ActionSheetTests.CopyImageElementWithHREFAndTitle
TestWebKitAPI.ActionSheetTests.CopyImageElementWithoutHREF
TestWebKitAPI.ActionSheetTests.CopyLinkWritesURLAndPlainText
TestWebKitAPI.ActionSheetTests.ImageMapDoesNotDestroySelection
TestWebKitAPI.ContextMenu.APIBeforeSPI
TestWebKitAPI.ContextMenu.Click
TestWebKitAPI.ContextMenu.HintPreviewContainer
TestWebKitAPI.ContextMenu.Image
TestWebKitAPI.ContextMenu.Legacy
TestWebKitAPI.ContextMenu.SuggestedActions
TestWebKitAPI.ShareSheetTests.ShareAnchorElementAsURL
TestWebKitAPI.ShareSheetTests.ShareImgElementWithBase64URL


        ASSERTION FAILED: dlopen(/System/Library/Frameworks/SafariServices.framework/SafariServices, 0x0002): Symbol not found: __ZN3WTF16weakRandomUint32Ev
          Referenced from: &lt;4FE07132-A75C-36C9-9969-C90FAE38102F&gt; /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Cryptexes/OS/System/Library/PrivateFrameworks/SafariSharedUI.framework/SafariSharedUI
          Expected in:     &lt;EF5F3D90-B681-3D72-BA41-D3C800E556A4&gt; /Volumes/Data/worker/Apple-iOS-16-Simulator-Debug-WK2-Tests/build/WebKitBuild/Debug-iphonesimulator/JavaScriptCore.framework/JavaScriptCore
        result
        /Volumes/Data/worker/Apple-iOS-16-Simulator-Debug-Build/build/Source/WebKit/UIProcess/ios/WKActionSheetAssistant.mm(61) : void *SafariServicesLibrary()_block_invoke
        1   0x115e6fd49 WTFCrash
        2   0x135fba3f5 invocation function for block in SafariServicesLibrary()
        3   0x135fba35e SafariServicesLibrary()
        4   0x135fba2b9 initSSReadingList()
        5   0x135fad706 -[WKActionSheetAssistant defaultActionsForImageSheet:]
        6   0x135fab6d5 __40-[WKActionSheetAssistant showImageSheet]_block_invoke
        7   0x135fab2eb -[WKActionSheetAssistant showImageSheet]
        8   0x13749ecf6 -[WKContentView(WKInteraction) _showImageSheet]
        9   0x1374da525 -[WKContentView(WKTesting) _simulateLongPressActionAtLocation:]::$_85::operator()(WebKit::InteractionInformationAtPosition) const
        10  0x1374da4c9 __63-[WKContentView(WKTesting) _simulateLongPressActionAtLocation:]_block_invoke
        11  0x13749ffc8 WTF::BlockPtr&lt;void (WebKit::InteractionInformationAtPosition)&gt;::operator()(WebKit::InteractionInformationAtPosition) const
        12  0x13749fbe8 -[WKContentView(WKInteraction) _invokeAndRemovePendingHandlersValidForCurrentPositionInformation]
        13  0x1374a4667 -[WKContentView(WKInteraction) _positionInformationDidChange:]
        14  0x135f9c4a1 WebKit::PageClientImpl::positionInformationDidChange(WebKit::InteractionInformationAtPosition const&amp;)
        15  0x1360025c9 WebKit::WebPageProxy::didReceivePositionInformation(WebKit::InteractionInformationAtPosition const&amp;)
        16  0x13719b887 void IPC::callMemberFunctionImpl&lt;WebKit::WebPageProxy, void (WebKit::WebPageProxy::*)(WebKit::InteractionInformationAtPosition const&amp;), std::__1::tuple&lt;WebKit::InteractionInformationAtPosition&gt;, 0ul&gt;(WebKit::WebPageProxy*, void (WebKit::WebPageProxy::*)(WebKit::InteractionInformationAtPosition const&amp;), std::__1::tuple&lt;WebKit::InteractionInformationAtPosition&gt;&amp;&amp;, std::__1::integer_sequence&lt;unsigned long, 0ul&gt;)
        17  0x13719ac0d void IPC::callMemberFunction&lt;WebKit::WebPageProxy, void (WebKit::WebPageProxy::*)(WebKit::InteractionInformationAtPosition const&amp;), std::__1::tuple&lt;WebKit::InteractionInformationAtPosition&gt;, std::__1::integer_sequence&lt;unsigned long, 0ul&gt; &gt;(std::__1::tuple&lt;WebKit::InteractionInformationAtPosition&gt;&amp;&amp;, WebKit::WebPageProxy*, void (WebKit::WebPageProxy::*)(WebKit::InteractionInformationAtPosition const&amp;))
        18  0x13713f001 void IPC::handleMessage&lt;Messages::WebPageProxy::DidReceivePositionInformation, WebKit::WebPageProxy, void (WebKit::WebPageProxy::*)(WebKit::InteractionInformationAtPosition const&amp;)&gt;(IPC::Connection&amp;, IPC::Decoder&amp;, WebKit::WebPageProxy*, void (WebKit::WebPageProxy::*)(WebKit::InteractionInformationAtPosition const&amp;))
        19  0x13713560a WebKit::WebPageProxy::didReceiveMessage(IPC::Connection&amp;, IPC::Decoder&amp;)
        20  0x1375b23b3 IPC::MessageReceiverMap::dispatchMessage(IPC::Connection&amp;, IPC::Decoder&amp;)
        21  0x13611b5ac WebKit::AuxiliaryProcessProxy::dispatchMessage(IPC::Connection&amp;, IPC::Decoder&amp;)
        22  0x13639af09 WebKit::WebProcessProxy::didReceiveMessage(IPC::Connection&amp;, IPC::Decoder&amp;)
        23  0x1375842af IPC::Connection::dispatchMessage(IPC::Decoder&amp;)
        24  0x13758467a IPC::Connection::dispatchMessage(std::__1::unique_ptr&lt;IPC::Decoder, std::__1::default_delete&lt;IPC::Decoder&gt; &gt;)
        25  0x137584de4 IPC::Connection::dispatchIncomingMessages()
        26  0x1375a64bd IPC::Connection::enqueueIncomingMessage(std::__1::unique_ptr&lt;IPC::Decoder, std::__1::default_delete&lt;IPC::Decoder&gt; &gt;)::$_16::operator()() const
        27  0x1375a6409 WTF::Detail::CallableWrapper&lt;IPC::Connection::enqueueIncomingMessage(std::__1::unique_ptr&lt;IPC::Decoder, std::__1::default_delete&lt;IPC::Decoder&gt; &gt;)::$_16, void&gt;::call()
        28  0x115e9fa22 WTF::Function&lt;void ()&gt;::operator()() const
        29  0x115f4055e WTF::RunLoop::performWork()
        30  0x115f45afe WTF::RunLoop::performWork(void*)
        31  0x10b772ebd __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__

https://results.webkit.org/?suite=api-tests&amp;suite=api-tests&amp;suite=api-tests&amp;suite=api-tests&amp;suite=api-tests&amp;suite=api-tests&amp;suite=api-tests&amp;suite=api-tests&amp;suite=api-tests&amp;suite=api-tests&amp;suite=api-tests&amp;suite=api-tests&amp;suite=api-tests&amp;test=TestWebKitAPI.ActionSheetTests.CopyImageElementWithHREF&amp;test=TestWebKitAPI.ActionSheetTests.CopyImageElementWithHREFAndTitle&amp;test=TestWebKitAPI.ActionSheetTests.CopyImageElementWithoutHREF&amp;test=TestWebKitAPI.ActionSheetTests.CopyLinkWritesURLAndPlainText&amp;test=TestWebKitAPI.ActionSheetTests.ImageMapDoesNotDestroySelection&amp;test=TestWebKitAPI.ContextMenu.APIBeforeSPI&amp;test=TestWebKitAPI.ContextMenu.Click&amp;test=TestWebKitAPI.ContextMenu.HintPreviewContainer&amp;test=TestWebKitAPI.ContextMenu.Image&amp;test=TestWebKitAPI.ContextMenu.Legacy&amp;test=TestWebKitAPI.ContextMenu.SuggestedActions&amp;test=TestWebKitAPI.ShareSheetTests.ShareAnchorElementAsURL&amp;test=TestWebKitAPI.ShareSheetTests.ShareImgElementWithBase64URL</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1911619</commentid>
    <comment_count>1</comment_count>
    <who name="Ryan Haddad">ryanhaddad</who>
    <bug_when>2022-11-10 12:32:08 -0800</bug_when>
    <thetext>It looks like https://commits.webkit.org/256493@main renamed weakRandomUint32 -&gt; weakRandomNumber</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1911620</commentid>
    <comment_count>2</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2022-11-10 12:32:55 -0800</bug_when>
    <thetext>&lt;rdar://problem/102206582&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1911636</commentid>
    <comment_count>3</comment_count>
    <who name="Ryan Haddad">ryanhaddad</who>
    <bug_when>2022-11-10 13:31:06 -0800</bug_when>
    <thetext>This is impacting iOS API test EWS, so I think I&apos;ll revert for now.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1911642</commentid>
    <comment_count>4</comment_count>
    <who name="Ryan Haddad">ryanhaddad</who>
    <bug_when>2022-11-10 13:38:06 -0800</bug_when>
    <thetext>*** Bug 247758 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1911644</commentid>
    <comment_count>5</comment_count>
    <who name="Ryan Haddad">ryanhaddad</who>
    <bug_when>2022-11-10 13:38:20 -0800</bug_when>
    <thetext>Reverted in https://commits.webkit.org/256547@main</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1911658</commentid>
    <comment_count>6</comment_count>
    <who name="Darin Adler">darin</who>
    <bug_when>2022-11-10 14:22:11 -0800</bug_when>
    <thetext>I changed Safari to not depend on this even before making the WebKit change:

rdar://102058171 (Remove unnecessary use of WTF&apos;s weakRandomUint32 from SafariShared)

How can I take advantage of this and re-land &lt;https://commits.webkit.org/256493@main&gt;?</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>