Hey all, I seem to have found a crash that is 100% reproducible in SQLite 3.6.5. I'm managed to make a reduced test case in a C file that can be found here: http://files.shawnwilsher.com/2008/11/12/test.c
The file is compiled with the following command: gcc sqlite3.c test.c -DSQLITE_SECURE_DELETE=1 -DTHREADSAFE=1 -DSQLITE_CORE=1 -DSQLITE_ENABLE_FTS3=1 The program crashes when we try to commit the transaction with the following stack trace: Program received signal EXC_BAD_ACCESS, Could not access memory. Reason: KERN_PROTECTION_FAILURE at address: 0x00000000 0x0005d258 in sqlite3VtabSync (db=0x100168, pzErrmsg=0x101b58) at sqlite3.c:75690 75690 for(i=0; rc==SQLITE_OK && i<db->nVTrans && aVTrans[i]; i++){ (gdb) bt #0 0x0005d258 in sqlite3VtabSync (db=0x100168, pzErrmsg=0x101b58) at sqlite3.c:75690 #1 0x00024d47 in vdbeCommit (db=0x100168, p=0x101ac8) at sqlite3.c:42890 #2 0x0002550e in sqlite3VdbeHalt (p=0x101ac8) at sqlite3.c:43230 #3 0x000291a9 in sqlite3VdbeExec (p=0x101ac8) at sqlite3.c:46357 #4 0x000272b1 in sqlite3Step (p=0x101ac8) at sqlite3.c:44607 #5 0x0002757a in sqlite3_step (pStmt=0x101ac8) at sqlite3.c:44671 #6 0x0006e54e in segdir_max_index (v=0x102108, iLevel=0, pidx=0xbfffed98) at sqlite3.c:87702 #7 0x000744d4 in segdirNextIndex (v=0x102108, iLevel=0, pidx=0xbfffed98) at sqlite3.c:90949 #8 0x000754b7 in writeZeroSegment (v=0x102108, pTerms=0x1021c4) at sqlite3.c:91477 #9 0x0007574d in flushPendingTerms (v=0x102108) at sqlite3.c:91535 #10 0x00075a50 in fulltextSync (pVtab=0x102108) at sqlite3.c:91643 #11 0x0005d20a in sqlite3VtabSync (db=0x100168, pzErrmsg=0x101228) at sqlite3.c:75695 #12 0x00024d47 in vdbeCommit (db=0x100168, p=0x101198) at sqlite3.c:42890 #13 0x0002550e in sqlite3VdbeHalt (p=0x101198) at sqlite3.c:43230 #14 0x0002c0e3 in sqlite3VdbeExec (p=0x101198) at sqlite3.c:47952 #15 0x000272b1 in sqlite3Step (p=0x101198) at sqlite3.c:44607 #16 0x0002757a in sqlite3_step (pStmt=0x101198) at sqlite3.c:44671 #17 0x0004a9aa in sqlite3_exec (db=0x100168, zSql=0x7ffca "COMMIT TRANSACTION", xCallback=0, pArg=0x0, pzErrMsg=0x0) at sqlite3.c:65582 #18 0x000790b9 in main () at test.c:25 Cheers, Shawn _______________________________________________ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users