Viewing Issue Advanced Details
ID Category [?] Severity [?] Reproducibility Date Submitted Last Update
08449 Crash/Freeze Critical (emulator) Sometimes Oct 19, 2022, 06:23 Nov 2, 2022, 10:07
Tester Firewave View Status Public Platform MAME (Official Binary)
Assigned To Resolution Open OS Windows 10/11 (64-bit)
Status [?] Confirmed Driver
Version 0.248 Fixed in Version Build 64-bit
Fixed in Git Commit Github Pull Request #
Summary 08449: snes [tristar]: Access Violation
Description
-----------------------------------------------------
Exception at EIP=00007ff7107d47e7 (+0x107d47e7): ACCESS VIOLATION
While attempting to read memory at 000002d7b3735c88
-----------------------------------------------------
RAX=76616c6c65746153 RBX=000002d7ab0a4950 RCX=000002d7ab0a4950 RDX=582d534220776569
RSI=000002d7b372dcc0 RDI=000002d7b3735c80 RBP=0000000000007fc0 RSP=000000dab66f8f30
 R8=0000000000002000  R9=c6a4a7935bd1e995 R10=0000000000007fc0 R11=000000dab66f9008
R12=000002d7ab0a4950 R13=000000dab66f9170 R14=000002d7b372dcc0 R15=000002d7ab0a4c58
-----------------------------------------------------
Stack crawl:
  000000dab66f9130: 00007ff7107d47e7 (+0x107d47e7)
  000000dab66f92c0: 00007ff7107dd467 (+0x107dd467)
  000000dab66f9300: 00007ff70de43935 (+0xde43935)
  000000dab66f9410: 00007ff711486978 (+0x11486978)
  000000dab66f9450: 00007ff70dc37f01 (+0xdc37f01)
  000000dab66f9580: 00007ff70dc06983 (+0xdc06983)
  000000dab66f96b0: 00007ff70de21ca8 (+0xde21ca8)
  000000dab66f97d0: 00007ff70de27a06 (+0xde27a06)
  000000dab66f9930: 00007ff70de29885 (+0xde29885)
  000000dab66fedb0: 00007ff71143c19b (+0x1143c19b)
  000000dab66ff190: 00007ff713d4d54f (+0x13d4d54f)
  000000dab66ff450: 00007ff713d4db5d (+0x13d4db5d)
  000000dab66ff4b0: 00007ff711436849 (+0x11436849)
  000000dab66ff880: 00007ff714ea6df7 (+0x14ea6df7)
  000000dab66ff950: 00007ff7094a13b1 (+0x94a13b1)
  000000dab66ff980: 00007ff7094a14e6 (+0x94a14e6)
  000000dab66ff9b0: 00007ffd1b8a7034 (BaseThreadInitThunk+0x0014)
  000000dab66ffa30: 00007ffd1d8826a1 (RtlUserThreadStart+0x0021)

Sometimes it just shows a black screen. Using "-str 2" it crashes more reliably.
Steps To Reproduce
Additional Information
Github Commit
Flags
Regression Version
Affected Sets / Systems snes [tristar]
Attached Files
 
