Bug 231831 - REGRESSION (r283276?): [ macOS wk2 ] http/tests/xmlhttprequest/access-control-repeated-failed-preflight-crash.html is a flaky crash: exception 'NSInternalInconsistencyException', reason: 'This task has already been stopped'
Summary: REGRESSION (r283276?): [ macOS wk2 ] http/tests/xmlhttprequest/access-control...
Status: RESOLVED CONFIGURATION CHANGED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (show other bugs)
Version: WebKit Nightly Build
Hardware: Mac (Intel) Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2021-10-15 14:07 PDT by ayumi_kojima
Modified: 2022-07-05 14:51 PDT (History)
7 users (show)

See Also:


Attachments
Crash log (103.23 KB, text/plain)
2021-10-15 14:11 PDT, ayumi_kojima
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description ayumi_kojima 2021-10-15 14:07:00 PDT
http/tests/xmlhttprequest/access-control-repeated-failed-preflight-crash.html

Is a flaky crash on macOS wk2.

History: https://results.webkit.org/?suite=layout-tests&test=http%2Ftests%2Fxmlhttprequest%2Faccess-control-repeated-failed-preflight-crash.html

The test has been flaky on macOS-Catalina-Release-WK2-Tests-EWS since this build: https://ews-build.webkit.org/#/builders/59/builds/16794

Result page: https://build.webkit.org/results/Apple-BigSur-Release-AppleSilicon-WK2-Tests/r284224%20(4694)/results.html

Stderr:

2021-10-14 19:53:12.676 WebKitTestRunner[41676:115157200] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'This task has already been stopped'
*** First throw call stack:
(
	0   CoreFoundation                      0x000000018e01cc28 __exceptionPreprocess + 240
	1   libobjc.A.dylib                     0x000000018dd450a8 objc_exception_throw + 60
	2   CoreFoundation                      0x000000018e01ca74 +[NSException exceptionWithName:reason:userInfo:] + 0
	3   WebKit                              0x00000001048e23b0 -[WKURLSchemeTaskImpl didReceiveData:] + 124
	4   WebKit                              0x00000001049bb580 __66-[WKInspectorResourceURLSchemeHandler webView:startURLSchemeTask:]_block_invoke + 1020
	5   Foundation                          0x000000018ed26f00 __NSBLOCKOPERATION_IS_CALLING_OUT_TO_A_BLOCK__ + 24
	6   Foundation                          0x000000018ed26da8 -[NSBlockOperation main] + 104
	7   Foundation                          0x000000018ed26d38 __NSOPERATION_IS_INVOKING_MAIN__ + 24
	8   Foundation                          0x000000018ed25f78 -[NSOperation start] + 808
	9   Foundation                          0x000000018ed25c48 __NSOPERATIONQUEUE_IS_STARTING_AN_OPERATION__ + 24
	10  Foundation                          0x000000018ed25afc __NSOQSchedule_f + 184
	11  libdispatch.dylib                   0x000000018dcee128 _dispatch_call_block_and_release + 32
	12  libdispatch.dylib                   0x000000018dcefec0 _dispatch_client_callout + 20
	13  libdispatch.dylib                   0x000000018dd017b0 _dispatch_root_queue_drain + 688
	14  libdispatch.dylib                   0x000000018dd01e90 _dispatch_worker_thread2 + 112
	15  libsystem_pthread.dylib             0x000000018de9b860 _pthread_wqthread + 216
	16  libsystem_pthread.dylib             0x000000018de9a5d4 start_wqthread + 8
)
libc++abi: terminating with uncaught exception of type NSException
Comment 1 Radar WebKit Bug Importer 2021-10-15 14:08:20 PDT
<rdar://problem/84316120>
Comment 2 ayumi_kojima 2021-10-15 14:10:31 PDT
Marked test expectations https://trac.webkit.org/changeset/284271/webkit
Comment 3 ayumi_kojima 2021-10-15 14:11:03 PDT
Created attachment 441425 [details]
Crash log
Comment 4 Alexey Proskuryakov 2021-10-19 15:06:47 PDT
Looks like this regressed this month.
Comment 5 Ryan Haddad 2021-10-19 16:28:26 PDT
Seems like it could be related to https://trac.webkit.org/changeset/283276/webkit
Comment 6 ayumi_kojima 2021-10-22 17:20:57 PDT
I was able to reproduce the crash locally using run-webkit-tests --force --debug --iterations 100 --exit-after-n-crashes-or-timeouts 1 http/tests/xmlhttprequest/access-control-repeated-failed-preflight-crash.html -f
Comment 7 Ryan Haddad 2022-05-19 12:53:25 PDT
This isn't crashing anymore, let's remove the expectation.
Comment 8 EWS 2022-07-05 14:31:48 PDT
Test gardening commit 252151@main (8d024500127d): <https://commits.webkit.org/252151@main>

Reviewed commits have been landed. Closing PR #2095 and removing active labels.
Comment 9 Hercules Hjalmarsson 2022-07-05 14:51:31 PDT
(In reply to EWS from comment #8)
> Test gardening commit 252151@main (8d024500127d):
> <https://commits.webkit.org/252151@main>
> 
> Reviewed commits have been landed. Closing PR #2095 and removing active
> labels.

Removed expectations in above commit.