Current SBCL does not seem to like some dynamic-extent vectors as used in this function:
https://github.com/sharplispers/ironclad/blob/master/src/digests/digest.lisp#L16
$ ./run-sbcl.sh --no-userinit --no-sysinit --eval "(defpackage :crypto (:use :cl))" --eval '(compile-file "/tmp/ironclad-digest.lisp")'
This is SBCL 2.3.9.29-053910a97-WIP [...]
; compiling file "/tmp/ironclad-digest.lisp" (written 02 OCT 2023 04:01:20 AM):
debugger invoked on a TYPE-ERROR @52C48512 in thread
#<THREAD tid=342194 "main thread" RUNNING {10010B0003}>:
The value
131088
is not of type
(OR SB-C:TN NULL)
A reduced reproducer is:
$ ./run-sbcl.sh --no-sysinit --no-userinit --eval "(compile (lambda () (let ((buffer (make-array (* 128 1024) :element-type '(unsigned-byte 8)))) (declare (dynamic-extent buffer)) (f2 buffer))))"
When :element-type '(unsigned-byte 8) is removed, the numeric value in the error message changes:
$ ./run-sbcl.sh --no-sysinit --no-userinit --eval "(compile (lambda () (let ((buffer (make-array (* 128 1024)))) (declare (dynamic-extent buffer)) (f2 buffer))))"
[...]
debugger invoked on a TYPE-ERROR @52C48512 in thread
#<THREAD tid=343265 "main thread" RUNNING {10010B0003}>:
The value
1048592
is not of type
(OR SB-C:TN NULL)
_______________________________________________
Sbcl-devel mailing list
Sbcl-...@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sbcl-devel