Unhandled memory fault in code with dynamic extent function, multiple-value-call

Bug #1838267 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 f373 (i)
   (declare (optimize (speed 0) (safety 3) (space 0) (debug 1)))
   (truncate
    (labels ((%f16
                 (&optional (f16-3 (ceiling i (min -90 0))))
               (complex 0 0)))
      (declare (dynamic-extent (function %f16)))
      (the integer
           (multiple-value-call #'%f16 (values))
           ))
    (min -66 0)))

(f373 0) ==>

Unhandled memory fault at #x0.
   [Condition of type SB-SYS:MEMORY-FAULT-ERROR]

Restarts:
 0: [ABORT] Exit debugger, returning to top level.

Backtrace:
  0: ("bogus stack frame")
  1: (EVAL (F373 0))
[...]

Revision history for this message
Stas Boukarev (stassats) wrote :

a4b99192177b9666b329416873bc8a03eb4d7c35

Changed in sbcl:
status: New → Fix Committed
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.