On May 14, 2009, at 6:07 AM, Ala Qumsieh wrote:

> Hi all,
>
> I'm using the latest sqlite3 v3.6.14.
>
> I noticed that when using virtual tables (with the R*TREE extension),
> I'm getting sporadic core dumps. After some digging around, I traced
> this to the sqlite3MemFree function (during a call to disconnect):
>
> static void sqlite3MemFree(void *pPrior){
>  sqlite3_int64 *p = (sqlite3_int64*)pPrior;
>  assert( pPrior!=0 );
>  p--;
>  free(p);
> }
>
> Here, the call to free() is core dumping. My C skills aren't sharp
> enough to figure out why the pointer is decremented, but it seems this
> is causing core dumps only with virtual tables.
>
> Did anybody else see this? Am I doing something wrong?

Do you have a stack trace for the crash? On linux, open the core with
[gdb <program> <core-file>] and type "where".

Dan.



> Thanks,
> --Ala
>
> PS. I'm unable to create a simple test case as I'm using this through
> Perl's DBD::SQLite module, but I can try if you really need one.
> _______________________________________________
> sqlite-users mailing list
> [email protected]
> http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

_______________________________________________
sqlite-users mailing list
[email protected]
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to