On Wed, Dec 15, 2010 at 11:49 AM, Richard Hipp <d...@sqlite.org> wrote:

>
>
> On Wed, Dec 15, 2010 at 8:34 AM, Yoni Londner <yonih...@gmail.com> wrote:
>
>> Hi,
>>
>> I wrote a little program that insert in a loop rows in to the DB, and in
>> another thread run wal_checkpoint.
>> After few minutes (6-7) I get (consistently) the following assert error:
>>
>> sqlite_test: ..//src/wal.c:1364: walMerge: Assertion `iLeft>=nLeft ||
>> aContent[aLeft[iLeft]]>dbpage' failed.
>>
>> I compiled sqlite from fossil, with -DSQLITE_DEBUG and -DSQLITE_TEST
>> I pasted below the program and the stacks.
>> Am I doing something wrong?
>>
>
> ...
>
>
>>     sqlite3_config(SQLITE_CONFIG_MULTITHREAD);
>>
>
> Read about SQLITE_CONFIG_MULTITHREAD here:
> http://www.sqlite.org/threadsafe.html
>
> MULTITHREAD is not safe to use with two or more threads sharing the same
> database connection.
>


Perhaps I speak too soon.  I'm still getting the error even after changing
this to SQLITE_CONFIG_SERIALIZED.  I am continuing to investigate....

-- 
D. Richard Hipp
d...@sqlite.org
_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to