Bug 242622

Summary: Crashes in MockHidConnection::feedReports()
Product: WebKit Reporter: Alexey Proskuryakov <ap>
Component: WebKit Misc.Assignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: pascoe, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Description Alexey Proskuryakov 2022-07-11 17:45:34 PDT
There is a fair number of crashes in MockHidConnection::feedReports() on the bots. I saw them on ews115 (macOS-BigSur-Release-WK2-Tests-EWS), but by the numbers, others should be affected too.

Exception Type:        EXC_BREAKPOINT (SIGTRAP)
Exception Codes:       0x0000000000000002, 0x0000000000000000
Exception Note:        EXC_CORPSE_NOTIFY

Termination Signal:    Trace/BPT trap: 5
Termination Reason:    Namespace SIGNAL, Code 0x5
Terminating Process:   exc handler [37973]

Application Specific Information:
CRASHING TEST: /storageAccess/request-and-grant-access-cross-origin-sandboxed-nested-iframe.html

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   com.apple.WebKit              	0x0000000104849181 WebKit::MockHidConnection::feedReports() + 4943
1   com.apple.WebKit              	0x0000000104850713 WebKit::CtapHidDriver::Worker::write(WebKit::HidConnection::DataSent) + 419
2   com.apple.WebKit              	0x000000010484bbe3 WTF::Detail::CallableWrapper<WebKit::MockHidConnection::send(WTF::Vector<unsigned char, 0ul, WTF::CrashOnOverflow, 16ul, WTF::FastMalloc>&&, WTF::CompletionHandler<void (WebKit::HidConnection::DataSent)>&&)::$_21::operator()()::'lambda'(), void>::call() + 167
3   com.apple.JavaScriptCore      	0x00000001022c4781 WTF::RunLoop::performWork() + 545
4   com.apple.JavaScriptCore      	0x00000001022c5032 WTF::RunLoop::performWork(void*) + 34
5   com.apple.CoreFoundation      	0x7fff207440dc __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17 


This is happening on many different tests, entirely unrelated to WebAuthn.
Comment 1 Radar WebKit Bug Importer 2022-07-11 17:45:46 PDT
<rdar://problem/96853022>