Skip to content
Prev 20180 / 63421 Next

Stack checking, core dumps, and embedding R

On Tue, 11 Apr 2006, A.J. Rossini wrote:

            
It is likely reporting a real problem that was not spotted in 2.2.1, 
and that in the embedded case the stack usage is higher that standalone.

I am guessing this is Linux.  If so, does the simple expedient of raising 
the stack limit (in the shell, before launching the application) help? 
(I have done so for a couple of uses of R, and had no more problem.)

For Windows, the relevant stack limit is in the calling application, and 
that is likely to be too low (1Mb or 2Mb: the R front-ends use 10Mb).
Is this actually a bug, or at least one in R?  There are new tools like
Cstack_info() that can help to track down excessive stack usage.