Viewing Issue Advanced Details
ID Category [?] Severity [?] Reproducibility Date Submitted Last Update
07798 Crash/Freeze Critical (emulator) Always Nov 24, 2020, 18:40 Nov 2, 2022, 09:40
Tester GeekyFerret View Status Public Platform MAME (Official Binary)
Assigned To Resolution Open OS Windows 10 (64-bit)
Status [?] Confirmed Driver
Version 0.226 Fixed in Version Build 64-bit
Fixed in Git Commit Github Pull Request #
Summary 07798: fishfren: Trying to access the service mode crashes MAME
Description Turning on the service mode dipswitch while the game is running closes MAME with the following error:

Fatal error: :gpu: inflight PC write 00f03556

Booting up the game with the dipswitch on closes MAME with an access violation.

-----------------------------------------------------
Exception at EIP=0000000005e7bde8 (not found): ACCESS VIOLATION
While attempting to read memory at 0000000000000008
-----------------------------------------------------
RAX=0000000000000000 RBX=00000000149ff4a0 RCX=0000000000000000 RDX=000000000309bd50
RSI=0000000000000001 RDI=00000000118394e0 RBP=0000000011839480 RSP=0000000011839400
 R8=0000000000000003 R9=0000000000000004 R10=0000000000000001 R11=0000000011839440
R12=00000000148e4570 R13=000000001183957c R14=0000000011839580 R15=00000000118394d0
-----------------------------------------------------
Stack crawl:
  0000000011839410: 0000000005e7bde8 (not found)
  0000000011839530: 0000000006a16ad3 (not found)
  00000000118395b0: 0000000002a6c157 (not found)
  00000000118395e0: 000000000988a3fb (not found)
  0000000011839610: 000000000989c86d (not found)
  0000000011839650: 000000000807046c (not found)
  00000000118396b0: 0000000004d3a32c (not found)
  0000000011839730: 0000000004d3b2ae (not found)
  00000000118397b0: 0000000005edc3e0 (not found)
  00000000118398a0: 0000000005e8fd58 (not found)
  000000001183f470: 0000000004090b6e (not found)
  000000001183f740: 000000000410a454 (not found)
  000000001183f9e0: 000000000410a88b (not found)
  000000001183fa40: 000000000408ed9c (not found)
  000000001183fe20: 000000000b29e8bf (not found)
  000000001183fef0: 00000000004013c1 (not found)
  000000001183ff20: 00000000004014f6 (not found)
  000000001183ff50: 00007ffb241d7c24 (BaseThreadInitThunk+0x0014)
  000000001183ffd0: 00007ffb2432d4d1 (RtlUserThreadStart+0x0021)
Steps To Reproduce
Additional Information
Github Commit
Flags
Regression Version
Affected Sets / Systems fishfren
Attached Files
 
Relationships
There are no relationship linked to this issue.
Notes
2
User avatar
No.18939
Kale
Developer
Jun 7, 2021, 18:35
edited on: Jun 7, 2021, 18:37
The provided stack trace is empty -> useless.

The most important part is the fatalerror message (on which I added a while back): as the description implies it's trying to setup a PC new value while the GPU is still running.
According to these notes it's not exactly known what is supposed to happen ... -> https://www.mulle-kybernetik.com/jagdox/risc_doc.html#G_PC
User avatar
No.20685
Firewave
Senior Tester
Nov 2, 2022, 09:40
edited on: Nov 2, 2022, 22:53
0.249 reports this:

