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

Full log


View this message in rfc822 format

From: Maciej Kalandyk <maciej.kalandyk <at> ardigen.com>
To: 63304 <at> debbugs.gnu.org
Subject: bug#63304: 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 2 years and 105 days ago.

Previous Next


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