guile-user
[Top][All Lists]
Advanced

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

Re: guile-gnome2 - Segmentation fault


From: Patrick Bernaud
Subject: Re: guile-gnome2 - Segmentation fault
Date: Tue, 6 Jul 2010 17:37:57 +0200

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.

Regards,


Patrick



reply via email to

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