Viewing Issue Advanced Details
ID Category [?] Severity [?] Reproducibility Date Submitted Last Update
06677 Interface Critical (emulator) Always Sep 5, 2017, 06:53 Oct 18, 2017, 15:48
Tester wuemura View Status Public Platform MAME (Official Binary)
Assigned To Resolution Open OS Windows 10 (64-bit)
Status [?] Confirmed Driver
Version 0.189 Fixed in Version Build 64-bit
Summary 06677: Exception at new machine selection
Description Exception happens if you change from one machine to another, tested with:
neogeo to any other machine or rom
n64dd to any other machine or rom
Maybe it will happens with other drivers also.

-----------------------------------------------------
Exception at EIP=000000000324b6c7 (emu_options::image_option(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)+0x0077): ACCESS VIOLATION
While attempting to read memory at 0000000000000028
-----------------------------------------------------
RAX=0000000000000000 RBX=000000000022f710 RCX=247144ea5a7cb0a8 RDX=0000000000000004
RSI=000000000000000b RDI=e48226b13c9dd06f RBP=0000000000227e70 RSP=0000000000227df0
 R8=000000000001c904 R9=c6a4a7935bd1e995 R10=c7e1c6729408c99f R11=000000000da1a090
R12=0000000000000004 R13=000000000da1a078 R14=fffffffffffffffe R15=000000000daef7a0
-----------------------------------------------------
Stack crawl:
  0000000000227dc0: 000000000324b6c7 (emu_options::image_option(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)+0x0077)
  00000000002284c0: 0000000003263d3f (image_manager::options_extract()+0x033f)
  0000000000228520: 0000000003264db3 (image_manager::unload_all()+0x0033)
  0000000000228620: 000000000328f027 (running_machine::run(bool)+0x0497)
  000000000022f1d0: 0000000001c21803 (mame_machine_manager::execute()+0x01e3)
  000000000022f490: 0000000001c90ab6 (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&)+0x0416)
  000000000022f600: 0000000001c90f65 (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> > > >&)+0x0045)
  000000000022f660: 0000000001c1f96a (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> > > >&)+0x002a)
  000000000022fdb0: 0000000001b72752 (utf8_main(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> > > >&)+0x0122)
  000000000022fe50: 00000000037f94e9 (wmain+0x0169)
  000000000022ff20: 0000000000401410 (__tmainCRTStartup+0x0260)
  000000000022ff50: 000000000040153b (mainCRTStartup+0x001b)
  000000000022ff80: 00000000778259cd (BaseThreadInitThunk+0x000d)
  000000000022ffd0: 0000000077a5a561 (RtlUserThreadStart+0x0021)
Steps To Reproduce 1. Start MAME
2. Select/Run any machine with a softwarelist but can be started empty. Example: Neo Geo MVS (neogeo). It will boot.
3. Choose "Select New Machine" from the menu and choose another machine with or without a softlist. Examples: Atari 2600 (a2600) / Mappy (mappy)
4. Exception happens
Additional Information
Flags
Regression Version
Affected Sets / Systems
Attached Files
 
Relationships
related to 06655Confirmed cgenie, coco3: Unloading and big changes in interface slots can cause CRASH 
Notes
7
User avatar
No.14169
Tafoid
Administrator
Sep 5, 2017, 20:27
Replaced stackcrawl with a valid one. The one before was made with a non-matching .SYM file.
Updated description/info to better suit findings.
User avatar
No.14228
Tafoid
Administrator
Oct 7, 2017, 01:00
Shares similar crashing with bugs fixed by https://github.com/mamedev/mame/pull/2555 , but untested
User avatar
No.14230
wuemura
Tester
Oct 7, 2017, 01:52
It returns this error in 0.191GIT
mame64d: ../../../../../src/emu/emuopts.cpp:1038: image_option& emu_options::image_option(const string&): Assertion `iter != m_image_options.end() && "Attempt to access non-existent image option"' failed.
Aborted
User avatar
No.14233
Tafoid
Administrator
Oct 7, 2017, 02:39
That is simply an DEBUG build only assert. The crash still happens in non-debug binaries.
User avatar
No.14234
wuemura
Tester
Oct 7, 2017, 04:10
edited on: Oct 7, 2017, 04:11
The Exception stop happening, still, MAME closes and exit. I'll compile a new one later.

User avatar
No.14235
wuemura
Tester
Oct 7, 2017, 04:44
The non DEBUG version just quits, the exception is gone but it doesn't help either.
User avatar
No.14299
wuemura
Tester
Oct 18, 2017, 15:48
This one is with konamigx, this was like the bug description.
-----------------------------------------------------
Exception at EIP=00007fff4f7038c0 (not found): ACCESS VIOLATION
While attempting to write memory at 0000000016553000
-----------------------------------------------------
RAX=0000000016552bc0 RBX=0000000016559c40 RCX=0000000016553000 RDX=fffffffffffffff
RSI=0000000000000480 RDI=00000000ffffffff RBP=00000000000000fc RSP=000000000c61798
 R8=0000000000000480 R9=0000000000000000 R10=0000000000000001 R11=000000000e6d7d0
R12=000000000e594be0 R13=0000000000000000 R14=00000000ffffffff R15=000000000a8c0a0
-----------------------------------------------------
Stack crawl:
  000000000c617790: 00007fff4f7038c0 (memset+0x00c0)
  000000000c617800: 0000000000c623cd (not found)
  000000000c6181f0: 0000000000c66369 (not found)
  000000000c6182a0: 0000000000c680e1 (not found)
  000000000c618310: 00000000039b9d08 (not found)
  000000000c6183b0: 00000000039e4a5c (not found)
  000000000c618440: 00000000039e6b31 (not found)
  000000000c6184b0: 00000000039b5591 (not found)
  000000000c618510: 00000000039ba065 (not found)
  000000000c6185c0: 00000000039afdff (not found)
  000000000c6186c0: 000000000396dcf0 (not found)
  000000000c61f260: 000000000221e0ac (not found)
  000000000c61f500: 0000000002294175 (not found)
  000000000c61f690: 000000000229469d (not found)
  000000000c61f6f0: 000000000221c017 (not found)
  000000000c61fe50: 000000000705748f (not found)
  000000000c61ff20: 00000000004013f8 (not found)
  000000000c61ff50: 000000000040151b (not found)
  000000000c61ff80: 00007fff4ff52774 (BaseThreadInitThunk+0x0014)
  000000000c61ffd0: 00007fff50200d51 (RtlUserThreadStart+0x0021)

Still there are another if you load the bios konamigx and press ESQ to exit, duplicate of:
http://mametesters.org/view.php?id=6121