Skip to content
Prev 9086 / 15075 Next

Segfault with rWishart in R 2.15.1

On Jul 4, 2012, at 03:12 , Michael Braun wrote:

            
That'll be due to allocating memory off the C stack with alloca(). Please file a bug report on this (nothing to do with Mac, much less with the age of your computer).

In a tight spot, you can run R from the terminal after raising the C stack limit with, say, "ulimit -s 32768", but of course the trouble returns at twice the matrix size. 

Notice that there are really two issues here. One is that the R_CheckStack() safeguards are failing. The other is why we're using stack allocation in the first place.