run-program locks up in a SLIME at winxp

Bug #1470500 reported by Denis Budyak on 2015-07-01
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
SBCL
Undecided
Unassigned

Bug Description

Configuration is as at bug #1470458

At SLIME:
CL-USER> (defparameter *myout* *standard-output*)
CL-USER> (run-program "ipconfig" () :search t :output t :wait t)
SLIME locks up and does not respond any more.

switch to *inferior-lisp* buffer:
* (dotimes (i 15) (finish-output *myout*) (sleep 0.5))

after that SLIME unfreezes.

;;; relevant portion of my .emacs:
(add-to-list 'load-path "c:/s2b/lib/ql.sbcl/local-projects/slime-2.14/")
(require 'slime)
(require 'slime-autoloads)
(add-to-list 'slime-contribs 'slime-fancy)
(setq slime-net-coding-system 'utf-8-unix) ; 'emacs-mule-unix 'windows-1251-unix
(slime-setup '(slime-fancy slime-asdf slime-indentation)) ;

(setq inferior-lisp-program "c:\\s2b\\prf\\sbcl-1.2.12\\sbcl.exe --core c:\\s2b\\prf\\sbcl-1.2.12\\sbcl.core --noinform")
(slime)
;;; EOF .emacs

Denis Budyak (budden73) wrote :

I noticed that the same problem is in EMACS even without SLIME. I seem to have a workaround:
1. I use a special runner application written in Delphi 2009, sources attached.
2. I run SBCL with a separate console.

; in my .emacs
(defun run-slime ()
  (interactive)
  (shell-command "c:\\s2b\\shortcuts\\CallBatFromGuiDetached.exe cmd /c start C:\\s2b\\prf\\sbcl-1.2.12\\sbcl.exe --core C:\\s2b\\prf\\sbcl-1.2.12\\sbcl.core --load c:\\s2b\\sw\\slime-init.lisp")
  (sleep-for 1)
  (slime-connect "127.0.0.1" 4005))

(run-slime)

3. To run a program from SBCL, I use my runner application again:
(defun call-bat (bat args &key (wait t))
  (apply #'sb-ext:run-program
         "c:/utils/CallBatFromGuiDetached.exe"
         (cons bat args)
         :wait wait))

CallBatFromGuiDetached.exe can call bat-files, and windows applications. Output can be obtained via stream redirection ">".

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers