help-smalltalk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Help-smalltalk] Re: [bug] ROE test fails on Debian unstable/amd64


From: Paolo Bonzini
Subject: [Help-smalltalk] Re: [bug] ROE test fails on Debian unstable/amd64
Date: Tue, 18 Mar 2008 02:21:35 -0700

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);
}







reply via email to

[Prev in Thread] Current Thread [Next in Thread]