RESOLVED FIXED 197724
[Legacy WebKit] REGRESSION (r238078): Crash in hardwareKeyboardAvailabilityChangedCallback()
https://bugs.webkit.org/show_bug.cgi?id=197724
Summary [Legacy WebKit] REGRESSION (r238078): Crash in hardwareKeyboardAvailabilityCh...
Daniel Bates
Reported 2019-05-08 16:24:12 PDT
Sometimes we crash in Legacy WebKit inside hardwareKeyboardAvailabilityChangedCallback(). Here's a snippet from the crash report: Application Specific Information: objc_msgSend() selector name: _frame Thread 4 Crashed: 0 libobjc.A.dylib 0x00000001ec272530 objc_msgSend + 16 1 WebKitLegacy 0x00000001f733c61c ___ZL43hardwareKeyboardAvailabilityChangedCallbackP22__CFNotificationCenterPvPK10__CFStringPKvPK14__CFDictionary_block_invoke + 20 2 WebCore 0x00000001f6b97624 HandleRunSource(void*) + 712 3 CoreFoundation 0x00000001ed0112bc __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 20 4 CoreFoundation 0x00000001ed01123c __CFRunLoopDoSource0 + 84 5 CoreFoundation 0x00000001ed010b74 __CFRunLoopDoSources0 + 252 6 CoreFoundation 0x00000001ed00ba60 __CFRunLoopRun + 1000 7 CoreFoundation 0x00000001ed00b354 CFRunLoopRunSpecific + 432 8 WebCore 0x00000001f5c65480 RunWebThread(void*) + 596 9 libsystem_pthread.dylib 0x00000001ecc9f2c0 _pthread_body + 124 10 libsystem_pthread.dylib 0x00000001ecc9f220 _pthread_start + 40 11 libsystem_pthread.dylib 0x00000001ecca2cdc thread_start + 0
Attachments
Patch (2.46 KB, patch)
2019-05-08 16:30 PDT, Daniel Bates
no flags
Daniel Bates
Comment 1 2019-05-08 16:24:55 PDT
Daniel Bates
Comment 2 2019-05-08 16:30:00 PDT
Tim Horton
Comment 3 2019-05-08 16:36:37 PDT
Comment on attachment 369444 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=369444&action=review > Source/WebKitLegacy/mac/WebView/WebHTMLView.mm:824 > + auto weakWebView = WeakObjCPtr<WebHTMLView>((__bridge WebHTMLView *)observer); You can probably just __weak, but this is fine too
Daniel Bates
Comment 4 2019-05-08 16:38:03 PDT
Comment on attachment 369444 [details] Patch Clearing flags on attachment: 369444 Committed r245076: <https://trac.webkit.org/changeset/245076>
Daniel Bates
Comment 5 2019-05-08 16:38:04 PDT
All reviewed patches have been landed. Closing bug.
Wenson Hsieh
Comment 6 2019-05-08 19:01:09 PDT
*** Bug 197124 has been marked as a duplicate of this bug. ***
Note You need to log in before you can comment on or make changes to this bug.