cormanlisp icon indicating copy to clipboard operation
cormanlisp copied to clipboard

Reading/Writing FASL might crash Corman Lisp

Open arbv opened this issue 9 years ago • 2 comments

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.

arbv avatar Feb 02 '17 11:02 arbv

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.

arbv avatar Jul 24 '17 18:07 arbv

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.

arbv avatar Nov 05 '18 12:11 arbv