Bug 243880 - RELEASE_ASSERT(isUIThread()) in WebKit::allDataStores
Summary: RELEASE_ASSERT(isUIThread()) in WebKit::allDataStores
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Website Storage (show other bugs)
Version: Safari 15
Hardware: iPhone / iPad iOS 15
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2022-08-12 08:38 PDT by Daniel
Modified: 2022-08-12 18:35 PDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel 2022-08-12 08:38:53 PDT
We are getting a significant amount of crashes with this stack trace:

Crashed: WebThread
0  WebKit                         0x17c90 WTFCrashWithInfo(int, char const*, char const*, int) + 20
1  WebKit                         0x6af064 WebKit::allDataStores() + 76
2  WebKit                         0x6aef78 WebKit::WebsiteDataStore::forEachWebsiteDataStore(WTF::Function<void (WebKit::WebsiteDataStore&)>&&) + 28
3  WebKit                         0x3f3a88 WebKit::WebProcessPool::updateProcessSuppressionState() + 112
4  WebKit                         0x59f168 WebKit::WebPageProxy::updateThrottleState() + 192
5  WebKit                         0x5ae300 WebKit::WebPageProxy::dispatchActivityStateChange() + 1008
6  CoreFoundation                 0x410c4 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 36
7  CoreFoundation                 0x10080 __CFRunLoopDoObservers + 592
8  CoreFoundation                 0x1ec1c CFRunLoopRunSpecific + 684
9  WebCore                        0xbe9d3c <redacted> + 760
10 libsystem_pthread.dylib        0x19ac _pthread_start + 148
11 libsystem_pthread.dylib        0xe68 thread_start + 8

All the other threads are idle at the time of the crash.

The crash seems to affect iOS 15.2.0+ and 16.0.0.
It started appearing in late July 2022 for us.
Comment 1 Alexey Proskuryakov 2022-08-12 18:35:33 PDT
The only RELEASE_ASSERT in this function is:

    RELEASE_ASSERT(isUIThread());
Comment 2 Radar WebKit Bug Importer 2022-08-12 18:35:43 PDT
<rdar://problem/98596494>