When I do M-x slime-connect, I get an error in the SLIME debugger. I use a CLISP 2.45 pre-compiled binary on Windows XP SP3. Here is the error and backtrace:
Winsock error 10038 (ENOTSOCK): Socket operation on non-socket [Condition of type SYSTEM::SIMPLE-OS-ERROR]
Restarts: 0: [SOCKET-STATUS] Return from socket-status. 1: [ABORT] Abort 2: [CLOSE-CONNECTION] Close SLIME connection 3: [ABORT] Abort main loop
Backtrace: 0: [292] frame binding variables (~ = dynamically): | ~ SWANK::*SWANK-STATE-STACK* <--> NIL 1: [289] frame binding variables (~ = dynamically): | ~ SWANK::*SLDB-STEPPING-P* <--> NIL 2: [286] frame binding variables (~ = dynamically): | ~ SWANK::*SLDB-LEVEL* <--> 0 3: [283] frame binding variables (~ = dynamically): | ~ *PACKAGE* <--> #<PACKAGE COMMON-LISP-USER> 4: <1/276> #<COMPILED-FUNCTION SWANK::DEBUG-IN-EMACS> - #<COMPILED-FUNCTION SWANK::INVOKE-SLIME-DEBUGGER-1> 5: <1/274> #<COMPILED-FUNCTION SWANK::INVOKE-SLIME-DEBUGGER-1> - #<COMPILED-FUNCTION SWANK::INVOKE-SLIME-DEBUGGER-1> 6: [273] frame binding variables (~ = dynamically): | ~ *DEBUGGER-HOOK* <--> #<COMPILED-FUNCTION SWANK:SWANK-DEBUGGER-HOOK> 7: <1/269> #<COMPILED-FUNCTION #:|625 630 (DEFINTERFACE CALL-WITH-DEBUGGER-HOOK (HOOK FUN) ...)-61-3-1|> - #<COMPILED-FUNCTION #:|625 630 (DEFINTERFACE CALL-WITH-DEBUGGER-HOOK (HOOK FUN) ...)-61-3-1|> 8: <1/264> #<COMPILED-FUNCTION SWANK-BACKEND:CALL-WITH-DEBUGGER-HOOK> - #<COMPILED-FUNCTION SWANK::CALL-WITH-CONNECTION-2-2-1> 9: <1/261> #<COMPILED-FUNCTION SWANK::CALL-WITH-CONNECTION-2-2-1> - #<COMPILED-FUNCTION SWANK::CALL-WITH-CONNECTION-2-2-1> 10: [260] frame binding variables (~ = dynamically): 11: <1/255> #<COMPILED-FUNCTION SWANK::CALL-WITH-BINDINGS> - #<COMPILED-FUNCTION SWANK::CALL-WITH-CONNECTION-2-2> 12: <1/252> #<COMPILED-FUNCTION SWANK::CALL-WITH-CONNECTION-2-2> - #<COMPILED-FUNCTION SWANK::CALL-WITH-CONNECTION-2-2> 13: [251] handler frame for conditions SWANK::SWANK-ERROR 14: <1/244> #<COMPILED-FUNCTION SWANK::CALL-WITH-CONNECTION-2> - #<COMPILED-FUNCTION SWANK::CALL-WITH-CONNECTION-2> 15: [243] handler frame for conditions SWANK::SWANK-ERROR 16: [237] compiled tagbody frame for #(NIL) 17: [231] frame binding variables (~ = dynamically): | ~ SWANK::*SLIME-INTERRUPTS-ENABLED* <--> NIL 18: [227] frame binding variables (~ = dynamically): | ~ SWANK-BACKEND:*PENDING-SLIME-INTERRUPTS* <--> #<UNBOUND> 19: [224] frame binding variables (~ = dynamically): | ~ SWANK::*EMACS-CONNECTION* <--> NIL 20: <1/219> #<COMPILED-FUNCTION SWANK::CALL-WITH-CONNECTION> [217] frame binding variables (~ = dynamically): | ~ SWANK::*SLIME-INTERRUPTS-ENABLED* <--> #<UNBOUND> 21: <1/211> #<COMPILED-FUNCTION SWANK:INVOKE-SLIME-DEBUGGER> - #<COMPILED-FUNCTION SWANK::SWANK-DEBUGGER-HOOK-2-1> 22: <1/209> #<COMPILED-FUNCTION SWANK::SWANK-DEBUGGER-HOOK-2-1> - #<COMPILED-FUNCTION SWANK::SWANK-DEBUGGER-HOOK-2-1> 23: [208] frame binding variables (~ = dynamically): | ~ *DEBUGGER-HOOK* <--> NIL 24: <1/204> #<COMPILED-FUNCTION #:|625 630 (DEFINTERFACE CALL-WITH-DEBUGGER-HOOK (HOOK FUN) ...)-61-3-1|> - #<COMPILED-FUNCTION #:|625 630 (DEFINTERFACE CALL-WITH-DEBUGGER-HOOK (HOOK FUN) ...)-61-3-1|> 25: <1/199> #<COMPILED-FUNCTION SWANK-BACKEND:CALL-WITH-DEBUGGER-HOOK> - #<COMPILED-FUNCTION SWANK::SWANK-DEBUGGER-HOOK-2> 26: <1/196> #<COMPILED-FUNCTION SWANK::SWANK-DEBUGGER-HOOK-2> - #<COMPILED-FUNCTION SWANK::SWANK-DEBUGGER-HOOK-2> 27: [195] handler frame for conditions SWANK::INVOKE-DEFAULT-DEBUGGER 28: [189] compiled tagbody frame for #(NIL) 29: <1/183> #<COMPILED-FUNCTION SWANK:SWANK-DEBUGGER-HOOK> [181] frame binding variables (~ = dynamically): | ~ *DEBUGGER-HOOK* <--> #<COMPILED-FUNCTION SWANK:SWANK-DEBUGGER-HOOK> 30: <1/178> #<SYSTEM-FUNCTION INVOKE-DEBUGGER> 1 [177] frame binding variables (~ = dynamically): | ~ SYSTEM::*PRIN-STREAM* <--> #<UNBOUND> 31: [174] frame binding variables (~ = dynamically): | ~ *PRINT-READABLY* <--> NIL 32: [171] frame binding variables (~ = dynamically): | ~ *PRINT-ESCAPE* <--> T 33: <1/167> #<SYSTEM-FUNCTION SOCKET-STATUS> 3 [164] frame binding variables (~ = dynamically): | ~ SYSTEM::*ACTIVE-RESTARTS* <--> (#S(RESTART :NAME ABORT :TEST #1=#<COMPILED-FUNCTION SYSTEM::DEFAULT-R.. 34: [161] catch frame for tag #:SIMPLE-RESTART-19728 35: <1/156> #<COMPILED-FUNCTION #:|180 194 (DEFIMPLEMENTATION WAIT-FOR-INPUT (STREAMS &OPTIONAL TIMEOUT) ...)-16-1-1|> - #<COMPILED-FUNCTION #:|180 194 (DEFIMPLEMENTATION WAIT-FOR-INPUT (STREAMS &OPTIONAL.. 36: <1/151> #<COMPILED-FUNCTION SWANK-BACKEND:WAIT-FOR-INPUT> - (#<IO UNBUFFERED SOCKET-STREAM CHARACTER 0.0.0.0:4005> #<IO TERMINAL-STREAM>) 37: <1/146> #<COMPILED-FUNCTION SWANK::MAKE-REPL-INPUT-STREAM-1> - #<COMPILED-FUNCTION SWANK::MAKE-REPL-INPUT-STREAM-1> 38: <1/143> #<COMPILED-FUNCTION #:|84 97 (DEFMETHOD STREAM-READ-CHAR (#) ...)-12-1-1-1|> - #<COMPILED-FUNCTION #:|84 97 (DEFMETHOD STREAM-READ-CHAR (#) ...)-12-1-1-1|> 39: <1/141> #<COMPILED-FUNCTION #:|1004 1008 (DEFINTERFACE CALL-WITH-LOCK-HELD (LOCK FUNCTION) ...)-121-3-1|> - #<COMPILED-FUNCTION #:|1004 1008 (DEFINTERFACE CALL-WITH-LOCK-HELD (LOCK FUNCTION) ...)-121-.. 40: <1/136> #<COMPILED-FUNCTION SWANK-BACKEND:CALL-WITH-LOCK-HELD> [134] compiled block frame for STREAM-READ-CHAR 41: <1/129> #<COMPILED-FUNCTION #:|84 97 (DEFMETHOD STREAM-READ-CHAR (#) ...)-12-1-1|> <2/129> #<STANDARD-GENERIC-FUNCTION STREAM-READ-CHAR> - #<SWANK-BACKEND::SLIME-INPUT-STREAM #x19F815AD> 42: [127] frame binding variables (~ = dynamically): | ~ SYSTEM::*READING-STRUCT* <--> NIL 43: [124] frame binding variables (~ = dynamically): | ~ SYSTEM::*READING-ARRAY* <--> NIL 44: [121] frame binding variables (~ = dynamically): | ~ SYSTEM::*BACKQUOTE-LEVEL* <--> #<UNBOUND> 45: [118] frame binding variables (~ = dynamically): | ~ SYSTEM::*READ-REFERENCE-TABLE* <--> #<UNBOUND> 46: [115] frame binding variables (~ = dynamically): | ~ SYSTEM::*READ-PRESERVE-WHITESPACE* <--> #<UNBOUND> 47: [112] frame binding variables (~ = dynamically): | ~ SYSTEM::*READ-RECURSIVE-P* <--> #<UNBOUND> 48: <1/109> #<SYSTEM-FUNCTION READ> [105] frame binding variables (~ = dynamically): | ~ SYSTEM::*ACTIVE-RESTARTS* <--> (#S(RESTART :NAME SWANK::CLOSE-CONNECTION :TEST #1=#<COMPILED-FUNCTION SYSTEM::DE.. 49: [102] catch frame for tag #:SIMPLE-RESTART-23703 50: <1/98> #<COMPILED-FUNCTION SWANK::SIMPLE-REPL> [98] frame binding variables (~ = dynamically): | ~ *STANDARD-INPUT* <--> #<IO SYNONYM-STREAM *TERMINAL-IO*> 51: [94] frame binding variables (~ = dynamically): | ~ SYSTEM::*ACTIVE-RESTARTS* <--> (#S(RESTART :NAME ABORT :TEST #<COMPILED-FUNCTION SYSTEM::DEFAULT-RESTART-TEST> :INVOKE-TAG NIL :INVOKE-FUNCTION #.. 52: [91] catch frame for tag #:SIMPLE-RESTART-23688 53: <1/87> #<COMPILED-FUNCTION SWANK::SIMPLE-SERVE-REQUESTS-2> - #<COMPILED-FUNCTION SWANK::SIMPLE-SERVE-REQUESTS-2> 54: <1/85> #<COMPILED-FUNCTION #:|102 110 (DEFIMPLEMENTATION CALL-WITH-USER-BREAK-HANDLER (HANDLER FUNCTION) ...)-7-1-1-2|> - #<COMPILED-FUNCTION #:|102 110 (DEFIMPLEMENTATION CALL-WITH-USER-BREAK-HANDLER.. 55: [84] handler frame for conditions SYSTEM::SIMPLE-INTERRUPT-CONDITION 56: <1/76> #<COMPILED-FUNCTION #:|102 110 (DEFIMPLEMENTATION CALL-WITH-USER-BREAK-HANDLER (HANDLER FUNCTION) ...)-7-1-1|> - #<COMPILED-FUNCTION #:|102 110 (DEFIMPLEMENTATION CALL-WITH-USER-BREAK-HANDLER (.. 57: <1/71> #<COMPILED-FUNCTION SWANK-BACKEND:CALL-WITH-USER-BREAK-HANDLER> [69] unwind-protect frame 58: <1/65> #<COMPILED-FUNCTION SWANK::SIMPLE-SERVE-REQUESTS> - #<COMPILED-FUNCTION SWANK::SIMPLE-SERVE-REQUESTS> 59: <1/62> #<COMPILED-FUNCTION SWANK::SERVE-REQUESTS> - #<SWANK::CONNECTION #x19F8146D> 60: [59] unwind-protect frame 61: <1/55> #<COMPILED-FUNCTION SWANK::SERVE-CONNECTION> - #<COMPILED-FUNCTION SWANK::SETUP-SERVER-SERVE> 62: <1/50> #<COMPILED-FUNCTION SWANK::SETUP-SERVER-SERVE> - NIL 63: <1/44> #<COMPILED-FUNCTION SWANK::SETUP-SERVER> - #<COMPILED-FUNCTION SWANK:CREATE-SERVER> 64: <1/38> #<COMPILED-FUNCTION SWANK:CREATE-SERVER> - #<COMPILED-FUNCTION SWANK:CREATE-SERVER> 65: [33] EVAL frame for form (SWANK:CREATE-SERVER) 66: <1/30> #<SYSTEM-FUNCTION SYSTEM::READ-EVAL-PRINT> 2 [28] frame binding variables (~ = dynamically): | ~ SYSTEM::*ACTIVE-RESTARTS* <--> NIL 67: [25] compiled tagbody frame for #(NIL) 68: [20] catch frame for tag DEBUG
* Karl Winterling [2009-01-02 02:49+0100] writes:
When I do M-x slime-connect, I get an error in the SLIME debugger. I use a CLISP 2.45 pre-compiled binary on Windows XP SP3. Here is the error and backtrace:
Winsock error 10038 (ENOTSOCK): Socket operation on non-socket [Condition of type SYSTEM::SIMPLE-OS-ERROR]
Does is work if you remove WAIT-FOR-INPUT in swank-clisp.lisp? There is a pure ANSI implementation in swank-backend.lisp which is probably more portable.
Helmut.
Helmut Eller wrote:
- Karl Winterling [2009-01-02 02:49+0100] writes:
When I do M-x slime-connect, I get an error in the SLIME debugger. I use a CLISP 2.45 pre-compiled binary on Windows XP SP3. Here is the error and backtrace:
Winsock error 10038 (ENOTSOCK): Socket operation on non-socket [Condition of type SYSTEM::SIMPLE-OS-ERROR]
Does is work if you remove WAIT-FOR-INPUT in swank-clisp.lisp? There is a pure ANSI implementation in swank-backend.lisp which is probably more portable.
Removing that function cured similar problem I had with clisp v2.47. Thanks
Helmut.
On Fri, Jan 2, 2009 at 12:32 AM, Helmut Eller heller@common-lisp.net wrote:
- Karl Winterling [2009-01-02 02:49+0100] writes:
When I do M-x slime-connect, I get an error in the SLIME debugger. I use a CLISP 2.45 pre-compiled binary on Windows XP SP3. Here is the error and backtrace:
Winsock error 10038 (ENOTSOCK): Socket operation on non-socket [Condition of type SYSTEM::SIMPLE-OS-ERROR]
Does is work if you remove WAIT-FOR-INPUT in swank-clisp.lisp? There is a pure ANSI implementation in swank-backend.lisp which is probably more portable.
Helmut.
slime-devel site list slime-devel@common-lisp.net http://common-lisp.net/mailman/listinfo/slime-devel
It connects and slime-eval* works, but I don't get a REPL in Emacs.