chicken-janitors
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

#1692: s11n doesn't work with srfi-69 hash-tables


From: Chicken Trac
Subject: #1692: s11n doesn't work with srfi-69 hash-tables
Date: Thu, 02 Apr 2020 14:25:01 -0000

#1692: s11n doesn't work with srfi-69 hash-tables
--------------------------------+-------------------------------------
            Reporter:  megane   |       Type:  defect
              Status:  new      |   Priority:  major
           Milestone:  someday  |  Component:  extensions
             Version:           |   Keywords:  s11n hash-table srfi-69
Estimated difficulty:           |
--------------------------------+-------------------------------------
 Trying to use the deserialized hash-table causes a segfault:
 {{{
 (import srfi-69)
 (import s11n)

 (define (store-and-load o file)
   (with-output-to-file file (lambda [] (serialize o)))
   (with-input-from-file file (lambda [] (deserialize))))

 (let ([ht (store-and-load (make-hash-table) "out.ser")])
   (print "ht: " ht)
   (hash-table-set! ht 1 1)) ;; -> segfault
 }}}

-- 
Ticket URL: <https://bugs.call-cc.org/ticket/1692>
CHICKEN Scheme <https://www.call-cc.org/>
CHICKEN Scheme is a compiler for the Scheme programming language.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]