This must be a SQLite lock, as I can copy the cookies file while Firefox is running just file.
The troubling part is the SQLite documentation implies that SQLITE_OPEN_READONLY should be all we need to allow concurrent reads, but in Windows, that's not the case.
Does anyone want to ask about this on a SQLite dev forum, or their bug tracker?.
Uh oh! Seems what I did didn't fix the problem.We are calling sqlite3_open_v2() with SQLITE_OPEN_READONLY, but when I removed the try/catch block, I'm getting this error when FireFox is running:
Exception: [Sqlite3MozCookieParser.cc:128] Failed to read SQLite3 database: database is locked
Any ideas what I should try? Perhaps look at http://www.sqlite.org/c3ref/io_methods.html ?.
I fixed this issue. It was a build issue. I forgot I have to explicitly list every library that configure needs when it runs. Latest 1.5.1 upload includes this fix.