goosechoose
Posts: 1
Joined: Sun Mar 12, 2017 12:52 pm

Interaction between luaengine and lzmq module

Hello,

Long story short running 'mame64.exe [rom] -autoboot_script [script]' (or via -console) with any script containing

Code: Select all

local zmq = require("lzmq")
and then closing the MAME window causes the following to be dumped on my console:

Code: Select all

-----------------------------------------------------
Exception at EIP=00007ff8d89a56bc (register_frame_ctor+0xd2ec40ec): ACCESS VIOLATION
While attempting to read memory at 00007ff8c11f96ff
-----------------------------------------------------
RAX=0000000000000020 RBX=00007ff8c11f9700 RCX=000000000a100000 RDX=0000000000000000
RSI=0000000000000000 RDI=00007ff8c11f96f0 RBP=0000000000000000 RSP=000000000023f160
 R8=00007ff8c11f9700  R9=0000000000000000 R10=00007ff8d89757d0 R11=000000000023f170
R12=0000000000000020 R13=000000000bd56a08 R14=000000000a100000 R15=000000000bd56a08
-----------------------------------------------------
Stack crawl:
  000000000023f1f0: 00007ff8d89a56bc (RtlFreeHeap+0x004c)
  000000000023f220: 00007ff8d88a1cb3 (setjmp+0x0123)
  000000000023f250: 000000000344cd85 (l_alloc+0x0025)
  000000000023f2b0: 0000000003459f16 (luaM_realloc_+0x0036)
  000000000023f2f0: 00000000034671da (luaH_free+0x003a)
  000000000023f340: 0000000003454fe8 (freeobj+0x0098)
  000000000023f3e0: 0000000003456daa (luaC_freeallobjects+0x027a)
  000000000023f430: 0000000003461278 (close_state+0x0028)
  000000000023f460: 00000000034619b8 (lua_close+0x0018)
  000000000023f4b0: 0000000001be4e05 (lua_engine::~lua_engine()+0x0025)
  000000000023f510: 0000000001b61b3f (mame_machine_manager::~mame_machine_manager()+0x002f)
  000000000023f550: 0000000001b61f06 (mame_machine_manager::~mame_machine_manager()+0x0016)
  000000000023f6d0: 0000000001bc022c (cli_frontend::execute(int, char**)+0x00cc)
  000000000023f740: 0000000001b61415 (emulator_info::start_frontend(emu_options&, osd_interface&, int, char**)+0x0035)
  000000000023fd80: 0000000001ab86c8 (utf8_main(int, char**)+0x0128)
  000000000023fe50: 000000000368ec9c (wmain+0x018c)
  000000000023ff20: 0000000000401410 (__tmainCRTStartup+0x0260)
  000000000023ff50: 000000000040153b (mainCRTStartup+0x001b)
  000000000023ff80: 00007ff8d69b13d2 (BaseThreadInitThunk+0x0022)
  000000000023ffd0: 00007ff8d89854e4 (RtlUserThreadStart+0x0034)
This isn't preventing my script from running (its just annoying), so I don't think it warranted opening an issue ticket on github. If this makes sense to anyone or I should open a ticket, let me know.

Thanks
Arbee
Posts: 28
Joined: Fri Nov 14, 2014 4:27 pm
Contact: Website

Re: Interaction between luaengine and lzmq module

You should probably open a ticket.

Return to “MAME Discussion”