GNU bug report logs - #63304
srfi-69 weak table bug

Previous Next

Package: guile;

Reported by: Maciej Kalandyk <maciej.kalandyk <at> ardigen.com>

Date: Fri, 5 May 2023 13:50:01 UTC

Severity: normal

To reply to this bug, email your comments to 63304 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guile <at> gnu.org:
bug#63304; Package guile. (Fri, 05 May 2023 13:50:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Maciej Kalandyk <maciej.kalandyk <at> ardigen.com>:
New bug report received and forwarded. Copy sent to bug-guile <at> gnu.org. (Fri, 05 May 2023 13:50:01 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Maciej Kalandyk <maciej.kalandyk <at> ardigen.com>
To: bug-guile <at> gnu.org
Subject: srfi-69 weak table bug
Date: Fri, 05 May 2023 13:39:49 +0200
[Message part 1 (text/plain, inline)]
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

[Message part 2 (text/html, inline)]

This bug report was last modified 1 year and 203 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.