From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Gregory Marton Newsgroups: gmane.lisp.guile.bugs Subject: [bug #22022] hashx-set! and -ref Date: Mon, 14 Jan 2008 22:40:06 +0000 Message-ID: <20080114-224004.sv59778.71865@savannah.gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain;charset=UTF-8 X-Trace: ger.gmane.org 1200350415 5159 80.91.229.12 (14 Jan 2008 22:40:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 14 Jan 2008 22:40:15 +0000 (UTC) To: Gregory Marton , bug-guile@gnu.org Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Mon Jan 14 23:40:37 2008 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.50) id 1JEXyu-0002u5-TG for guile-bugs@m.gmane.org; Mon, 14 Jan 2008 23:40:37 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JEXyW-0004tu-Fk for guile-bugs@m.gmane.org; Mon, 14 Jan 2008 17:40:12 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JEXyS-0004tl-8z for bug-guile@gnu.org; Mon, 14 Jan 2008 17:40:08 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JEXyR-0004tZ-ND for bug-guile@gnu.org; Mon, 14 Jan 2008 17:40:07 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JEXyR-0004tW-HW for bug-guile@gnu.org; Mon, 14 Jan 2008 17:40:07 -0500 Original-Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JEXyR-0001A4-Ox for bug-guile@gnu.org; Mon, 14 Jan 2008 17:40:07 -0500 Original-Received: from savannah.gnu.org ([199.232.41.3] helo=frontend) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1JEXyQ-0004HT-LQ; Mon, 14 Jan 2008 22:40:06 +0000 Original-Received: from www-data by frontend with local (Exim 4.63) (envelope-from ) id 1JEXyQ-0004HN-EP; Mon, 14 Jan 2008 22:40:06 +0000 X-Savane-Server: savannah.gnu.org:443 [199.232.41.3] X-Savane-Project: guile X-Savane-Tracker: bugs X-Savane-Item-ID: 22022 User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:1.8.1.11) Gecko/20071127 Firefox/2.0.0.11 X-Apparently-From: 128.30.45.228 (Savane authenticated user gremio) Original-References: In-Reply-To: X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) 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:3699 Archived-At: URL: Summary: hashx-set! and -ref Project: Guile Submitted by: gremio Submitted on: Monday 01/14/2008 at 22:40 Category: None Severity: 3 - Normal Item Group: None Status: None Privacy: Public Assigned to: None Open/Closed: Open Discussion Lock: Any _______________________________________________________ Details: Hashing using ones own hash functions does not survive a hash resize. If the assoc function returns #t, a segfault or bus error results. A patch to the test suite demonstrating these and testing a few other things is attached. As an enhancement request, it would be nice for the common case to be able to pass a hash-function argument and assoc to make-hash-table or to have a (make-hashx-table hash assoc [size]), and in either case to remember the hash function so that resize works correctly. Thanks, Grem _______________________________________________________ File Attachments: ------------------------------------------------------- Date: Monday 01/14/2008 at 22:40 Name: hash.test.patch Size: 7kB By: gremio _______________________________________________________ Reply to this item at: _______________________________________________ Message sent via/by Savannah http://savannah.gnu.org/