Viewing Issue Advanced Details
ID Category [?] Severity [?] Reproducibility Date Submitted Last Update
08926 Crash/Freeze Critical (emulator) Always Sep 27, 2024, 11:40 Dec 22, 2024, 23:45
Tester Robbbert View Status Public Platform MAME (Self-compiled)
Assigned To Resolution Open OS Windows 10/11 (64-bit)
Status [?] Confirmed Driver
Version 0.270 Fixed in Version Build 64-bit
Fixed in Git Commit Github Pull Request #
Summary 08926: telstrat: crash when attempting to use -ext slot devices
Description The -ext devices are disk controllers. If you attempt to use either of them, MAME will crash.
Steps To Reproduce Enter either of these commands at the command line

>mame telstrat -ext jasmin

>mame telstrat -ext microdisc

MAME will immediately crash.
Additional Information C:\MAME>mame telstrat -ext jasmin

-----------------------------------------------------
Exception at EIP=00007ff696acd129 (memory_view::select(int)+0x0009): ACCESS VIOLATION
While attempting to read memory at 0000000000000038
-----------------------------------------------------
RAX=0000000000000000 RBX=000001e615903590 RCX=0000000000000000 RDX=0000000000000000
RSI=000001e613025ca0 RDI=0000000000000000 RBP=000001e613029630 RSP=00000028a4da9790
 R8=00000028a4da9878 R9=00000028a4da9874 R10=0000000000000000 R11=6800001407e01ddb
R12=00000028a4da9a30 R13=00000028a4da9b60 R14=00000028a4da9da0 R15=00000028a4da9dc0
-----------------------------------------------------
Stack crawl:
  00000028a4da9830: 00007ff696acd129 (memory_view::select(int)+0x0009)
  00000028a4da98b0: 00007ff69674db65 (devcb_write<int, 1u>::operator()(int)+0x0045)
  00000028a4da98f0: 00007ff696a26e86 (addressable_latch_device::clear_outputs(unsigned char)+0x00d6)
  00000028a4da9930: 00007ff6966d91a3 (device_t::reset()+0x0033)
  00000028a4da9970: 00007ff6966d91b4 (device_t::reset()+0x0044)
  00000028a4da99b0: 00007ff6966d91b4 (device_t::reset()+0x0044)
  00000028a4da99f0: 00007ff6966d91b4 (device_t::reset()+0x0044)
  00000028a4da9a80: 00007ff696871aea (running_machine::soft_reset(int)+0x012a)
  00000028a4da9c00: 00007ff69687609e (running_machine::run(bool)+0x016e)
  00000028a4daf220: 00007ff699962d0c (mame_machine_manager::execute()+0x024c)
  00000028a4daf610: 00007ff69d62695a (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)
  00000028a4daf920: 00007ff69d626f8a (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)
  00000028a4daf980: 00007ff69995dab7 (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)
  00000028a4dafd50: 00007ff69f2acd51 (luaopen_lfs+0xc59e01)
  00000028a4dafda0: 00007ff692b612ee (__tmainCRTStartup+0x016e)
  00000028a4dafdd0: 00007ff692b61406 (mainCRTStartup+0x0016)
  00000028a4dafe00: 00007ffcf3697374 (BaseThreadInitThunk+0x0014)
  00000028a4dafe80: 00007ffcf527cc91 (RtlUserThreadStart+0x0021)
Github Commit
Flags
Regression Version
Affected Sets / Systems telstrat
Attached Files
 
