From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Maciej Kalandyk via "Bug reports for GUILE, GNU's Ubiquitous Extension Language" Newsgroups: gmane.lisp.guile.bugs Subject: bug#63304: srfi-69 weak table bug Date: Fri, 05 May 2023 13:39:49 +0200 Message-ID: Reply-To: Maciej Kalandyk Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="=-vXuf2xHoCBcEPqYTNe66" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1158"; mail-complaints-to="usenet@ciao.gmane.io" To: 63304@debbugs.gnu.org Original-X-From: bug-guile-bounces+guile-bugs=m.gmane-mx.org@gnu.org Fri May 05 15:50:25 2023 Return-path: Envelope-to: guile-bugs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1puvpI-00007k-Gu for guile-bugs@m.gmane-mx.org; Fri, 05 May 2023 15:50:24 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1puvox-0005Md-Pg; Fri, 05 May 2023 09:50:03 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1puvow-0005MT-IB for bug-guile@gnu.org; Fri, 05 May 2023 09:50:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1puvow-0002Dj-9t for bug-guile@gnu.org; Fri, 05 May 2023 09:50:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1puvov-0006EW-Si for bug-guile@gnu.org; Fri, 05 May 2023 09:50:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Maciej Kalandyk Original-Sender: "Debbugs-submit" Resent-CC: bug-guile@gnu.org Resent-Date: Fri, 05 May 2023 13:50:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 63304 X-GNU-PR-Package: guile X-Debbugs-Original-To: bug-guile@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.168329458423923 (code B ref -1); Fri, 05 May 2023 13:50:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 5 May 2023 13:49:44 +0000 Original-Received: from localhost ([127.0.0.1]:53467 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1puvoa-0006Dd-SU for submit@debbugs.gnu.org; Fri, 05 May 2023 09:49:44 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:33574) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1putnH-00089G-TP for submit@debbugs.gnu.org; Fri, 05 May 2023 07:40:13 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1putnB-0003eb-IT for bug-guile@gnu.org; Fri, 05 May 2023 07:40:07 -0400 Original-Received: from mail-lf1-x130.google.com ([2a00:1450:4864:20::130]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1putn7-0001WF-4K for bug-guile@gnu.org; Fri, 05 May 2023 07:40:03 -0400 Original-Received: by mail-lf1-x130.google.com with SMTP id 2adb3069b0e04-4f122ff663eso1864284e87.2 for ; Fri, 05 May 2023 04:39:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ardigen.com; s=google; t=1683286797; x=1685878797; h=mime-version:message-id:to:subject:from:date:from:to:cc:subject :date:message-id:reply-to; bh=1JYISX48+H+WNz7VYAl8IlcUkXhHkNTOH9WPF8V8SLE=; b=CMFt5oEVwgFGOwMp9p2Gf+Rq9TpKqFyY/qbr/2dR4JFgWxdSHJLw2QaeMt71eNAZ2W Fc2usEfSS4o37cOVgWsmTN0+IcPetTfLt8itshBm+ZIo9S93Jow/cy/AsGB4e1Ml2ipb v366Xx+do2A/UPUTaaR3n3KIUUbYiEiA8DLE2ZfiKsl56e6tEu0ou3lCvP/upsJQuZDp /Zn8RCRQlS9FevpvreBzEvkVVCOtpYYFoiFZ6ocXPF2r8vAkxn/pvOtllB6TENIzfQs9 YxBkSy0j5hjsK+Af2KvA4fBBQvyOPxtLtvTI5Fq93M79U58iNPNUJrMCs7OcqEb6aoNk LzdA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683286797; x=1685878797; h=mime-version:message-id:to:subject:from:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=1JYISX48+H+WNz7VYAl8IlcUkXhHkNTOH9WPF8V8SLE=; b=ODagxJt4xM+PiwoW/w/g4iOahQpbfVz2PvYjkN41H+1oCL8Z8noANG+K7nXAZ1FTmk fWoLMCD9w1ArYvvqRbi+1Bz1XVtXUFGhbiw7uSRVnYXiEdf+4Gxq1NmDHk+JNybRSGg9 sRL6QkMgT3vu1lrT9beTsdoZ7T2tKZKEdlznYz9vxrhGn9Efojn0R/by17Dfr+Fx6jm2 3Am28JL7IFTsepw8y4q2votr5lU7SLl4WPw68eDHv5JYELmGS8SdCGrNw2LTpuFQi91f ZqRcdhHdB4kZWYq3N5wb6dhRXKpLT+mf1zsPCmlA/TlhzPum6u6xl8kVhttqNJLWT3nt Vk2Q== X-Gm-Message-State: AC+VfDxDdEGSe4LM7BeXNjvgr3kp8qAzha5hpdN8j6Kjqs1cCynzK2R1 Cxf0vSVi0BTNf7IXs0izC+yvIPzESAT7XW88ucsuLA== X-Google-Smtp-Source: ACHHUZ6t99zE9zdYxwcXiXkuMRjKLB/D6f9gVrmzKvG2LacaKgLukrskFSYZGxYp4E8qF8ICkLpCFQ== X-Received: by 2002:a05:6512:11ee:b0:4eb:c18:efaf with SMTP id p14-20020a05651211ee00b004eb0c18efafmr440488lfs.29.1683286796613; Fri, 05 May 2023 04:39:56 -0700 (PDT) Original-Received: from [10.65.2.77] (85-128-56-82.static.ip.netia.com.pl. [85.128.56.82]) by smtp.gmail.com with ESMTPSA id x21-20020ac25dd5000000b004ed4fa5f20fsm259948lfq.25.2023.05.05.04.39.55 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 May 2023 04:39:56 -0700 (PDT) X-Mailer: geary/43.0 Received-SPF: pass client-ip=2a00:1450:4864:20::130; envelope-from=maciej.kalandyk@ardigen.com; helo=mail-lf1-x130.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Fri, 05 May 2023 09:49:40 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: bug-guile-bounces+guile-bugs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.lisp.guile.bugs:10614 Archived-At: --=-vXuf2xHoCBcEPqYTNe66 Content-Type: text/plain; charset=us-ascii; format=flowed Tested on: Fedora, Guix Fedora's guile package: guile30-3.0.7-8.fc38.x86_64 Fedora guile --version: 3.0.7 Guix guile package: 1.4.0-5.286cdf0 Guix guile --version: 3.0.9 How to reproduce: ```scheme (use-modules (srfi srfi-69)) (define tmp (make-hash-table #:weak 'key)) (hash-table-set! tmp 'test 10) ``` Error: ``` ice-9/boot-9.scm:1685:16: In procedure raise-exception: 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. ``` Description: using #:weak option causes hash-table-set! to crash --=-vXuf2xHoCBcEPqYTNe66 Content-Type: text/html; charset=us-ascii
Tested on: Fedora, Guix
Fedora's guile package: guile30-3.0.7-8.fc38.x86_64
Fedora guile --version: 3.0.7
Guix guile package: 1.4.0-5.286cdf0
Guix guile --version:  3.0.9

How to reproduce:
```scheme
(use-modules (srfi srfi-69))
(define tmp (make-hash-table #:weak 'key))
(hash-table-set! tmp 'test 10)
```
Error:
```
ice-9/boot-9.scm:1685:16: In procedure raise-exception:
In procedure scm_hash_fn_create_handle_x: Wrong type argument in position 1 (expecting hash-table): #<weak-table 0/31>

Entering a new prompt.  Type `,bt' for a backtrace or `,q' to continue .
```

Description:  using #:weak option causes hash-table-set! to crash 
--=-vXuf2xHoCBcEPqYTNe66--