Re: [R] Need mtrace (malloc debugging) help

From: Prof Brian Ripley <ripley_at_stats.ox.ac.uk>
Date: Wed 04 Apr 2007 - 11:37:21 GMT

On Wed, 4 Apr 2007, $|-|@r@|) wrote:

> Hi all,
>
> I am using "mtrace" malloc debugging utility to trace memory leaks in my
> application.
>
> I followed following steps:
>
> 1. Added mtrace() function in the beginning of my main function.
> 2. exported the MALLOC_TRACE environment variable.
> $ export MALLOC_TRACE=memory.log
> 3. Run the program
> 4. trace the program for memory leaks.
> $ mtrace <myprogram> $MALLOC_TRACE
>
> But In 3rd step above, my system is hanging.
>
> Could anybody please help me to come out of this problem.
>
> If anybody have another solution for finding out memory leaks, then it is
> always welcome.

Most of us use valgrind, including on R itself. It does much more.

-- 
Brian D. Ripley,                  ripley@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

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Received on Wed Apr 04 21:41:19 2007

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Wed 04 Apr 2007 - 12:31:00 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.