[slime-devel] Hang with cmucl 20c

Harald Hanche-Olsen hanche at math.ntnu.no
Wed Oct 3 19:28:54 UTC 2012


[Helmut Eller <heller at common-lisp.net> (2012-10-03 18:39:42 UTC)]

> On Wed, Oct 03 2012, Harald Hanche-Olsen wrote:
> 
> Maybe a problem CMUCL's gray streams.  Does (require 'gray-streams) work?

Yes.

> > I'll be happy to provide
> > backtraces, etc. if you can only tell me how to get them.
> 
> SWANK should print a backtrace in such situations but in this case the
> problem seems to occur also during printing the backtrace.  So we need
> to find out what happens before the error.
> 
> The output of (ql:quickload "ironclad" :verbose t) would probably
> provide some hint in what file the problem occurs.

After loading ironclad.asd, it does

; Loading #P"/home/midterm/quicklisp/dists/quicklisp/software/nibbles-20120811-git/nibbles.asd".
; Compiling LAMBDA (.PV-CELL. .NEXT-METHOD-CALL. C S): 
; Compiling Top-Level Form: 
; Compiling LAMBDA (.PV-CELL. .NEXT-METHOD-CALL. C S): 
; Compiling Top-Level Form: 
.
; Compiling LAMBDA (.PV-CELL. .NEXT-METHOD-CALL. OP C): 
; Compiling Top-Level Form: 
.
; Compiling LAMBDA (.PV-CELL. .NEXT-METHOD-CALL. OP C): 
; Compiling Top-Level Form: 
; Compiling LAMBDA (.PV-CELL. .NEXT-METHOD-CALL. OP C): 
; Compiling Top-Level Form: 
.
; Compiling LAMBDA (.PV-CELL. .NEXT-METHOD-CALL. OP C): 
; Compiling Top-Level Form: 

and hangs.

Most interestingly, if I start over and do
CL-USER> (ql:quickload "nibbles" :verbose t)
and then
CL-USER> (ql:quickload "ironclad" :verbose t)
it works. Immediately after the output shown above, the "nibbles" load
continues with
To load "nibbles":
  Load 1 ASDF system:
    nibbles
; Loading "nibbles"
and so forth.

> > I supposed there is something odd about the stream for descriptor 5.
> > Perhaps someone who knows the internals well can tell me what stream
> > that is, and how it is different from other streams?
> 
> What's the output of: ls -l /proc/<pid>/fd 
> where <pid> is the  CMUCL's process id.

%; ls -l /proc/15494/fd
total 0
lr-x------ 1 midterm midterm 64 Oct  3 21:21 0 -> pipe:[222474]
l-wx------ 1 midterm midterm 64 Oct  3 21:21 1 -> pipe:[222473]
l-wx------ 1 midterm midterm 64 Oct  3 21:21 2 -> pipe:[222473]
lr-x------ 1 midterm midterm 64 Oct  3 21:21 3 -> /opt/cmucl-20c/lib/cmucl/lib/lisp-sse2.core
lrwx------ 1 midterm midterm 64 Oct  3 21:21 5 -> socket:[222481]
lr-x------ 1 midterm midterm 64 Oct  3 21:21 7 -> pipe:[222478]

So it's a socket, then. The only one open.

> Also is swank:*use-dedicated-output-stream* set?

No. Ought it to be set?

- Harald




More information about the slime-devel mailing list