Bug 231974

Summary: [ iOS15 Sim Debug ] API tests crashing (bot issue)
Product: WebKit Reporter: Eric Hutchison <ehutchison>
Component: New BugsAssignee: Nobody <webkit-unassigned>
Status: RESOLVED INVALID    
Severity: Normal CC: ehutchison, webkit-bot-watchers-bugzilla, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Description Eric Hutchison 2021-10-19 12:07:43 PDT
TestWebKitAPI._WKDownload.Resume

is a flaky crash on iOS15 Sim Debug.

History: https://results.webkit.org/?recent=false&suite=api-tests&test=TestWebKitAPI._WKDownload.Resume&platform=ios

Build: https://ews-build.webkit.org/#/builders/9/builds/56954, https://build.webkit.org/#/builders/267/builds/228

Results: https://ews-build.webkit.org/api/v2/logs/15117402/raw, https://build.webkit.org/api/v2/logs/4752498/raw

From STDIO on EWS:

Crashed
    TestWebKitAPI._WKDownload.Resume
        Child process terminated with signal 5: Trace/BPT trap
        2021-10-18 21:23:10.777 com.apple.WebKit.Networking.Development[95651:782981694] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Cannot create download task without request or resume data'
        *** First throw call stack:
        (
        	0   CoreFoundation                      0x00000001114fefba __exceptionPreprocess + 242
        	1   libobjc.A.dylib                     0x00000001112f8ff5 objc_exception_throw + 48
        	2   CFNetwork                           0x0000000111c8f228 CFNetwork + 16936
        	3   WebKit                              0x000000010f2bd667 _ZN6WebKit8Download6resumeERKN3IPC14ArrayReferenceIhLm18446744073709551615EEERKN3WTF6StringEONS_16SandboxExtension6HandleE + 353
        	4   WebKit                              0x000000010f3af6a4 _ZN6WebKit15DownloadManager14resumeDownloadEN3PAL9SessionIDEN3WTF16ObjectIdentifierINS_22DownloadIdentifierTypeEEERKN3IPC14ArrayReferenceIhLm18446744073709551615EEERKNS3_6StringEONS_16SandboxExtension6HandleENS_20CallDownloadDidStartE + 132
        	5   WebKit                              0x000000010f218f90 _ZN6WebKit14NetworkProcess31didReceiveNetworkProcessMessageERN3IPC10ConnectionERNS1_7DecoderE + 3212
        	6   WebKit                              0x000000010f1df473 _ZN3IPC10Connection15dispatchMessageENSt3__110unique_ptrINS_7DecoderENS1_14default_deleteIS3_EEEE + 221
        	7   WebKit                              0x000000010f1df6b5 _ZN3IPC10Connection26dispatchOneIncomingMessageEv + 169
        	8   JavaScriptCore                      0x0000000117000cc1 _ZN3WTF7RunLoop11performWorkEv + 545
        	9   JavaScriptCore                      0x0000000117001572 _ZN3WTF7RunLoop11performWorkEPv + 34
        	10  CoreFoundation                      0x000000011146cede __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
        	11  CoreFoundation                      0x000000011146cdd6 __CFRunLoopDoSource0 + 180
        	12  CoreFoundation                      0x000000011146c29e __CFRunLoopDoSources0 + 242
        	13  CoreFoundation                      0x00000001114669f7 __CFRunLoopRun + 875
        	14  CoreFoundation                      0x00000001114661a7 CFRunLoopRunSpecific + 567
        	15  Foundation                          0x000000010ed3d204 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 209
        	16  Foundation                          0x000000010ed3d418 -[NSRunLoop(NSRunLoop) run] + 76
        	17  libxpc.dylib                        0x0000000112d871a8 _xpc_objc_main + 591
        	18  libxpc.dylib                        0x0000000112d89143 xpc_main + 143
        	19  WebKit                              0x000000010f3934a8 _ZN6WebKit14XPCServiceMainEiPPKc + 87
        	20  libdyld.dylib                       0x0000000112a31bbd start + 1
        )

From https://build.webkit.org/#/builders/267/builds/228

(os/kern) memory data moved
worker/0 TestWebKitAPI._WKDownload.Resume Crashed
An error was encountered processing the command (domain=NSMachErrorDomain, code=24):
(os/kern) memory data moved

Unable to reproduce crash locally on ToT (r284463) using run-api-tests --ios-simulator --debug TestWebKitAPI._WKDownload.Resume.
Comment 1 Eric Hutchison 2021-10-19 12:27:17 PDT
Crash is due to a test issue, not the code itself. Closing bug.
Comment 2 Radar WebKit Bug Importer 2021-10-19 12:27:30 PDT
<rdar://problem/84427286>