[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Chicken-janitors] #121: srfi-19 dumps core in response to bad arguments
From: |
Chicken Trac |
Subject: |
[Chicken-janitors] #121: srfi-19 dumps core in response to bad arguments |
Date: |
Sun, 15 Nov 2009 14:22:13 -0000 |
#121: srfi-19 dumps core in response to bad arguments
-------------------------+--------------------------------------------------
Reporter: tonysidaway | Owner:
Type: defect | Status: new
Priority: major | Milestone:
Component: extensions | Version: 4.2.x
Keywords: srfi-19 |
-------------------------+--------------------------------------------------
csi -R srfi-19
(format-date #t "~Y")
Segmentation fault
csi -R srfi-19
(format-date #t "~Y")
Segmentation fault
This typically dumps users back from the REPL to the shell command line,
losing their session. If this is encountered in compiled code, the
program bails without explanation.
An error should be raised saying that the date object must be specified.
Also:
csi -R srfi-19
(format-date #t "")
Error: (get-output-string) argument is not a string-output-port: #<output
port "(stdout)">
An error should be raised saying that the date object must be specified or
that the format string is empty.
csi -R srfi-19
(format-date #t "~Y" (make-date 0 2 1 13 10 11 2009 0))
Error: (get-output-string) argument is not a string-output-port: #<output
port "(stdout)">
The same happens if an output port is given instead of #t
According to the online documentation for the SRFI-19 egg, this procedure
call should write the formatted date to (current-output-port) or to the
specified port.
--
Ticket URL: <http://www.irp.oist.jp/trac/chicken/ticket/121>
Chicken Scheme <http://www.call-with-current-continuation.org/>
Chicken Scheme is a compiler for the Scheme programming language.
- [Chicken-janitors] #121: srfi-19 dumps core in response to bad arguments,
Chicken Trac <=