On 03/13/2014 09:13 AM, Dmitry Antipov wrote: > Perhaps there should be a kind of protection against this. For example, > eval_sub can check current stack depth against getrlimit (RLIMIT_STACK,...). This is rather simple on general *NIX. But: 1) it should be implemented for MS-Windows and OSX too if we really need this; 2) Linux has prlimit to tweak limits of another process at run time, so actual limit should be checked each time eval_sub is called, thus introducing a (minor?) slowdown. Dmitry