From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Han-Wen Nienhuys Newsgroups: gmane.lisp.guile.bugs,gmane.lisp.guile.devel Subject: Re: Serious GC bug in GUILE 1.6 CVS Date: Thu, 9 Sep 2004 01:15:43 +0200 Sender: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Message-ID: <16703.37535.594397.357127@byrd.xs4all.nl> References: <16674.30763.67953.518392@byrd.xs4all.nl> Reply-To: hanwen@xs4all.nl NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1094685427 30314 80.91.224.253 (8 Sep 2004 23:17:07 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 8 Sep 2004 23:17:07 +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 Thu Sep 09 01:16:57 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 1C5BgO-0003Sz-00 for ; Thu, 09 Sep 2004 01:16:56 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C5Blg-0003s7-QW for guile-bugs@m.gmane.org; Wed, 08 Sep 2004 19:22:24 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C5Bl7-0003lH-Ba for bug-guile@gnu.org; Wed, 08 Sep 2004 19:21:49 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C5Bl3-0003kW-QJ for bug-guile@gnu.org; Wed, 08 Sep 2004 19:21:47 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C5Bl3-0003kQ-Mf; Wed, 08 Sep 2004 19:21:45 -0400 Original-Received: from [213.84.26.127] (helo=byrd.xs4all.nl) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1C5BfI-0006Rz-RG; Wed, 08 Sep 2004 19:15:49 -0400 Original-Received: from byrd.xs4all.nl.byrd.xs4all.nl (byrd [127.0.0.1]) by byrd.xs4all.nl (8.13.0/8.13.0) with ESMTP id i88NFhcG016763; Thu, 9 Sep 2004 01:15:43 +0200 Original-To: Marius Vollmer In-Reply-To: X-Mailer: VM 7.14 under Emacs 21.3.1 X-yoursite-MailScanner-Information: Please contact the ISP for more information X-yoursite-MailScanner: Found to be clean X-MailScanner-From: hanwen@xs4all.nl 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:1666 gmane.lisp.guile.devel:4109 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.devel:4109 marius.vollmer@uni-dortmund.de writes: > 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. Hmm... That's unfortunate. We have reports of GC flakiness with 1.6 on Cygwin. This means that there's still another bug lurking. -- Han-Wen Nienhuys | hanwen@xs4all.nl | http://www.xs4all.nl/~hanwen _______________________________________________ Bug-guile mailing list Bug-guile@gnu.org http://lists.gnu.org/mailman/listinfo/bug-guile