possible memory leak in 1.6 (PR#2160)

Thomas Lumley tlumley@u.washington.edu
Mon, 14 Oct 2002 07:34:24 -0700 (PDT)


On Mon, 14 Oct 2002 socher@stat.uni-muenchen.de wrote:

> Hi,
>
> I noticed the following problem with 1.6.0 (which was not present in 1.5.1):
>
> I work with very large datasets and encountered a problem with memory
> allocation,
> (probably a memory leak).  I wrote a programm with a loop.  In this loop in
> each
> iteration I create a  very large matrix and assign it to a variable which
> is the SAME for all the iterations.  So at each round the new matrix overwrites
> the old  matrix.  In 1.5.1  the garbage collector seems to clean up the old
> unused memory.  Unfortunately, in 1.6.0 with each round the memory used by R
> increases until the R process is killed.

Yes, it's a bug (though it isn't the matrix that leaks).  It's
probably been fixed.

You could download the current `patched' version and try that.

	-thomas

Thomas Lumley			Asst. Professor, Biostatistics
tlumley@u.washington.edu	University of Washington, Seattle

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._