Viewing Issue Advanced Details
ID Category [?] Severity [?] Reproducibility Date Submitted Last Update
08655 Crash/Freeze Minor Always Jun 1, 2023, 13:36 Jun 3, 2023, 01:31
Tester Robbbert View Status Public Platform MAME (Self-compiled)
Assigned To Resolution Open OS Windows 10/11 (64-bit)
Status [?] Confirmed Driver
Version 0.255 Fixed in Version Build 64-bit
Fixed in Git Commit Github Pull Request #
Summary 08655: lsrquizg: Crash on exit.
Description At exit, the game crashes.
Steps To Reproduce Start the game. Let it get into attract mode. Press Esc.

C:\MAME>mame lsrquizg
laserquizgreek2pro.chd CHD NEEDS REDUMP
WARNING: the machine might not run correctly.
Average speed: 100.03% (1 seconds)

-----------------------------------------------------
Exception at EIP=00007ff63d875b56 (microtouch_device::~microtouch_device()+0x0146): ACCESS VIOLATION
While attempting to read memory at ffffffffffffffff
-----------------------------------------------------
RAX=34206f636e616220 RBX=000001fda6c8c5c0 RCX=0000000000000003 RDX=000001fda45269c8
RSI=000001fda5c75ae0 RDI=0000000000000000 RBP=00000005ae929d80 RSP=00000005ae929c20
 R8=0000000000000000 R9=0000000000000001 R10=0000000000008000 R11=00000005ae929b80
R12=000001fda6c8c5a0 R13=000001fda45264d0 R14=000001fda45269f8 R15=0000000000000000
-----------------------------------------------------
Stack crawl:
  00000005ae929c60: 00007ff63d875b56 (microtouch_device::~microtouch_device()+0x0146)
  00000005ae929ca0: 00007ff63d543eca (device_t::~device_t()+0x028a)
  00000005ae929ce0: 00007ff6391d6bfb ((anonymous namespace)::cubo_state::~cubo_state()+0x03bb)
  00000005ae92f210: 00007ff640ca9407 (mame_machine_manager::execute()+0x0177)
  00000005ae92f600: 00007ff644d38d76 (cli_frontend::start_execution(mame_machine_manager*, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&)+0x03e6)
  00000005ae92f8e0: 00007ff644d3939b (cli_frontend::execute(std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > >&)+0x007b)
  00000005ae92f940: 00007ff640ca3c99 (emulator_info::start_frontend(emu_options&, osd_interface&, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > >&)+0x0029)
  00000005ae92fd00: 00007ff6468b9863 (luaopen_lfs+0xb64c23)
  00000005ae92fdd0: 00007ff6390213b1 (__tmainCRTStartup+0x0231)
  00000005ae92fe00: 00007ff6390214e6 (mainCRTStartup+0x0016)
  00000005ae92fe30: 00007ff8fbfb7614 (BaseThreadInitThunk+0x0014)
  00000005ae92feb0: 00007ff8fd7826a1 (RtlUserThreadStart+0x0021)
Additional Information Game is MNW (most likely because of bad gfx), but it shouldn't crash.
Github Commit
Flags
Regression Version
Affected Sets / Systems lsrquizg
Attached Files
 
Relationships
There are no relationship linked to this issue.
Notes
1
User avatar
No.21489
Balthier
Tester
Jun 1, 2023, 18:10
It's already noted in the driver if you had looked:
https://github.com/mamedev/mame/blob/master/src/mame/amiga/cubo.cpp#L12

   - lsrquiz2i, lsrquizg: access violation on microtouch_device destructor when exiting emulation
                          Caused by microtouch_device::rcv_complete() overrunning the m_rx_buffer
                          array space with 149 (array size=16).