Viewing Issue Advanced Details
ID Category [?] Severity [?] Reproducibility Date Submitted Last Update
09051 Crash/Freeze Critical (emulator) Random Dec 23, 2024, 13:29 1 day ago
Tester Firewave View Status Public Platform MAME (Self-compiled)
Assigned To Resolution Open OS Linux (64-bit)
Status [?] Acknowledged Driver
Version 0.272 Fixed in Version Build 64-bit
Fixed in Git Commit Github Pull Request #
Summary 09051: haremchl: Potential segmentation fault when exiting emulation
Description
==4016==ERROR: AddressSanitizer: SEGV on unknown address (pc 0x5d2efb0cec5f bp 0x7ffeb4d08230 sp 0x7ffeb4d081e0 T0)
==4016==The signal is caused by a READ memory access.
==4016==Hint: this fault was caused by a dereference of a high value address (see register values below).  Disassemble the provided pc to learn which register was used.
    #0 0x5d2efb0cec5f in reset /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/14.2.1/../../../../include/c++/14.2.1/any:291:2
    #1 0x5d2efb0cec5f in ~any /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/14.2.1/../../../../include/c++/14.2.1/any:222:14
    #2 0x5d2efb0cec5f in ~delegate /home/user/CLionProjects/mame/build/projects/sdl/mame/gmake-linux-clang/../../../../../src/lib/util/delegate.h:812:78
    #3 0x5d2efb0cec5f in microtouch_device::~microtouch_device() /home/user/CLionProjects/mame/build/projects/sdl/mame/gmake-linux-clang/../../../../../src/devices/machine/microtch.h:10:7
    #4 0x5d2efb0ced3d in microtouch_device::~microtouch_device() /home/user/CLionProjects/mame/build/projects/sdl/mame/gmake-linux-clang/../../../../../src/devices/machine/microtch.h:10:7
    #5 0x5d2efd54d9a2 in remove /home/user/CLionProjects/mame/build/projects/sdl/mame/gmake-linux-clang/../../../../../src/lib/util/coretmpl.h:248:3
    #6 0x5d2efd54d9a2 in reset /home/user/CLionProjects/mame/build/projects/sdl/mame/gmake-linux-clang/../../../../../src/lib/util/coretmpl.h:95:4
    #7 0x5d2efd54d9a2 in ~simple_list /home/user/CLionProjects/mame/build/projects/sdl/mame/gmake-linux-clang/../../../../../src/lib/util/coretmpl.h:64:28
    #8 0x5d2efd54d9a2 in ~subdevice_list /home/user/CLionProjects/mame/build/projects/sdl/mame/gmake-linux-clang/../../../../../src/emu/device.h:470:8
    #9 0x5d2efd54d9a2 in device_t::~device_t() /home/user/CLionProjects/mame/build/projects/sdl/mame/gmake-linux-clang/../../../../../src/emu/device.cpp:123:1
    #10 0x5d2efd685486 in driver_device::~driver_device() /home/user/CLionProjects/mame/build/projects/sdl/mame/gmake-linux-clang/../../../../../src/emu/driver.cpp:49:1
    #11 0x5d2ee3e03f5a in amiga_state::~amiga_state() /home/user/CLionProjects/mame/build/projects/sdl/mame/gmake-linux-clang/../../../../../src/mame/amiga/amiga.h:311:7
    #12 0x5d2ee3e69406 in ~cubo_state /home/user/CLionProjects/mame/build/projects/sdl/mame/gmake-linux-clang/../../../../../src/mame/amiga/cubo.cpp:333:7
    #13 0x5d2ee3e69406 in (anonymous namespace)::cubo_state::~cubo_state() /home/user/CLionProjects/mame/build/projects/sdl/mame/gmake-linux-clang/../../../../../src/mame/amiga/cubo.cpp:333:7
    #14 0x5d2f00bae259 in operator() /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/14.2.1/../../../../include/c++/14.2.1/bits/unique_ptr.h:93:2
    #15 0x5d2f00bae259 in ~unique_ptr /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/14.2.1/../../../../include/c++/14.2.1/bits/unique_ptr.h:398:4
    #16 0x5d2f00bae259 in machine_config::~machine_config() /home/user/CLionProjects/mame/build/projects/sdl/mame/gmake-linux-clang/../../../../../src/emu/mconfig.cpp:119:1
    #17 0x5d2efc4e199a in mame_machine_manager::execute() /home/user/CLionProjects/mame/build/projects/sdl/mame/gmake-linux-clang/../../../../../src/frontend/mame/mame.cpp:312:2
    #18 0x5d2efd226ff7 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
    #19 0x5d2efd2299d4 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
    #20 0x5d2efc4e43dd 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
    #21 0x5d2f00dd7135 in main /home/user/CLionProjects/mame/build/projects/sdl/mame/gmake-linux-clang/../../../../../src/osd/sdl/sdlmain.cpp:100:9
    #22 0x733d15c34e07 in __libc_start_call_main /usr/src/debug/glibc/glibc/csu/../sysdeps/nptl/libc_start_call_main.h:58:16
    #23 0x733d15c34ecb in __libc_start_main /usr/src/debug/glibc/glibc/csu/../csu/libc-start.c:360:3
    #24 0x5d2ee3625ca4 in _start (/home/user/CLionProjects/mame/mame+0x10867ca4) (BuildId: dd5b3932e72efdc3)
