output file unexpectedly deleted

Bug #412422 reported by Keith
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
SBCL
New
Undecided
Unassigned

Bug Description

When a stream is opened for output, the file may be unexpectedly deleted. I've found that I can reproduce the error with an example from the hyperspec:

From Function DELETE-FILE:

(with-open-file (s "delete-me.text" :direction :output :if-exists :error)
   (delete-file s))

couldn't delete /home/deox/delete-me.text:
  No such file or directory
   [Condition of type SB-INT:SIMPLE-FILE-ERROR]

I would expect this to return T, as described in the hyperspec.

SBCL 1.0.30

Linux 2.6.28-14-generic x86_64 GNU/Linux

(:SB-BSD-SOCKETS-ADDRINFO :CL-FAD :HUNCHENTOOT-SBCL-DEBUG-PRINT-VARIABLE-ALIST
 :ASDF :SB-THREAD :ANSI-CL :COMMON-LISP :SBCL :SB-DOC :SB-TEST :SB-LDB
 :SB-PACKAGE-LOCKS :SB-UNICODE :SB-EVAL :SB-SOURCE-LOCATIONS
 :IEEE-FLOATING-POINT :X86-64 :UNIX :ELF :LINUX :GENCGC
 :STACK-GROWS-DOWNWARD-NOT-UPWARD :C-STACK-IS-CONTROL-STACK :LINKAGE-TABLE
 :COMPARE-AND-SWAP-VOPS :UNWIND-TO-FRAME-AND-CALL-VOP :RAW-INSTANCE-INIT-VOPS
 :STACK-ALLOCATABLE-CLOSURES :STACK-ALLOCATABLE-VECTORS
 :STACK-ALLOCATABLE-LISTS :STACK-ALLOCATABLE-FIXED-OBJECTS :ALIEN-CALLBACKS
 :CYCLE-COUNTER :COMPLEX-FLOAT-VOPS :FLOAT-EQL-VOPS :INLINE-CONSTANTS
 :OS-PROVIDES-DLOPEN :OS-PROVIDES-PUTWC :OS-PROVIDES-SUSECONDS-T)

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.