Re: [sqlite-dev] [sqlite] Core dump with python multi thread programming using sqlite3 DB

3 views
Skip to first unread message

Richard Hipp

unread,
Mar 1, 2019, 6:47:57 PM3/1/19
to SQLite mailing list, sqlit...@mailinglists.sqlite.org
On 2/28/19, Rishi Mutnuru <rishi....@oracle.com> wrote:
> Hi Experts,
> I am developing a Multi threaded solution using sqlite3 DB. I know there are
> some issues
> With SQlite3 and python multithreads.
>
> 1. I compiled libsqlite3 with SQLITE_THREADSAFE=2 so that multiple threads
> can use it.
> 2. I used the APIs threading.Lock(), and lock.acquire(), lock.release() to
> serialize the DB read/update operations.

Segfaults in sqlite3_free() are almost always the result of heap
corruption caused by some other component of the application. SQLite
just happened to be the unlucky library that first stumbled over the
heap corruption.


--
D. Richard Hipp
d...@sqlite.org
_______________________________________________
sqlite-dev mailing list
sqlit...@mailinglists.sqlite.org
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-dev

Reply all
Reply to author
Forward
0 new messages