Bug 207115

Summary: REGRESSION: [ iOS ] 20 iOS api tests are crashing after system update
Product: WebKit Reporter: Truitt Savell <tsavell>
Component: New BugsAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: aakash_jain, jbedard, webkit-bot-watchers-bugzilla, 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=207216
Attachments:
Description Flags
Crash Log none

Description Truitt Savell 2020-02-03 07:50:39 PST
20 iOS api tests are crashing after system update

These tests are crashing all with "Child process terminated with signal 11: Segmentation fault"

Stdio:
https://build.webkit.org/builders/Apple%20iOS%2013%20Simulator%20Release%20WK2%20%28Tests%29/builds/2341/steps/run-api-tests/logs/stdio

These are very flaky crashes and we are seeing 7-12 crashes fairly consistently. 

The only one I am able to reproduce reliably with iterations is:

TestWebKitAPI.KeyboardInputTests.SupportsImagePaste
Comment 1 Radar WebKit Bug Importer 2020-02-03 07:50:53 PST
<rdar://problem/59110543>
Comment 2 Truitt Savell 2020-02-03 10:03:54 PST
I am able to get this to fail as far back as 251002
Comment 3 Truitt Savell 2020-02-03 10:13:44 PST
TestWebKitAPI.ProcessSwap.BasicWithAsyncSchemeHandler
TestWebKitAPI.KeyboardInputTests.SupportsImagePaste
TestWebKitAPI.ProcessSwap.CrossOriginBlobNavigation
TestWebKitAPI.WebKit.DoAfterNextStablePresentationUpdateAfterCrash
TestWebKitAPI.WebKit.WKHTTPCookieStore
TestWebKitAPI.ResourceLoadStatistics.EnableDisableITP
TestWebKitAPI.WebKit.GeolocationPermission
TestWebKitAPI.PreferredContentMode.DesktopModeUsesNativeViewportByDefault
TestWebKitAPI.WebKit.WebsiteDataStoreCustomPathsWithPrewarming
TestWebKitAPI.KeyboardInputTests.ModifyInputAssistantItemBarButtonGroups
TestWebKitAPI.WebKit.LoadInvalidURLRequest
TestWebKitAPI.WKWebViewCloseAllMediaPresentations.ElementFullscreen
TestWebKitAPI.PreferredContentMode.DesktopModeOnPhone
TestWebKitAPI.WKWebViewFindString.DoNotUpdateMatchIndexWhenGivenNoIndexChangeOption
TestWebKitAPI.URLSchemeHandler.Exceptions
TestWebKitAPI.WKWebViewEditActions.NestedListInsertion
TestWebKitAPI.WebKit.NetworkProcessRelaunchOnLaunchFailure
TestWebKitAPI.ProcessSwap.ServerRedirect
TestWebKitAPI.DeviceOrientation.RememberPermissionForSession
Comment 4 Truitt Savell 2020-02-03 13:38:29 PST
Created attachment 389558 [details]
Crash Log
Comment 5 Jonathan Bedard 2020-02-04 08:10:03 PST
Looking at the code, my guess is that we someone have a test somehow not associated with a file or a line number. If we have a reliable reproduction, I can probably fix it. Building now to test.
Comment 6 Jonathan Bedard 2020-02-04 11:51:51 PST
I can fix the crash, but the crash is just surprising another error, likely an uncaught C++ exception (for TestWebKitAPI.KeyboardInputTests.SupportsImagePaste), but I haven't run all of the effected tests.
Comment 7 Jonathan Bedard 2020-02-11 09:15:40 PST
Wenson fixed this in https://bugs.webkit.org/show_bug.cgi?id=207525.