Skip to content
Prev 9088 / 15075 Next

Segfault with rWishart in R 2.15.1

On 04/07/2012 08:35, peter dalgaard wrote:
They are related: the R_CheckStack() safeguards were being used 
incorrectly.  alloca() is important for frequent small allocations (not 
the case here): the safeguards are only designed to work for repeated 
small allocations (< 100kB, well under 5% of the stack).

I have experimented with a pre-alloca check in the past, and it seems 
this would be a better protection against misuse, and I'll trial that in 
R-devel.