SB-C::CLAMBDA leaks out when mismatching type of &optional
Bug #943953 reported by
Stas Boukarev
This bug affects 5 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
SBCL |
Fix Released
|
Medium
|
Unassigned |
Bug Description
Compiling
(defun foo (&optional count)
(declare (fixnum count))
count)
results in
attempt to dump invalid structure:
#<SB-C::CLAMBDA
:%SOURCE-NAME SB-C::.ANONYMOUS.
:%DEBUG-NAME (SB-C::
:KIND :OPTIONAL
:TYPE #<SB-KERNEL:
:WHERE-FROM :DEFINED
:VARS (COUNT) {1009C74933}>
How did this happen?
Changed in sbcl: | |
status: | In Progress → Fix Committed |
assignee: | Paul Khuong (pvk) → nobody |
Changed in sbcl: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Interestingly,
(defun foo (&key count)
(declare (fixnum count))
count)
doesn't produce any warnings, although the type mismatch is the same as with &optional.