The value NIL is not of type SB-C::NODE

Bug #2012852 reported by Paul F. Dietz
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
SBCL
Fix Released
Undecided
Unassigned

Bug Description

(defun b3 (c)
  (declare (optimize (safety 2) (debug 0) (speed 1)
                     (compilation-speed 3) (space 1)))
  (flet ((%f10 ()
           (ignore-errors (unwind-protect 0 c))))
    (let ((x (multiple-value-prog1 (case 0 ((1) (%f10)) (t :good)))))
      (locally (declare (notinline identity))
        (identity x)))))

==>

The value
  NIL
is not of type
  SB-C::NODE
   [Condition of type TYPE-ERROR]
[...]
  0: (SB-C::BLOCK-HOME-LAMBDA #<SB-C::CBLOCK 1 :START cNIL {10043EE2A3}>)
  1: (SB-C::BLOCK-ENVIRONMENT #<SB-C::CBLOCK 1 :START cNIL {10043EE2A3}>)
  2: (SB-C::EMPTY-FUN-P #<SB-C::CLAMBDA :%SOURCE-NAME B3 :%DEBUG-NAME NIL :KIND NIL :TYPE #<SB-KERNEL:FUN-TYPE (FUNCTION (T) *)> :WHERE-FROM :DEFINED :VARS (C) {1004326D93}>)
  3: (SB-C::DEBUG-INFO-FOR-COMPONENT #<SB-C:COMPONENT :NAME "<unknown>" {10043EE433}>)
  4: (SB-C::MAKE-CORE-COMPONENT #<SB-C:COMPONENT :NAME "<unknown>" {10043EE433}> #<SB-ASSEM:SEGMENT {10043F4923}> 64 NIL NIL #<SB-C::CORE-OBJECT {1004326543}>)
  5: (SB-C::%COMPILE-COMPONENT #<SB-C:COMPONENT :NAME "<unknown>" {10043EE433}>)
  6: (SB-C::COMPILE-COMPONENT #<SB-C:COMPONENT :NAME "<unknown>" {10043EE433}>)
  7: (SB-C::%COMPILE (SB-INT:NAMED-LAMBDA B3 (C) (DECLARE (OPTIMIZE # # # # #)) (BLOCK B3 (FLET # #))) NIL NIL 0)

x86-64, "2.3.2.113-d6dbe3db8"

Stas Boukarev (stassats)
Changed in sbcl:
status: New → Fix Committed
Stas Boukarev (stassats)
Changed in sbcl:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.