You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In "alien.c" in "alien_buffer_gc" @ line #934:
"lua_pop(L, 2);"
When "LUA_USE_APICHECK" is defined, this line will trigger a "invalid new top".
This because there is only one stack index (the __gc userdata argument) not two.
And actually since there is no return result this call is pointless.
The solution is to just delete this unnecessary "lua_pop(L, 2);" line.
Note to readers: In your debug Lua builds that use 3rd party libraries, it's a good idea to define LUA_USE_APICHECK as it will catch odd things like this that corrupt your Lua stack, Lua stack overflows, etc.
The text was updated successfully, but these errors were encountered:
In "alien.c" in "alien_buffer_gc" @ line #934:
"lua_pop(L, 2);"
When "LUA_USE_APICHECK" is defined, this line will trigger a "invalid new top".
This because there is only one stack index (the __gc userdata argument) not two.
And actually since there is no return result this call is pointless.
The solution is to just delete this unnecessary "lua_pop(L, 2);" line.
Note to readers: In your debug Lua builds that use 3rd party libraries, it's a good idea to define LUA_USE_APICHECK as it will catch odd things like this that corrupt your Lua stack, Lua stack overflows, etc.
The text was updated successfully, but these errors were encountered: