[Rd] Diagnosing Crashes on garbage collection

Thomas Lumley tlumley at u.washington.edu
Mon Nov 17 02:01:21 CET 2008


On Sun, 16 Nov 2008, Andrew Redd wrote:

> I'm having problems with an access violation error on some compiled code
> that I'm writing and I was hoping that some one had insights as to what
> might be causing the access violation and possibly how to remedy it.

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



More information about the R-devel mailing list