Re: guile-gnome-0 - guile-1.6.8-6.3 - random crash

Andy Wingo <[email protected]> Mon, 22 Mar 2010 21:33:50 +0100
Newsgroups gmane.lisp.guile.gtk,gmane.lisp.guile.user
Message-ID <[email protected]>
On Wed 17 Mar 2010 21:09, David Pirotte <[email protected]> writes:

> I know, guile-gnome-0 is obsolate ... But I have no choice right know and really really hope that
> I can help developers to find out what the problem is and debug it ... 

As long as you know this :) This was released *five years ago* :)

Are you using custom tree models? I bet it's something whereby we are
freeing something with g_free but it was allocated with g_slice_alloc.

What about this fix (from git revision
c7101904f2704b3cf7fbde5c02602be01ff37f2b, 2007-12-09), to
gtk/gw/gtk-support.c:

@@ -727,7 +761,7 @@ _wrap_gtk_tree_model_iter_next (GtkTreeModel *model, GtkTreeIter *iter)
 
     if (gtk_tree_model_iter_next (model, new))
         return new;
-    g_free (new);
+    gtk_tree_iter_free (new);
     return NULL;
 }
     
Regards,

Andy
-- 
http://wingolog.org/