From: nobu.nokada@... Date: 2002-02-13T11:01:40+09:00 Subject: Re: Possible bug -- ruby cvs (1.7.2 2002-02-10) interpreter seg fault Hi, At Wed, 13 Feb 2002 09:34:39 +0900, Matt Armstrong wrote: > If I run this script > > require 'tempfile' > > while true > tempfile = nil > begin > tempfile = Tempfile.new('tempfile-test') > ensure > tempfile.close(true) unless tempfile.nil? > end > end > > From a shell in which I've done "ulimit -v 20480" the ruby interpreter > seg faults. It seems to seg fault when it runs out of memory. Since GC is prohibited while compilation, temporary objects remain. You can reduce the leak by calling GC.start sometimes in loop. But eval has yet another leak, it's a known but pending bug still. -- Nobu Nakada