From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: ludo@gnu.org (Ludovic =?iso-8859-1?Q?Court=E8s?=) Newsgroups: gmane.lisp.guile.bugs Subject: Re: possible gc/weak hash table bug Date: Fri, 18 Mar 2011 12:51:03 +0100 Message-ID: <87r5a4odeg.fsf@gnu.org> References: <2A90EE37-595C-40D2-9EFC-E4E166F94CE2@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: dough.gmane.org 1300449093 5711 80.91.229.12 (18 Mar 2011 11:51:33 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 18 Mar 2011 11:51:33 +0000 (UTC) To: bug-guile@gnu.org Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Fri Mar 18 12:51:29 2011 Return-path: Envelope-to: guile-bugs@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 1Q0YDI-0005tM-3y for guile-bugs@m.gmane.org; Fri, 18 Mar 2011 12:51:28 +0100 Original-Received: from localhost ([127.0.0.1]:34268 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q0YDH-0008VT-GT for guile-bugs@m.gmane.org; Fri, 18 Mar 2011 07:51:27 -0400 Original-Received: from [140.186.70.92] (port=45989 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q0YD7-0008VA-Vp for bug-guile@gnu.org; Fri, 18 Mar 2011 07:51:22 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q0YD6-0000yq-Ue for bug-guile@gnu.org; Fri, 18 Mar 2011 07:51:17 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:57195) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q0YD6-0000y8-P2 for bug-guile@gnu.org; Fri, 18 Mar 2011 07:51:16 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1Q0YD3-0005hO-Uf for bug-guile@gnu.org; Fri, 18 Mar 2011 12:51:13 +0100 Original-Received: from 193.50.110.208 ([193.50.110.208]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 18 Mar 2011 12:51:13 +0100 Original-Received: from ludo by 193.50.110.208 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 18 Mar 2011 12:51:13 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 18 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 193.50.110.208 X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 28 =?iso-8859-1?Q?Vent=F4se?= an 219 de la =?iso-8859-1?Q?R=E9volution?= X-PGP-Key-ID: 0xEA52ECF4 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 83C4 F8E5 10A3 3B4C 5BEA D15D 77DD 95E2 EA52 ECF4 X-OS: x86_64-unknown-linux-gnu User-Agent: Gnus/5.110013 (No Gnus v0.13) Emacs/23.3 (gnu/linux) Cancel-Lock: sha1:KIFnoSOAs8pdrOpoG7LNDqmx1nc= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 80.91.229.12 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: , Original-Sender: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Errors-To: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.bugs:5339 Archived-At: Hi, michaelawells writes: >> size_t len = SCM_HASHTABLE_N_ITEMS (table); >> >> while (k--) >> { >> size_t removed; >> SCM alist = SCM_SIMPLE_VECTOR_REF (buckets, k); >> alist = scm_fixup_weak_alist (alist, &removed); <<<**** FAILS HERE >> assert (removed <= len); Andy, isn’t this assertion bogus since N_ITEMS is updated lazily and thus may not correspond to the current number of items? Thanks, Ludo’.