Bug 256270

Summary: REGRESSION(262909@main): [ iOS ] TestWebKitAPI.WebKit.LockdownModeDefaultFirstUseMessage is a flaky crash
Product: WebKit Reporter: Robert Jenner <jenner>
Component: New BugsAssignee: youenn fablet <youennf>
Status: RESOLVED FIXED    
Severity: Normal CC: webkit-bot-watchers-bugzilla, webkit-bug-importer, youennf
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=254958
Attachments:
Description Flags
crash log none

Description Robert Jenner 2023-05-03 14:13:02 PDT
TestWebKitAPI.WebKit.LockdownModeDefaultFirstUseMessage

is a flaky crash on iOS. 

HISTORY:
https://results.webkit.org/?suite=api-tests&test=TestWebKitAPI.WebKit.LockdownModeDefaultFirstUseMessage

CRASH STDOUT:

    TestWebKitAPI.WebKit.LockdownModeDefaultFirstUseMessage
        Child process terminated with signal 11: Segmentation fault
Comment 1 Radar WebKit Bug Importer 2023-05-03 14:29:44 PDT
<rdar://problem/108860966>
Comment 2 Robert Jenner 2023-05-03 14:30:51 PDT
I was able to reproduce the crash at iOS 16 Debug ToT running the test as follows:

run-api-tests TestWebKitAPI.WebKit.LockdownModeDefaultFirstUseMessage --iterations 100
Comment 3 Robert Jenner 2023-05-03 14:52:54 PDT
I believe I was able to bisect to a specific regression point, but I am still confirming. 

However, so far it appears that https://commits.webkit.org/262909@main may have caused this to occur. I have been able to successfully reproduce the Segmentation fault crash mentioned above at 262909@main, but I was not able to reproduce it at 262908@main. 

I'm going to run the test in a few more iterations, just to confirm.
Comment 4 Robert Jenner 2023-05-03 15:03:27 PDT
https://commits.webkit.org/262909@main does appear to have changes in it that impact lockdown mode, and since this is a lock down mode test, I believe that is the cause for this. Also, I wasn't able to reproduce the crash at 262908@main, so it does
Comment 5 Ryan Haddad 2023-05-03 16:16:45 PDT
Created attachment 466199 [details]
crash log
Comment 6 youenn fablet 2023-05-09 00:20:23 PDT
*** Bug 256513 has been marked as a duplicate of this bug. ***
Comment 7 youenn fablet 2023-05-09 00:33:15 PDT
Pull request: https://github.com/WebKit/WebKit/pull/13631
Comment 8 EWS 2023-05-09 08:09:12 PDT
Committed 263865@main (83e11a3a6c03): <https://commits.webkit.org/263865@main>

Reviewed commits have been landed. Closing PR #13631 and removing active labels.