Viewing Issue Advanced Details
ID Category [?] Severity [?] Reproducibility Date Submitted Last Update
09051 Crash/Freeze Critical (emulator) Random Dec 23, 2024, 13:29 Dec 28, 2024, 12:57
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
There are no relationship linked to this issue.
Notes
1
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.