lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


> another problem/difference I found while testing Lua 5.4:
> Loading modules on threads has now a very limited require-depth.
> Requiring t1.lua which itself requires t2.lua and so on stops
> after 5 levels with "C stack overflow". The number of frames when
> the error happens is in my case 53 and so quite low.

That is weird. The number of frames should be 2*n: for each module,
it needs one frame for 'require' and one frame for the module itself.
I tested with 10 nested modules (which used 20 frames) and did not
find any problem.

-- Roberto