Segfault or Abort Trap when loading whdload zip
Created by: zach-morris
Attempting to load a whdload game (in zip format) fails on OSX Mojave. Attempting to load the same game in adf format works normally. Retroarch crashes with either Segmentation fault: 11 or Abort trap: 6
Log for whdload attempt:
xxxs-MacBook-Pro:~ xxx$ "/Applications/RetroArch.app/Contents/MacOS/RetroArch" -L "/Users/xxx/Documents/RetroArch/cores/puae_libretro.dylib" "/Users/xxx/Downloads/1000Miglia_v1.1b.zip"
[INFO] [recording] twitch streaming key empty[INFO] Redirecting save file to "/Users/xxx/Documents/RetroArch/saves/1000Miglia_v1.1b.srm".
[INFO] Redirecting savestate to "/Users/xxx/Documents/RetroArch/states/1000Miglia_v1.1b.state".
[INFO] === Build =======================================
Capabilities: MMX MMXEXT SSE1 SSE2 SSE3 SSSE3 SSE4 SSE4.2 AVX AVX2 AES
Built: Oct 22 2018
[INFO] Version: 1.7.5
[INFO] =================================================
[INFO] Loading dynamic libretro core from: "/Users/xxx/Documents/RetroArch/cores/puae_libretro.dylib"
...
Game '/Users/xxx/Downloads/1000Miglia_v1.1b.zip' is a disk, a hard drive image or a m3u file.
Generating temporary uae config file '/Users/xxx/Documents/RetroArch/saves/puae_libretro.uae'.
No machine specified in filename '/Users/xxx/Downloads/1000Miglia_v1.1b.zip'. We will use the default configuration.
Disk (1) inserted into drive A : /Users/xxx/Downloads/1000Miglia_v1.1b.zip
[libretro-uae]: resolution selected: 360x284 (default: 360x284)
...
------------------------------------------------------------------------------------
P-UAE 2.6.1
Git Commit: 0186c1b16f7181ffa02d73e6920d3180ce457c46
Build date: Jan 1 2019 08:02:49
------------------------------------------------------------------------------------
Copyright 1995-2002 Bernd Schmidt
1999-2013 Toni Wilen
2003-2007 Richard Drummond
2006-2013 Mustafa 'GnoStiC' Tufan
See the source for a full list of contributors.
This is free software; see the file COPYING for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
------------------------------------------------------------------------------------
Enumerating display devices..
Sorting devices and modes..
done
load config '/Users/xxx/Documents/RetroArch/saves/puae_libretro.uae':0
Opening cfgfile '/Users/xxx/Documents/RetroArch/saves/puae_libretro.uae': OK
obsolete config entry 'gfx_correct_aspect'
Entered action_replay_load ()
ROM loader.. (<none>)
Known ROM 'KS ROM v3.1 (A500,A600,A2000)' loaded
ROM loader end
memory init end
Building CPU table for configuration: 68000 prefetch 24-bit
1883 CPU functions
Building CPU, 44316 opcodes (0 1 1)
CPU=68000, FPU=0, MMU=0, JIT=CPU=0.
setup_soundINIT SOUND
memory init end
Reset at 00000000. Chipset mask = 00000003
00000000 2048K/2 = 1024K Chip memory
00200000 10176K/0 = 10176K <none>
00BF0000 64K/0 = 64K CIA
00C00000 512K/1 = 512K Slow memory
00C80000 1024K/0 = 1024K Custom chipset
00D80000 256K/0 = 256K <none>
00DC0000 64K/0 = 64K Battery backed up clock (none)
00DD0000 64K/0 = 64K <none>
00DE0000 128K/0 = 128K Custom chipset
00E00000 512K/1 = 512K Kickstart ROM (FC24AE0D)
=KS ROM v3.1 (A500,A600,A2000) rev 40.63 (512k)
00E80000 64K/0 = 64K Autoconfig
00E90000 960K/0 = 960K <none>
00F80000 512K/1 = 512K Kickstart ROM (FC24AE0D)
=KS ROM v3.1 (A500,A600,A2000) rev 40.63 (512k)
PAL mode V=49.9201Hz H=15625.0881Hz (227x312+1) IDX=10 (PAL) D=0 RTG=0/0
hardreset, memory cleared
inputdevice change 'retro pad0':1->0
Illegal instruction: 4e7b at 00F80C38 -> 00F80CC0
[INFO] [GL]: VSync => off
Fastcard: mapped @$200000: 4MB fast memory
Card 1 (ZorroII) done.
Memory map after autoconfig:
00000000 2048K/2 = 1024K Chip memory
00200000 4096K/1 = 4096K Fast memory
00600000 6080K/0 = 6080K <none>
00BF0000 64K/0 = 64K CIA
00C00000 512K/1 = 512K Slow memory
00C80000 1024K/0 = 1024K Custom chipset
00D80000 256K/0 = 256K <none>
00DC0000 64K/0 = 64K Battery backed up clock (RF5C01A)
00DD0000 64K/0 = 64K <none>
00DE0000 128K/0 = 128K Custom chipset
00E00000 512K/1 = 512K Kickstart ROM (FC24AE0D)
=KS ROM v3.1 (A500,A600,A2000) rev 40.63 (512k)
00E80000 1024K/0 = 1024K <none>
00F80000 512K/1 = 512K Kickstart ROM (FC24AE0D)
=KS ROM v3.1 (A500,A600,A2000) rev 40.63 (512k)
Abort trap: 6
Log for adf load (successful):
xxxs-MacBook-Pro:~ xxx$ "/Applications/RetroArch.app/Contents/MacOS/RetroArch" -L "/Users/xxx/Documents/RetroArch/cores/puae_libretro.dylib" "/Users/xxx/Downloads/1000Miglia_v1.1b.adf"
[INFO] [recording] twitch streaming key empty[INFO] Redirecting save file to "/Users/xxx/Documents/RetroArch/saves/1000Miglia_v1.1b.srm".
[INFO] Redirecting savestate to "/Users/xxx/Documents/RetroArch/states/1000Miglia_v1.1b.state".
[INFO] === Build =======================================
Capabilities: MMX MMXEXT SSE1 SSE2 SSE3 SSSE3 SSE4 SSE4.2 AVX AVX2 AES
Built: Oct 22 2018
[INFO] Version: 1.7.5
[INFO] =================================================
[INFO] Loading dynamic libretro core from: "/Users/xxx/Documents/RetroArch/cores/puae_libretro.dylib"
...
Game '/Users/xxx/Downloads/1000Miglia_v1.1b.adf' is a disk, a hard drive image or a m3u file.
Generating temporary uae config file '/Users/xxx/Documents/RetroArch/saves/puae_libretro.uae'.
No machine specified in filename '/Users/xxx/Downloads/1000Miglia_v1.1b.adf'. We will use the default configuration.
Disk (1) inserted into drive A : /Users/xxx/Downloads/1000Miglia_v1.1b.adf
[libretro-uae]: resolution selected: 360x284 (default: 360x284)
...
------------------------------------------------------------------------------------
P-UAE 2.6.1
Git Commit: 0186c1b16f7181ffa02d73e6920d3180ce457c46
Build date: Jan 1 2019 08:02:49
------------------------------------------------------------------------------------
Copyright 1995-2002 Bernd Schmidt
1999-2013 Toni Wilen
2003-2007 Richard Drummond
2006-2013 Mustafa 'GnoStiC' Tufan
See the source for a full list of contributors.
This is free software; see the file COPYING for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
------------------------------------------------------------------------------------
Enumerating display devices..
Sorting devices and modes..
done
load config '/Users/xxx/Documents/RetroArch/saves/puae_libretro.uae':0
Opening cfgfile '/Users/xxx/Documents/RetroArch/saves/puae_libretro.uae': OK
obsolete config entry 'gfx_correct_aspect'
Entered action_replay_load ()
ROM loader.. (<none>)
Known ROM 'KS ROM v3.1 (A500,A600,A2000)' loaded
ROM loader end
memory init end
Building CPU table for configuration: 68000 prefetch 24-bit
1883 CPU functions
Building CPU, 44316 opcodes (0 1 1)
CPU=68000, FPU=0, MMU=0, JIT=CPU=0.
setup_soundINIT SOUND
memory init end
Reset at 00000000. Chipset mask = 00000003
00000000 2048K/2 = 1024K Chip memory
00200000 10176K/0 = 10176K <none>
00BF0000 64K/0 = 64K CIA
00C00000 512K/1 = 512K Slow memory
00C80000 1024K/0 = 1024K Custom chipset
00D80000 256K/0 = 256K <none>
00DC0000 64K/0 = 64K Battery backed up clock (none)
00DD0000 64K/0 = 64K <none>
00DE0000 128K/0 = 128K Custom chipset
00E00000 512K/1 = 512K Kickstart ROM (FC24AE0D)
=KS ROM v3.1 (A500,A600,A2000) rev 40.63 (512k)
00E80000 64K/0 = 64K Autoconfig
00E90000 960K/0 = 960K <none>
00F80000 512K/1 = 512K Kickstart ROM (FC24AE0D)
=KS ROM v3.1 (A500,A600,A2000) rev 40.63 (512k)
PAL mode V=49.9201Hz H=15625.0881Hz (227x312+1) IDX=10 (PAL) D=0 RTG=0/0
hardreset, memory cleared
inputdevice change 'retro pad0':1->0
Illegal instruction: 4e7b at 00F80C38 -> 00F80CC0
[INFO] [GL]: VSync => off
Fastcard: mapped @$200000: 4MB fast memory
Card 1 (ZorroII) done.
Memory map after autoconfig:
00000000 2048K/2 = 1024K Chip memory
00200000 4096K/1 = 4096K Fast memory
00600000 6080K/0 = 6080K <none>
00BF0000 64K/0 = 64K CIA
00C00000 512K/1 = 512K Slow memory
00C80000 1024K/0 = 1024K Custom chipset
00D80000 256K/0 = 256K <none>
00DC0000 64K/0 = 64K Battery backed up clock (RF5C01A)
00DD0000 64K/0 = 64K <none>
00DE0000 128K/0 = 128K Custom chipset
00E00000 512K/1 = 512K Kickstart ROM (FC24AE0D)
=KS ROM v3.1 (A500,A600,A2000) rev 40.63 (512k)
00E80000 1024K/0 = 1024K <none>
00F80000 512K/1 = 512K Kickstart ROM (FC24AE0D)
=KS ROM v3.1 (A500,A600,A2000) rev 40.63 (512k)