I have Lua 5.1.5 successfully embedded in 32bit Windows and 64bit macOS and Linux in Mudlet, and am attempting to make a 64bit build. Lua builds and runs fine, but has a chance to occasionally crash on lua_pcall.
I'm building with Mingw-w64 8.1.0 (MSVC is not an option), and the applications runs just fine in other environments. The arguments to pcall as pretty simple as well and not complicated: `lua_pcall(L, 2, LUA_MULTRET, 0);`
Attached is a stacktrace I see, and code is here
if it helps.
What could be the reason for this?