Skip to content
Prev 18588 / 63424 Next

Infinite recursion in S3 methods crashes R on windows (related to PR#8203?)

On Thu, 24 Nov 2005, Rich FitzJohn wrote:

            
PR#8203 is attributed to C-stack overflow, and there is a prominent 
message (quoted below) in NEWS.
What is happening is that the Windows C stack is being overflowed before 
the evaluation limit is reached, and what happens thereafter is random.
So it would probably also crash in 2.1.0 eventually.

This has already been fixed, and the R-patched NEWS file says

USER-VISIBLE CHANGES

     o   options("expressions") has been reduced to 1000: the limit
         of 5000 introduced in 2.1.0 was liable to give crashes from C
         stack overflow.

and the Windows CHANGES file says

The maximum C stack size for RGui.exe and Rterm.exe has been increased
to 10Mb (from 2Mb); this is comparable with the default on Linux systems
and may allow some larger programs to run without crashes.