From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Marius Vollmer Newsgroups: gmane.lisp.guile.bugs,gmane.lisp.guile.devel Subject: Re: Serious GC bug in GUILE 1.6 CVS Date: Tue, 07 Sep 2004 17:45:09 +0200 Sender: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Message-ID: References: <16674.30763.67953.518392@byrd.xs4all.nl> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1094571968 3162 80.91.224.253 (7 Sep 2004 15:46:08 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 7 Sep 2004 15:46:08 +0000 (UTC) Cc: bug-guile@gnu.org, jantien@xs4all.nl, guile-devel@gnu.org, fodber@interware.hu Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Tue Sep 07 17:45:38 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1C4iA5-0002DO-00 for ; Tue, 07 Sep 2004 17:45:37 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C4iFJ-0004GW-Hc for guile-bugs@m.gmane.org; Tue, 07 Sep 2004 11:51:01 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C4iFF-0004GH-CD for bug-guile@gnu.org; Tue, 07 Sep 2004 11:50:57 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C4iFE-0004Fk-5t for bug-guile@gnu.org; Tue, 07 Sep 2004 11:50:56 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C4iFE-0004FT-38; Tue, 07 Sep 2004 11:50:56 -0400 Original-Received: from [129.217.163.1] (helo=mail.dt.e-technik.uni-dortmund.de) by monty-python.gnu.org with esmtp (Exim 4.34) id 1C4i9g-0006Kn-3O; Tue, 07 Sep 2004 11:45:12 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by mail.dt.e-technik.uni-dortmund.de (Postfix) with ESMTP id 494F73B319; Tue, 7 Sep 2004 17:45:11 +0200 (CEST) Original-Received: from mail.dt.e-technik.uni-dortmund.de ([127.0.0.1]) by localhost (krusty [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 27241-01-3; Tue, 7 Sep 2004 17:45:11 +0200 (CEST) Original-Received: from troy.dt.e-technik.uni-dortmund.de (troy.dt.e-technik.uni-dortmund.de [129.217.163.17]) by mail.dt.e-technik.uni-dortmund.de (Postfix) with ESMTP id 2DEAE3AF4C; Tue, 7 Sep 2004 17:45:11 +0200 (CEST) Original-Received: by troy.dt.e-technik.uni-dortmund.de (Postfix, from userid 520) id 1A940B969; Tue, 7 Sep 2004 17:45:09 +0200 (CEST) Original-To: hanwen@xs4all.nl In-Reply-To: <16674.30763.67953.518392@byrd.xs4all.nl> (Han-Wen Nienhuys's message of "Tue, 17 Aug 2004 23:27:07 +0200") User-Agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3 (gnu/linux) X-Virus-Scanned: by amavisd-new at dt.e-technik.uni-dortmund.de X-BeenThere: bug-guile@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.lisp.guile.bugs:1652 gmane.lisp.guile.devel:4091 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.devel:4091 Han-Wen Nienhuys writes: > Compile GUILE with > > #define SCM_DEBUG_CELL_ACCESSES 1 > > in config.h. Then apply this patch > > + (set-debug-cell-accesses! 5000) > > then compilation bombs out with: I have found the bug. init_heap_seg was using SCM_SET_CELL_TYPE to initialize fresh memory to 'free cells', but with DEBUG_CELL_ACCESSES, SCM_SET_CELL_TYPE could run a GC, which might see the half initialized heap segment during conservative scanning and would access uninitialozed memory which caused it to fail. I have fixed this by using the new macro SCM_SET_FREE_CELL_TYPE, which does no checking. _______________________________________________ Bug-guile mailing list Bug-guile@gnu.org http://lists.gnu.org/mailman/listinfo/bug-guile