Reading/Writing FASL might crash Corman Lisp
There are some issues with FASL reading/writing. Right now Corman Lisp might crash when loading RDNZL. Corman Lisp tries to produce some FASLs when trying to load RDNZL at the first time. At this point, Corman Lisp might crash.
To reproduce the bug one should remove the produced FASLs and try to load the library again.
It seems that running the following function reproduces the problem.
(defun crash-cl ()
(let* ((rdnzl-dir-path (merge-pathnames "Libraries\\rdnzl\\RDNZL-0.9.4" *cormanlisp-directory*))
(rdnzl-load-file-path (merge-pathnames "Libraries\\rdnzl\\RDNZL-0.9.4\\load.lisp" *cormanlisp-directory*))
(del-fasls-cmd (format nil "/c del \"~A\\*.fasl\"" (namestring rdnzl-dir-path))))
(loop ; an infinite loop
;; delete the FASLs
(win:shell-execute "cmd.exe" del-fasls-cmd nil)
;; load and compile RDNZL
(load rdnzl-load-file-path))))
UPD: Updated the code.
Starting from the commit 70046976392d66540e150005a2c43b9e301e284a the bug is not possible to reproduce by default.
To reproduce the bug comment the line #+:cormanlisp (declare (ignore must-compile)) in 'load.lisp' in the RDNZL distribution.