Viewing Issue Advanced Details
ID Category [?] Severity [?] Reproducibility Date Submitted Last Update
08951 Crash/Freeze Minor Always Nov 5, 2024, 14:48 4 days ago
Tester Robbbert View Status Public Platform MAME (Self-compiled)
Assigned To Resolution Open OS Windows 10/11 (64-bit)
Status [?] Confirmed Driver
Version 0.271 Fixed in Version Build 64-bit
Fixed in Git Commit Github Pull Request #
Summary 08951: zx81: Several tapes cause MAME to crash
Description While testing my loose software, it was noted that several tapes cause MAME to crash as soon as the emulation is started.
Steps To Reproduce Enter this line, using the supplied file, and substituting your path.

mame zx81 -cass "e:\data\sinclair\zx81\nw\(crash)grimm.p"

It will immediately crash, before the screen can appear.
Additional Information I do not know if these tapes are meant for this system, however even if that's the case, a crash should not occur.

A number of examples have been included.

C:\MAME>mame zx81 -cass "e:\data\sinclair\zx81\nw\(crash)grimm.p"
Warning: layout view 'Keyboard Layout' contains deprecated cpanel element
Warning: layout view 'Keyboard_Only' contains deprecated cpanel element
Warning: layout view 'Keyboard Layout' contains deprecated cpanel element
Warning: layout view 'Keyboard_Only' contains deprecated cpanel element

-----------------------------------------------------
Exception at EIP=00007ff7cd67c758 (zx_state::~zx_state()+0x0188): ACCESS VIOLATION
While attempting to write memory at 000001c6643aa000
-----------------------------------------------------
RAX=0000000000000000 RBX=000001c662f9e040 RCX=000001c6643a9ff8 RDX=000001c6643a9ff8
RSI=000001c662bab1cc RDI=000001c6643a9ff8 RBP=000001c662bab1d3 RSP=000000902d0f8db8
 R8=0000000000000004 R9=0000000000000002 R10=0000000000000000 R11=0000000000000000
R12=00007ff7db63d888 R13=000001c662b468d0 R14=000001c662f9e040 R15=0000000000000000
-----------------------------------------------------
Stack crawl:
  000000902d0f8db0: 00007ff7cd67c758 (zx_state::~zx_state()+0x0188)
  000000902d0f8e00: 00007ff7cd67cd36 (zx81_cassette_fill_wave(short*, int, unsigned char*)+0x0166)
  000000902d0f8f80: 00007ff7cdea41b8 (cassette_image::legacy_construct(cassette_image::LegacyWaveFiller const*)+0x0328)
  000000902d0f9010: 00007ff7cdea193c (cassette_image::open_choices(std::unique_ptr<util::random_read_write, std::default_delete<util::random_read_write> >&&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, cassette_image::Format const* const*, int, std::unique_ptr<cassette_image, std::default_delete<cassette_image> >&)+0x010c)
  000000902d0f9120: 00007ff7cac69f22 (cassette_image_device::internal_load(bool)+0x00c2)
  000000902d0f9190: 00007ff7cac6a5e5 (non-virtual thunk to cassette_image_device::call_load[abi:cxx11]()+0x0035)
  000000902d0f9240: 00007ff7caca363e (device_image_interface::finish_load[abi:cxx11]()+0x026e)
  000000902d0f9360: 00007ff7cdc9b6fb (image_manager::postdevice_init()+0x017b)
  000000902d0f9390: 00007ff7d50950c2 (luaopen_lfs+0x2709222)
  000000902d0f94d0: 00007ff7ca9a3dc8 (device_t::start()+0x0698)
  000000902d0f9620: 00007ff7cab36d9a (running_machine::start_all_devices()+0x014a)
  000000902d0f9740: 00007ff7cab3ae31 (running_machine::start()+0x0a91)
  000000902d0f98c0: 00007ff7cab3e3dc (running_machine::run(bool)+0x00cc)
  000000902d0feee0: 00007ff7cdc6d15c (mame_machine_manager::execute()+0x024c)
  000000902d0ff2d0: 00007ff7d195d49a (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&)+0x03ea)
  000000902d0ff5e0: 00007ff7d195daca (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> > > >&)+0x007a)
  000000902d0ff640: 00007ff7cdc67f07 (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> > > >&)+0x0027)
  000000902d0ffa10: 00007ff7d35e6141 (luaopen_lfs+0xc5a2a1)
  000000902d0ffa60: 00007ff7c6de12ee (__tmainCRTStartup+0x016e)
  000000902d0ffa90: 00007ff7c6de1406 (mainCRTStartup+0x0016)
  000000902d0ffac0: 00007ffd2c997374 (BaseThreadInitThunk+0x0014)
  000000902d0ffb40: 00007ffd2cadcc91 (RtlUserThreadStart+0x0021)
Github Commit
Flags
Regression Version
Affected Sets / Systems zx81
Attached Files
zip file icon ZX81 crashers.zip (41,425 bytes) Nov 5, 2024, 14:48 Uploaded by Robbbert
Relationships
There are no relationship linked to this issue.
Notes
1
User avatar
No.22518
holub
Tester
4 days ago
see: https://mametesters.org/view.php?id=8952#bugnotes