clasp-developers / clasp

clasp Common Lisp environment
https://clasp-developers.github.io/
2.58k stars 145 forks source link

(check nil null) at toplevel crashes bytecode compiler #1613

Closed drmeister closed 3 months ago

drmeister commented 3 months ago

Describe the bug Evaluating (check-type nil null) at the top level repl crashes

Expected behavior Need better error.

Actual behavior

Crash in

#0  __pthread_kill_implementation (threadid=<optimized out>, signo=signo@entry=6, no_tid=no_tid@entry=0) at ./nptl/pthread_kill.c:44
#1  0x00007fffed0a9e8f in __pthread_kill_internal (signo=6, threadid=<optimized out>) at ./nptl/pthread_kill.c:78
#2  0x00007fffed05afb2 in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26
#3  0x00007fffed045472 in __GI_abort () at ./stdlib/abort.c:79
#4  0x0000555557a32ff1 in throw_hard_error (msg="Should never reach here") at ../src/gctools/hardErrors.cc:6
#5  0x0000555556b20c68 in comp::compile_setq_1 (var=..., valf=..., env=..., ctxt=...) at ../src/core/bytecode_compiler.cc:2270
#6  comp::compile_setq (pairs=..., env=..., ctxt=...) at ../src/core/bytecode_compiler.cc:2286
#7  0x0000555556b144c2 in comp::compile_form (form=..., form@entry=..., env=env@entry=..., context=...) at ../src/core/bytecode_compiler.cc:2781
#8  0x0000555556b26285 in comp::compile_combination (head=..., rest=..., env=..., context=...) at ../src/core/bytecode_compiler.cc:2722
#9  0x0000555556b144c2 in comp::compile_form (form=..., env=env@entry=..., context=...) at ../src/core/bytecode_compiler.cc:2781
(More stack frames follow...)
**Code at issue**