[Webkit-unassigned] [Bug 211637] SHOULD NEVER BE REACHED in WebKit::ResourceLoadStatisticsDatabaseStore::openAndUpdateSchemaIfNecessary
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri May 8 19:15:25 PDT 2020
https://bugs.webkit.org/show_bug.cgi?id=211637
Sihui Liu <sihui_liu at apple.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |sihui_liu at apple.com
--- Comment #2 from Sihui Liu <sihui_liu at apple.com> ---
>From the error log, "ERROR: SQLite database failed to set journal_mode to WAL, error: database is locked", it looks like there are conflicted transactions on the same database connection (https://www.sqlite.org/rescode.html#locked).
As this is regression from r260791(?), it's possible a database connection is not closed properly, e.g. a connection will not be closed if there are unfinalized prepared statements(https://www.sqlite.org/c3ref/close.html).
Looking at r260791, it seems NetworkSession::recreateResourceLoadStatisticStore can be called consecutively, and m_resourceLoadStatistics will be set before task dispatched in WebResourceLoadStatisticsStore::flushAndDestroyPersistentStore is done. Not sure if this is an issue. Maybe verify by waiting in NetworkSession::recreateResourceLoadStatisticStore until the completion handler is called to see if this fixes the issue.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20200509/09d6bc6a/attachment.htm>
More information about the webkit-unassigned
mailing list