lua-users home
lua-l archive

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


Hi all,

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?
Thread 1 (Thread 6296.0x1b18):
#0  0x00007fff47c18fe3 in ntdll!RtlIsNonEmptyDirectoryReparsePointAllowed () from C:\WINDOWS\SYSTEM32\ntdll.dll
#1  0x00007fff47c21412 in ntdll!RtlpNtMakeTemporaryKey () from C:\WINDOWS\SYSTEM32\ntdll.dll
#2  0x00007fff47c2171a in ntdll!RtlpNtMakeTemporaryKey () from C:\WINDOWS\SYSTEM32\ntdll.dll
#3  0x00007fff47c2a6d9 in ntdll!RtlpNtMakeTemporaryKey () from C:\WINDOWS\SYSTEM32\ntdll.dll
#4  0x00007fff47b6135d in ntdll!RtlGetCurrentServiceSessionId () from C:\WINDOWS\SYSTEM32\ntdll.dll
#5  0x00007fff47b606e1 in ntdll!RtlFreeHeap () from C:\WINDOWS\SYSTEM32\ntdll.dll
#6  0x00007fff46c79cfc in msvcrt!free () from C:\WINDOWS\System32\msvcrt.dll
#7  0x00000000007c1075 in l_alloc ()
#8  0x00000000007b987c in luaM_realloc_ ()
#9  0x00000000007bd89c in luaH_free ()
#10 0x00000000007b86ce in sweeplist ()
#11 0x00000000007b90a3 in singlestep ()
#12 0x00000000007b960f in luaC_step ()
#13 0x00000000007c0b95 in luaV_execute ()
#14 0x00000000007b775f in luaD_call ()
#15 0x00000000007b6b69 in luaD_rawrunprotected ()
#16 0x00000000007b7903 in luaD_pcall ()
#17 0x00000000007b52b1 in lua_pcall ()
#18 0x00000000007c540e in luaB_pcall ()
#19 0x00000000007b722d in luaD_precall ()
#20 0x00000000007c044f in luaV_execute ()
#21 0x00000000007b775f in luaD_call ()
#22 0x00000000007b6b69 in luaD_rawrunprotected ()
#23 0x00000000007b7903 in luaD_pcall ()
#24 0x00000000007b52b1 in lua_pcall ()
#25 0x0000000000630fdf in TLuaInterpreter::callEventHandler(QString const&, TEvent const&) ()