Added check for valid dbg-procedure/block to avoid SIGSEGV with the
authorStephen Adams <edu/mit/csail/zurich/adams>
Thu, 15 Dec 1994 22:19:37 +0000 (22:19 +0000)
committerStephen Adams <edu/mit/csail/zurich/adams>
Thu, 15 Dec 1994 22:19:37 +0000 (22:19 +0000)
(temporarily) broken new debug info.

v7/src/runtime/uenvir.scm
v8/src/runtime/uenvir.scm

index 266c33ac251cbc71265b5d4effd3ef7547861fa3..8f525264ca9b51ebaf93c812c387d06915cd0cbb 100644 (file)
@@ -1,6 +1,6 @@
 #| -*-Scheme-*-
 
-$Id: uenvir.scm,v 14.33 1994/01/29 22:04:08 adams Exp $
+$Id: uenvir.scm,v 14.34 1994/12/15 22:19:37 adams Exp $
 
 Copyright (c) 1988-1992 Massachusetts Institute of Technology
 
@@ -338,6 +338,9 @@ MIT in each case. |#
     (if (not procedure)
        (error "Unable to obtain closing environment" entry))
     (let ((block (dbg-procedure/block procedure)))
+      (if (not block)
+         (error "Unable to obtain closing environment (missing block info)"
+                entry))
       (let ((parent (dbg-block/parent block)))
        (case (dbg-block/type parent)
          ((CLOSURE)
index 266c33ac251cbc71265b5d4effd3ef7547861fa3..8f525264ca9b51ebaf93c812c387d06915cd0cbb 100644 (file)
@@ -1,6 +1,6 @@
 #| -*-Scheme-*-
 
-$Id: uenvir.scm,v 14.33 1994/01/29 22:04:08 adams Exp $
+$Id: uenvir.scm,v 14.34 1994/12/15 22:19:37 adams Exp $
 
 Copyright (c) 1988-1992 Massachusetts Institute of Technology
 
@@ -338,6 +338,9 @@ MIT in each case. |#
     (if (not procedure)
        (error "Unable to obtain closing environment" entry))
     (let ((block (dbg-procedure/block procedure)))
+      (if (not block)
+         (error "Unable to obtain closing environment (missing block info)"
+                entry))
       (let ((parent (dbg-block/parent block)))
        (case (dbg-block/type parent)
          ((CLOSURE)