weixin_39631755 2020-11-29 13:31
浏览 0

Regression tests: compiler macro for assoc gives SEGMENTATION-VIOLATION on incorrect input

Test assoc-2-error with compiler macro

lisp
COMMON-LISP-USER>> (let ()(assoc 3 (list (list 1 3) 2)))
Debugger received error of type: SEGMENTATION-VIOLATION
Segmentation fault. Attempted to access resticted memory address #x5.
This is due either to a problem in foreign code (e.g., C++), or a bug in Clasp itself.
Error flushed.

` but without compiler macro

lisp
COMMON-LISP-USER>> (let ()(locally (declare (notinline assoc))
                      (assoc 3 (list (list 1 3) 2))))
Debugger received error of type: TYPE-ERROR
2 is not of type LIST.
Error flushed.

`

该提问来源于开源项目:clasp-developers/clasp

  • 写回答

5条回答 默认 最新

  • weixin_39631755 2020-11-29 13:31
    关注

    Backtrace is completely unhelpful

    评论

报告相同问题?