unofficial mirror of bug-guile@gnu.org 
 help / color / mirror / Atom feed
* bug#63304: srfi-69 weak table bug
@ 2023-05-05 11:39 Maciej Kalandyk via Bug reports for GUILE, GNU's Ubiquitous Extension Language
  0 siblings, 0 replies; only message in thread
From: Maciej Kalandyk via Bug reports for GUILE, GNU's Ubiquitous Extension Language @ 2023-05-05 11:39 UTC (permalink / raw)
  To: 63304

[-- Attachment #1: Type: text/plain, Size: 639 bytes --]

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


[-- Attachment #2: Type: text/html, Size: 937 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-05-05 11:39 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-05-05 11:39 bug#63304: srfi-69 weak table bug Maciej Kalandyk via Bug reports for GUILE, GNU's Ubiquitous Extension Language

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).