From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Bill Schottstaedt Newsgroups: gmane.lisp.guile.bugs Subject: Re: GC missed a reference Date: Sun, 25 Apr 2004 04:09:54 -0700 Sender: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Message-ID: <408B9C82.6050601@ccrma> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1082891548 9683 80.91.224.253 (25 Apr 2004 11:12:28 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 25 Apr 2004 11:12:28 +0000 (UTC) Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Sun Apr 25 13:12:19 2004 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BHhYZ-0006EA-00 for ; Sun, 25 Apr 2004 13:12:19 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.30) id 1BHhY4-0003Zw-69 for guile-bugs@m.gmane.org; Sun, 25 Apr 2004 07:11:48 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.30) id 1BHhXj-0003Vz-EH for bug-guile@gnu.org; Sun, 25 Apr 2004 07:11:27 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.30) id 1BHhWI-0002b1-Pi for bug-guile@gnu.org; Sun, 25 Apr 2004 07:10:30 -0400 Original-Received: from [171.67.16.116] (helo=smtp2.Stanford.EDU) by monty-python.gnu.org with esmtp (Exim 4.30) id 1BHhWH-0002Zz-Df for bug-guile@gnu.org; Sun, 25 Apr 2004 07:09:57 -0400 Original-Received: from cm-mail.stanford.edu (cm-mail.Stanford.EDU [171.64.197.135]) by smtp2.Stanford.EDU (8.12.11/8.12.11) with ESMTP id i3PB9sID002075 for ; Sun, 25 Apr 2004 04:09:55 -0700 Original-Received: from ccrma (cmn13.stanford.edu [171.64.197.162]) by cm-mail.stanford.edu (8.11.6/8.11.6) with ESMTP id i3PB9sx25340 for ; Sun, 25 Apr 2004 04:09:54 -0700 User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4.2) Gecko/20040308 X-Accept-Language: en-us, en Original-To: bug-guile@gnu.org X-BeenThere: bug-guile@gnu.org X-Mailman-Version: 2.1.4 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:1332 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.bugs:1332 On the "#" bug reported a while ago, I now think the problem is in symbols.c, in the function scm_mem2symbol, and involves the call of scm_i_rehash. If I gc-protect the symbol referred to in the error message (via scm_permanent_object), or if I comment out the rehash, everything is fine. I notice that if the symbol table is drastically reduced in size (after closing a large let, for example), the dead entries may not always be removed; a subsequent gc leaves the cells in the symbol table, and scm_cell or someone then reallocates them as a number, or whatever, so you end up with a symbol table full of non-symbols, causing havoc for "apropos". Unfortunately, I have not yet found a simple case. _______________________________________________ Bug-guile mailing list Bug-guile@gnu.org http://mail.gnu.org/mailman/listinfo/bug-guile