I am using this version of github to test, and the results as follows
https://github.com/lua/lua/tree/af6d9f31165a13c34c0601f37ca5a67c365d1d01
msvc15.9/release/64bit LUAI_MAXCCALLS <= 1492
msvc15.9/release/32bit LUAI_MAXCCALLS <= 1698
--actboy168
发件人: Roberto Ierusalimschy
发送时间: 2018年12月19日 1:21
收件人: Lua mailing list
主题: Re: 答复: [ 5.4 work2 ] Stack overflow causescrash
> I am talking about lua5.4 work2. In fact it can't be reproduced on gcc or lua5.3.
Lua avoids stack overflows by counting the number of recursive calls
it makes. The constant LUAI_MAXCCALLS sets this limit, but it is hard
to find the "perfect" value for each system. Can you play with
this constant (either with -DLUAI_MAXCCALLS=<somevalue> or changing
its value in 'llimits.h' or anything equivalent) and tells us
which is the maximum value where the crash becomes a regular Lua
error?
Many thanks,
-- Roberto