Hi. I have Lua 5.1.4 compiled with LUA_USE_APICHECK so it warns me of any misuse.
Given a simple script like this:
When debugging, if I hover with the mouse over decoda
(after the module "decoda.test" has been require'd), the following assertion fails:
Microsoft Visual C++ Runtime Library
Expression: L->top < L->ci->top
For information on how your program can cause an assertion
failure, see the Visual C++ documentation on asserts
(Press Retry to debug the application - JIT must be enabled)
Abort Retry Ignore
If I break with a debugger, I see that the assert is triggered by a call to lua_pushvalue issued by LuaInject.dll. The stack top at that point is 22. Considering that
#define LUA_MINSTACK 20
I guess that some calls to luaL_checkstack are needed.
I can provide binaries, minidumps or whatever is needed to reproduce this.