lua-users home
lua-l archive

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

 > overflow usually mean lack of lua_beginblock/lua_endblock.

So here is another idea -- create a LUA_DEBUG version of the Lua API,
which among other things, tracks the source file and line of every
push.  Then, on stack overflow, you can dump the locations of the
offending C code.  I bet it would be a snap to diagnose overflows in
this scheme.