AddressSanitizer:DEADLYSIGNAL
=================================================================
==31632==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000008 (pc 0x7f1c3797364f bp 0x7fffd5e7e040 sp 0x7fffd5e7df80 T0)
==31632==The signal is caused by a READ memory access.
==31632==Hint: address points to the zero page.
    #0 0x7f1c3797364f in machine /mnt/s/GitHub/mame/build/projects/sdl/mame/gmake-linux-clang/../../../../../src/emu/ioport.cpp:1610:9
    #1 0x7f1c3797364f in manager /mnt/s/GitHub/mame/build/projects/sdl/mame/gmake-linux-clang/../../../../../src/emu/ioport.cpp:1621:9
    #2 0x7f1c3797364f in ioport_port::read() /mnt/s/GitHub/mame/build/projects/sdl/mame/gmake-linux-clang/../../../../../src/emu/ioport.cpp:1646:7
    #3 0x7f1c168fe326 in jaguar_state::get_crosshair_xy(int, int&, int&) /mnt/s/GitHub/mame/build/projects/sdl/mame/gmake-linux-clang/../../../../../src/mame/atari/jaguar_v.cpp:213:66
    #4 0x7f1c168eeda3 in jaguar_state::cojag_gun_input_r(unsigned int) /mnt/s/GitHub/mame/build/projects/sdl/mame/gmake-linux-clang/../../../../../src/mame/atari/jaguar_v.cpp:714:4
    #5 0x7f1c3237ea4c in operator() /mnt/s/GitHub/mame/build/projects/sdl/mame/gmake-linux-clang/../../../../../src/lib/util/delegate.h:765:11
    #6 0x7f1c3237ea4c in std::enable_if<(((std::is_same<emu::device_delegate<unsigned int (unsigned int)>, emu::device_delegate<unsigned char (unsigned int)> >::value) || (std::is_same<emu::device_delegate<unsigned int (unsigned int)>, emu::device_delegate<unsigned short (unsigned int)> >::value)) || (std::is_same<emu::device_delegate<unsigned int (unsigned int)>, emu::device_delegate<unsigned int (unsigned int)> >::value)) || (std::is_same<emu::device_delegate<unsigned int (unsigned int)>, emu::device_delegate<unsigned long (unsigned int)> >::value), unsigned int>::type handler_entry_read_delegate<2, 0, emu::device_delegate<unsigned int (unsigned int)> >::read_impl<emu::device_delegate<unsigned int (unsigned int)> >(unsigned int, unsigned int) const /mnt/s/GitHub/mame/build/projects/sdl/mame/gmake-linux-clang/../../../../../src/emu/emumem_hedp.cpp:45:9
    #7 0x7f1c3237e8cf in handler_entry_read_delegate<2, 0, emu::device_delegate<unsigned int (unsigned int)> >::read(unsigned int, unsigned int) const /mnt/s/GitHub/mame/build/projects/sdl/mame/gmake-linux-clang/../../../../../src/emu/emumem_hedp.cpp:70:9
    #8 0x7f1c28570f00 in emu::detail::handler_entry_size<2>::uX dispatch_read<0, 2, 0>(unsigned int, unsigned int, emu::detail::handler_entry_size<2>::uX, handler_entry_read<2, 0> const* const*) /mnt/s/GitHub/mame/build/projects/sdl/mame/gmake-linux-clang/../../../../../src/emu/emumem.h:1570:47
    #9 0x7f1c3307a488 in handler_entry_read_dispatch<14, 2, 0>::read(unsigned int, unsigned int) const /mnt/s/GitHub/mame/build/projects/sdl/mame/gmake-linux-clang/../../../../../src/emu/emumem_hedr.ipp:132:9
    #10 0x7f1c26cc7350 in emu::detail::handler_entry_size<2>::uX dispatch_read<1, 2, 0>(unsigned int, unsigned int, emu::detail::handler_entry_size<2>::uX, handler_entry_read<2, 0> const* const*) /mnt/s/GitHub/mame/build/projects/sdl/mame/gmake-linux-clang/../../../../../src/emu/emumem.h:1570:47
    #11 0x7f1c31aff74d in address_space_specific<1, 2, 0, (util::endianness)1>::read_native(unsigned int, unsigned int) /mnt/s/GitHub/mame/build/projects/sdl/mame/gmake-linux-clang/../../../../../src/emu/emumem_aspace.cpp:433:10
    #12 0x7f1c31ac1231 in operator() /mnt/s/GitHub/mame/build/projects/sdl/mame/gmake-linux-clang/../../../../../src/emu/emumem_aspace.cpp:454:86
    #13 0x7f1c31ac1231 in memory_read_generic<2, 0, util::endianness::big, 1, true, (lambda at ../../../../../src/emu/emumem_aspace.cpp:454:24)> /mnt/s/GitHub/mame/build/projects/sdl/mame/gmake-linux-clang/../../../../../src/emu/emumem.h:797:11
    #14 0x7f1c31ac1231 in address_space_specific<1, 2, 0, (util::endianness)1>::read_word(unsigned int) /mnt/s/GitHub/mame/build/projects/sdl/mame/gmake-linux-clang/../../../../../src/emu/emumem_aspace.cpp:459:124
    #15 0x7f1c29e58c96 in std::enable_if<std::is_convertible<mips1core_device_base::execute_run()::$_1::operator()(unsigned int) const::'lambda'(unsigned short), std::function<void (unsigned short)> >::value, void>::type mips1core_device_base::load<unsigned short, true, mips1core_device_base::execute_run()::$_1::operator()(unsigned int) const::'lambda'(unsigned short)>(unsigned int, mips1core_device_base::execute_run()::$_1::operator()(unsigned int) const::'lambda'(unsigned short)&&) /mnt/s/GitHub/mame/build/projects/sdl/mame/gmake-linux-clang/../../../../../src/devices/cpu/mips/mips1.cpp:1109:48
    #16 0x7f1c29e4b951 in mips1core_device_base::execute_run()::$_1::operator()(unsigned int) const /mnt/s/GitHub/mame/build/projects/sdl/mame/gmake-linux-clang/../../../../../src/devices/cpu/mips/mips1.cpp:548:5
    #17 0x7f1c29e4af8e in __invoke_impl<void, (lambda at ../../../../../src/devices/cpu/mips/mips1.cpp:254:15) &, unsigned int> /usr/bin/../lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12/bits/invoke.h:61:14
    #18 0x7f1c29e4af8e in __invoke_r<void, (lambda at ../../../../../src/devices/cpu/mips/mips1.cpp:254:15) &, unsigned int> /usr/bin/../lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12/bits/invoke.h:111:2
    #19 0x7f1c29e4af8e in std::_Function_handler<void (unsigned int), mips1core_device_base::execute_run()::$_1>::_M_invoke(std::_Any_data const&, unsigned int&&) /usr/bin/../lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12/bits/std_function.h:290:9
    #20 0x7f1c26c2118a in std::function<void (unsigned int)>::operator()(unsigned int) const /usr/bin/../lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12/bits/std_function.h:591:9
    #21 0x7f1c29e30102 in mips1core_device_base::fetch(unsigned int, std::function<void (unsigned int)>&&) /mnt/s/GitHub/mame/build/projects/sdl/mame/gmake-linux-clang/../../../../../src/devices/cpu/mips/mips1.cpp:1167:3
    #22 0x7f1c29e2f612 in mips1core_device_base::execute_run() /mnt/s/GitHub/mame/build/projects/sdl/mame/gmake-linux-clang/../../../../../src/devices/cpu/mips/mips1.cpp:254:3
    #23 0x7f1c29e303ef in non-virtual thunk to mips1core_device_base::execute_run() /mnt/s/GitHub/mame/build/projects/sdl/mame/gmake-linux-clang/../../../../../src/devices/cpu/mips/mips1.cpp
    #24 0x7f1c37b18817 in run /mnt/s/GitHub/mame/build/projects/sdl/mame/gmake-linux-clang/../../../../../src/emu/diexec.h:190:15
    #25 0x7f1c37b18817 in device_scheduler::timeslice() /mnt/s/GitHub/mame/build/projects/sdl/mame/gmake-linux-clang/../../../../../src/emu/schedule.cpp:456:14
    #26 0x7f1c379b14a7 in running_machine::run(bool) /mnt/s/GitHub/mame/build/projects/sdl/mame/gmake-linux-clang/../../../../../src/emu/machine.cpp:329:17
    #27 0x7f1c3ab17f7f in mame_machine_manager::execute() /mnt/s/GitHub/mame/build/projects/sdl/mame/gmake-linux-clang/../../../../../src/frontend/mame/mame.cpp:290:19
    #28 0x7f1c3ad0c8d6 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&) /mnt/s/GitHub/mame/build/projects/sdl/mame/gmake-linux-clang/../../../../../src/frontend/mame/clifront.cpp:275:22
    #29 0x7f1c3ad1041f 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> > > >&) /mnt/s/GitHub/mame/build/projects/sdl/mame/gmake-linux-clang/../../../../../src/frontend/mame/clifront.cpp:291:3
    #30 0x7f1c3ab1cd5f 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> > > >&) /mnt/s/GitHub/mame/build/projects/sdl/mame/gmake-linux-clang/../../../../../src/frontend/mame/mame.cpp:454:18
    #31 0x7f1c37cf358b in main /mnt/s/GitHub/mame/build/projects/sdl/mame/gmake-linux-clang/../../../../../src/osd/sdl/sdlmain.cpp:191:9
    #32 0x7f1bf61f9209 in __libc_start_call_main csu/../sysdeps/nptl/libc_start_call_main.h:58:16
    #33 0x7f1bf61f92bb in __libc_start_main csu/../csu/libc-start.c:389:3
    #34 0x7f1c1547d260 in _start (/mnt/s/GitHub/mame/mame+0x1d397260) (BuildId: 603d3d1c300651feb2a8e3ac6e9cb58d3f85e77b)

AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV /mnt/s/GitHub/mame/build/projects/sdl/mame/gmake-linux-clang/../../../../../src/emu/ioport.cpp:1610:9 in machine
==31632==ABORTING