[Webkit-unassigned] [Bug 143245] Crash when WebCore::SQLiteFileSystem::openDatabase is called from multiple threads

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Apr 1 06:41:31 PDT 2015


https://bugs.webkit.org/show_bug.cgi?id=143245

Carlos Garcia Campos <cgarcia at igalia.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |andersca at apple.com,
                   |                            |darin at apple.com

--- Comment #2 from Carlos Garcia Campos <cgarcia at igalia.com> ---
Ok, it's the inspector web context. It happens since the inspector uses its own web context (r173929). It's because WebProcessProxy::getLaunchOptions() creates the inspector context to check if the current context is the inspector one or not , to add "inspector-process" extra config. I still don't know why sqlite crashes when trying to open the same database from multiple processes though, I don't even know if sqlite is supposed to be thread-safe. But we could just move the inspector-process thing to mac and ios platformGetLaunchOptions() methods, to avoid creating the two web contexts at the same time (and also to avoid the creation of the inspector web context even if the inspector is never used). Another alternative to avoid this could be using a different way to identify the inspector context without having to create the context for that. 
I also wonder if we should avoid creating the local storage database when localStorage is disabled in settings, but that would be a different issue.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20150401/4b3a2a95/attachment-0001.html>


More information about the webkit-unassigned mailing list