"database is locked" and "table soup_hsts_policies already exsits" on multiple WebKitGTK WebContexts
While working on Nyxt, I tried to use one WebContext per tab. We need this in particular to have tabs with proxy together with tabs without proxy.
https://github.com/atlas-engineer/nyxt/issues/826
But if we generate one WebContext per buffer, we get hundreds of these lines on startup:
(process:23271): libsoup-WARNING **: 11:40:55.141: Failed to execute query: table soup_hsts_policies already exists
(process:23271): libsoup-WARNING **: 11:40:55.141: Failed to execute query: database is locked
Eventually, the browser crashes after about a minute with
CORRUPTION WARNING in SBCL pid 23231(tid 0x7fd373667700):
Memory fault at (nil) (pc=0x7fd3796214e0, fp=0x7fd3640a4b48, sp=0x7fd3736661c0) tid 0x7fd373667700
The integrity of this image is possibly compromised.
Continuing with fingers crossed.
debugger invoked on a SB-SYS:MEMORY-FAULT-ERROR in thread
#<THREAD "cl-cffi-gtk main thread" RUNNING {1005E73CE3}>:
Unhandled memory fault at #x0.
The current thread is not at the foreground,
SB-THREAD:RELEASE-FOREGROUND has to be called in #<SB-THREAD:THREAD "main thread" waiting on: #<MUTEX "thread result lock" owner: #<SB-THREAD:THREAD "cl-cffi-gtk main thread" RUNNING {1005E73CE3}>> {1000650083}>
for this thread to enter the debugger.
(Nyxt is written in Common Lisp and uses CFFI.)