[Openmcl-devel] Compiler infinite loop

Valentin Baciu valentin at syntactic.org
Sun Sep 19 12:08:59 PDT 2010


I ran into an infinite loop that keeps one out of two CPUs at 100% while
compiling some piece of code reduced to this example:

(defun keep-compiler-busy ()
  (let ((test nil))
    (symbol-macrolet ((test test))
      (pprint test))))

I am not sure if this is a bug (maybe not according to CLHS) or if this
could be a "missing" feature, but it bit me until I realized what happened.
My guess is that the compiler keeps expanding the symbol 'test without
exhausting the stack. Not a big problem from my point of view, but please
let me know your thoughts on dealing with this kind of stuff.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.clozure.com/pipermail/openmcl-devel/attachments/20100919/c8cf7803/attachment.htm>

More information about the Openmcl-devel mailing list