Startup/Initialization Memory Leak in R

Thomas Lumley tlumley@u.washington.edu
Thu, 12 Sep 2002 07:42:09 -0700 (PDT)


Note that this about initialisation of the R shared library R.so, not the
R executable.

This may need fixing -- with a standalone executable the operating system
will handle memory release when the program exits, but with an R library
dynamically loaded into another process it won't.

OTOH, why do you want to load and unload R lots of times?

	-thomas

On Wed, 11 Sep 2002, David Bauer wrote:

>     Is it already known that R does not free the memory that it allocates
> during start-up (~10MB) when it exits?  If so, are there currently any
> plans to address this problem?  I noticed that the 1.6.0 beta leaks
> slightly more memory (~300k) than the 1.5.1 stable version.
>
>     I am working on a project that links with the R library, and there is a
> question about unloading and later re-loading the R library, so this memory
> leak could become a real issue.


-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._