Steps To Reproduce
Additional Information Might affect all sets but I have not tried all clones but this was the only one I could reproduce it with so far.
Github Commit
Flags
Regression Version
Affected Sets / Systems haremchl
Attached Files
 
Relationships
related to 08655Confirmed  lsrquizg: Crash on exit. 
Notes
2
User avatar
No.22685
Robbbert
Moderator
Dec 23, 2024, 14:05
Unable to get it to crash. Noticed some odd graphics glitches, but that's in the game flags.
User avatar
No.24543
Firewave
Senior Tester
2 days ago
Running 0.289 on Linux:
==164907==ERROR: AddressSanitizer: SEGV on unknown address (pc 0x5555e47c5b53 bp 0x0f7e70abae5c sp 0x7ffd96115ae0 T0)
==164907==The signal is caused by a READ memory access.
==164907==Hint: this fault was caused by a dereference of a high value address (see register values below).  Disassemble the provided pc to learn which register was used.
    #0 0x5555e47c5b53 in reset /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/16/../../../../include/c++/16/any:296:2
    #1 0x5555e47c5b53 in ~any /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/16/../../../../include/c++/16/any:227:14
    #2 0x5555e47c5b53 in ~delegate /home/user/CLionProjects/mame/build/projects/sdl/mame/gmake-linux-clang/../../../../../src/lib/util/delegate.h:800:78
    #3 0x5555e47c5b53 in microtouch_device::~microtouch_device() /home/user/CLionProjects/mame/build/projects/sdl/mame/gmake-linux-clang/../../../../../src/devices/machine/microtch.h:10:7
    #4 0x5555e47c5c38 in microtouch_device::~microtouch_device() /home/user/CLionProjects/mame/build/projects/sdl/mame/gmake-linux-clang/../../../../../src/devices/machine/microtch.h:10:7
    #5 0x5555e712e3b2 in remove /home/user/CLionProjects/mame/build/projects/sdl/mame/gmake-linux-clang/../../../../../src/lib/util/coretmpl.h:251:3
    #6 0x5555e712e3b2 in reset /home/user/CLionProjects/mame/build/projects/sdl/mame/gmake-linux-clang/../../../../../src/lib/util/coretmpl.h:98:4
    #7 0x5555e712e3b2 in ~simple_list /home/user/CLionProjects/mame/build/projects/sdl/mame/gmake-linux-clang/../../../../../src/lib/util/coretmpl.h:67:28
    #8 0x5555e712e3b2 in ~subdevice_list /home/user/CLionProjects/mame/build/projects/sdl/mame/gmake-linux-clang/../../../../../src/emu/device.h:484:8
    #9 0x5555e712e3b2 in device_t::~device_t() /home/user/CLionProjects/mame/build/projects/sdl/mame/gmake-linux-clang/../../../../../src/emu/device.cpp:132:1
    #10 0x5555cb2902a8 in (anonymous namespace)::cubo_state::~cubo_state() /home/user/CLionProjects/mame/build/projects/sdl/mame/gmake-linux-clang/../../../../../src/mame/amiga/cubo.cpp:334:7
    #11 0x5555eab19593 in operator() /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/16/../../../../include/c++/16/bits/unique_ptr.h:92:2
    #12 0x5555eab19593 in ~unique_ptr /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/16/../../../../include/c++/16/bits/unique_ptr.h:408:4
    #13 0x5555eab19593 in machine_config::~machine_config() /home/user/CLionProjects/mame/build/projects/sdl/mame/gmake-linux-clang/../../../../../src/emu/mconfig.cpp:119:1
    #14 0x5555e5f79f26 in mame_machine_manager::execute() /home/user/CLionProjects/mame/build/projects/sdl/mame/gmake-linux-clang/../../../../../src/frontend/mame/mame.cpp:312:2
    #15 0x5555e6e04b2c 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:278:22
    #16 0x5555e6e07541 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:294:3
    #17 0x5555e5f7cc4d 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
    #18 0x5555ead8fa4b in main /home/user/CLionProjects/mame/build/projects/sdl/mame/gmake-linux-clang/../../../../../src/osd/sdl/sdlmain.cpp:100:9
    #19 0x7fbf89427740 in __libc_start_call_main /usr/src/debug/glibc/glibc/csu/../sysdeps/nptl/libc_start_call_main.h:59:16
    #20 0x7fbf89427878 in __libc_start_main /usr/src/debug/glibc/glibc/csu/../csu/libc-start.c:360:3
    #21 0x5555cabc1164 in _start (/home/user/CLionProjects/mame/mame-asan+0x11598164) (BuildId: 13beb3120a836eda0c05eca94b4a95e9bd4778da)

==164907==Register values:
rax = 0x6573206164206f63  rbx = 0x00007d5f853f8680  rcx = 0x0000000000000033  rdx = 0x0000000000000000  
rdi = 0x0000000000000003  rsi = 0x00007d5f853f8a60  rbp = 0x00000f7e70abae5c  rsp = 0x00007ffd96115ae0  
 r8 = 0x00007fbf864bd000   r9 = 0x00000000000126a8  r10 = 0x0000000000100000  r11 = 0x00005555f4eebcc4  
r12 = 0x00007bef856172e0  r13 = 0x00007bef856172b0  r14 = 0x00000fabf0a7f14c  r15 = 0x00007d5f853f8a60  
AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV /home/user/CLionProjects/mame/build/projects/sdl/mame/gmake-linux-clang/../../../../../src/lib/util/delegate.h:800:78 in ~delegate