SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Try as I might, on Slackware 14.2 (32 or 64), I cannot get a working CLISP/EMACS/SLIME setup with the latest versions - well more specifically, it is when trying to use the contrib '(SLIME-REPL) ... which is the whole point of using EMACS/SLIME.
I am always getting 'unexpected disconnections' when an error is encountered in a lisp form. I have raised this on the CLISP mailing list and some responses were given, though not to resolution. Indeed, one suggested that on their *Debian* setup of CLISP/EMACS/SLIME using the SLIME-REPL was fine and I am not sure what that suggests. It used to work I feel on earlier co-operating versions, but I am not any where near competent in lisp, clisp, emacs etc to debug it etc.
*****
Any way all that said, what my enquiry here is about: if anyone is using CLISP, EMACS, SLIME with the SLIME-REPL on Slackware specifically, please can you post the .clisprc.lisp, the .emacs config files... please ?
I can start from there and that seems better than any thing else at this stage.
*****
I have tried all sorts of settings from simple to complex and nothing seems to stop the 'unexpected disconnection' when using the 'slime-repl'.
Thank you if by [perhaps] rare chance, anyone out there is using without any errors and can post the configs.
Habs
When you turn on "Enter debugger on error" in the options menu and then run your command, what does the traceback look like?
Thank you for your reply. I will endeavour to raise the matter as you suggest.
I dont get a traceback, because the 'unexpected disconnection' between CLISP and SLIME/SWANK just crashes out. Mind you, I am not aware of how or where (CLISP, or SLIME/SWANK) to debug it. CLISP is running as inferior-lisp in EMACS SLIME mode.
That's why I wanted first to start with some know working configs on Slackware 14.2, 32 and 64 bit. Maybe someone will pop along with some in the meantime...probably not though :-)
So, I just used a special user that I have on my Slackware64 14.2 system that normally doesn't have anything special configured.
I used MELPA to install SLIME by creating the file ~/.emacs.d/init.el containing...
Code:
(require 'package)
(let* ((no-ssl (and (memq system-type '(windows-nt ms-dos))
(not (gnutls-available-p))))
(proto (if no-ssl "http" "https")))
(when no-ssl
(warn "\
Your version of Emacs does not support SSL connections,
which is unsafe because it allows man-in-the-middle attacks.
There are two things you can do about this warning:
1. Install an Emacs version that does support SSL and be safe.
2. Remove this warning from your init file so you won't see it again."))
;; Comment/uncomment these two lines to enable/disable MELPA and MELPA Stable as desired
(add-to-list 'package-archives (cons "melpa" (concat proto "://melpa.org/packages/")) t)
;;(add-to-list 'package-archives (cons "melpa-stable" (concat proto "://stable.melpa.org/packages/")) t)
(when (< emacs-major-version 24)
;; For important compatibility libraries like cl-lib
(add-to-list 'package-archives (cons "gnu" (concat proto "://elpa.gnu.org/packages/")))))
(package-initialize)
I restarted emacs and then ran the command
Code:
M-x package-refresh-contents
followed by
Code:
M-x package-install RET slime RET
. I then edited my init.el file to add 3 lines after (package-initialize)...
Since your previous to last post, I've been narrowing down the issue. This problem appears to be only when using a 32bit system...I've tried Debian 32bit (as a virtual machine) too and get the same 'unexpected disconnection...'.
Your 64bit test does appear to work fine just as it did for me.
I have consulted the Clisp mailing list with the 32bit observation to see if there is any comment/observation/verification on the problem.
Thanks again for the interest. If you have available a 32bit setup to try as you did 64bit and a bit of time in and amongst...that would be helpful.
Of course it may just be easier to migrate from 32bit machines, but finding out why this is happening when it shouldn't be might not then happen.
So, I created a new VM for Slackware 14.2 and upgraded it to be up-to-date.
I then followed the same steps to install SLIME as I mentioned above.
I then evaluated the form (setq barf "bibble")), which failed with a "Lisp connection closed unexpectedly: connection broken by remote peer"
The buffer *inferior-lisp* contained a better error message...
Code:
*** - handle_fault error 2 ! address = 0x408 not in [0x206ec004,0x20924874) !
SIGSEGV cannot be cured. Fault address = 0x408
GC count: 342
Space collected by GC: 0 208030496
Run time: 4 275000
Real time: 18 610303
GC time: 1 14800
Permanently allocated: 94080 bytes.
Currently in use: 4375336 bytes.
Free space: 20 bytes.
I don't believe that anything after the SIGSEGV cannot be cured. Fault address = 0x408 is significant.
I'm afraid that my interest in a 32-bit only problem is practically non-existent; none of my current machines run 32 bit slackware and I don't see doing so in the future.
I dare say we have arrived at the same point. As I mentioned, it isn't just Slackware; this happens with Debian too. It seems to be just 32bit as we have observed.
Thank you for your testing @Richard Cranium. Perhaps your comments on 32bit machines reflect the natural progression, but in that, what used to work no longer does.
My foray into this problem started with trying to do a remote connection (as in from one machine to slime/swank on a remote machine) and it failed to work, but if I recall, the remote slime/swank was on a 32bit machine. It would seem that the CLISP /SWANK comms. on 32bit is suspect.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.