Relationships
There are no relationship linked to this issue.
Notes
2
User avatar
No.22346
Robbbert
Moderator
Sep 27, 2024, 11:42
I'm not familair with a real machine, but since it comes with a FDC already, should the other controllers exist as an option?
User avatar
No.22675
Firewave
Senior Tester
Dec 22, 2024, 23:45
With 0.272 on Linux
==140157==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000038 (pc 0x5fe3495c4dc7 bp 0x7fffa9536d90 sp 0x7fffa9536d20 T0)
==140157==The signal is caused by a READ memory access.
==140157==Hint: address points to the zero page.
    #0 0x5fe3495c4dc7 in _M_mbegin /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/14.2.1/../../../../include/c++/14.2.1/bits/stl_tree.h:733:64
    #1 0x5fe3495c4dc7 in _M_begin /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/14.2.1/../../../../include/c++/14.2.1/bits/stl_tree.h:737:16
    #2 0x5fe3495c4dc7 in find /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/14.2.1/../../../../include/c++/14.2.1/bits/stl_tree.h:2528:37
    #3 0x5fe3495c4dc7 in find /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/14.2.1/../../../../include/c++/14.2.1/bits/stl_map.h:1219:21
    #4 0x5fe3495c4dc7 in memory_view::select(int) /home/user/CLionProjects/mame/build/projects/sdl/mame/gmake-linux-clang/../../../../../src/emu/emumem_mview.cpp:531:27
    #5 0x5fe337d9f0ff in remap /home/user/CLionProjects/mame/build/projects/sdl/mame/gmake-linux-clang/../../../../../src/devices/bus/oricext/jasmin.cpp
    #6 0x5fe337d9f0ff in oric_jasmin_device::ram_access_w(int) /home/user/CLionProjects/mame/build/projects/sdl/mame/gmake-linux-clang/../../../../../src/devices/bus/oricext/jasmin.cpp:133:2
    #7 0x5fe3466cd479 in operator() /home/user/CLionProjects/mame/build/projects/sdl/mame/gmake-linux-clang/../../../../../src/lib/util/delegate.h:765:11
    #8 0x5fe3466cd479 in invoke_write<int, emu::device_delegate<void (int)> > /home/user/CLionProjects/mame/build/projects/sdl/mame/gmake-linux-clang/../../../../../src/emu/devcb.h:294:198
    #9 0x5fe3466cd479 in operator() /home/user/CLionProjects/mame/build/projects/sdl/mame/gmake-linux-clang/../../../../../src/emu/devcb.h:1322:8
    #10 0x5fe3466cd479 in operator() /home/user/CLionProjects/mame/build/projects/sdl/mame/gmake-linux-clang/../../../../../src/emu/devcb.h:913:104
    #11 0x5fe3466cd479 in __invoke_impl<void, (lambda at /home/user/CLionProjects/mame/build/projects/sdl/mame/gmake-linux-clang/../../../../../src/emu/devcb.h:913:11) &, unsigned int, int, unsigned int> /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/14.2.1/../../../../include/c++/14.2.1/bits/invoke.h:61:14
    #12 0x5fe3466cd479 in __invoke_r<void, (lambda at /home/user/CLionProjects/mame/build/projects/sdl/mame/gmake-linux-clang/../../../../../src/emu/devcb.h:913:11) &, unsigned int, int, unsigned int> /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/14.2.1/../../../../include/c++/14.2.1/bits/invoke.h:111:2
    #13 0x5fe3466cd479 in std::_Function_handler<void (unsigned int, int, unsigned int), devcb_write<int, 1u>::creator_impl<devcb_write<int, 1u>::delegate_builder<emu::device_delegate<void (int)>>>::create()::'lambda'(unsigned int, int, unsigned int)>::_M_invoke(std::_Any_data const&, unsigned int&&, int&&, unsigned int&&) /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/14.2.1/../../../../include/c++/14.2.1/bits/std_function.h:290:9
    #14 0x5fe346580c68 in operator() /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/14.2.1/../../../../include/c++/14.2.1/bits/std_function.h:591:9
    #15 0x5fe346580c68 in operator() /home/user/CLionProjects/mame/build/projects/sdl/mame/gmake-linux-clang/../../../../../src/emu/devcb.h:2253:2
    #16 0x5fe346580c68 in devcb_write<int, 1u>::operator()(int) /home/user/CLionProjects/mame/build/projects/sdl/mame/gmake-linux-clang/../../../../../src/emu/devcb.h:2261:8
    #17 0x5fe343b7459d in addressable_latch_device::clear_outputs(unsigned char) /home/user/CLionProjects/mame/build/projects/sdl/mame/gmake-linux-clang/../../../../../src/devices/machine/74259.cpp:365:4
    #18 0x5fe343b79519 in addressable_latch_device::device_reset() /home/user/CLionProjects/mame/build/projects/sdl/mame/gmake-linux-clang/../../../../../src/devices/machine/74259.cpp:142:2
    #19 0x5fe3466e5fc8 in device_t::reset() /home/user/CLionProjects/mame/build/projects/sdl/mame/gmake-linux-clang/../../../../../src/emu/device.cpp:344:2
    #20 0x5fe3466e5ff7 in device_t::reset() /home/user/CLionProjects/mame/build/projects/sdl/mame/gmake-linux-clang/../../../../../src/emu/device.cpp:348:9
    #21 0x5fe3466e5ff7 in device_t::reset() /home/user/CLionProjects/mame/build/projects/sdl/mame/gmake-linux-clang/../../../../../src/emu/device.cpp:348:9
    #22 0x5fe3466e5ff7 in device_t::reset() /home/user/CLionProjects/mame/build/projects/sdl/mame/gmake-linux-clang/../../../../../src/emu/device.cpp:348:9
    #23 0x5fe349d2ede6 in running_machine::reset_all_devices() /home/user/CLionProjects/mame/build/projects/sdl/mame/gmake-linux-clang/../../../../../src/emu/machine.cpp:1040:16
    #24 0x5fe349d3054c in operator() /home/user/CLionProjects/mame/build/projects/sdl/mame/gmake-linux-clang/../../../../../src/lib/util/delegate.h:765:11
    #25 0x5fe349d3054c in call_notifiers /home/user/CLionProjects/mame/build/projects/sdl/mame/gmake-linux-clang/../../../../../src/emu/machine.cpp:851:3
    #26 0x5fe349d3054c in soft_reset /home/user/CLionProjects/mame/build/projects/sdl/mame/gmake-linux-clang/../../../../../src/emu/machine.cpp:956:2
    #27 0x5fe349d3054c in running_machine::run(bool) /home/user/CLionProjects/mame/build/projects/sdl/mame/gmake-linux-clang/../../../../../src/emu/machine.cpp:313:3
    #28 0x5fe3456778b3 in mame_machine_manager::execute() /home/user/CLionProjects/mame/build/projects/sdl/mame/gmake-linux-clang/../../../../../src/frontend/mame/mame.cpp:288:19
    #29 0x5fe3463bd057 in 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&) /home/user/CLionProjects/mame/build/projects/sdl/mame/gmake-linux-clang/../../../../../src/frontend/mame/clifront.cpp:277:22
    #30 0x5fe3463bfa34 in 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>>>>&) /home/user/CLionProjects/mame/build/projects/sdl/mame/gmake-linux-clang/../../../../../src/frontend/mame/clifront.cpp:293:3
    #31 0x5fe34567a43d in 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>>>>&) /home/user/CLionProjects/mame/build/projects/sdl/mame/gmake-linux-clang/../../../../../src/frontend/mame/mame.cpp:453:18
    #32 0x5fe349f6d195 in main /home/user/CLionProjects/mame/build/projects/sdl/mame/gmake-linux-clang/../../../../../src/osd/sdl/sdlmain.cpp:100:9
    #33 0x715261a34e07 in __libc_start_call_main /usr/src/debug/glibc/glibc/csu/../sysdeps/nptl/libc_start_call_main.h:58:16
    #34 0x715261a34ecb in __libc_start_main /usr/src/debug/glibc/glibc/csu/../csu/libc-start.c:360:3
    #35 0x5fe32c7bbce4 in _start (/home/user/CLionProjects/mame/mame+0x10867ce4) (BuildId: a76848f9c1b76b9e)