I can not start slime with clisp-2.33.2p1 on OpenBSD-4.1. Here is the error message:
;; Loaded file /usr/local/home/zoong/.slime/fasl/2006-04-20/clisp-2.33.2-unix-unknown/xref.fas ;; Loading file /usr/local/home/zoong/.slime/fasl/2006-04-20/clisp-2.33.2-unix-unknown/metering.fas ... ;; Loaded file /usr/local/home/zoong/.slime/fasl/2006-04-20/clisp-2.33.2-unix-unknown/metering.fas ;; Loading file /usr/local/home/zoong/.slime/fasl/2006-04-20/clisp-2.33.2-unix-unknown/swank-clisp.fas ... WARNING: Replacing method #<STANDARD-METHOD (#<BUILT-IN-CLASS T>)> in #<GENERIC-FUNCTION CALL-WITHOUT-INTERRUPTS> WARNING: Replacing method #<STANDARD-METHOD NIL> in #<GENERIC-FUNCTION LISP-IMPLEMENTATION-TYPE-NAME> WARNING: Replacing method #<STANDARD-METHOD (#<BUILT-IN-CLASS T>)> in #<GENERIC-FUNCTION SET-DEFAULT-DIRECTORY> WARNING: Replacing method #<STANDARD-METHOD (#<BUILT-IN-CLASS T>)> in #<GENERIC-FUNCTION ARGLIST> WARNING: Replacing method #<STANDARD-METHOD (#<BUILT-IN-CLASS T>)> in #<GENERIC-FUNCTION FORMAT-SLDB-CONDITION> WARNING: Replacing method #<STANDARD-METHOD NIL> in #<GENERIC-FUNCTION UNPROFILE-ALL> WARNING: DEFUN/DEFMACRO: redefining function BREAK in /usr/local/home/zoong/.slime/fasl/2006-04-20/clisp-2.33.2-unix-unknown/swank-clisp.fas, was defined in /usr/obj/i386/clisp-2.33.2p1\ /build-i386/condition.fas ;; Loaded file /usr/local/home/zoong/.slime/fasl/2006-04-20/clisp-2.33.2-unix-unknown/swank-clisp.fas ;; Loading file /usr/local/home/zoong/.slime/fasl/2006-04-20/clisp-2.33.2-unix-unknown/swank-gray.fas ... ;; Loaded file /usr/local/home/zoong/.slime/fasl/2006-04-20/clisp-2.33.2-unix-unknown/swank-gray.fas ;; Loading file /usr/local/home/zoong/.slime/fasl/2006-04-20/clisp-2.33.2-unix-unknown/swank.fas ... ;; Loaded file /usr/local/home/zoong/.slime/fasl/2006-04-20/clisp-2.33.2-unix-unknown/swank.fas 0 errors, 0 warnings
WARNING: These Swank interfaces are unimplemented:
(ACTIVATE-STEPPING ADD-FD-HANDLER ADD-SIGIO-HANDLER ALL-THREADS CALLS-WHO DISASSEMBLE-FRAME FIND-THREAD INSPECT-FOR-EMACS INTERRUPT-THREAD RECEIVE REMOVE-FD-HANDLERS REMOVE-SIGIO-HANDLERS SEND SLDB-BREAK-AT-START SLDB-BREAK-ON-RETURN SPAWN THREAD-ID TOGGLE-TRACE WHO-MACROEXPANDS WHO-SPECIALIZES) ;; Loaded file /mnt/zoong/src/slime/swank-loader.lisp T [2]> ;; Swank started at port: 47113.
Process inferior-lisp segmentation fault (core dumped)
Lisp connection closed unexpectedly: exited abnormally with code 256
--------------------
Here are details of the core file: -rw------- 1 zoong users 3450304 Nov 21 11:56 lisp.run.core $ file lisp.run.core lisp.run.core: OpenBSD/i386 core from 'lisp.run'
I use these binary packages on OpenBSD-4.1: - emacs-21.4p3-no_x11 - clisp-2.33.2p1 and - slime-2.0.tgz from the Slime web site.
My ~/.emacs looks like this: (setq inferior-lisp-program "/usr/local/bin/clisp -K full") (add-to-list 'load-path "/mnt/zoong/src/slime/") (require 'slime) (slime-setup) $
Thanks, Zoong
* Zoong PHAM [2007-11-21 05:58+0100] writes:
I can not start slime with clisp-2.33.2p1 on OpenBSD-4.1. Here is the error message:
[...]
[2]> ;; Swank started at port: 47113.
Process inferior-lisp segmentation fault (core dumped)
My first guess is that the segmentation fault is a CLISP-on-OpenBSD problem and not a Slime problem.
[...]
I use these binary packages on OpenBSD-4.1:
- emacs-21.4p3-no_x11
- clisp-2.33.2p1
and - slime-2.0.tgz from the Slime web site.
Could you try the CVS version of Slime and perhaps a newer CLISP? 2.33 is rather old. If that doesn't work, show us the content of the *slime-events* buffer.
Helmut.
On Wednesday, 21 November 2007 at 23:50:39 +0100, Helmut Eller wrote:
My first guess is that the segmentation fault is a CLISP-on-OpenBSD problem and not a Slime problem.
This is what I suspect too. However, I am total new to all Lisp, Emacs (I am a vi person) and Slime :-(
Could you try the CVS version of Slime
Yes. I will try and update the status.
and perhaps a newer CLISP? 2.33 is rather old.
It is not that easy. I have tried with clisp-2.41a, 2.42 and 2.43. They don't compile on OpenBSD-4.1 and 4.2. It is known problem with OpenBSD random malloc thingy.
If that doesn't work, show us the content of the *slime-events* buffer.
How can I do that? Sorry, I am new to slime and emacs.
Thanks a lot.
Zoong
* Zoong PHAM [2007-11-22 00:06+0100] writes:
If that doesn't work, show us the content of the *slime-events* buffer.
How can I do that? Sorry, I am new to slime and emacs.
`C-x b *slime-events* RET' switches to that buffer, `C-x h' marks the whole buffer and `ESC w' copies the region to the clipboard.
Helmut.
On Thursday, 22 November 2007 at 0:14:26 +0100, Helmut Eller wrote:
`C-x b *slime-events* RET' switches to that buffer, `C-x h' marks the whole buffer and `ESC w' copies the region to the clipboard.
I try those and I ended in a window with the top line: File Edit Options Buffers Tools Help
What can I do next?
Thanks, Zoong
* Zoong PHAM [2007-11-22 00:24+0100] writes:
On Thursday, 22 November 2007 at 0:14:26 +0100, Helmut Eller wrote:
`C-x b *slime-events* RET' switches to that buffer, `C-x h' marks the whole buffer and `ESC w' copies the region to the clipboard.
I try those and I ended in a window with the top line: File Edit Options Buffers Tools Help
Those are the items of the menu bar. At the bottom of the window should be something like:
-:** *slime-events* All L0 (Fundamental)
What can I do next?
Is the buffer empty? That means that there wasn't even a connection. If not, there should be lisp forms like
(:emacs-rex (swank:connection-info))
What exactly would be interesting.
Helmut.
On Wednesday, 21 November 2007 at 23:50:39 +0100, Helmut Eller wrote:
Could you try the CVS version of Slime
I tried the CVS version of Slime. No luck :-(
Here are the details: Wrote file /usr/local/home/zoong/.slime/fasl/2007-11-19/clisp-2.33.2-unix-unknown/swank-backend.fas 0 errors, 0 warnings ;; Loading file /usr/local/home/zoong/.slime/fasl/2007-11-19/clisp-2.33.2-unix-unknown/swank-backend.fas ... ;; Loaded file /usr/local/home/zoong/.slime/fasl/2007-11-19/clisp-2.33.2-unix-unknown/swank-backend.fas Compiling file /mnt/zoong/src/slime-snap20071122/slime/slime/nregex.lisp ...
Wrote file /usr/local/home/zoong/.slime/fasl/2007-11-19/clisp-2.33.2-unix-unknown/nregex.fas 0 errors, 0 warnings ;; Loading file /usr/local/home/zoong/.slime/fasl/2007-11-19/clisp-2.33.2-unix-unknown/nregex.fas ... ;; Loaded file /usr/local/home/zoong/.slime/fasl/2007-11-19/clisp-2.33.2-unix-unknown/nregex.fas Compiling file /mnt/zoong/src/slime-snap20071122/slime/slime/xref.lisp ...
Wrote file /usr/local/home/zoong/.slime/fasl/2007-11-19/clisp-2.33.2-unix-unknown/xref.fas 0 errors, 0 warnings ;; Loading file /usr/local/home/zoong/.slime/fasl/2007-11-19/clisp-2.33.2-unix-unknown/xref.fas ... ;; Loaded file /usr/local/home/zoong/.slime/fasl/2007-11-19/clisp-2.33.2-unix-unknown/xref.fas Compiling file /mnt/zoong/src/slime-snap20071122/slime/slime/metering.lisp ...
Wrote file /usr/local/home/zoong/.slime/fasl/2007-11-19/clisp-2.33.2-unix-unknown/metering.fas 0 errors, 0 warnings ;; Loading file /usr/local/home/zoong/.slime/fasl/2007-11-19/clisp-2.33.2-unix-unknown/metering.fas ... ;; Loaded file /usr/local/home/zoong/.slime/fasl/2007-11-19/clisp-2.33.2-unix-unknown/metering.fas Compiling file /mnt/zoong/src/slime-snap20071122/slime/slime/swank-clisp.lisp ... The following functions were used but not defined: SWANK-BACKEND::IS-PREFIX-P SWANK-BACKEND::SPLIT-FRAME-STRING SWANK-BACKEND::STRING-MATCH 0 errors, 0 warnings ;; ;; Error while loading: /usr/local/home/zoong/.slime/fasl/2007-11-19/clisp-2.33.2-unix-unknown/swank-clisp.fas ;; Condition: READ from #<CLOSED INPUT BUFFERED FILE-STREAM CHARACTER ;; #P"/mnt/zoong/src/slime-snap20071122/slime/slime/swank-clisp.lisp" @351>: there is no package with name "REGEXP" ;; Aborting. ;; WARNING: No architecture feature found in (POWERPC PPC X86 X86-64 AMD64 I686 I586 I486 PC386 IAPX386 SPARC64 SPARC HPPA64 HPPA). *** - INVOKE-RESTART: No restart named ABORT is visible. Break 1 SWANK-LOADER[2]>
$ cat ~/.emacs (setq inferior-lisp-program "/usr/local/bin/clisp -K full") (add-to-list 'load-path "/mnt/zoong/src/slime-snap20071122/slime/slime/") (require 'slime) (slime-setup) $
Thanks, Zoong
* Zoong PHAM [2007-11-22 00:42+0100] writes:
On Wednesday, 21 November 2007 at 23:50:39 +0100, Helmut Eller wrote:
Could you try the CVS version of Slime
I tried the CVS version of Slime. No luck :-(
[...]
;; Error while loading: /usr/local/home/zoong/.slime/fasl/2007-11-19/clisp-2.33.2-unix-unknown/swank-clisp.fas ;; Condition: READ from #<CLOSED INPUT BUFFERED FILE-STREAM CHARACTER ;; #P"/mnt/zoong/src/slime-snap20071122/slime/slime/swank-clisp.lisp" @351>: there is no package with name "REGEXP"
Hmm, the CVS version needs the REGEXP module. Apparently that isn't loaded in your CLISP version.
You could try this with Slime 2.0 and CLISP 2.33:
1. start CLISP in a terminal and load the Swank server with (load "swank-loader.lisp")
2. enable debug output with (setq swank:*log-events* t)
3. start the server (swank:create-server)
4. in Emacs type `M-x slime-connect'
Emacs should then try to connect and you should see at least some output in the terminal. Perhaps we can learn from that where the segmentation fault occurs.
Helmut.
Hi Helmut,
On Thursday, 22 November 2007 at 22:24:10 +0100, Helmut Eller wrote:
You could try this with Slime 2.0 and CLISP 2.33:
OK. I got back to Slime 2.0 and CLISP 2.33. I updated my ~/.emacs file accordingly.
start CLISP in a terminal and load the Swank server with (load "swank-loader.lisp")
enable debug output with (setq swank:*log-events* t)
start the server (swank:create-server)
From terminal 1:
Copyright (c) Sam Steingold, Bruno Haible 2001-2004
[1]> (load "swank-loader.lisp") ;; Loading file swank-loader.lisp ... WARNING: No architecture feature found in (POWERPC PPC X86 X86-64 AMD64 I686 I586 I486 PC386 IAPX386 SPARC64 SPARC HPPA64 HPPA). ;; Loading file /usr/local/home/zoong/.slime/fasl/2006-04-20/clisp-2.33.2-unix-unknown/swank-backend.fas ... ;; Loaded file /usr/local/home/zoong/.slime/fasl/2006-04-20/clisp-2.33.2-unix-unknown/swank-backend.fas ;; Loading file /usr/local/home/zoong/.slime/fasl/2006-04-20/clisp-2.33.2-unix-unknown/nregex.fas ... ;; Loaded file /usr/local/home/zoong/.slime/fasl/2006-04-20/clisp-2.33.2-unix-unknown/nregex.fas ;; Loading file /usr/local/home/zoong/.slime/fasl/2006-04-20/clisp-2.33.2-unix-unknown/xref.fas ... ;; Loaded file /usr/local/home/zoong/.slime/fasl/2006-04-20/clisp-2.33.2-unix-unknown/xref.fas ;; Loading file /usr/local/home/zoong/.slime/fasl/2006-04-20/clisp-2.33.2-unix-unknown/metering.fas ... ;; Loaded file /usr/local/home/zoong/.slime/fasl/2006-04-20/clisp-2.33.2-unix-unknown/metering.fas ;; Loading file /usr/local/home/zoong/.slime/fasl/2006-04-20/clisp-2.33.2-unix-unknown/swank-clisp.fas ... WARNING: Replacing method #<STANDARD-METHOD (#<BUILT-IN-CLASS T>)> in #<GENERIC-FUNCTION CALL-WITHOUT-INTERRUPTS> WARNING: Replacing method #<STANDARD-METHOD NIL> in #<GENERIC-FUNCTION LISP-IMPLEMENTATION-TYPE-NAME> WARNING: Replacing method #<STANDARD-METHOD (#<BUILT-IN-CLASS T>)> in #<GENERIC-FUNCTION SET-DEFAULT-DIRECTORY> WARNING: Replacing method #<STANDARD-METHOD (#<BUILT-IN-CLASS T>)> in #<GENERIC-FUNCTION ARGLIST> WARNING: Replacing method #<STANDARD-METHOD (#<BUILT-IN-CLASS T>)> in #<GENERIC-FUNCTION FORMAT-SLDB-CONDITION> WARNING: Replacing method #<STANDARD-METHOD NIL> in #<GENERIC-FUNCTION UNPROFILE-ALL> WARNING: DEFUN/DEFMACRO: redefining function BREAK in /usr/local/home/zoong/.slime/fasl/2006-04-20/clisp-2.33.2-unix-unknown/swank-clisp.fas, was defined in /usr/obj/i386/clisp-2.33.2p1/build-i386/condition.fas ;; Loaded file /usr/local/home/zoong/.slime/fasl/2006-04-20/clisp-2.33.2-unix-unknown/swank-clisp.fas ;; Loading file /usr/local/home/zoong/.slime/fasl/2006-04-20/clisp-2.33.2-unix-unknown/swank-gray.fas ... ;; Loaded file /usr/local/home/zoong/.slime/fasl/2006-04-20/clisp-2.33.2-unix-unknown/swank-gray.fas ;; Loading file /usr/local/home/zoong/.slime/fasl/2006-04-20/clisp-2.33.2-unix-unknown/swank.fas ... ;; Loaded file /usr/local/home/zoong/.slime/fasl/2006-04-20/clisp-2.33.2-unix-unknown/swank.fas 0 errors, 0 warnings
WARNING: These Swank interfaces are unimplemented:
(ACTIVATE-STEPPING ADD-FD-HANDLER ADD-SIGIO-HANDLER ALL-THREADS CALLS-WHO DISASSEMBLE-FRAME FIND-THREAD INSPECT-FOR-EMACS INTERRUPT-THREAD RECEIVE REMOVE-FD-HANDLERS REMOVE-SIGIO-HANDLERS SEND SLDB-BREAK-AT-START SLDB-BREAK-ON-RETURN SPAWN THREAD-ID TOGGLE-TRACE WHO-MACROEXPANDS WHO-SPECIALIZES) ;; Loaded file swank-loader.lisp T [2]> (setq swank:*log-events* t) T [3]> (swank:create-server) ;; Swank started at port: 4005.
From terminal 2:
$ netstat -an | grep 4005 tcp 0 0 *.4005 *.* LISTEN $
- in Emacs type `M-x slime-connect'
From terminal 3:
started emacs I entered that command, and accepted default host '127.0.0.1' and port '4005' Then this message appeared on the emacs frame (terminal 3): Lisp connection closed unexpectedly: exited abnormally with code 256
Emacs should then try to connect and you should see at least some output in the terminal. Perhaps we can learn from that where the segmentation fault occurs.
on terminal 1, this meesage appeared: Segmentation fault (core dumped) And clisp terminated with this error code: $ echo $? 139 $
Regards, Zoong
* Zoong PHAM [2007-11-23 00:48+0100] writes:
Emacs should then try to connect and you should see at least some output in the terminal. Perhaps we can learn from that where the segmentation fault occurs.
on terminal 1, this meesage appeared: Segmentation fault (core dumped)
That's not good. The error occurs somewhere between accepting the connection and reading the first request. You could add print/trace statements in swank.lisp to further narrow that region. I'm sorry, but I don't know a better advice.
Helmut.
I upgraded from clisp-2.33.2p1 to clisp-2.43 (via OpenBSD-4.2 port). Slime-2.0 is working fine now.
Thanks Helmut.
Regards, Zoong