From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: =?UTF-8?Q?J=C3=A9ssica_?= =?UTF-8?Q?Milar=C3=A9?= Newsgroups: gmane.lisp.guile.bugs Subject: bug#33827: SRFI 69 weak hash-tables is broken Date: Fri, 21 Dec 2018 09:13:50 -0200 Message-ID: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000002a3f90057d865886" X-Trace: blaine.gmane.org 1545409267 9501 195.159.176.226 (21 Dec 2018 16:21:07 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 21 Dec 2018 16:21:07 +0000 (UTC) To: 33827@debbugs.gnu.org Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Fri Dec 21 17:21:03 2018 Return-path: Envelope-to: guile-bugs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gaNXp-0002Kv-JL for guile-bugs@m.gmane.org; Fri, 21 Dec 2018 17:21:01 +0100 Original-Received: from localhost ([::1]:46541 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gaNZw-00026C-Aa for guile-bugs@m.gmane.org; Fri, 21 Dec 2018 11:23:12 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60199) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gaNZm-00022v-Ui for bug-guile@gnu.org; Fri, 21 Dec 2018 11:23:03 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gaNZm-00027F-B3 for bug-guile@gnu.org; Fri, 21 Dec 2018 11:23:02 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:54446) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gaNZm-000279-6p for bug-guile@gnu.org; Fri, 21 Dec 2018 11:23:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gaNZm-00086s-2C for bug-guile@gnu.org; Fri, 21 Dec 2018 11:23:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?J=C3=A9ssica_?= =?UTF-8?Q?Milar=C3=A9?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guile@gnu.org Resent-Date: Fri, 21 Dec 2018 16:23:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 33827 X-GNU-PR-Package: guile X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-guile@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.154540933131085 (code B ref -1); Fri, 21 Dec 2018 16:23:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 21 Dec 2018 16:22:11 +0000 Original-Received: from localhost ([127.0.0.1]:58702 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gaNYw-00085J-Mw for submit@debbugs.gnu.org; Fri, 21 Dec 2018 11:22:10 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:38466) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gaIl3-0004l1-FX for submit@debbugs.gnu.org; Fri, 21 Dec 2018 06:14:21 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gaIkw-0002XP-2b for submit@debbugs.gnu.org; Fri, 21 Dec 2018 06:14:15 -0500 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:47113) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gaIks-0002VH-Vj for submit@debbugs.gnu.org; Fri, 21 Dec 2018 06:14:12 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48052) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gaIks-0000H5-6C for bug-guile@gnu.org; Fri, 21 Dec 2018 06:14:10 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gaIkq-0002TZ-7l for bug-guile@gnu.org; Fri, 21 Dec 2018 06:14:10 -0500 Original-Received: from mail-it1-x132.google.com ([2607:f8b0:4864:20::132]:50343) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gaIko-0002O5-4I for bug-guile@gnu.org; Fri, 21 Dec 2018 06:14:08 -0500 Original-Received: by mail-it1-x132.google.com with SMTP id z7so6299507iti.0 for ; Fri, 21 Dec 2018 03:14:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=tQuJtSolxmnboASWju1QdWd1dlujOQQsBsIbcgLjK3E=; b=IJ0Rh4Bmd2+63UsLz8WcNjzV2udlMK1UvNmEe2Ufgy3R/ds0mas8G9PrgzqbYL44QW 6geH1Jy7a9ZKz1UnZpmsIyieLlJtXy3ZFgELV5S5h+38cFy8CGus/G4KcZZEi9W7RNTf ID+GW/u7Q/3rQntS2xVAxK0ZC4vfXlRQiKXHmp+og6shl1Z++gQ2PUr3gCq2eQpXPIUK D/3+mj6SRswGTVbq94J/rnBVTX37dP0wdy4dS+18BTnAfofq1DxhWk+sQ5ugJWYrntkE PpbYcV7pCl8nqGHGbvu4UeOWV3FAMJjVL3B/4C9NZnu+GOpGkk0D6BDKogSay8kK0Ksv QAeg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=tQuJtSolxmnboASWju1QdWd1dlujOQQsBsIbcgLjK3E=; b=aTLw4ayikTBGQqq5s6lh4LRHa4kms4aTbR92Tc37KsFwiVSwrydhU4C/0iBiaal2M4 Q/jF3l+53Rg5CDBsNXrwkYt7evU+WtLXMIrjrn2uqi9bDcs8f8N8JlJkq3P/HGlIAvTB J6ExWNGJsOa6zzDlEwqq/Xmgy3vSF5fDW1YPkPGWc71wUMyvXQFr27jH2iZITN4huhaK qXnwOSb1bk8F1MclJQXWobEobCtXUSCx9/O3Tx45GODZ7XqktKabBBJKx3cqzWwsVdMg djDf25r2wIpWdK9ygnfz5PtKsmkfMsRHvm2g5ml0k5KPc+sbTrMmN4ggq9M+Kjpe58jK nEow== X-Gm-Message-State: AA+aEWY6b2GbAnGFd9kLBHA7zshFhx5tI4gCRDRssHMUgyo1F8NfasAF LksYZywGFHVje1RQ2y9fQ0RdMyXQil/OsTya13UussCI X-Google-Smtp-Source: AFSGD/U5zkF7HlRvCRPqgsS4pyUGY9biT/Nn9KOO+Sh7IqoIyKVT9VBLyHrnO26oYWb5C3h/DBuKNaMDiADpU9GR8sg= X-Received: by 2002:a24:6c12:: with SMTP id w18mr1822384itb.14.1545390841804; Fri, 21 Dec 2018 03:14:01 -0800 (PST) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Mailman-Approved-At: Fri, 21 Dec 2018 11:22:09 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-guile@gnu.org 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 Original-Sender: "bug-guile" Xref: news.gmane.org gmane.lisp.guile.bugs:9291 Archived-At: --0000000000002a3f90057d865886 Content-Type: text/plain; charset="UTF-8" The srfi-69 implementation that comes with Guile doesn't function properly when some non-false #:weak argument is provided. The problems seems to be that it tries to use handles, which are only available for non-weak hash-tables. scheme@(guile-user)> (import (srfi :69)) scheme@(guile-user)> (define ht (make-hash-table eq? hashq #:weak 'key)) scheme@(guile-user)> (hash-table-set! ht 10 10) ERROR: In procedure hashx-create-handle!: In procedure scm_hash_fn_create_handle_x: Wrong type argument in position 1 (expecting hash-table): # Entering a new prompt. Type `,bt' for a backtrace or `,q' to continue. scheme@(guile-user) [1]> Regards, Jessica --0000000000002a3f90057d865886 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
The srf= i-69 implementation that comes with Guile doesn't function properly whe= n some non-false #:weak argument is provided. The problems seems to be that= it tries to use handles, which are only available for non-weak hash-tables= .

scheme@(guile-user)> (import (srfi :69))
= scheme@(guile-user)> (define ht (make-hash-table eq? hashq #:weak 'k= ey))
scheme@(guile-user)> (hash-table-set! ht 10 1= 0)
ERROR: In procedure hashx-create-handle!:<= /div>
In procedure scm_hash_fn_create_handle_x: Wrong type argumen= t in position 1 (expecting hash-table): #<weak-table 0/31>

Entering a new prompt.=C2=A0 Type `,= bt' for a backtrace or `,q' to continue.
sche= me@(guile-user) [1]>

Regard= s,
Jessica
--0000000000002a3f90057d865886--