[Openmcl-devel] slime and unicode: Lisp connection closed unexpectedly: connection broken by remote peer

Leo sdl.web at gmail.com
Mon Mar 8 08:25:11 PST 2010


On 2010-03-08 15:08 +0000, Tobias C. Rittweiler wrote:
>> I guess it may be a bug in slime. For example, when I run 'ccl64 -K
>> utf-8' in terminal and connect to it from emacs:
>>
>>   (defparameter language '日本語)
>>
>> will disconnect slime right away.
>>
>> With inferior lisp, however, it seems to work as noted in ccl wiki.
>>
>> Everything else works for me.
>
> Try HEAD and paste the debugging output you get in *inferior-lisp*.
>
>   -T.

With HEAD both ccl and slime, and 'Emacs -q -l slime-test.el'.

1. swank server is started in the terminal.
2. slime-connect to the server
3. (defparameter language '日本語)

The text on the terminal:

leo at Victoria ~$ ccl64 -K utf-8
; loading system definition from ccl:tools;asdf-install;asdf-install.asd.newest into #<Package "ASDF0">
; registering #<SYSTEM ASDF-INSTALL #x30200099B26D> as ASDF-INSTALL
;;; ASDF-Install version 0.6.10
; loading system definition from home:.ccl;systems;swank.asd.newest into #<Package "ASDF0">
; registering #<SYSTEM :SWANK #x302000A6617D> as SWANK
;Loading #P"/Users/leo/.slime/fasl/2010-03-08/clozure-version_1.5-dev-r13489m-trunk__(darwinx8664)-darwin-x86-64/swank-backend.dx64fsl"...
;Loading #P"/Users/leo/.slime/fasl/2010-03-08/clozure-version_1.5-dev-r13489m-trunk__(darwinx8664)-darwin-x86-64/metering.dx64fsl"...
;Loading #P"/Users/leo/.slime/fasl/2010-03-08/clozure-version_1.5-dev-r13489m-trunk__(darwinx8664)-darwin-x86-64/swank-ccl.dx64fsl"...
;Loading #P"/Users/leo/.slime/fasl/2010-03-08/clozure-version_1.5-dev-r13489m-trunk__(darwinx8664)-darwin-x86-64/swank-gray.dx64fsl"...
;Loading #P"/Users/leo/.slime/fasl/2010-03-08/clozure-version_1.5-dev-r13489m-trunk__(darwinx8664)-darwin-x86-64/swank-match.dx64fsl"...
;Loading #P"/Users/leo/.slime/fasl/2010-03-08/clozure-version_1.5-dev-r13489m-trunk__(darwinx8664)-darwin-x86-64/swank-rpc.dx64fsl"...
;Loading #P"/Users/leo/.slime/fasl/2010-03-08/clozure-version_1.5-dev-r13489m-trunk__(darwinx8664)-darwin-x86-64/swank.dx64fsl"...
; Warning: These Swank interfaces are unimplemented:
;           (ACTIVATE-STEPPING ADD-FD-HANDLER ADD-SIGIO-HANDLER
;            COMMAND-LINE-ARGS DUP EXEC-IMAGE MAKE-FD-STREAM REMOVE-FD-HANDLERS
;            REMOVE-SIGIO-HANDLERS SLDB-BREAK-AT-START SLDB-BREAK-ON-RETURN
;            SLDB-STEP-INTO SLDB-STEP-NEXT SLDB-STEP-OUT SOCKET-FD)
; While executing: SWANK-BACKEND::WARN-UNIMPLEMENTED-INTERFACES, in process listener(1).
;; Swank started at port: 4005.
Welcome to Clozure Common Lisp Version 1.5-dev-r13489M-trunk  (DarwinX8664)!
? 
;; swank:close-connection: Unexpected end of file on #<STRING-INPUT-STREAM  :CLOSED #x302000C803BD>

The event log buffer:

(:emacs-rex
 (swank:connection-info)
 "COMMON-LISP-USER" t 1)
(:indentation-update
 (("defx8664archmacro" . 2)
  ("with-nx-declarations" . 1)
  ("with-ioblock-output-locked" . 1)
  ("with-format-scan-options" . 1)
  ("with-lock-context" . 0)
  ("do-db-links" . 1)
  ("with-imm-temps" . 2)
  ("defnxdecl" . 2)
  ("pprint-logical-block+" . 1)
  ("do-consing-areas" . 1)
  ("with-self-bound-io-control-vars" . 0)
  ("with-node-temps" . 2)
  ("%ilogand" . 1)
  ("with-utf-8-cstr" . 1)
  ("do-gc-areas" . 1)
  ("defnx1" . 3)
  ("lfunloop" . 4)
  ("numeric-dispatch" . 1)
  ("without-gcing" . 0)
  ("%get-natural" . 0)
  ...))
(:return
 (:ok
  (:pid 12837 :style :spawn :encoding
	(:coding-system "iso-latin-1-unix" :external-format "#<EXTERNAL-FORMAT :ISO-8859-1/:UNIX #x3020008B5EFD>")
	:lisp-implementation
	(:type "Clozure Common Lisp" :name "ccl" :version "Version 1.5-dev-r13489M-trunk  (DarwinX8664)")
	:machine
	(:instance "Victoria.local" :type "i386" :version "MacBook5,1")
	:features
	(:asdf-install :asdf :primary-classes :common-lisp :openmcl :ccl :ccl-1\.2 :ccl-1\.3 :ccl-1\.4 :clozure :clozure-common-lisp :ansi-cl :unix :openmcl-unicode-strings :openmcl-native-threads :openmcl-partial-mop :mcl-common-mop-subset :openmcl-mop-2 :openmcl-private-hash-tables :x86-64 ...)
	:modules
	("SWANK-ARGLISTS" "SWANK-C-P-C" "XREF" "ASDF-INSTALL" "ASDF" "PREPARE-MCL-ENVIRONMENT" "LISPEQU" "JP-ENCODE" "VERSION" "CCL-EXPORT-SYMS" "LOOP" "MCL-COMPAT" "CORE-FILES" "LEAKS" "COVER" "DESCRIBE" "EDIT-CALLERS" "ARGLIST" "COMPILE-CCL" "SYSTEMS" ...)
	:package
	(:name "COMMON-LISP-USER" :prompt "CL-USER")
	:version "2010-03-08"))
 1)
(:emacs-rex
 (swank:swank-require
  '(:swank-package-fu :swank-presentations :swank-fuzzy :swank-fancy-inspector))
 "COMMON-LISP-USER" t 2)
(:return
 (:ok
  ("SWANK-FANCY-INSPECTOR" "SWANK-FUZZY" "SWANK-PRESENTATIONS" "SWANK-PACKAGE-FU" "SWANK-ARGLISTS" "SWANK-C-P-C" "XREF" "ASDF-INSTALL" "ASDF" "PREPARE-MCL-ENVIRONMENT" "LISPEQU" "JP-ENCODE" "VERSION" "CCL-EXPORT-SYMS" "LOOP" "MCL-COMPAT" "CORE-FILES" "LEAKS" "COVER" "DESCRIBE" ...))
 2)
(:emacs-rex
 (swank:create-repl nil)
 "COMMON-LISP-USER" t 3)
(:return
 (:ok
  ("COMMON-LISP-USER" "CL-USER"))
 3)
(:emacs-rex
 (swank:listener-eval "(defparameter language '日本語)\n")
 "COMMON-LISP-USER" :repl-thread 4)
(:emacs-rex
 (swank:connection-info)
 "COMMON-LISP-USER" t 1)
(:indentation-update
 (("defx8664archmacro" . 2)
  ("with-nx-declarations" . 1)
  ("with-ioblock-output-locked" . 1)
  ("with-format-scan-options" . 1)
  ("with-lock-context" . 0)
  ("do-db-links" . 1)
  ("with-imm-temps" . 2)
  ("defnxdecl" . 2)
  ("pprint-logical-block+" . 1)
  ("do-consing-areas" . 1)
  ("with-self-bound-io-control-vars" . 0)
  ("with-node-temps" . 2)
  ("%ilogand" . 1)
  ("with-utf-8-cstr" . 1)
  ("do-gc-areas" . 1)
  ("defnx1" . 3)
  ("lfunloop" . 4)
  ("numeric-dispatch" . 1)
  ("without-gcing" . 0)
  ("%get-natural" . 0)
  ...))
(:return
 (:ok
  (:pid 12840 :style :spawn :encoding
	(:coding-system "iso-latin-1-unix" :external-format "#<EXTERNAL-FORMAT :ISO-8859-1/:UNIX #x3020008B5F6D>")
	:lisp-implementation
	(:type "Clozure Common Lisp" :name "ccl" :version "Version 1.5-dev-r13489M-trunk  (DarwinX8664)")
	:machine
	(:instance "Victoria.local" :type "i386" :version "MacBook5,1")
	:features
	(:asdf-install :asdf :primary-classes :common-lisp :openmcl :ccl :ccl-1\.2 :ccl-1\.3 :ccl-1\.4 :clozure :clozure-common-lisp :ansi-cl :unix :openmcl-unicode-strings :openmcl-native-threads :openmcl-partial-mop :mcl-common-mop-subset :openmcl-mop-2 :openmcl-private-hash-tables :x86-64 ...)
	:modules
	("XREF" "ASDF-INSTALL" "ASDF" "PREPARE-MCL-ENVIRONMENT" "LISPEQU" "JP-ENCODE" "VERSION" "CCL-EXPORT-SYMS" "LOOP" "MCL-COMPAT" "CORE-FILES" "LEAKS" "COVER" "DESCRIBE" "EDIT-CALLERS" "ARGLIST" "COMPILE-CCL" "SYSTEMS" "TIME" "PATHNAMES" ...)
	:package
	(:name "COMMON-LISP-USER" :prompt "CL-USER")
	:version "2010-03-08"))
 1)
(:emacs-rex
 (swank:swank-require
  '(:swank-package-fu :swank-presentations :swank-fuzzy :swank-fancy-inspector :swank-c-p-c :swank-arglists))
 "COMMON-LISP-USER" t 2)
(:return
 (:ok
  ("SWANK-ARGLISTS" "SWANK-FANCY-INSPECTOR" "SWANK-FUZZY" "SWANK-C-P-C" "SWANK-PRESENTATIONS" "SWANK-PACKAGE-FU" "XREF" "ASDF-INSTALL" "ASDF" "PREPARE-MCL-ENVIRONMENT" "LISPEQU" "JP-ENCODE" "VERSION" "CCL-EXPORT-SYMS" "LOOP" "MCL-COMPAT" "CORE-FILES" "LEAKS" "COVER" "DESCRIBE" ...))
 2)
(:emacs-rex
 (swank:create-repl nil)
 "COMMON-LISP-USER" t 3)
(:return
 (:ok
  ("COMMON-LISP-USER" "CL-USER"))
 3)
(:emacs-rex
 (swank:listener-eval "(defparameter language '日本語)\n")
 "COMMON-LISP-USER" :repl-thread 4)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: slime-test.el
Type: application/emacs-lisp
Size: 187 bytes
Desc: slime-test.el
URL: <https://lists.clozure.com/pipermail/openmcl-devel/attachments/20100308/b3f1851c/attachment.bin>


More information about the Openmcl-devel mailing list