add more log statements to help debug 2419869
this STOPSHIP CL is adding to the previous STOPSHIP CL for this class of bugs
https://android-git.corp.google.com/g/#change,40395
diff --git a/dist/sqlite3.c b/dist/sqlite3.c
index 7765275..8c5d9f0 100644
--- a/dist/sqlite3.c
+++ b/dist/sqlite3.c
@@ -50639,6 +50639,7 @@
assert(p);
if( p->magic!=VDBE_MAGIC_RUN ){
+ LOGE("trying to use already finalized prepared statement");
return android_STOPSHIP_seppuku(); // Android change STOPSHIP - to debug # 2419869;
}
@@ -51250,6 +51251,10 @@
if( p->magic!=VDBE_MAGIC_RUN || p->pc>=0 ){
sqlite3Error(p->db, SQLITE_MISUSE, 0);
sqlite3_mutex_leave(p->db->mutex);
+ if (p->magic==VDBE_MAGIC_RUN || p->magic==VDBE_MAGIC_INIT || p->magic==VDBE_MAGIC_HALT)
+ LOGE("prepared statement is busy (database = %s)", sqlite3BtreeGetFilename(p->db->aDb[0].pBt));
+ else
+ LOGE("binding to an already_finalized prepared statement");
return android_STOPSHIP_seppuku(); // Android change STOPSHIP - to debug # 2419869;
}
if( i<1 || i>p->nVar ){