From ripley at stats.ox.ac.uk  Wed Feb  6 07:39:22 2008
From: ripley at stats.ox.ac.uk (Prof Brian Ripley)
Date: Wed, 6 Feb 2008 06:39:22 +0000 (GMT)
Subject: [Rd] R valgrind question
In-Reply-To: <817e25730802051532t5459c89p500d580e77a98ae0@mail.gmail.com>
References: <817e25730802041221t70ec6378i5e045b57330fa6c6@mail.gmail.com>
	<47A775B4.8070606@vanderbilt.edu>
	<817e25730802051532t5459c89p500d580e77a98ae0@mail.gmail.com>
Message-ID: <alpine.LFD.1.00.0802060635370.12016@gannet.stats.ox.ac.uk>

On Wed, 6 Feb 2008, Daniel Oberski wrote:

>>>
>>> If run valgrind R then I get all sorts of warnings. I was wondering
>>> whether I should worry about them or not.
>>
>> Don't worry about them. Those are benign issues with the system
>> libraries.. insofar as you trust those libraries, which you should... in
>> general.
>>
>> Jeff
>
>
> Jeff,
>
> Thanks for your (reassuring) answer. I can see that you are right,
> especially about the warnings at the beginning, all of which come from
> ld-2.5.so.
>
> I think the memory leak warnings (which do come from libR.so) may have
> something to do with the apparent fact that valgrind stops before the
> main loop of R is over, so the memory is freed after that point. Or is
> this not true?

Various blocks of memory are not freed until the program is shut down, but 
are in use up to that point so it is not a 'leak'.  Most of the warnings 
are not from R itself but from e.g. readline or X11, and all are tiny.

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595



[Rd] R valgrind question
Prof Brian Ripley