[slim-vim] ecl-slime crashing on me

Larry Clapp larry at theclapp.org
Sun Jul 9 09:45:43 CDT 2006


Brad,

I pulled a fresh ecl-slime, and a fresh Slime, and ecl-slime crashes
on me on the first expression evaluated.

In clisp:

- load swank-loader
- run (swank:create-server :dont-close t)

In Vim:

- disable ecl-repl
- start Vim in the ecl-slime directory, load *.vim and *.lisp
- source ecl-slime.vim
- open a new buffer
- type ,sc to connect to Swank
- type (+ 1 1)
- type ,x to execute
- wait

and a few seconds later clisp prints a few thousand lines of

DISPATCHING:
(:WRITE-STRING
 "READ: \"(:EMACS-REX (SWANK:INTERACTIVE-EVAL \\\"(+ 1 1)\\\")
 \\\"#:slime\\\" T 1)\"
 DISPATCHING:
 DISPATCHING:
 DISPATCHING:
 DISPATCHING:
 DISPATCHING:
... etc
 ")

and Vim crashes to the ECL debugger.

The clisp backtrace:

> ;; Event history end.
> ;; Connection to Emacs lost. [
> ;;  condition: SYSTEM::STORE-SCHAR: index 8000 should be less than the length of the string
> ;;  type: SWANK::SLIME-PROTOCOL-ERROR
> ;;  encoding: :ISO-LATIN-1-UNIX style: NIL dedicated: NIL]
> 
> *** - Ctrl-C: User break

[ Note: clisp didn't crash, I pressed ^C ]

> The following restarts are available:
> ABORT          :R1      ABORT
> Break 1 [2]> :bt
> <1> #<SYSTEM-FUNCTION SHOW-STACK> 3
> <2> #<COMPILED-FUNCTION SYSTEM::PRINT-BACKTRACE>
> <3> #<COMPILED-FUNCTION SYSTEM::DEBUG-BACKTRACE>
> <4> #<SYSTEM-FUNCTION SYSTEM::READ-EVAL-PRINT> 2
> <5> #<COMPILED-FUNCTION SYSTEM::BREAK-LOOP-2-2>
> <6> #<SYSTEM-FUNCTION SYSTEM::SAME-ENV-AS> 2
> <7> #<COMPILED-FUNCTION SYSTEM::BREAK-LOOP-2>
> <8> #<SYSTEM-FUNCTION SYSTEM::DRIVER>
> <9> #<COMPILED-FUNCTION SYSTEM::BREAK-LOOP>
> <10> #<SYSTEM-FUNCTION INVOKE-DEBUGGER> 1
> <11> #<SYSTEM-FUNCTION SOCKET-ACCEPT> 6
> <12> #<COMPILED-FUNCTION #:|127 134 (DEFIMPLEMENTATION ACCEPT-CONNECTION (SOCKET &KEY # ...) ...)-13-1-1-1-1|>
> <13> #<COMPILED-FUNCTION #:|127 134 (DEFIMPLEMENTATION ACCEPT-CONNECTION (SOCKET &KEY # ...) ...)-13-1-1-1|>
> <14> #<COMPILED-FUNCTION #:COMPILED-FORM-230-1>
> <15> #<STANDARD-GENERIC-FUNCTION SWANK-BACKEND:ACCEPT-CONNECTION>
> <16> #<COMPILED-FUNCTION SWANK::ACCEPT-AUTHENTICATED-CONNECTION>
> <17> #<COMPILED-FUNCTION SWANK::SERVE-CONNECTION>
> <18> #<COMPILED-FUNCTION SWANK::SETUP-SERVER-SERVE>
> <19> #<COMPILED-FUNCTION SWANK::SETUP-SERVER>
> <20> #<COMPILED-FUNCTION SWANK:CREATE-SERVER>
> APPLY frame for call (RUN-SWANK)
> <21> #<FUNCTION RUN-SWANK NIL (DECLARE (SYSTEM::IN-DEFUN RUN-SWANK)) (BLOCK RUN-SWANK (SWANK:CREATE-SERVER :DONT-CLOSE T))> 0
> EVAL frame for form (RUN-SWANK)
> Printed 21 frames
> Break 1 [2]>

The Vim/ECL backtrace:

> destructure-case failed: NIL
> Broken at SLIME::SLIME-DISPATCH-EVENT.
> > :b
> Backtrace: > SLIME::SLIME-DISPATCH-EVENT > slime::slime-process-available-input

If I don't load *.vim and *.lisp, and just source ecl-slime.vim, then
,sc segfaults on me.

I assume this is not what you get.  :)  What Lisp do you use, how do
you load ecl-slime, etc?

-- Larry



More information about the slim-vim mailing list