﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc	difficulty
723	using set-finalizer in this loop triggers a OOM panic / segfault	Christian Kellermann	felix winkelmann	"This innocent looking program crashes:

{{{
(use lolevel)

(define (make-stuff)
  (let ((mem (allocate 100)))
    (set-finalizer! mem free)
    mem))

(let lp ((i 0))
  (make-stuff)
  (lp (add1 i)))
}}}

This has been confirmed by Peter on NetBSD, I have the situation that it works for me if I add a (print i) before (make-stuff). Peter cannot see the same behaviour on his machine.

I have tried 4.5.0 4.7.0 and master from last week. All show the same strange thing.

Am I misusing this?  I stumbled upon it during some allocation in an egg for a FFI buffer..."	defect	closed	major		unknown	4.7.x	fixed			
