[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: guile-gnome2 - Segmentation fault
From: |
Andy Wingo |
Subject: |
Re: guile-gnome2 - Segmentation fault |
Date: |
Thu, 08 Jul 2010 20:57:11 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) |
On Tue 06 Jul 2010 16:37, Patrick Bernaud <address@hidden> writes:
> Hi David,
>
> David Pirotte writes:
> > [...]
> > Does it crashes for you [any guile-gnome user willing to try?] too?
>
> Yes it does for me too.
>
> In versions of gtk >= 2.11, tree iterators (GtkTreeIter) are allocated
> through the GSlice memory allocator
> (http://library.gnome.org/devel/glib/stable/glib-Memory-Slices.html)
> while current guile-gnome is allocating them through the more general
> memory-handling g_malloc() and friends.
>
> Freeing one item allocated with g_malloc() (what guile-gnome does)
> with GSlice func (what GTK does) has the consequences you
> experimented.
>
> GtkTextIter is also concerned by the problem and maybe other types
> too.
>
> Until guile-gnome is updated, set the environment variable G_SLICE to
> 'always-malloc'
> (http://library.gnome.org/devel/glib/stable/glib-running.html#G_SLICE)
> and it should be ok.
Aaaaaah, I see now. Thank you for the analysis. Will fix soon.
Andy
--
http://wingolog.org/