lua-users home
lua-l archive

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


Sylvain Fabre wrote:
> After approx. 6 hours of processing, i get the following lua error :
> "Internal error - Stack overflow", but with no other specific clues.

The string "Internal error" appears nowhere in the source code of
LuaJIT. Also, a Lua stack overflow would show with a lower case
error message ("stack overflow").

I suggest you look for the component that generates the error.

> Could someone provide me some hints about what kind of issue can
> cause this error ? And what are the methods to be used in order to
> trace/debug  it  ?

Print the stack level at strategic points. If it's actually the
Lua stack, then print the result of lua_gettop(L).

--Mike