From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Patrick Bernaud Newsgroups: gmane.lisp.guile.user Subject: Re: guile-gnome2 - Segmentation fault Date: Tue, 6 Jul 2010 17:37:57 +0200 Message-ID: <19507.19925.986008.455824@vagabond.local> References: <20100629183348.02da603c@rascar> <20100706031543.3ff5a433@rascar> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1278432030 16302 80.91.229.12 (6 Jul 2010 16:00:30 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 6 Jul 2010 16:00:30 +0000 (UTC) Cc: guile-user To: David Pirotte Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Tue Jul 06 18:00:28 2010 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OWAZK-0007Wf-JC for guile-user@m.gmane.org; Tue, 06 Jul 2010 18:00:25 +0200 Original-Received: from localhost ([127.0.0.1]:46195 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OWAZC-0005x1-95 for guile-user@m.gmane.org; Tue, 06 Jul 2010 12:00:14 -0400 Original-Received: from [140.186.70.92] (port=33038 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OWABC-0007GX-R7 for guile-user@gnu.org; Tue, 06 Jul 2010 11:35:27 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OWAB9-0000XI-DC for guile-user@gnu.org; Tue, 06 Jul 2010 11:35:26 -0400 Original-Received: from smtp-102-tuesday.nerim.net ([62.4.16.102]:55594 helo=kraid.nerim.net) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OWAB9-0000Wd-7o for guile-user@gnu.org; Tue, 06 Jul 2010 11:35:23 -0400 Original-Received: from vagabond.local (chrstn.pck.nerim.net [213.41.144.149]) by kraid.nerim.net (Postfix) with ESMTP id A01A8CF4DD; Tue, 6 Jul 2010 17:35:20 +0200 (CEST) Original-Received: from pat by vagabond.local with local (Exim 4.69) (envelope-from ) id 1OWADe-0000pN-W1; Tue, 06 Jul 2010 17:37:59 +0200 In-Reply-To: <20100706031543.3ff5a433@rascar> X-Mailer: VM 8.0.9 under Emacs 22.2.1 (i486-pc-linux-gnu) X-detected-operating-system: by eggs.gnu.org: FreeBSD 6.x (1) X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.user:7966 Archived-At: 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