Skip to content
Prev 21198 / 63424 Next

a new way to crash R? (PR#8981)

On 6/26/2006 7:31 AM, ripley at stats.ox.ac.uk wrote:
I can make it reproducible now.  It happens relatively quickly when I 
set max-mem-size=100M.  In R-devel, there's a call to malloc at line 
1952 of memory.c, and as R is running out of memory, that returns a -1 
instead of a zero.  This causes a seg fault a few lines later.

The malloc code is quite complicated, so I can't see exactly why we're 
getting the -1.

Duncan Murdoch