run-program on winxp writes nothing to file given by :output pathname

Bug #1470458 reported by Denis Budyak
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
SBCL
Fix Released
Undecided
Unassigned

Bug Description

;;; contents of sbclrc:
(setf sb-impl::*default-external-format* :utf-8)
;;; eof sbclrc

* (lisp-implementation-version)
"1.2.12"
; sorry, can't install minGW so can't check 1.2.13.

* (sb-win32:get-version-ex)

5
1
2600
2
"Service Pack 3"

* (sb-ext:run-program "ipconfig.exe" '() :search t :output t)
;; ipconfig.exe output is printed at the console

* (sb-ext:run-program "ipconfig.exe" '() :search t :output #p"c:\\aaba.txt" :if-output-exists :supersede :wait t)
#<SB-IMPL::PROCESS :EXITED 0>

* (with-open-file (in "c:/aaba.txt") (file-length in))
0
;; so it prints nothing to the file.

* *features*
(:ALIEN-CALLBACKS :ANSI-CL :ASH-RIGHT-VOPS :C-STACK-IS-CONTROL-STACK
 :COMMON-LISP :COMPARE-AND-SWAP-VOPS :CYCLE-COUNTER :GENCGC
 :IEEE-FLOATING-POINT :INLINE-CONSTANTS :LINKAGE-TABLE :LITTLE-ENDIAN
 :MEMORY-BARRIER-VOPS :MULTIPLY-HIGH-VOPS :OS-PROVIDES-DLOPEN
 :OS-PROVIDES-DLOPEN :OS-PROVIDES-PUTWC :PACKAGE-LOCAL-NICKNAMES
 :PRECISE-ARG-COUNT-ERROR :RAW-INSTANCE-INIT-VOPS :SB-DYNAMIC-CORE :SB-EVAL
 :SB-FUTEX :SB-LDB :SB-PACKAGE-LOCKS :SB-QSHOW :SB-SAFEPOINT
 :SB-SAFEPOINT-STRICTLY :SB-SOURCE-LOCATIONS :SB-TEST :SB-THREAD :SB-THRUPTION
 :SB-UNICODE :SB-WTIMER :SBCL :STACK-ALLOCATABLE-CLOSURES
 :STACK-ALLOCATABLE-FIXED-OBJECTS :STACK-ALLOCATABLE-LISTS
 :STACK-ALLOCATABLE-VECTORS :STACK-GROWS-DOWNWARD-NOT-UPWARD :SYMBOL-INFO-VOPS
 :UNWIND-TO-FRAME-AND-CALL-VOP :WIN32 :X86)

Revision history for this message
Denis Budyak (budden73) wrote :

The same bug persists under Windows 7 and SBCL 1.2.14

Revision history for this message
pipping (pipping) wrote :

(sb-ext:run-program "ipconfig" '("/all") :output "foo" :search t)

gives me a file named "foo" with the right contents with sbcl 1.3.11 on windows server 2008. In other words: I can't reproduce this bug in that setting.

Whether this bug has been fixed in sbcl or continues to persist on XP/windows 7, I do not know.

Stas Boukarev (stassats)
Changed in sbcl:
status: New → 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.