<?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>272401</bug_id>
          
          <creation_ts>2024-04-09 08:34:43 -0700</creation_ts>
          <short_desc>iOS 17.4: WebContent crash-loops in iOS Simulator when trying to open any website</short_desc>
          <delta_ts>2024-04-10 11:19: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>WebKit Process Model</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>272400</dup_id>
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=271664</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="Alexey Proskuryakov">ap</reporter>
          <assigned_to name="Per Arne Vollan">pvollan</assigned_to>
          <cc>ajuma</cc>
    
    <cc>cdumez</cc>
    
    <cc>dvpdiner2</cc>
    
    <cc>pvollan</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2027162</commentid>
    <comment_count>0</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2024-04-09 08:34:43 -0700</bug_when>
    <thetext>When I try to open any website in MobileSafari in simulator, WebContent just crash-loops.

1. build-webkit --ios-simulator --release
2. run-safari --ios-simulator --release
3. Try opening apple.com

There is no crash log generated, and I don&apos;t see anything obvious in the system log - there are some lines about the process being launched, and then a process close notification right away.

default	08:31:12.889637-0700	MobileSafari	0x115018c40 - [PID=9362] WebProcessProxy::didFinishLaunching:
default	08:31:12.889683-0700	MobileSafari	0x115018d08 - [PID=9362] ProcessThrottler::didConnectToProcess
default	08:31:12.889693-0700	MobileSafari	0x115018d08 - [PID=9362] ProcessThrottler::setThrottleState: Updating process assertion type to 3 (foregroundActivities=1, backgroundActivities=3)
default	08:31:12.889709-0700	MobileSafari	AssertionCapability::AssertionCapability: taking assertion Foreground
default	08:31:12.889961-0700	MobileSafari	0x600001709100 - WKProcessAssertionBackgroundTaskManager: beginBackgroundTaskWithName
default	08:31:12.889991-0700	MobileSafari	WKProcessAssertionBackgroundTaskManager: Took a FinishTaskInterruptable assertion for own process
default	08:31:12.890003-0700	MobileSafari	0x115018c40 - [PID=9362] WebProcessProxy::didChangeThrottleState: type=2
default	08:31:12.890048-0700	MobileSafari	0x115018c40 - [PID=9362] WebProcessProxy::didChangeThrottleState(Foreground) Taking foreground assertion for network process
default	08:31:12.890072-0700	MobileSafari	0x1150c4c40 - ProcessAssertion::acquireSync Trying to take RBS assertion &apos;WebProcess Foreground Assertion&apos; for process with PID=9362
default	08:31:12.890140-0700	MobileSafari	0x1150e1b40 - NetworkProcessProxy::NetworkProcessProxy
default	08:31:12.890261-0700	runningboardd	Invalidating assertion 611-1565-27908 (target:[xpcservice&lt;com.apple.WebKit.WebContent([app&lt;com.apple.mobilesafari((null))&gt;:1565])&gt;:9362]) from originator [app&lt;com.apple.mobilesafari((null))&gt;:1565]
default	08:31:12.890405-0700	runningboardd	Acquiring assertion targeting [app&lt;com.apple.mobilesafari((null))&gt;:1565] from originator [app&lt;com.apple.mobilesafari((null))&gt;:1565] with description &lt;RBSAssertionDescriptor| &quot;WebKit UIProcess background task&quot; ID:611-1565-27911 target:1565 attributes:[
	&lt;RBSDomainAttribute| domain:&quot;com.apple.common&quot; name:&quot;FinishTaskInterruptable&quot; sourceEnvironment:&quot;(null)&quot;&gt;
	]&gt;
