Viewing Issue Advanced Details
ID Category [?] Severity [?] Reproducibility Date Submitted Last Update
07549 Misc. Critical (emulator) Always Jan 14, 2020, 22:15 Nov 5, 2022, 09:30
Tester Firewave View Status Public Platform MAME (Self-compiled)
Assigned To Resolution Fixed OS Windows 10 (64-bit)
Status [?] Resolved Driver
Version 0.217 Fixed in Version Build 32-bit
Fixed in Git Commit Github Pull Request #
Summary 07549: UI ( tab menu): AddressSanitizer: new-delete-type-mismatch when opening software selection
Description
=================================================================
==1556==ERROR: AddressSanitizer: new-delete-type-mismatch on 0x1a25d2d0 in thread T0:
  object passed to delete has wrong type:
  size of the allocated type:   40 bytes;
  size of the deallocated type: 24 bytes.
==1556==WARNING: Failed to use and restart external symbolizer!
    #0 0xa93189 in operator delete D:\agent\_work\s\src\vctools\crt\asan\llvm\compiler-rt\lib\asan\asan_new_delete.cc:172
    #1 0x9d768fb in util::`anonymous namespace'::zippath_resolve s:\dev\mame0217\src\lib\util\zippath.cpp:266
    #2 0x9d74101 in util::zippath_directory::open s:\dev\mame0217\src\lib\util\zippath.cpp:585
    #3 0x6f8461e in ui::menu_control_device_image::menu_control_device_image+0x38e (S:\dev\mame0217\build\projects\windows\mame\vs2019\..\..\..\..\..\mame.exe+0x71a461e)
    #4 0x6f09d38 in ui::menu_file_manager::handle+0x308 (S:\dev\mame0217\build\projects\windows\mame\vs2019\..\..\..\..\..\mame.exe+0x7129d38)
    #5 0x6f0429a in ui::menu::ui_handler+0x25a (S:\dev\mame0217\build\projects\windows\mame\vs2019\..\..\..\..\..\mame.exe+0x712429a)
    #6 0x6e70022 in std::_Func_impl_no_alloc<std::_Binder<std::_Unforced,unsigned int (__cdecl*)(render_container &,mame_ui_manager &),std::_Ph<1> const &,std::reference_wrapper<mame_ui_manager> >,unsigned int,render_container &>::_Do_call+0x42 (S:\dev\mame0217\build\projects\windows\mame\vs2019\..\..\..\..\..\mame.exe+0x7090022)
    #7 0x6e7e0f6 in mame_ui_manager::update_and_render+0x126 (S:\dev\mame0217\build\projects\windows\mame\vs2019\..\..\..\..\..\mame.exe+0x709e0f6)
    #8 0x6c7ac25 in emulator_info::draw_user_interface+0x75 (S:\dev\mame0217\build\projects\windows\mame\vs2019\..\..\..\..\..\mame.exe+0x6e9ac25)
    #9 0x5f67db8 in video_manager::frame_update s:\dev\mame0217\src\emu\video.cpp:229
    #10 0x5ada652 in screen_device::vblank_begin s:\dev\mame0217\src\emu\screen.cpp:1660
    #11 0x5ad2975 in screen_device::device_timer s:\dev\mame0217\src\emu\screen.cpp:959
    #12 0x5dc86dd in emu_timer::device_timer_expired s:\dev\mame0217\src\emu\schedule.cpp:317
    #13 0x5dc8d7c in device_scheduler::execute_timers s:\dev\mame0217\src\emu\schedule.cpp:907
    #14 0x5dcbdfe in device_scheduler::timeslice s:\dev\mame0217\src\emu\schedule.cpp:544
    #15 0x5dda220 in running_machine::run s:\dev\mame0217\src\emu\machine.cpp:372
    #16 0x6c7b15c in mame_machine_manager::execute+0x52c (S:\dev\mame0217\build\projects\windows\mame\vs2019\..\..\..\..\..\mame.exe+0x6e9b15c)
    #17 0x6c9d54a in cli_frontend::start_execution+0x56a (S:\dev\mame0217\build\projects\windows\mame\vs2019\..\..\..\..\..\mame.exe+0x6ebd54a)
    #18 0x6c952d4 in cli_frontend::execute+0x174 (S:\dev\mame0217\build\projects\windows\mame\vs2019\..\..\..\..\..\mame.exe+0x6eb52d4)
    #19 0x6c7c0b9 in emulator_info::start_frontend+0x59 (S:\dev\mame0217\build\projects\windows\mame\vs2019\..\..\..\..\..\mame.exe+0x6e9c0b9)
    #20 0x9f46a2e in main s:\dev\mame0217\src\osd\windows\winmain.cpp:323
    #21 0x9cea0bd in __scrt_common_main_seh d:\agent\_work\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:288
    #22 0x77016358 in BaseThreadInitThunk+0x18 (C:\WINDOWS\System32\KERNEL32.DLL+0x6b816358)
    #23 0x77377b73 in RtlGetAppContainerNamedObjectPath+0xe3 (C:\WINDOWS\SYSTEM32\ntdll.dll+0x4b2e7b73)
    #24 0x77377b43 in RtlGetAppContainerNamedObjectPath+0xb3 (C:\WINDOWS\SYSTEM32\ntdll.dll+0x4b2e7b43)

