Bug 272401

Summary: iOS 17.4: WebContent crash-loops in iOS Simulator when trying to open any website
Product: WebKit Reporter: Alexey Proskuryakov <ap>
Component: WebKit Process ModelAssignee: Per Arne Vollan <pvollan>
Status: RESOLVED DUPLICATE    
Severity: Normal CC: ajuma, cdumez, dvpdiner2, pvollan, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=271664

Alexey Proskuryakov
Reported 2024-04-09 08:34:43 PDT
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'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 'WebProcess Foreground Assertion' 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<com.apple.WebKit.WebContent([app<com.apple.mobilesafari((null))>:1565])>:9362]) from originator [app<com.apple.mobilesafari((null))>:1565] default 08:31:12.890405-0700 runningboardd Acquiring assertion targeting [app<com.apple.mobilesafari((null))>:1565] from originator [app<com.apple.mobilesafari((null))>:1565] with description <RBSAssertionDescriptor| "WebKit UIProcess background task" ID:611-1565-27911 target:1565 attributes:[ <RBSDomainAttribute| domain:"com.apple.common" name:"FinishTaskInterruptable" sourceEnvironment:"(null)"> ]> default 08:31:12.890453-0700 runningboardd Assertion 611-1565-27911 (target:[app<com.apple.mobilesafari((null))>:1565]) will be created as inactive as start-time-defining assertions exist default 08:31:12.890932-0700 runningboardd Acquiring assertion targeting [xpcservice<com.apple.WebKit.WebContent([app<com.apple.mobilesafari((null))>:1565])>:9362](WebProcess9362) from originator [app<com.apple.mobilesafari((null))>:1565] with description <RBSAssertionDescriptor| "Browser Engine helper assertion targeting pid 9362" ID:611-1565-27912 target:9362<WebProcess9362> attributes:[ <RBSDomainAttribute| domain:"com.apple.webkit" name:"Foreground" sourceEnvironment:"(null)"> ]> default 08:31:12.891227-0700 runningboardd Assertion 611-1565-27912 (target:[xpcservice<com.apple.WebKit.WebContent([app<com.apple.mobilesafari((null))>:1565])>: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 / 'Networking for foreground view(s)' 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: <MCMFSNode: 0x600000220800; inode = 820985, device = 16777235, ctime = 1712641863, isDirectory = NO, isSymlink = NO> 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<com.apple.WebKit.WebContent([app<com.apple.mobilesafari((null))>:1565])>: running-active (role: UserInteractiveFocal) (endowments: (null)) default 08:31:12.892149-0700 containermanagerd_system [501] command=39, client=<com.apple.WebKit.WebContent, u=<501/20/501/2/501>, uid=501, pid=9362, sandboxed=0, platform=7 (1/1/1) [(null)], cs cached>, error=(null) default 08:31:12.891541-0700 runningboardd [xpcservice<com.apple.WebKit.WebContent([app<com.apple.mobilesafari((null))>:1565])>:9362] Set darwin role to: UserInteractiveFocal default 08:31:12.891590-0700 runningboardd 9362 Set Darwin GPU to "allow" default 08:31:12.892232-0700 runningboardd Configuring RB job for extension: `Optional("com.apple.WebKit.Networking")` default 08:31:12.892918-0700 runningboardd Executing launch request for xpcservice<com.apple.WebKit.Networking([app<com.apple.mobilesafari((null))>:1565])> (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<com.apple.WebKit.Networking([app<com.apple.mobilesafari((null))>:1565])> default 08:31:12.893038-0700 runningboardd 'F9FACA47-3768-4D55-A133-B20F8BEA2F5A' 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): <dictionary: 0x600002629d40> { count = 2, transaction: 0, voucher = 0x0, contents = "XPCService" => <dictionary: 0x60000262a3a0> { count = 13, transaction: 0, voucher = 0x0, contents = "_ManagedBy" => <string: 0x600000c4df50> { length = 22, contents = "com.apple.runningboard" } "RunLoopType" => <string: 0x600000c4c810> { length = 9, contents = "NSRunLoop" } "_SandboxProfile" => <string: 0x600000c4e220> { length = 27, contents = "com.apple.WebKit.Networking" } "_AdditionalSubServices" => <dictionary: 0x600002629200> { count = 1, transaction: 0, voucher = 0x0, contents = "apple-extension-service" => <bool: 0x1e484cec0>: true } "_ProcessType" => <string: 0x600000c4fcc0> { length = 3, contents = "App" } "_AdditionalProperties" => <dictionary: 0x6000026294a0> { count = 1, transaction: 0, voucher = 0x0, contents = "RunningBoard" => <dictionary: 0x6000026287e0> { count = 5, transaction: 0, voucher = 0x0, contents = "Managed" => <bool: 0x1e484cec0>: true "RunningBoardLaunchedIdentity" => <dictionary: 0x6000026299e0> { count = 7, transaction: 0, voucher = 0x0, contents = "u" => <uuid: 0x600000c4fba0> F9FACA47-3768-4D55-A133-B20F8BEA2F5A "TYPE" => <int64: 0xb1629c9faaf12017>: 4 "v" => <data: 0x6000017a2600>: { length = 189 bytes, contents = 0x62706c6973743030d30102030405065c6c735265636f7264... } "h" => <int64: 0xb1629c9faaf110df>: 1565 "i" => <string: 0x600000c4d9b0> { length = 27, contents = "com.apple.WebKit.Networking" } "r" => <int64: 0xb1629c9faaf12027>: 2 "H" => <dictionary: 0x60000262af40> { count = 2, transaction: 0, voucher = 0x0, contents = "TYPE" => <int64: 0xb1629c9faaf12027>: 2 "EAI" => <string: 0x600000c4f7b0> { length = 22, contents = "com.apple.mobilesafari" } } } "Backoff" => <bool: 0x1e484cec0>: true "RunningBoardLaunched" => <bool: 0x1e484cec0>: true "LaunchRequestEndpointIdentifiers" => <dictionary: 0x600002629ce0> { count = 2, transaction: 0, voucher = 0x0, contents = "com.apple.WebKit.Networking" => <bool: 0x1e484cec0>: true "com.apple.frontboard.workspace-service" => <string: 0x600000c4da70> { length = 27, contents = "com.apple.WebKit.Networking" } } } } "EnvironmentVariables" => <dictionary: 0x60000262a520> { count = 2, transaction: 0, voucher = 0x0, contents = "EXTENSION_KIT_EXTENSION_TYPE" => <string: 0x600000c4de90> { length = 1, contents = "8" } "BSServiceDomains" => <string: 0x600000c4ee20> { length = 46, contents = "{"XPCService":{"Services":{"MainService":{}}}}" } } "_OmitSandboxParameters" => <bool: 0x1e484cec0>: true "_AbandonCoalition" => <bool: 0x1e484cee0>: false "_MultipleInstances" => <bool: 0x1e484cec0>: true "ServiceType" => <string: 0x600000c4fab0> { length = 11, contents = "Application" } "ProgramArguments" => <array: 0x600000c4dcb0> { count = 1, capacity = 8, contents = 0: <string: 0x600000c4c750> { length = 245, contents = "/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" } } "_ManagedBy_Services" => <array: 0x600000c4f960> { count = 1, capacity = 8, contents = 0: <string: 0x600000c4f9f0> { length = 27, contents = "com.apple.WebKit.Networking" } } } "CFBundlePackageType" => <string: 0x600000c4d6b0> { length = 4, contents = "XPC!" } } default 08:31:12.893271-0700 runningboardd <OSLaunchdJob | handle=4C146184-C3BE-4D87-8B88-B4052528C076>: submitExtension created a job default 08:31:12.893412-0700 runningboardd <OSLaunchdJob | handle=4C146184-C3BE-4D87-8B88-B4052528C076>: createInstance created a job <OSLaunchdJob | handle=B037E901-50BE-4C87-848E-53BDFE6CA6CF> 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 / 'WebProcess initialization' 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 'XPCConnectionTerminationWatchdog' for process with PID=9362 default 08:31:12.895602-0700 runningboardd Acquiring assertion targeting [xpcservice<com.apple.WebKit.WebContent([app<com.apple.mobilesafari((null))>:1565])>:9362](WebProcess9362) from originator [app<com.apple.mobilesafari((null))>:1565] with description <RBSAssertionDescriptor| "Browser Engine helper assertion targeting pid 9362" ID:611-1565-27913 target:9362<WebProcess9362> attributes:[ <RBSDomainAttribute| domain:"com.apple.webkit" name:"Background" sourceEnvironment:"(null)"> ]> 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 'WebProcess Foreground Assertion' 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
Attachments
Alexey Proskuryakov
Comment 1 2024-04-09 08:36:19 PDT
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's a long shot - I don't see log messages that I'd expect in that case.
Radar WebKit Bug Importer
Comment 2 2024-04-09 08:36:33 PDT
Per Arne Vollan
Comment 3 2024-04-09 21:48:41 PDT
*** Bug 271664 has been marked as a duplicate of this bug. ***
Per Arne Vollan
Comment 4 2024-04-10 07:30:21 PDT
Alexey Proskuryakov
Comment 5 2024-04-10 11:19:25 PDT
*** This bug has been marked as a duplicate of bug 272400 ***
Note You need to log in before you can comment on or make changes to this bug.