- --
Viewing Issue Advanced Details
ID | Category [?] | Severity [?] | Reproducibility | Date Submitted | Last Update |
---|---|---|---|---|---|
05821 | Misc. | Critical (emulator) | Always | Jan 3, 2015, 12:17 | Nov 5, 2022, 09:07 |
Tester | Firewave | View Status | Public | Platform | MAME (Self-compiled) |
Assigned To | Resolution | Reopened | OS | ||
Status [?] | Acknowledged | Driver | |||
Version | 0.157 | Fixed in Version | Build | Debug | |
Fixed in Git Commit | Github Pull Request # | ||||
Summary | 05821: m4richfm__e: AddressSanitizer: heap-use-after-free | ||||
Description |
==18294==ERROR: AddressSanitizer: heap-use-after-free on address 0x6290001fa1fe at pc 0x0000081812e1 bp 0x7fff52065d60 sp 0x7fff52065d58 READ of size 1 at 0x6290001fa1fe thread T0 #0 0x81812e0 in address_space_specific<unsigned char, (endianness_t)1, false>::read_native(unsigned int) /home/notroot/trunk/src/emu/memory.c:1093:74 #1 0x817f578 in address_space_specific<unsigned char, (endianness_t)1, false>::read_byte(unsigned int) /home/notroot/trunk/src/emu/memory.c:1412:64 #2 0x65d7663 in m6809_base_device::device_reset() /home/notroot/trunk/src/emu/cpu/m6809/m6809.c:204:13 #3 0x7f5808c in device_t::reset() /home/notroot/trunk/src/emu/device.c:253:2 #4 0x7f580bf in device_t::reset() /home/notroot/trunk/src/emu/device.c:257:3 #5 0x8111caf in running_machine::reset_all_devices() /home/notroot/trunk/src/emu/machine.c:1128:2 #6 0x81109f1 in delegate_base<void, _noparam, _noparam, _noparam, _noparam, _noparam, _noparam, _noparam, _noparam, _noparam, _noparam, _noparam, _noparam>::operator()() const /home/notroot/trunk/src/lib/util/delegate.h:649:42 #7 0x81109f1 in running_machine::call_notifiers(machine_notification) /home/notroot/trunk/src/emu/machine.c:871 #8 0x81109f1 in running_machine::soft_reset(void*, int) /home/notroot/trunk/src/emu/machine.c:976 #9 0x8112a8f in running_machine::run(bool) /home/notroot/trunk/src/emu/machine.c:365:3 #10 0x810b03a in machine_manager::execute() /home/notroot/trunk/src/emu/mame.c:216:11 #11 0x7f3df3e in cli_frontend::execute(int, char**) /home/notroot/trunk/src/emu/clifront.c:244:15 #12 0x576f669 in main /home/notroot/trunk/src/osd/sdl/sdlmain.c:345:9 #13 0x7fd4053f5ec4 in __libc_start_main /build/buildd/eglibc-2.19/csu/libc-start.c:287 #14 0x11479ac in _start (/home/notroot/trunk/mame64d+0x11479ac) 0x6290001fa1fe is located 4094 bytes inside of 16544-byte region [0x6290001f9200,0x6290001fd2a0) freed by thread T0 here: #0 0x112a0bb in free /home/ben/development/llvm/3.5/final/llvm.src/projects/compiler-rt/lib/asan/asan_malloc_linux.cc:30:3 #1 0x850b85a in free_zip_file(zip_file*) /home/notroot/trunk/src/lib/util/unzip.c:399:3 #2 0x850b85a in zip_file_open(char const*, zip_file**) /home/notroot/trunk/src/lib/util/unzip.c:206 #3 0x80013e8 in emu_file::attempt_zipped() /home/notroot/trunk/src/emu/fileio.c:680:22 #4 0x7fff706 in emu_file::open_next() /home/notroot/trunk/src/emu/fileio.c:363:13 #5 0x7fff444 in emu_file::open(char const*) /home/notroot/trunk/src/emu/fileio.c:274:9 #6 0x81a3982 in render_target::load_layout_file(char const*, char const*) /home/notroot/trunk/src/emu/render.c:1660:23 #7 0x8197d0e in render_target::load_layout_files(char const*, bool) /home/notroot/trunk/src/emu/render.c:1594:20 #8 0x81971e6 in render_target::render_target(render_manager&, char const*, unsigned int) /home/notroot/trunk/src/emu/render.c:1039:2 #9 0x81a8496 in render_manager::target_alloc(char const*, unsigned int) /home/notroot/trunk/src/emu/render.c:2532:10 #10 0x828e013 in video_manager::video_manager(running_machine&) /home/notroot/trunk/src/emu/video.c:138:19 #11 0x810f017 in running_machine::start() /home/notroot/trunk/src/emu/machine.c:228:2 #12 0x81129cc in running_machine::run(bool) /home/notroot/trunk/src/emu/machine.c:345:3 #13 0x810b03a in machine_manager::execute() /home/notroot/trunk/src/emu/mame.c:216:11 #14 0x7f3df3e in cli_frontend::execute(int, char**) /home/notroot/trunk/src/emu/clifront.c:244:15 #15 0x576f669 in main /home/notroot/trunk/src/osd/sdl/sdlmain.c:345:9 #16 0x7fd4053f5ec4 in __libc_start_main /build/buildd/eglibc-2.19/csu/libc-start.c:287 previously allocated by thread T0 here: #0 0x112a33b in __interceptor_malloc /home/ben/development/llvm/3.5/final/llvm.src/projects/compiler-rt/lib/asan/asan_malloc_linux.cc:40:3 #1 0x850b76f in zip_file_open(char const*, zip_file**) /home/notroot/trunk/src/lib/util/unzip.c:152:23 #2 0x80013e8 in emu_file::attempt_zipped() /home/notroot/trunk/src/emu/fileio.c:680:22 #3 0x7fff706 in emu_file::open_next() /home/notroot/trunk/src/emu/fileio.c:363:13 #4 0x7fff444 in emu_file::open(char const*) /home/notroot/trunk/src/emu/fileio.c:274:9 #5 0x81a3982 in render_target::load_layout_file(char const*, char const*) /home/notroot/trunk/src/emu/render.c:1660:23 #6 0x8197d0e in render_target::load_layout_files(char const*, bool) /home/notroot/trunk/src/emu/render.c:1594:20 #7 0x81971e6 in render_target::render_target(render_manager&, char const*, unsigned int) /home/notroot/trunk/src/emu/render.c:1039:2 #8 0x81a8496 in render_manager::target_alloc(char const*, unsigned int) /home/notroot/trunk/src/emu/render.c:2532:10 #9 0x828e013 in video_manager::video_manager(running_machine&) /home/notroot/trunk/src/emu/video.c:138:19 #10 0x810f017 in running_machine::start() /home/notroot/trunk/src/emu/machine.c:228:2 #11 0x81129cc in running_machine::run(bool) /home/notroot/trunk/src/emu/machine.c:345:3 #12 0x810b03a in machine_manager::execute() /home/notroot/trunk/src/emu/mame.c:216:11 #13 0x7f3df3e in cli_frontend::execute(int, char**) /home/notroot/trunk/src/emu/clifront.c:244:15 #14 0x576f669 in main /home/notroot/trunk/src/osd/sdl/sdlmain.c:345:9 #15 0x7fd4053f5ec4 in __libc_start_main /build/buildd/eglibc-2.19/csu/libc-start.c:287 SUMMARY: AddressSanitizer: heap-use-after-free /home/notroot/trunk/src/emu/memory.c:1093 address_space_specific<unsigned char, (endianness_t)1, false>::read_native(unsigned int) Shadow bytes around the buggy address: 0x0c52800373e0: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd 0x0c52800373f0: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd 0x0c5280037400: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd 0x0c5280037410: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd 0x0c5280037420: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd =>0x0c5280037430: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd[fd] 0x0c5280037440: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd 0x0c5280037450: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd 0x0c5280037460: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd 0x0c5280037470: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd 0x0c5280037480: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd 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 Heap right redzone: fb Freed heap region: fd Stack left redzone: f1 Stack mid redzone: f2 Stack right redzone: f3 Stack partial redzone: f4 Stack after return: f5 Stack use after scope: f8 Global redzone: f9 Global init order: f6 Poisoned by user: f7 Container overflow: fc ASan internal: fe |
||||
Steps To Reproduce | |||||
Additional Information | |||||
Github Commit | |||||
Flags | |||||
Regression Version | |||||
Affected Sets / Systems | m4richfm__e | ||||
Attached Files
|
|||||
Relationships
There are no relationship linked to this issue. |
Notes
2
No.14588
Firewave Senior Tester
Dec 31, 2017, 23:35
|
Still happening in 0.193==118556==ERROR: AddressSanitizer: heap-use-after-free on address 0x6290002041fe at pc 0x00000e26bf3c bp 0x7fff5981c9d0 sp 0x7fff5981c9c8 READ of size 1 at 0x6290002041fe thread T0 #0 0xe26bf3b in read_native /mnt/mame/build/projects/sdl/mame/gmake-linux-clang/../../../../../src/emu/emumem.cpp:1144:41 #1 0xe26bf3b in address_space_specific<unsigned char, (endianness_t)1, 0, false>::read_byte(unsigned int) /mnt/mame/build/projects/sdl/mame/gmake-linux-clang/../../../../../src/emu/emumem.cpp:1463 #2 0xb59fdb1 in m6809_base_device::device_reset() /mnt/mame/build/projects/sdl/mame/gmake-linux-clang/../../../../../src/devices/cpu/m6809/m6809.cpp:246:31 #3 0xe0e262c in device_t::reset() /mnt/mame/build/projects/sdl/mame/gmake-linux-clang/../../../../../src/emu/device.cpp:273:2 #4 0xe0e265f in device_t::reset() /mnt/mame/build/projects/sdl/mame/gmake-linux-clang/../../../../../src/emu/device.cpp:277:9 #5 0xe6a1976 in running_machine::reset_all_devices() /mnt/mame/build/projects/sdl/mame/gmake-linux-clang/../../../../../src/emu/machine.cpp:1069:16 #6 0xe6a3080 in operator() /mnt/mame/build/projects/sdl/mame/gmake-linux-clang/../../../../../src/lib/util/delegate.h:544:11 #7 0xe6a3080 in call_notifiers /mnt/mame/build/projects/sdl/mame/gmake-linux-clang/../../../../../src/emu/machine.cpp:885 #8 0xe6a3080 in soft_reset /mnt/mame/build/projects/sdl/mame/gmake-linux-clang/../../../../../src/emu/machine.cpp:988 #9 0xe6a3080 in running_machine::run(bool) /mnt/mame/build/projects/sdl/mame/gmake-linux-clang/../../../../../src/emu/machine.cpp:335 #10 0x8cd10e0 in mame_machine_manager::execute() /mnt/mame/build/projects/sdl/mame/gmake-linux-clang/../../../../../src/frontend/mame/mame.cpp:236:19 #11 0x8e1e0d3 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/mame/build/projects/sdl/mame/gmake-linux-clang/../../../../../src/frontend/mame/clifront.cpp:257:22 #12 0x8e20ee0 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/mame/build/projects/sdl/mame/gmake-linux-clang/../../../../../src/frontend/mame/clifront.cpp:273:3 #13 0x8cd3717 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/mame/build/projects/sdl/mame/gmake-linux-clang/../../../../../src/frontend/mame/mame.cpp:336:18 #14 0x8acddf2 in main /mnt/mame/build/projects/sdl/mame/gmake-linux-clang/../../../../../src/osd/sdl/sdlmain.cpp:216:9 #15 0x7f538709682f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2082f) #16 0x1431838 in _start (/mnt/mame/mame64+0x1431838) 0x6290002041fe is located 4094 bytes inside of 16608-byte region [0x629000203200,0x6290002072e0) freed by thread T0 here: #0 0x14fe342 in operator delete(void*) /opt/media/clang_nightly/llvm/utils/release/final/llvm.src/projects/compiler-rt/lib/asan/asan_new_delete.cc:137:3 #1 0xf288497 in operator() /usr/lib/gcc/x86_64-linux-gnu/5.4.0/../../../../include/c++/5.4.0/bits/unique_ptr.h:76:2 #2 0xf288497 in ~unique_ptr /usr/lib/gcc/x86_64-linux-gnu/5.4.0/../../../../include/c++/5.4.0/bits/unique_ptr.h:236 #3 0xf288497 in util::archive_file::open_zip(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::unique_ptr<util::archive_file, std::default_delete<util::archive_file> >&) /mnt/mame/build/projects/sdl/mame/gmake-linux-clang/../../../../../src/lib/util/unzip.cpp:1468 #4 0xe477f7c in emu_file::attempt_zipped() /mnt/mame/build/projects/sdl/mame/gmake-linux-clang/../../../../../src/emu/fileio.cpp:680:39 #5 0xe4753f7 in emu_file::open_next() /mnt/mame/build/projects/sdl/mame/gmake-linux-clang/../../../../../src/emu/fileio.cpp:358:13 #6 0xe476b85 in open /mnt/mame/build/projects/sdl/mame/gmake-linux-clang/../../../../../src/emu/fileio.cpp:313:9 #7 0xe476b85 in emu_file::open(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned int) /mnt/mame/build/projects/sdl/mame/gmake-linux-clang/../../../../../src/emu/fileio.cpp:325 #8 0xe752e41 in common_process_file(emu_options&, char const*, bool, unsigned int, rom_entry const*, osd_file::error&) /mnt/mame/build/projects/sdl/mame/gmake-linux-clang/../../../../../src/emu/romload.cpp:48:24 #9 0xe758cd5 in rom_load_manager::open_rom_file(char const*, rom_entry const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, bool) /mnt/mame/build/projects/sdl/mame/gmake-linux-clang/../../../../../src/emu/romload.cpp:574:12 #10 0xe75dedd in rom_load_manager::process_rom_entries(char const*, rom_entry const*, rom_entry const*, device_t*, bool) /mnt/mame/build/projects/sdl/mame/gmake-linux-clang/../../../../../src/emu/romload.cpp:909:28 #11 0xe76933e in rom_load_manager::process_region_list() /mnt/mame/build/projects/sdl/mame/gmake-linux-clang/../../../../../src/emu/romload.cpp:1461:5 #12 0xe76b8ef in rom_load_manager::rom_load_manager(running_machine&) /mnt/mame/build/projects/sdl/mame/gmake-linux-clang/../../../../../src/emu/romload.cpp:1533:2 #13 0xe69f947 in make_unique_clear<rom_load_manager, running_machine &> /mnt/mame/build/projects/sdl/mame/gmake-linux-clang/../../../../../src/lib/util/corealloc.h:74:38 #14 0xe69f947 in running_machine::start() /mnt/mame/build/projects/sdl/mame/gmake-linux-clang/../../../../../src/emu/machine.cpp:238 #15 0xe6a2a41 in running_machine::run(bool) /mnt/mame/build/projects/sdl/mame/gmake-linux-clang/../../../../../src/emu/machine.cpp:310:3 #16 0x8cd10e0 in mame_machine_manager::execute() /mnt/mame/build/projects/sdl/mame/gmake-linux-clang/../../../../../src/frontend/mame/mame.cpp:236:19 #17 0x8e1e0d3 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/mame/build/projects/sdl/mame/gmake-linux-clang/../../../../../src/frontend/mame/clifront.cpp:257:22 #18 0x8e20ee0 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/mame/build/projects/sdl/mame/gmake-linux-clang/../../../../../src/frontend/mame/clifront.cpp:273:3 #19 0x8cd3717 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/mame/build/projects/sdl/mame/gmake-linux-clang/../../../../../src/frontend/mame/mame.cpp:336:18 #20 0x8acddf2 in main /mnt/mame/build/projects/sdl/mame/gmake-linux-clang/../../../../../src/osd/sdl/sdlmain.cpp:216:9 #21 0x7f538709682f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2082f) previously allocated by thread T0 here: #0 0x14fd722 in operator new(unsigned long) /opt/media/clang_nightly/llvm/utils/release/final/llvm.src/projects/compiler-rt/lib/asan/asan_new_delete.cc:92:3 #1 0xf285303 in make_unique<util::(anonymous namespace)::zip_file_impl, const std::__cxx11::basic_string<char> &> /usr/lib/gcc/x86_64-linux-gnu/5.4.0/../../../../include/c++/5.4.0/bits/unique_ptr.h:765:30 #2 0xf285303 in util::archive_file::open_zip(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::unique_ptr<util::archive_file, std::default_delete<util::archive_file> >&) /mnt/mame/build/projects/sdl/mame/gmake-linux-clang/../../../../../src/lib/util/unzip.cpp:1452 #3 0xe477f7c in emu_file::attempt_zipped() /mnt/mame/build/projects/sdl/mame/gmake-linux-clang/../../../../../src/emu/fileio.cpp:680:39 #4 0xe4753f7 in emu_file::open_next() /mnt/mame/build/projects/sdl/mame/gmake-linux-clang/../../../../../src/emu/fileio.cpp:358:13 #5 0xe476b85 in open /mnt/mame/build/projects/sdl/mame/gmake-linux-clang/../../../../../src/emu/fileio.cpp:313:9 #6 0xe476b85 in emu_file::open(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned int) /mnt/mame/build/projects/sdl/mame/gmake-linux-clang/../../../../../src/emu/fileio.cpp:325 #7 0xe752e41 in common_process_file(emu_options&, char const*, bool, unsigned int, rom_entry const*, osd_file::error&) /mnt/mame/build/projects/sdl/mame/gmake-linux-clang/../../../../../src/emu/romload.cpp:48:24 #8 0xe758cd5 in rom_load_manager::open_rom_file(char const*, rom_entry const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, bool) /mnt/mame/build/projects/sdl/mame/gmake-linux-clang/../../../../../src/emu/romload.cpp:574:12 #9 0xe75dedd in rom_load_manager::process_rom_entries(char const*, rom_entry const*, rom_entry const*, device_t*, bool) /mnt/mame/build/projects/sdl/mame/gmake-linux-clang/../../../../../src/emu/romload.cpp:909:28 #10 0xe76933e in rom_load_manager::process_region_list() /mnt/mame/build/projects/sdl/mame/gmake-linux-clang/../../../../../src/emu/romload.cpp:1461:5 #11 0xe76b8ef in rom_load_manager::rom_load_manager(running_machine&) /mnt/mame/build/projects/sdl/mame/gmake-linux-clang/../../../../../src/emu/romload.cpp:1533:2 #12 0xe69f947 in make_unique_clear<rom_load_manager, running_machine &> /mnt/mame/build/projects/sdl/mame/gmake-linux-clang/../../../../../src/lib/util/corealloc.h:74:38 #13 0xe69f947 in running_machine::start() /mnt/mame/build/projects/sdl/mame/gmake-linux-clang/../../../../../src/emu/machine.cpp:238 #14 0xe6a2a41 in running_machine::run(bool) /mnt/mame/build/projects/sdl/mame/gmake-linux-clang/../../../../../src/emu/machine.cpp:310:3 #15 0x8cd10e0 in mame_machine_manager::execute() /mnt/mame/build/projects/sdl/mame/gmake-linux-clang/../../../../../src/frontend/mame/mame.cpp:236:19 #16 0x8e1e0d3 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/mame/build/projects/sdl/mame/gmake-linux-clang/../../../../../src/frontend/mame/clifront.cpp:257:22 #17 0x8e20ee0 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/mame/build/projects/sdl/mame/gmake-linux-clang/../../../../../src/frontend/mame/clifront.cpp:273:3 #18 0x8cd3717 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/mame/build/projects/sdl/mame/gmake-linux-clang/../../../../../src/frontend/mame/mame.cpp:336:18 #19 0x8acddf2 in main /mnt/mame/build/projects/sdl/mame/gmake-linux-clang/../../../../../src/osd/sdl/sdlmain.cpp:216:9 #20 0x7f538709682f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2082f) SUMMARY: AddressSanitizer: heap-use-after-free /mnt/mame/build/projects/sdl/mame/gmake-linux-clang/../../../../../src/emu/emumem.cpp:1144:41 in read_native Shadow bytes around the buggy address: 0x0c52800387e0: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd 0x0c52800387f0: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd 0x0c5280038800: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd 0x0c5280038810: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd 0x0c5280038820: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd =>0x0c5280038830: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd[fd] 0x0c5280038840: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd 0x0c5280038850: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd 0x0c5280038860: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd 0x0c5280038870: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd 0x0c5280038880: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd 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 ==118556==ABORTING |
---|---|
No.20735
Firewave Senior Tester
Nov 5, 2022, 09:07
|
This set is marked MNW so feel free to close this. 0.249 on Linux reports: ==1564==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x62900027c1fe at pc 0x7fbc184187f7 bp 0x7fffdd7b6f60 sp 0x7fffdd7b6f58 READ of size 1 at 0x62900027c1fe thread T0 #0 0x7fbc184187f6 in handler_entry_read_memory_bank<0, 0>::read(unsigned int, unsigned char) const /mnt/s/GitHub/mame/build/projects/sdl/mame/gmake-linux-clang/../../../../../src/emu/emumem_hem.cpp:79:9 #1 0x7fbbfc0a35a1 in emu::detail::handler_entry_size<0>::uX dispatch_read<1, 0, 0>(unsigned int, unsigned int, emu::detail::handler_entry_size<0>::uX, handler_entry_read<0, 0> const* const*) /mnt/s/GitHub/mame/build/projects/sdl/mame/gmake-linux-clang/../../../../../src/emu/emumem.h:1570:47 #2 0x7fbc12ad7222 in address_space_specific<1, 0, 0, (util::endianness)1>::read_native(unsigned int) /mnt/s/GitHub/mame/build/projects/sdl/mame/gmake-linux-clang/../../../../../src/emu/emumem_aspace.cpp:439:10 #3 0x7fbc12ab60b6 in address_space_specific<1, 0, 0, (util::endianness)1>::read_byte(unsigned int) /mnt/s/GitHub/mame/build/projects/sdl/mame/gmake-linux-clang/../../../../../src/emu/emumem_aspace.cpp:458:74 #4 0x7fbc0abd41a6 in m6809_base_device::device_reset() /mnt/s/GitHub/mame/build/projects/sdl/mame/gmake-linux-clang/../../../../../src/devices/cpu/m6809/m6809.cpp:242:31 #5 0x7fbc12712aef in device_t::reset() /mnt/s/GitHub/mame/build/projects/sdl/mame/gmake-linux-clang/../../../../../src/emu/device.cpp:348:2 #6 0x7fbc12712e65 in device_t::reset() /mnt/s/GitHub/mame/build/projects/sdl/mame/gmake-linux-clang/../../../../../src/emu/device.cpp:352:9 #7 0x7fbc18fa2414 in running_machine::reset_all_devices() /mnt/s/GitHub/mame/build/projects/sdl/mame/gmake-linux-clang/../../../../../src/emu/machine.cpp:1040:16 #8 0x7fbc18fa87e9 in operator() /mnt/s/GitHub/mame/build/projects/sdl/mame/gmake-linux-clang/../../../../../src/lib/util/delegate.h:765:11 #9 0x7fbc18fa87e9 in running_machine::call_notifiers(machine_notification) /mnt/s/GitHub/mame/build/projects/sdl/mame/gmake-linux-clang/../../../../../src/emu/machine.cpp:849:3 #10 0x7fbc18fa1e88 in running_machine::soft_reset(int) /mnt/s/GitHub/mame/build/projects/sdl/mame/gmake-linux-clang/../../../../../src/emu/machine.cpp:956:2 #11 0x7fbc18fa3f1f in running_machine::run(bool) /mnt/s/GitHub/mame/build/projects/sdl/mame/gmake-linux-clang/../../../../../src/emu/machine.cpp:309:3 #12 0x7fbc110b3caf in mame_machine_manager::execute() /mnt/s/GitHub/mame/build/projects/sdl/mame/gmake-linux-clang/../../../../../src/frontend/mame/mame.cpp:290:19 #13 0x7fbc1246b026 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 0x7fbc1246eb6f 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 0x7fbc110b8a8f 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 0x7fbc1929a0fb in main /mnt/s/GitHub/mame/build/projects/sdl/mame/gmake-linux-clang/../../../../../src/osd/sdl/sdlmain.cpp:191:9 #17 0x7fbbcbfd9209 in __libc_start_call_main csu/../sysdeps/nptl/libc_start_call_main.h:58:16 #18 0x7fbbcbfd92bb in __libc_start_main csu/../csu/libc-start.c:389:3 #19 0x7fbbf2c2a120 in _start (/mnt/s/GitHub/mame/mame+0x24d60120) (BuildId: 7b7aeda5846ab501) Address 0x62900027c1fe is a wild pointer inside of access range of size 0x000000000001. SUMMARY: AddressSanitizer: heap-buffer-overflow /mnt/s/GitHub/mame/build/projects/sdl/mame/gmake-linux-clang/../../../../../src/emu/emumem_hem.cpp:79:9 in handler_entry_read_memory_bank<0, 0>::read(unsigned int, unsigned char) const Shadow bytes around the buggy address: 0x0c52800477e0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x0c52800477f0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x0c5280047800: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x0c5280047810: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x0c5280047820: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa =>0x0c5280047830: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa[fa] 0x0c5280047840: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x0c5280047850: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x0c5280047860: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x0c5280047870: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x0c5280047880: 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 |