The only place I see this line in SQLite's code is
sqlite3_initialize(). So your path given to sqlite3_open_v2() is
completely irrelevant and FTR no other process "can have a mutex" so
that it will lead to crash of your process. The problem is that your
application corrupts memory. Run it under valgrind and see where the
problem is.

Pavel

On Tue, Oct 20, 2009 at 3:25 PM, Kavita Raghunathan
<kavita.raghunat...@skyfiber.com> wrote:
> Although i have successfully opened the database several times,
> today I'm seeing crashes on this line when I use sqlite3_open_v2:
>
> sqlite3_mutex_free(sqlite3GlobalConfig.pInitMutex);
>
> Any ideas what I could be doing wrong to cause this crash ?
>
> Here is the exact way I'm using this C wrapper:
> sqlite3_open_v2(db_filename, &EntityDB, 
> SQLITE_OPEN_READWRITE|SQLITE_OPEN_FULLMUTEX, NULL)
>
>
> Things I've already tried:
> 1) Killed any processes that are still running that might have the mutex
> 2) Checked to see if I have a valid file name and path, I'm using /tmp/abc.db
>
> Thanks,
> Kavita
>
> _______________________________________________
> sqlite-users mailing list
> sqlite-users@sqlite.org
> http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users
>
_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to