Relationships
related to 08448Confirmed  snes [super8]: Access Violation 
Notes
4
User avatar
No.20620
Foxhack
Tester
Oct 19, 2022, 07:39
This is probably crashing because it's missing the necessary hardware. The SNES / SFC slot worked as a passthrough, but the NES/FC slots seemingly used a NES on a chip to play whatever you inserted on it.
User avatar
No.20623
Firewave
Senior Tester
Oct 19, 2022, 07:54
So I assume this cannot be configured at the moment? If so then it should simply be flagged as not supported.
User avatar
No.20624
Robbbert
Moderator
Oct 19, 2022, 11:49
Dump is useless. Please provide one with symbols.
User avatar
No.20687
Firewave
Senior Tester
Nov 2, 2022, 10:07
edited on: Nov 2, 2022, 22:54
0.249 reports this:
=================================================================
==32027==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x6250000ee0c0 at pc 0x7f2c8ee7e7c6 bp 0x7fffef5a8760 sp 0x7fffef5a7f10
READ of size 21 at 0x6250000ee0c0 thread T0
    #0 0x7f2c8ee7e7c5 in MemcmpInterceptorCommon(void*, int (*)(void const*, void const*, unsigned long), void const*, void const*, unsigned long) (/mnt/s/GitHub/mame/mame+0x1d3b17c5) (BuildId: 603d3d1c300651feb2a8e3ac6e9cb58d3f85e77b)
    #1 0x7f2c8ee7ed19 in bcmp (/mnt/s/GitHub/mame/mame+0x1d3b1d19) (BuildId: 603d3d1c300651feb2a8e3ac6e9cb58d3f85e77b)
    #2 0x7f2c9ff0ac89 in base_sns_cart_slot_device::internal_header_logging(unsigned char*, unsigned int) /mnt/s/GitHub/mame/build/projects/sdl/mame/gmake-linux-clang/../../../../../src/devices/bus/snes/snes_slot.cpp:1303:7
    #3 0x7f2c9fefecd5 in base_sns_cart_slot_device::call_load() /mnt/s/GitHub/mame/build/projects/sdl/mame/gmake-linux-clang/../../../../../src/devices/bus/snes/snes_slot.cpp:727:3
    #4 0x7f2c9ff0d5bf in non-virtual thunk to base_sns_cart_slot_device::call_load() /mnt/s/GitHub/mame/build/projects/sdl/mame/gmake-linux-clang/../../../../../src/devices/bus/snes/snes_slot.cpp
    #5 0x7f2caaba6f4b in device_image_interface::finish_load() /mnt/s/GitHub/mame/build/projects/sdl/mame/gmake-linux-clang/../../../../../src/emu/diimage.cpp:880:11
    #6 0x7f2cb1338923 in image_manager::postdevice_init() /mnt/s/GitHub/mame/build/projects/sdl/mame/gmake-linux-clang/../../../../../src/emu/image.cpp:244:36
    #7 0x7f2caad2670b in driver_device::device_start() /mnt/s/GitHub/mame/build/projects/sdl/mame/gmake-linux-clang/../../../../../src/emu/driver.cpp:211:20
    #8 0x7f2caab74410 in device_t::start() /mnt/s/GitHub/mame/build/projects/sdl/mame/gmake-linux-clang/../../../../../src/emu/device.cpp:562:2
    #9 0x7f2cb13972df in running_machine::start_all_devices() /mnt/s/GitHub/mame/build/projects/sdl/mame/gmake-linux-clang/../../../../../src/emu/machine.cpp:1013:13
    #10 0x7f2cb13952b4 in running_machine::start() /mnt/s/GitHub/mame/build/projects/sdl/mame/gmake-linux-clang/../../../../../src/emu/machine.cpp:211:2
    #11 0x7f2cb13980dc in running_machine::run(bool) /mnt/s/GitHub/mame/build/projects/sdl/mame/gmake-linux-clang/../../../../../src/emu/machine.cpp:281:3
    #12 0x7f2cb44fef7f in mame_machine_manager::execute() /mnt/s/GitHub/mame/build/projects/sdl/mame/gmake-linux-clang/../../../../../src/frontend/mame/mame.cpp:290:19
    #13 0x7f2cb46f38d6 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
    #14 0x7f2cb46f741f 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
    #15 0x7f2cb4503d5f 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
    #16 0x7f2cb16da58b in main /mnt/s/GitHub/mame/build/projects/sdl/mame/gmake-linux-clang/../../../../../src/osd/sdl/sdlmain.cpp:191:9
    #17 0x7f2c6fbd9209 in __libc_start_call_main csu/../sysdeps/nptl/libc_start_call_main.h:58:16
    #18 0x7f2c6fbd92bb in __libc_start_main csu/../csu/libc-start.c:389:3
    #19 0x7f2c8ee64260 in _start (/mnt/s/GitHub/mame/mame+0x1d397260) (BuildId: 603d3d1c300651feb2a8e3ac6e9cb58d3f85e77b)

0x6250000ee0c0 is located 4160 bytes to the right of 8064-byte region [0x6250000eb100,0x6250000ed080)
allocated by thread T0 here:
    #0 0x7f2c8eee7298 in calloc (/mnt/s/GitHub/mame/mame+0x1d41a298) (BuildId: 603d3d1c300651feb2a8e3ac6e9cb58d3f85e77b)
    #1 0x7f2c701c1ea3 in XOpenDisplay (/usr/lib/x86_64-linux-gnu/libX11.so.6+0x33ea3) (BuildId: 692ceb08bd361ef2ea7caaa0926de19466d6f3ad)

SUMMARY: AddressSanitizer: heap-buffer-overflow (/mnt/s/GitHub/mame/mame+0x1d3b17c5) (BuildId: 603d3d1c300651feb2a8e3ac6e9cb58d3f85e77b) in MemcmpInterceptorCommon(void*, int (*)(void const*, void const*, unsigned long), void const*, void const*, unsigned long)
Shadow bytes around the buggy address:
  0x0c4a80015bc0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  0x0c4a80015bd0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  0x0c4a80015be0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  0x0c4a80015bf0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  0x0c4a80015c00: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
=>0x0c4a80015c10: fa fa fa fa fa fa fa fa[fa]fa fa fa fa fa fa fa
  0x0c4a80015c20: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  0x0c4a80015c30: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  0x0c4a80015c40: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  0x0c4a80015c50: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  0x0c4a80015c60: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
Shadow byte legend (one shadow byte represents 8 application bytes):
  Addressable:           00
  Partially addressable: 01 02 03 04 05 06 07
  Heap left redzone:       fa
  Freed heap region:       fd
  Stack left redzone:      f1
  Stack mid redzone:       f2
  Stack right redzone:     f3
  Stack after return:      f5
  Stack use after scope:   f8
  Global redzone:          f9
  Global init order:       f6
  Poisoned by user:        f7
  Container overflow:      fc
  Array cookie:            ac
  Intra object redzone:    bb
  ASan internal:           fe
  Left alloca redzone:     ca
  Right alloca redzone:    cb
==32027==ABORTING