Skip to content

Diagnosing Crashes on garbage collection

3 messages · Andrew Redd, Thomas Lumley, Brian Ripley

#
On Sun, 16 Nov 2008, Andrew Redd wrote:

            
If you are using (or can use) Linux, then valgrind is an excellent tool 
for this. There's some documentation in 'Writing R Extensions'. Valgrind 
runs your code in a virtual machine and tracks all memory accesses, so it 
often will even find bugs in C code that are hard to reproduce.

 	-thomas

Thomas Lumley			Assoc. Professor, Biostatistics
tlumley at u.washington.edu	University of Washington, Seattle
#
On Sun, 16 Nov 2008, Thomas Lumley wrote:

            
And if it is R's garbage collection that is the issue, using 
gctorture(TRUE) (with valgrind if possible) will provoke the problem at 
the earlist opportunity.

There is a section in 'Writing R Extensions' on that too.