- --
Viewing Issue Advanced Details
ID | Category [?] | Severity [?] | Reproducibility | Date Submitted | Last Update |
---|---|---|---|---|---|
05871 | Crash/Freeze | Major | Always | Mar 7, 2015, 22:11 | May 5, 2016, 05:04 |
Tester | mfeingol | View Status | Public | Platform | MAME (Official Binary) |
Assigned To | Robbbert | Resolution | Fixed | OS | Windows Vista/7/8 (64-bit) |
Status [?] | Resolved | Driver | |||
Version | 0.159 | Fixed in Version | 0.174 | Build | 64-bit |
Fixed in Git Commit | Github Pull Request # | ||||
Summary | 05871: puckman: Double-free starting up puckman when using -mt | ||||
Description |
The 64-bit Windows build of Mame 0.159 is corrupting the heap and crashing due to a double-free. Heap verification flags disabled: D:\Operations\Games\Emulate\Mame>cdb -g mame64.exe puckman [...] (2858.2a80): Unknown exception - code 20474343 (first chance) Critical error detected c0000374 (2858.2740): Break instruction exception - code 80000003 (first chance) ntdll!RtlReportCriticalFailure+0x4b: 00007ffd`4b1e11ff cc int 3 0:001> k Child-SP RetAddr Call Site 00000000`0852f730 00007ffd`4b1e4482 ntdll!RtlReportCriticalFailure+0x4b 00000000`0852f840 00007ffd`4b1e5080 ntdll!RtlpHeapHandleError+0x12 00000000`0852f870 00007ffd`4b198edb ntdll!RtlpLogHeapFailure+0xa4 00000000`0852f8a0 00000000`01ea0245 ntdll!RtlFreeHeap+0x77c3b 00000000`0852f940 00000000`00fd0aa7 image00000000_00400000+0x1aa0245 Heap verification flags enabled: D:\Operations\Games\Emulate\Mame>cdb -g mame64.exe puckman [...] (179c.418c): Unknown exception - code 20474343 (first chance) =========================================================== VERIFIER STOP 0000000000000007: pid 0x179C: block already freed 0000000007BD1000 : Heap handle 0000000016ADDBF0 : Heap block 000000000000000D : Block size 0000000000000000 : =========================================================== This verifier stop is not continuable. Process will be terminated when you use the `go' debugger command. =========================================================== (179c.418c): Break instruction exception - code 80000003 (first chance) verifier!VerifierStopMessage+0x2a4: 00007ffd`3cababd4 cc int 3 0:000> k Child-SP RetAddr Call Site 00000000`00238100 00007ffd`3cab986b verifier!VerifierStopMessage+0x2a4 00000000`002381a0 00007ffd`3cab9c70 verifier!AVrfpDphReportCorruptedBlock+0x157 00000000`00238260 00007ffd`3cabec3b verifier!AVrfpDphCheckNormalHeapBlock+0xc8 00000000`002382c0 00007ffd`3cad4ac1 verifier!VerifierCheckPageHeapAllocation+0x6b 00000000`002382f0 00000000`01ea0245 verifier!AVrfpHeapFree+0x71 00000000`00238380 00000000`00fd0b51 image00000000_00400000+0x1aa0245 0:000> dd 16ADDBF0 00000000`16addbf0 f0f0f0f0 f0f0f0f0 f0f0f0f0 a0a0a0f0 00000000`16addc00 a0a0a0a0 a0a0a0a0 a0a0a0a0 f0f0f0a0 00000000`16addc10 00000000 00000000 00000000 00000000 00000000`16addc20 f0f0f0f0 f0f0f0f0 2077c1ae 2845ac8a 00000000`16addc30 abcdaaaa 00000000 07bd1000 80000000 00000000`16addc40 00000058 00000000 000000a8 00000000 00000000`16addc50 16b54fa0 00000000 16b54f00 00000000 00000000`16addc60 065108d0 00000000 f0f0f0f0 dcbaaaaa |
||||
Steps To Reproduce |
mame64 -mt -debug puckman It will crash after 5-10 seconds. |
||||
Additional Information | |||||
Github Commit | |||||
Flags | 64-bit specific | ||||
Regression Version | 0.159 | ||||
Affected Sets / Systems | puckman | ||||
Attached Files
|
mame.ini (8,105 bytes) Mar 9, 2015, 04:06 Uploaded by mfeingol [Show Content] [Hide Content]# # CORE CONFIGURATION OPTIONS # readconfig 1 writeconfig 0 # # CORE SEARCH PATH OPTIONS # rompath roms hashpath hash samplepath samples artpath artwork ctrlrpath ctrlr inipath ini fontpath . cheatpath cheat crosshairpath crosshair # # CORE OUTPUT DIRECTORY OPTIONS # cfg_directory cfg nvram_directory nvram input_directory inp state_directory sta snapshot_directory snap diff_directory diff comment_directory comments # # CORE STATE/PLAYBACK OPTIONS # state autosave 0 playback record mngwrite aviwrite wavwrite snapname %g/%i snapsize auto snapview internal snapbilinear 1 statename %g burnin 0 # # CORE PERFORMANCE OPTIONS # autoframeskip 0 frameskip 0 seconds_to_run 0 throttle 1 sleep 1 speed 1.0 refreshspeed 0 # # CORE ROTATION OPTIONS # rotate 1 ror 0 rol 0 autoror 0 autorol 0 flipx 0 flipy 0 # # CORE ARTWORK OPTIONS # artwork_crop 0 use_backdrops 1 use_overlays 1 use_bezels 0 use_cpanels 1 use_marquees 1 # # CORE SCREEN OPTIONS # brightness 1.0 contrast 1.0 gamma 1.0 pause_brightness 0.65 effect none # # CORE VECTOR OPTIONS # antialias 1 beam 1.0 flicker 0 # # CORE SOUND OPTIONS # samplerate 48000 samples 1 volume -23 # # CORE INPUT OPTIONS # coin_lockout 1 ctrlr mouse 0 joystick 1 lightgun 0 multikeyboard 0 multimouse 0 steadykey 0 ui_active 0 offscreen_reload 0 joystick_map auto joystick_deadzone 0.3 joystick_saturation 0.85 natural 0 joystick_contradictory 0 coin_impulse 0 # # CORE INPUT AUTOMATIC ENABLE OPTIONS # paddle_device keyboard adstick_device keyboard pedal_device keyboard dial_device keyboard trackball_device keyboard lightgun_device keyboard positional_device keyboard mouse_device mouse # # CORE DEBUGGING OPTIONS # verbose 0 log 0 oslog 0 debug 0 update_in_pause 0 debugscript # # CORE MISC OPTIONS # drc 1 drc_use_c 0 drc_log_uml 0 drc_log_native 0 bios cheat 1 skip_gameinfo 1 uifont default ramsize confirm_quit 0 ui_mouse 0 autoboot_command autoboot_delay 2 autoboot_script http 0 http_port 8080 http_path web console 0 # # OSD FONT OPTIONS # uifontprovider auto # # OSD DEBUGGING OPTIONS # debugger auto watchdog 0 # # OSD PERFORMANCE OPTIONS # multithreading 1 numprocessors auto bench 0 # # OSD VIDEO OPTIONS # video d3d numscreens 1 window 1 maximize 1 keepaspect 1 unevenstretch 1 waitvsync 1 syncrefresh 0 # # OSD PER-WINDOW VIDEO OPTIONS # screen auto aspect auto resolution auto view auto screen0 auto aspect0 auto resolution0 auto view0 auto screen1 auto aspect1 auto resolution1 auto view1 auto screen2 auto aspect2 auto resolution2 auto view2 auto screen3 auto aspect3 auto resolution3 auto view3 auto # # OSD FULL SCREEN OPTIONS # switchres 0 # # OSD SOUND OPTIONS # sound auto audio_latency 2 # # WINDOWS DEBUGGING OPTIONS # debugger_font "Lucida Console" debugger_font_size 9 # # WINDOWS PERFORMANCE OPTIONS # priority 0 profile 0 # # WINDOWS VIDEO OPTIONS # prescale 1 menu 0 # # DIRECTDRAW-SPECIFIC OPTIONS # hwstretch 1 # # DIRECT3D-SPECIFIC OPTIONS # filter 1 # # DIRECT3D POST-PROCESSING OPTIONS # hlsl_enable 0 hlslpath hlsl hlsl_prescale_x 0 hlsl_prescale_y 0 hlsl_preset -1 hlsl_write hlsl_snap_width 2048 hlsl_snap_height 1536 shadow_mask_alpha 0.0 shadow_mask_texture aperture.png shadow_mask_x_count 320 shadow_mask_y_count 240 shadow_mask_usize 0.09375 shadow_mask_vsize 0.109375 curvature 0.0 pincushion 0.0 scanline_alpha 0.0 scanline_size 1.0 scanline_height 0.7 scanline_bright_scale 1.0 scanline_bright_offset 0.0 scanline_jitter 0.0 defocus 0.0,0.0 converge_x 0.0,0.0,0.0 converge_y 0.0,0.0,0.0 radial_converge_x 0.0,0.0,0.0 radial_converge_y 0.0,0.0,0.0 red_ratio 1.0,0.0,0.0 grn_ratio 0.0,1.0,0.0 blu_ratio 0.0,0.0,1.0 saturation 1.0 offset 0.0,0.0,0.0 scale 1.0,1.0,1.0 power 1.0,1.0,1.0 floor 0.0,0.0,0.0 phosphor_life 0.0,0.0,0.0 # # NTSC POST-PROCESSING OPTIONS # yiq_enable 0 yiq_cc 3.59754545 yiq_a 0.5 yiq_b 0.5 yiq_o 0.0 yiq_p 1.0 yiq_n 1.0 yiq_y 6.0 yiq_i 1.2 yiq_q 0.6 yiq_scan_time 52.6 yiq_phase_count 2 # # VECTOR POST-PROCESSING OPTIONS # vector_length_scale 0.8 vector_length_ratio 500.0 # # BLOOM POST-PROCESSING OPTIONS # vector_bloom_scale 0.3 raster_bloom_scale 0.225 bloom_lvl0_weight 1.0 bloom_lvl1_weight 0.21 bloom_lvl2_weight 0.19 bloom_lvl3_weight 0.17 bloom_lvl4_weight 0.15 bloom_lvl5_weight 0.14 bloom_lvl6_weight 0.13 bloom_lvl7_weight 0.12 bloom_lvl8_weight 0.11 bloom_lvl9_weight 0.10 bloom_lvl10_weight 0.09 # # FULL SCREEN OPTIONS # triplebuffer 1 full_screen_brightness 1.0 full_screen_contrast 1.0 full_screen_gamma 1.0 # # INPUT DEVICE OPTIONS # dual_lightgun 0 | ||||
Relationships
There are no relationship linked to this issue. |
Notes
9
No.11497
Osso Moderator
Mar 8, 2015, 06:19
|
Can't reproduce on WIN8 64bit with MAME64 0.159. |
---|---|
No.11498
B2K24 Senior Tester
Mar 8, 2015, 22:17
|
Doesn't seem to repo here either using -debug and pressing F5 to run it. |
No.11499
mfeingol Tester
Mar 9, 2015, 04:07
|
Hi. Can you please retry with the mame.ini I just uploaded? If I run puckman without this mame.ini, it appears to work alright. But if I use this mame.ini, it crashes. |
No.11500
Mamesick Senior Tester
Mar 9, 2015, 07:42
|
multithreading 1 It crashes with -mt enabled here. WIN7 64-bit. Also have a look here: http://mame32fx.altervista.org/forum/viewtopic.php?f=3&t=170 It seems we have a serious issue with multithreading enabled in 0.159 |
No.11501
Osso Moderator
Mar 9, 2015, 08:54
|
even using mt, I still can't reproduce it. |
No.11502
mfeingol Tester
Mar 9, 2015, 16:49
|
Confirmed the crash occurs with multithreading 1, and does not occur with multithreading 0. Is there a PDB file for mame64.exe available somewhere? |
No.11503
B2K24 Senior Tester
Mar 10, 2015, 01:50
|
I get a crash now when inserting -mt at the command line and using a debug build mamed -mt -debug puckman ----------------------------------------------------- Exception at EIP=026F60FA (osd_free(void*)+0x000a): ACCESS VIOLATION While attempting to read memory at 08AC1FEF ----------------------------------------------------- EAX=08AC1FF3 EBX=08AC1FF3 ECX=06D70A70 EDX=00000000 ESI=00320338 EDI=00000000 EBP=0028BA98 ESP=0028BA80 ----------------------------------------------------- Stack crawl: 0028BA98: 026F60FA (osd_free(void*)+0x000a) 0028BB18: 015E7A01 (win_monitor_info::aspect()+0x0081) 0028BB78: 0160A589 (d3d::renderer::get_primitives()+0x0109) 0028BBE8: 015ECEE7 (win_window_info::update()+0x0147) 0028BC68: 015E7C6F (windows_osd_interface::update(bool)+0x006f) 0028BD18: 023C8E70 (video_manager::frame_update(bool)+0x0140) 0028BDF8: 02350E35 (ui_manager::display_startup_screens(bool, bool)+0x0275) 0028BE98: 0229F6D5 (running_machine::run(bool)+0x01f5) 0028F898: 022BAAE5 (machine_manager::execute()+0x03d5) 0028FA78: 0238978F (cli_frontend::execute(int, char**)+0x156f) 0028FE98: 015E648F (utf8_main(int, char**)+0x029f) 0028FEC8: 026F52F1 (wmain+0x0071) 0028FF88: 004013F0 (__tmainCRTStartup+0x0270) 0028FF94: 760B339A (BaseThreadInitThunk+0x0012) 0028FFD4: 776FBF32 (RtlInitializeExceptionChain+0x0063) 0028FFEC: 776FBF05 (RtlInitializeExceptionChain+0x0036) |
No.11533
mfeingol Tester
Mar 21, 2015, 18:30
|
Hi. Any updates on tracking down the issue? Thanks. |
No.12602
Robbbert Senior Tester
May 5, 2016, 05:04
|
-mt no longer exists, so resolving. |