From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Peter TB Brett Newsgroups: gmane.lisp.guile.user Subject: Re: Help needed debugging segfault with Guile 1.8.7 Date: Wed, 10 Nov 2010 21:35:52 +0000 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" X-Trace: dough.gmane.org 1289424944 16182 80.91.229.12 (10 Nov 2010 21:35:44 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 10 Nov 2010 21:35:44 +0000 (UTC) To: guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Wed Nov 10 22:35:39 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 1PGIKQ-0003E6-EI for guile-user@m.gmane.org; Wed, 10 Nov 2010 22:35:38 +0100 Original-Received: from localhost ([127.0.0.1]:52713 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PGIKP-00064F-T6 for guile-user@m.gmane.org; Wed, 10 Nov 2010 16:35:37 -0500 Original-Received: from [140.186.70.92] (port=55125 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PGIKM-000644-H3 for guile-user@gnu.org; Wed, 10 Nov 2010 16:35:35 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PGIKL-000700-BX for guile-user@gnu.org; Wed, 10 Nov 2010 16:35:34 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]:48677) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PGIKL-0006zj-19 for guile-user@gnu.org; Wed, 10 Nov 2010 16:35:33 -0500 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1PGIKJ-0003BR-84 for guile-user@gnu.org; Wed, 10 Nov 2010 22:35:31 +0100 Original-Received: from 109.170.137.199 ([109.170.137.199]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 10 Nov 2010 22:35:31 +0100 Original-Received: from peter by 109.170.137.199 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 10 Nov 2010 22:35:31 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 48 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 109.170.137.199 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) Cancel-Lock: sha1:UVOm/T1rWA2b95nupcrUsEldbE0= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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:8208 Archived-At: --=-=-= Content-Transfer-Encoding: quoted-printable Peter TB Brett writes: > I've added a testsuite for the libgeda Scheme API. In one commit [2], > the testsuite succeeds. In the following commit [3], a test which does > not touch any of the changed code starts causing a segfault in the Guile > interpreter. > > [snip] > > Valgrind / Memcheck wasn't very helpful either. Is there a way to make > Guile zero each new heap page it requests before using it in order to > reduce the number of false positives the gc generates in Memcheck? > > In fact, *none* of the ways I've found of running the test without the > segfault occurring have given me *any* clue as to how to fix it > "properly". > > I'd really appreciate any suggestions that anyone might be able to give > me on figuring out how I've managed to break things. At the moment, I'm > at a complete loss. So far, as far as I can tell the problem is due to freelist corruption in the garbage collector, and I'm not sufficiently au fait with Guile internals to be able to diagnose what's going on. Is this a known issue? Peter =2D-=20 Peter Brett Remote Sensing Research Group Surrey Space Centre --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iEYEARECAAYFAkzbEDgACgkQZ7Gbq7g7vpp2awCfc78m4qd+LfV5Esi+ISIzbN2W IiMAoJnAnLluoIx003sLAkVW8TTUz7Nt =ANC+ -----END PGP SIGNATURE----- --=-=-=--