uiop/stream:with-temporary-file should not delete the file before closing it.

Bug #1239237 reported by Pascal J. Bourguignon
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ASDF
Fix Released
Medium
Faré

Bug Description

It just doesn't work.

cl-user> (uiop/stream:with-temporary-file (:stream s
                                                   :direction :io
                                                   :element-type 'character
                                                   :prefix "LEP")
           (print s))

#<basic-file-character-io-stream ("/tmp/LEP1EHVV24"/5 utf-8) #x302002936E0D>
> Debug: No such file or directory : "/tmp/LEP1EHVV24"
> While executing: (:internal swank::invoke-default-debugger), in process repl-thread(14).
> Type :POP to abort, :R for a list of available restarts.
> Type :? for other options.
1 > :q
; Evaluation aborted on #<ccl::simple-file-error #x30200274866D>.

cl-user> (print-bug-report-info)

LISP-IMPLEMENTATION-TYPE "Clozure Common Lisp"
LISP-IMPLEMENTATION-VERSION "Version 1.10-dev-r15858M-trunk (Linuxx8664)"
SOFTWARE-TYPE "Linux"
SOFTWARE-VERSION "3.8.0-23-generic"
MACHINE-INSTANCE "kuiper"
MACHINE-TYPE "x86_64"
MACHINE-VERSION "Intel(R) Core(TM) i7 CPU 950 @ 3.07GHz"
*FEATURES* (:split-sequence :cl-ppcre :swank :com.informatimago.pjb :newline-is-linefeed :has-ascii-code :has-vt :has-bell :has-escape :has-linefeed :has-return :has-backspace :has-tab :has-page :has-rubout :quicklisp :asdf3 :asdf2 :asdf :os-unix :asdf-unicode :primary-classes :common-lisp :openmcl :ccl :ccl-1.2 :ccl-1.3 :ccl-1.4 :ccl-1.5 :ccl-1.6 :ccl-1.7 :ccl-1.8 :clozure :clozure-common-lisp :ansi-cl :unix :openmcl-unicode-strings :openmcl-native-threads :openmcl-partial-mop :mcl-common-mop-subset :openmcl-mop-2 :openmcl-private-hash-tables :x86-64 :x86_64 :x86-target :x86-host :x8664-target :x8664-host :linux-host :linux-target :linuxx86-target :linuxx8664-target :linuxx8664-host :64-bit-target :64-bit-host :linux :little-endian-target :little-endian-host)

; No value
cl-user>

Revision history for this message
Faré (fahree) wrote :

Thanks a lot for the report! Fix committed in 3.0.2.19, with a regression test.

Sorry about that.

Changed in asdf:
assignee: nobody → Faré (fahree)
importance: Undecided → Medium
milestone: none → 3.0.3
status: New → Fix Committed
Changed in asdf:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.