pp wrote:

> #0  0x404048b3 in mysql_free_result () from /usr/lib/libmysqlclient.so.10
> #1  0x4045919a in mgd_release () from /usr/lib/libmidgard.so.5
> #2  0x4252bccb in get_module () from /usr/lib/php4/20010901/midgard.so

Appearantly the midgard handle has a corrupted mysql handle... try the
attached patch; it won't solve it but at least it can confirm my
suspicion.

Emile
Index: midgard.c
===================================================================
RCS file: /usr/local/cvs/midgard/lib/src/midgard.c,v
retrieving revision 1.32
diff -u -r1.32 midgard.c
--- midgard.c   2002/03/11 21:24:50     1.32
+++ midgard.c   2002/03/21 13:46:59
@@ -1386,8 +1386,15 @@
 
 void mgd_release(midgard_res * res)
 {
-       assert(res && res->res);
+       assert(res);
+
+   if (res->res == NULL) {
+      g_log("midgard-lib", G_LOG_LEVEL_WARNING, "Someone is holding a stale reference 
+to a midgard handle");
+      return;
+   }
+
        mysql_free_result(res->res);
+   res->res = NULL;
        mgd_free_pool(res->pool);
        if (res->next)
                res->next->prev = res->prev;
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to