[Openmcl-devel] Compiler infinite loop

Ron Garret ron at flownet.com
Sun Sep 19 12:14:05 PDT 2010


My thoughts: don't write code like that.  (Reminds me of the old aphorism: "Doctor, it hurts when I poke myself in the eye.")

On Sep 19, 2010, at 12:08 PM, Valentin Baciu wrote:

> Hello,
> 
> 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.
> 
> _______________________________________________
> Openmcl-devel mailing list
> Openmcl-devel at clozure.com
> http://clozure.com/mailman/listinfo/openmcl-devel




More information about the Openmcl-devel mailing list