default	08:31:12.890453-0700	runningboardd	Assertion 611-1565-27911 (target:[app&lt;com.apple.mobilesafari((null))&gt;:1565]) will be created as inactive as start-time-defining assertions exist
default	08:31:12.890932-0700	runningboardd	Acquiring assertion targeting [xpcservice&lt;com.apple.WebKit.WebContent([app&lt;com.apple.mobilesafari((null))&gt;:1565])&gt;:9362](WebProcess9362) from originator [app&lt;com.apple.mobilesafari((null))&gt;:1565] with description &lt;RBSAssertionDescriptor| &quot;Browser Engine helper assertion targeting pid 9362&quot; ID:611-1565-27912 target:9362&lt;WebProcess9362&gt; attributes:[
	&lt;RBSDomainAttribute| domain:&quot;com.apple.webkit&quot; name:&quot;Foreground&quot; sourceEnvironment:&quot;(null)&quot;&gt;
	]&gt;
default	08:31:12.891227-0700	runningboardd	Assertion 611-1565-27912 (target:[xpcservice&lt;com.apple.WebKit.WebContent([app&lt;com.apple.mobilesafari((null))&gt;:1565])&gt;:9362](WebProcess9362)) will be created as active
default	08:31:12.890614-0700	MobileSafari	0x1150b1710 - [PID=0, throttler=0x1150e1c08] ProcessThrottler::Activity::Activity: Starting foreground activity / &apos;Networking for foreground view(s)&apos;
default	08:31:12.891432-0700	containermanagerd_system	[0x104604780] activating connection: mach=false listener=false peer=true name=com.apple.containermanagerd.system.peer[9362].0x104604780
default	08:31:12.890696-0700	MobileSafari	0x1150e1b40 - NetworkProcessProxy::sendXPCEndpointToProcess(0x115018c40) state = 1 has connection = 1 XPC endpoint message = 0x0
default	08:31:12.891880-0700	containermanagerd_system	stat [/Users/ap/Library/Developer/CoreSimulator/Devices/C60B4B1C-1B8C-4E6F-B796-2E22FEBB4FCF/data/Containers/Shared/SystemGroup/systemgroup.com.apple.nsurlstoragedresources/.com.apple.mobile_container_manager.metadata.plist]: exists: 1, isDirectory: 0, fsNode: &lt;MCMFSNode: 0x600000220800; inode = 820985, device = 16777235, ctime = 1712641863, isDirectory = NO, isSymlink = NO&gt;
default	08:31:12.892124-0700	containermanagerd_system	Query result: count = 1, error = (null)
default	08:31:12.891294-0700	MobileSafari	0x1150c4c40 - ProcessAssertion() Successfully granted capability
default	08:31:12.891433-0700	runningboardd	Calculated state for xpcservice&lt;com.apple.WebKit.WebContent([app&lt;com.apple.mobilesafari((null))&gt;:1565])&gt;: running-active (role: UserInteractiveFocal) (endowments: (null))
default	08:31:12.892149-0700	containermanagerd_system	[501] command=39, client=&lt;com.apple.WebKit.WebContent, u=&lt;501/20/501/2/501&gt;, uid=501, pid=9362, sandboxed=0, platform=7 (1/1/1) [(null)], cs cached&gt;, error=(null)
default	08:31:12.891541-0700	runningboardd	[xpcservice&lt;com.apple.WebKit.WebContent([app&lt;com.apple.mobilesafari((null))&gt;:1565])&gt;:9362] Set darwin role to: UserInteractiveFocal
default	08:31:12.891590-0700	runningboardd	9362 Set Darwin GPU to &quot;allow&quot;
default	08:31:12.892232-0700	runningboardd	Configuring RB job for extension: `Optional(&quot;com.apple.WebKit.Networking&quot;)`
default	08:31:12.892918-0700	runningboardd	Executing launch request for xpcservice&lt;com.apple.WebKit.Networking([app&lt;com.apple.mobilesafari((null))&gt;:1565])&gt; (Launching extension com.apple.WebKit.Networking(A878254C-0F46-452C-ACFD-D93195E58239 for host 1565)
default	08:31:12.892945-0700	runningboardd	Checking PreventLaunch: global:0 exPath:(null) predicates:(null) allow:(null)
default	08:31:12.892967-0700	runningboardd	Creating and launching job for: xpcservice&lt;com.apple.WebKit.Networking([app&lt;com.apple.mobilesafari((null))&gt;:1565])&gt;
default	08:31:12.893038-0700	runningboardd	&apos;F9FACA47-3768-4D55-A133-B20F8BEA2F5A&apos; Submitting extension overlay (host PID 1565, path /Library/Developer/CoreSimulator/Volumes/iOS_21E213/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 17.4.simruntime/Contents/Resources/RuntimeRoot/System/Library/ExtensionKit/Extensions/NetworkingExtension.appex/com.apple.WebKit.Networking):
&lt;dictionary: 0x600002629d40&gt; { count = 2, transaction: 0, voucher = 0x0, contents =
	&quot;XPCService&quot; =&gt; &lt;dictionary: 0x60000262a3a0&gt; { count = 13, transaction: 0, voucher = 0x0, contents =
		&quot;_ManagedBy&quot; =&gt; &lt;string: 0x600000c4df50&gt; { length = 22, contents = &quot;com.apple.runningboard&quot; }
		&quot;RunLoopType&quot; =&gt; &lt;string: 0x600000c4c810&gt; { length = 9, contents = &quot;NSRunLoop&quot; }
		&quot;_SandboxProfile&quot; =&gt; &lt;string: 0x600000c4e220&gt; { length = 27, contents = &quot;com.apple.WebKit.Networking&quot; }
		&quot;_AdditionalSubServices&quot; =&gt; &lt;dictionary: 0x600002629200&gt; { count = 1, transaction: 0, voucher = 0x0, contents =
			&quot;apple-extension-service&quot; =&gt; &lt;bool: 0x1e484cec0&gt;: true
		}
		&quot;_ProcessType&quot; =&gt; &lt;string: 0x600000c4fcc0&gt; { length = 3, contents = &quot;App&quot; }
		&quot;_AdditionalProperties&quot; =&gt; &lt;dictionary: 0x6000026294a0&gt; { count = 1, transaction: 0, voucher = 0x0, contents =
			&quot;RunningBoard&quot; =&gt; &lt;dictionary: 0x6000026287e0&gt; { count = 5, transaction: 0, voucher = 0x0, contents =
				&quot;Managed&quot; =&gt; &lt;bool: 0x1e484cec0&gt;: true
				&quot;RunningBoardLaunchedIdentity&quot; =&gt; &lt;dictionary: 0x6000026299e0&gt; { count = 7, transaction: 0, voucher = 0x0, contents =
					&quot;u&quot; =&gt; &lt;uuid: 0x600000c4fba0&gt; F9FACA47-3768-4D55-A133-B20F8BEA2F5A
					&quot;TYPE&quot; =&gt; &lt;int64: 0xb1629c9faaf12017&gt;: 4
					&quot;v&quot; =&gt; &lt;data: 0x6000017a2600&gt;: { length = 189 bytes, contents = 0x62706c6973743030d30102030405065c6c735265636f7264... }
					&quot;h&quot; =&gt; &lt;int64: 0xb1629c9faaf110df&gt;: 1565
					&quot;i&quot; =&gt; &lt;string: 0x600000c4d9b0&gt; { length = 27, contents = &quot;com.apple.WebKit.Networking&quot; }
					&quot;r&quot; =&gt; &lt;int64: 0xb1629c9faaf12027&gt;: 2
					&quot;H&quot; =&gt; &lt;dictionary: 0x60000262af40&gt; { count = 2, transaction: 0, voucher = 0x0, contents =
						&quot;TYPE&quot; =&gt; &lt;int64: 0xb1629c9faaf12027&gt;: 2
						&quot;EAI&quot; =&gt; &lt;string: 0x600000c4f7b0&gt; { length = 22, contents = &quot;com.apple.mobilesafari&quot; }
					}
				}
				&quot;Backoff&quot; =&gt; &lt;bool: 0x1e484cec0&gt;: true
				&quot;RunningBoardLaunched&quot; =&gt; &lt;bool: 0x1e484cec0&gt;: true
				&quot;LaunchRequestEndpointIdentifiers&quot; =&gt; &lt;dictionary: 0x600002629ce0&gt; { count = 2, transaction: 0, voucher = 0x0, contents =
					&quot;com.apple.WebKit.Networking&quot; =&gt; &lt;bool: 0x1e484cec0&gt;: true
					&quot;com.apple.frontboard.workspace-service&quot; =&gt; &lt;string: 0x600000c4da70&gt; { length = 27, contents = &quot;com.apple.WebKit.Networking&quot; }
				}
			}
		}
		&quot;EnvironmentVariables&quot; =&gt; &lt;dictionary: 0x60000262a520&gt; { count = 2, transaction: 0, voucher = 0x0, contents =
			&quot;EXTENSION_KIT_EXTENSION_TYPE&quot; =&gt; &lt;string: 0x600000c4de90&gt; { length = 1, contents = &quot;8&quot; }
			&quot;BSServiceDomains&quot; =&gt; &lt;string: 0x600000c4ee20&gt; { length = 46, contents = &quot;{&quot;XPCService&quot;:{&quot;Services&quot;:{&quot;MainService&quot;:{}}}}&quot; }
		}
		&quot;_OmitSandboxParameters&quot; =&gt; &lt;bool: 0x1e484cec0&gt;: true
		&quot;_AbandonCoalition&quot; =&gt; &lt;bool: 0x1e484cee0&gt;: false
		&quot;_MultipleInstances&quot; =&gt; &lt;bool: 0x1e484cec0&gt;: true
		&quot;ServiceType&quot; =&gt; &lt;string: 0x600000c4fab0&gt; { length = 11, contents = &quot;Application&quot; }
		&quot;ProgramArguments&quot; =&gt; &lt;array: 0x600000c4dcb0&gt; { count = 1, capacity = 8, contents =
			0: &lt;string: 0x600000c4c750&gt; { length = 245, contents = &quot;/Library/Developer/CoreSimulator/Volumes/iOS_21E213/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 17.4.simruntime/Contents/Resources/RuntimeRoot/System/Library/ExtensionKit/Extensions/NetworkingExtension.appex/com.apple.WebKit.Networking&quot; }
		}
		&quot;_ManagedBy_Services&quot; =&gt; &lt;array: 0x600000c4f960&gt; { count = 1, capacity = 8, contents =
			0: &lt;string: 0x600000c4f9f0&gt; { length = 27, contents = &quot;com.apple.WebKit.Networking&quot; }
		}
	}
	&quot;CFBundlePackageType&quot; =&gt; &lt;string: 0x600000c4d6b0&gt; { length = 4, contents = &quot;XPC!&quot; }
}
default	08:31:12.893271-0700	runningboardd	&lt;OSLaunchdJob | handle=4C146184-C3BE-4D87-8B88-B4052528C076&gt;: submitExtension created a job
default	08:31:12.893412-0700	runningboardd	&lt;OSLaunchdJob | handle=4C146184-C3BE-4D87-8B88-B4052528C076&gt;: createInstance created a job &lt;OSLaunchdJob | handle=B037E901-50BE-4C87-848E-53BDFE6CA6CF&gt;
default	08:31:12.895172-0700	MobileSafari	[0x102837d50] Re-initialization successful; calling out to event handler with XPC_ERROR_CONNECTION_INTERRUPTED
error	08:31:12.895186-0700	MobileSafari	0x115018c40 - [PID=9362] WebProcessProxy::didClose: (web process 0 crash)
default	08:31:12.895226-0700	containermanagerd_system	[0x104604780] invalidated after getting a no-senders notification - client is gone
error	08:31:12.895206-0700	MobileSafari	0x115018c40 - [PID=9362] WebProcessProxy::processDidTerminateOrFailedToLaunch: reason=Crash
default	08:31:12.895219-0700	MobileSafari	0x1150b0450 - [PID=9362, throttler=0x115018d08] ProcessThrottler::Activity::invalidate: Ending background activity / &apos;WebProcess initialization&apos;
default	08:31:12.895230-0700	MobileSafari	0x115018c40 - [PID=9362] WebProcessProxy::shutDown:
default	08:31:12.895240-0700	MobileSafari	AssertionCapability::AssertionCapability: taking assertion Background
default	08:31:12.895268-0700	MobileSafari	0x115018c40 - [PID=9362] WebProcessProxy::processWillShutDown:
default	08:31:12.895268-0700	MobileSafari	0x1150c5180 - ProcessAssertion::acquireSync Trying to take RBS assertion &apos;XPCConnectionTerminationWatchdog&apos; for process with PID=9362
default	08:31:12.895602-0700	runningboardd	Acquiring assertion targeting [xpcservice&lt;com.apple.WebKit.WebContent([app&lt;com.apple.mobilesafari((null))&gt;:1565])&gt;:9362](WebProcess9362) from originator [app&lt;com.apple.mobilesafari((null))&gt;:1565] with description &lt;RBSAssertionDescriptor| &quot;Browser Engine helper assertion targeting pid 9362&quot; ID:611-1565-27913 target:9362&lt;WebProcess9362&gt; attributes:[
	&lt;RBSDomainAttribute| domain:&quot;com.apple.webkit&quot; name:&quot;Background&quot; sourceEnvironment:&quot;(null)&quot;&gt;
	]&gt;
default	08:31:12.895291-0700	MobileSafari	0x115018d08 - [PID=9362] ProcessThrottler::didDisconnectFromProcess:
default	08:31:12.895672-0700	runningboardd	Failed to get cs_flags, error=3
default	08:31:12.895303-0700	MobileSafari	0x1150c4c40 - ~ProcessAssertion: Releasing process assertion &apos;WebProcess Foreground Assertion&apos; for process with PID=9362
default	08:31:12.895723-0700	runningboardd	SecTaskLoadEntitlements failed error=3 cs_flags=ffffffff, pid=9362
default	08:31:12.895850-0700	runningboardd	SecTaskCopyDebugDescription: com.apple.WebKit[9362]/0#-1 LF=3
default	08:31:12.895906-0700	runningboardd	Failed to get cs_flags, error=3
default	08:31:12.895952-0700	runningboardd	SecTaskLoadEntitlements failed error=3 cs_flags=ffffffff, pid=9362
default	08:31:12.896090-0700	runningboardd	SecTaskCopyDebugDescription: com.apple.WebKit[9362]/0#-1 LF=3
default	08:31:12.896178-0700	runningboardd	Failed to get cs_flags, error=3
default	08:31:12.896245-0700	runningboardd	SecTaskLoadEntitlements failed error=3 cs_flags=ffffffff, pid=9362
default	08:31:12.896332-0700	runningboardd	SecTaskCopyDebugDescription: com.apple.WebKit[9362]/0#-1 LF=3
default	08:31:12.896409-0700	runningboardd	Failed to get cs_flags, error=3</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2027163</commentid>
    <comment_count>1</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2024-04-09 08:36:19 -0700</bug_when>
    <thetext>Maybe this has something to do with bug 271664 and using a hardened runtime for the extension (thus unable to use locally built WebKit), but that&apos;s a long shot - I don&apos;t see log messages that I&apos;d expect in that case.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2027164</commentid>
    <comment_count>2</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2024-04-09 08:36:33 -0700</bug_when>
    <thetext>&lt;rdar://problem/126137753&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2027334</commentid>
    <comment_count>3</comment_count>
    <who name="Per Arne Vollan">pvollan</who>
    <bug_when>2024-04-09 21:48:41 -0700</bug_when>
    <thetext>*** Bug 271664 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2027428</commentid>
    <comment_count>4</comment_count>
    <who name="Per Arne Vollan">pvollan</who>
    <bug_when>2024-04-10 07:30:21 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/27080</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2027503</commentid>
    <comment_count>5</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2024-04-10 11:19:25 -0700</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 272400 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>