[slime-devel] Bug report: error in process filter: destructure-case failed

Helmut Eller heller at common-lisp.net
Fri Jul 14 13:36:07 UTC 2006


* Max Mikhanosha [2006-07-14 00:44+0200] writes:

> Here is a test case that I can reproduce 100%
>
> Emacs: 22.0.51.7-multi-tty (also happened on 21.3)
> Slime: latest CVS
> Lisp:  SBCL 0.9.13 x86-64
> OS:    SuSe 10 64bit, 2.6.15-rc6-2-smp kernel
> Hardware: Dual core Opteron

I can't reproduce the error on my machine.  But I think that we are
very careful to bind *print-case* properly:

(defun prin1-to-string-for-emacs (object)
  (with-standard-io-syntax
    (let ((*print-case* :downcase)
          (*print-readably* nil)
          (*print-pretty* nil)
          (*package* *swank-io-package*))
      (prin1-to-string object))))

and I can't quite see why :write-string is ever printed in upper case.
My suspicion is that SBCL's printer is not thread-safe.  In
particular, the use of sb-impl::*previous-case* looks like it could
lead the kind of bugs that you see.

Helmut.



More information about the slime-devel mailing list