Issue status update for http://smalltalk.gnu.org/project/issue/190 Post a follow up: http://smalltalk.gnu.org/project/comments/add/190

Project:      GNU Smalltalk
Version:      <none>
Component:    Testsuite
Category:     bug reports
Priority:     normal
Assigned to:  Unassigned
Reported by:  tgg
Updated by:   bonzinip
Status:       active

Interesting, I see it too with 3.5.6 (not with 3.4.2).  This patch fixes
it, I think.  It's a double free or something like that:

diff --git a/packages/dbd-sqlite/sqlite3.c
b/packages/dbd-sqlite/sqlite3.c
index fda8390..55d34ba 100644
--- a/packages/dbd-sqlite/sqlite3.c
+++ b/packages/dbd-sqlite/sqlite3.c
@@ -217,8 +217,11 @@ gst_sqlite3_finalize (OOP self)
  SQLite3StmtHandle h;

  h = (SQLite3StmtHandle) OOP_TO_OBJ (self);
-  stmt = (sqlite3_stmt *) vmProxy->OOPToCObject (h->stmt);
+  if (h->stmt == vmProxy->nilOOP)
+    return 0;

+  stmt = (sqlite3_stmt *) vmProxy->OOPToCObject (h->stmt);
+  h->stmt = vmProxy->nilOOP;
  return sqlite3_finalize (stmt);
}





_______________________________________________
help-smalltalk mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-smalltalk

Reply via email to