0x1a25d2d0 is located 0 bytes inside of 40-byte region [0x1a25d2d0,0x1a25d2f8)
allocated by thread T0 here:
    #0 0xa92e7d in operator new D:\agent\_work\s\src\vctools\crt\asan\llvm\compiler-rt\lib\asan\asan_new_delete.cc:99
    #1 0x3941b08 in osd_stat s:\dev\mame0217\src\osd\modules\file\winfile.cpp:382
    #2 0x9d76789 in util::`anonymous namespace'::zippath_resolve s:\dev\mame0217\src\lib\util\zippath.cpp:251
    #3 0x9d74101 in util::zippath_directory::open s:\dev\mame0217\src\lib\util\zippath.cpp:585
    #4 0x6f8461e in ui::menu_control_device_image::menu_control_device_image+0x38e (S:\dev\mame0217\build\projects\windows\mame\vs2019\..\..\..\..\..\mame.exe+0x71a461e)
    #5 0x6f09d38 in ui::menu_file_manager::handle+0x308 (S:\dev\mame0217\build\projects\windows\mame\vs2019\..\..\..\..\..\mame.exe+0x7129d38)
    #6 0x6f0429a in ui::menu::ui_handler+0x25a (S:\dev\mame0217\build\projects\windows\mame\vs2019\..\..\..\..\..\mame.exe+0x712429a)
    #7 0x6e70022 in std::_Func_impl_no_alloc<std::_Binder<std::_Unforced,unsigned int (__cdecl*)(render_container &,mame_ui_manager &),std::_Ph<1> const &,std::reference_wrapper<mame_ui_manager> >,unsigned int,render_container &>::_Do_call+0x42 (S:\dev\mame0217\build\projects\windows\mame\vs2019\..\..\..\..\..\mame.exe+0x7090022)
    #8 0x6e7e0f6 in mame_ui_manager::update_and_render+0x126 (S:\dev\mame0217\build\projects\windows\mame\vs2019\..\..\..\..\..\mame.exe+0x709e0f6)
    #9 0x6c7ac25 in emulator_info::draw_user_interface+0x75 (S:\dev\mame0217\build\projects\windows\mame\vs2019\..\..\..\..\..\mame.exe+0x6e9ac25)
    #10 0x5f67db8 in video_manager::frame_update s:\dev\mame0217\src\emu\video.cpp:229
    #11 0x5ada652 in screen_device::vblank_begin s:\dev\mame0217\src\emu\screen.cpp:1660
    #12 0x5ad2975 in screen_device::device_timer s:\dev\mame0217\src\emu\screen.cpp:959
    #13 0x5dc86dd in emu_timer::device_timer_expired s:\dev\mame0217\src\emu\schedule.cpp:317
    #14 0x5dc8d7c in device_scheduler::execute_timers s:\dev\mame0217\src\emu\schedule.cpp:907
    #15 0x5dcbdfe in device_scheduler::timeslice s:\dev\mame0217\src\emu\schedule.cpp:544
    #16 0x5dda220 in running_machine::run s:\dev\mame0217\src\emu\machine.cpp:372
    #17 0x6c7b15c in mame_machine_manager::execute+0x52c (S:\dev\mame0217\build\projects\windows\mame\vs2019\..\..\..\..\..\mame.exe+0x6e9b15c)
    #18 0x6c9d54a in cli_frontend::start_execution+0x56a (S:\dev\mame0217\build\projects\windows\mame\vs2019\..\..\..\..\..\mame.exe+0x6ebd54a)
    #19 0x6c952d4 in cli_frontend::execute+0x174 (S:\dev\mame0217\build\projects\windows\mame\vs2019\..\..\..\..\..\mame.exe+0x6eb52d4)
    #20 0x6c7c0b9 in emulator_info::start_frontend+0x59 (S:\dev\mame0217\build\projects\windows\mame\vs2019\..\..\..\..\..\mame.exe+0x6e9c0b9)
    #21 0x9f46a2e in main s:\dev\mame0217\src\osd\windows\winmain.cpp:323
    #22 0x9cea0bd in __scrt_common_main_seh d:\agent\_work\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:288
    #23 0x77016358 in BaseThreadInitThunk+0x18 (C:\WINDOWS\System32\KERNEL32.DLL+0x6b816358)
    #24 0x77377b73 in RtlGetAppContainerNamedObjectPath+0xe3 (C:\WINDOWS\SYSTEM32\ntdll.dll+0x4b2e7b73)
    #25 0x77377b43 in RtlGetAppContainerNamedObjectPath+0xb3 (C:\WINDOWS\SYSTEM32\ntdll.dll+0x4b2e7b43)

SUMMARY: AddressSanitizer: new-delete-type-mismatch D:\agent\_work\s\src\vctools\crt\asan\llvm\compiler-rt\lib\asan\asan_new_delete.cc:172 in operator delete
==1556==HINT: if you don't care about these errors you may set ASAN_OPTIONS=new_delete_type_mismatch=0
==1556==ABORTING
Steps To Reproduce - run psj
- go to "File Manager"
- go to "cdrom (cdrm)"
Additional Information
Github Commit
Flags
Regression Version
Affected Sets / Systems UI (tab menu)
Attached Files
 
Relationships
There are no relationship linked to this issue.
Notes
2
User avatar
No.20104
Robbbert
Senior Tester
Apr 28, 2022, 12:12
Is this still an issue? The UI has been updated many times since this report was lodged, and it doesn't crash for me.
User avatar
No.20744
Firewave
Senior Tester
Nov 5, 2022, 09:30
No ASAN error reported with 0.249 on Linux.