BizHawk icon indicating copy to clipboard operation
BizHawk copied to clipboard

[PSX][Nymashock] complete crash when sony logo is built for Toshinden3

Open Xyrio opened this issue 9 months ago • 15 comments

Summary

from the very start around 2 seconds into the animation that creates the sony logo BizHawk crashes. it works in BizHawk 2.8 but not in 2.9.1.

Repro

load rom Battle Arena Toshinden 3 (USA) (En,Ja).cue with default Bizhawk 2.9.1 and Nymashock settings.

Output

no error dialog, total crash.

Host env.

  • BizHawk 2.9.1; Win7 Pro; Intel Core2 Quad Q9300

i am using the octoshock core instead as a workaround. it works fine for this game. i havent seen any problems so far.

Xyrio avatar Oct 28 '23 22:10 Xyrio

CNR in 2.9.1 on Linux. My .cue:

FILE "Battle Arena Toshinden 3 (USA) (En,Ja) (Track 1).bin" BINARY
  TRACK 01 MODE2/2352
    INDEX 01 00:00:00
FILE "Battle Arena Toshinden 3 (USA) (En,Ja) (Track 2).bin" BINARY
  TRACK 02 AUDIO
    INDEX 00 00:00:00
    INDEX 01 00:02:00

Naive checksums (from command-line):

e7785da01e391f84ccc878d88655321f0fc4f246  Battle Arena Toshinden 3 (USA) (En,Ja) (Track 1).bin
5c2955970cd394b60dec4bed91f7353c2968cb4d  Battle Arena Toshinden 3 (USA) (En,Ja) (Track 2).bin

Redump checksums (PSX > Hash Discs when Octoshock is loaded):

F403F500 Battle Arena Toshinden 3 (USA) (En,Ja).cue

YoshiRulz avatar Oct 29 '23 12:10 YoshiRulz

fyi same sha1 checksum for me

Xyrio avatar Oct 30 '23 02:10 Xyrio

What BIOS files are you using (along with @YoshiRulz too)

CasualPokePlayer avatar Oct 31 '23 00:10 CasualPokePlayer

https://github.com/TASEmulators/BizHawk/blob/151908104e129357e81eeebde927d71e57067af9/src/BizHawk.Emulation.Common/Database/FirmwareDatabase.cs#L379

YoshiRulz avatar Oct 31 '23 01:10 YoshiRulz

CNR on 2.9.1 on Windows 10 (have same exact hashes as Yoshi).

I could only guess different BIOS here? If it's not that, different settings? (are you using default settings or non-default? Does it occur the same with a default config.ini?).

CasualPokePlayer avatar Oct 31 '23 09:10 CasualPokePlayer

using recommended bios: Bizhawk v2.9 ALL Firmwares. hash matches yoshirulz's.

Xyrio avatar Nov 03 '23 17:11 Xyrio

Does it occur if you delete the config.ini (well, probably back it up someplace) and load it up with the new default config.ini

CasualPokePlayer avatar Nov 03 '23 17:11 CasualPokePlayer

as written in first post it is default config. i delete config.ini and it crashes.

Xyrio avatar Nov 03 '23 17:11 Xyrio

analysing the crash with windbg

command view
Microsoft (R) Windows Debugger Version 6.12.0002.633 AMD64
Copyright (c) Microsoft Corporation. All rights reserved.

*** wait with pending attach
Symbol search path is: *** Invalid ***
****************************************************************************
* Symbol loading may be unreliable without a symbol search path.           *
* Use .symfix to have the debugger choose a symbol path.                   *
* After setting your symbol path, use .reload to refresh symbol locations. *
****************************************************************************
Executable search path is: 
ModLoad: 00000000`003d0000 00000000`00852000   S:\GAMEs\_emu\_multiEmu\BizHawk-2.9.1\EmuHawk.exe
ModLoad: 00000000`77b50000 00000000`77cef000   C:\Windows\SYSTEM32\ntdll.dll
ModLoad: 000007fe`efee0000 000007fe`eff4f000   C:\Windows\SYSTEM32\MSCOREE.DLL
ModLoad: 00000000`77930000 00000000`77a4f000   C:\Windows\system32\KERNEL32.dll
ModLoad: 000007fe`fd8c0000 000007fe`fd927000   C:\Windows\system32\KERNELBASE.dll
ModLoad: 000007fe`fef00000 000007fe`fefdb000   C:\Windows\system32\ADVAPI32.dll
ModLoad: 000007fe`ff9c0000 000007fe`ffa5f000   C:\Windows\system32\msvcrt.dll
ModLoad: 000007fe`ff810000 000007fe`ff82f000   C:\Windows\SYSTEM32\sechost.dll
ModLoad: 000007fe`ff6e0000 000007fe`ff80c000   C:\Windows\system32\RPCRT4.dll
ModLoad: 000007fe`efe30000 000007fe`efed9000   C:\Windows\Microsoft.NET\Framework64\v4.0.30319\mscoreei.dll
ModLoad: 000007fe`fcc00000 000007fe`fcc03000   C:\Windows\system32\api-ms-win-core-synch-l1-2-0.DLL
ModLoad: 000007fe`ff940000 000007fe`ff9b1000   C:\Windows\system32\SHLWAPI.dll
ModLoad: 000007fe`ff670000 000007fe`ff6d7000   C:\Windows\system32\GDI32.dll
ModLoad: 00000000`77a50000 00000000`77b4b000   C:\Windows\system32\USER32.dll
ModLoad: 000007fe`fdb60000 000007fe`fdb6e000   C:\Windows\system32\LPK.dll
ModLoad: 000007fe`fee20000 000007fe`feeeb000   C:\Windows\system32\USP10.dll
ModLoad: 000007fe`fedf0000 000007fe`fee1e000   C:\Windows\system32\IMM32.DLL
ModLoad: 000007fe`ff830000 000007fe`ff93b000   C:\Windows\system32\MSCTF.dll
ModLoad: 000007fe`fc8c0000 000007fe`fc8cc000   C:\Windows\system32\VERSION.dll
ModLoad: 000007fe`d6860000 000007fe`d7327000   C:\Windows\Microsoft.NET\Framework64\v4.0.30319\clr.dll
ModLoad: 000007fe`fa2f0000 000007fe`fa306000   C:\Windows\system32\VCRUNTIME140_CLR0400.dll
ModLoad: 000007fe`efd70000 000007fe`efe2d000   C:\Windows\system32\ucrtbase_clr0400.dll
ModLoad: 000007fe`d0f20000 000007fe`d2520000   C:\Windows\assembly\NativeImages_v4.0.30319_64\mscorlib\7fab566d563ec7b74b7696d436ef82d6\mscorlib.ni.dll
ModLoad: 000007fe`ffc40000 000007fe`ffe3f000   C:\Windows\system32\ole32.dll
ModLoad: 000007fe`fd4e0000 000007fe`fd4ef000   C:\Windows\system32\CRYPTBASE.dll
ModLoad: 000007fe`fb240000 000007fe`fb296000   C:\Windows\system32\uxtheme.dll
ModLoad: 000007fe`efac0000 000007fe`efc0e000   C:\Windows\Microsoft.NET\Framework64\v4.0.30319\clrjit.dll
ModLoad: 000007fe`d2eb0000 000007fe`d3b20000   C:\Windows\assembly\NativeImages_v4.0.30319_64\System\b4f96cff0dcbbbafc191fb13a8166383\System.ni.dll
ModLoad: 000007fe`ef8c0000 000007fe`efab4000   C:\Windows\assembly\NativeImages_v4.0.30319_64\System.Drawing\f7aa008075f1441ded82188fa5cde5e9\System.Drawing.ni.dll
ModLoad: 000007fe`cfe70000 000007fe`d0f15000   C:\Windows\assembly\NativeImages_v4.0.30319_64\System.Windows.Forms\f55f4ff42a52b04561c6e19f8c1363b9\System.Windows.Forms.ni.dll
ModLoad: 000007fe`f4290000 000007fe`f42a6000   C:\Windows\Microsoft.NET\Framework64\v4.0.30319\nlssorting.dll
ModLoad: 000007fe`fcff0000 000007fe`fd008000   C:\Windows\system32\CRYPTSP.dll
ModLoad: 000007fe`fcb10000 000007fe`fcb57000   C:\Windows\system32\rsaenh.dll
ModLoad: 000007fe`fb020000 000007fe`fb239000   C:\Windows\WinSxS\amd64_microsoft.windows.gdiplus_6595b64144ccf1df_1.1.7601.24542_none_1459e0f08b91b367\gdiplus.dll
ModLoad: 000007fe`facb0000 000007fe`fae11000   C:\Windows\system32\WindowsCodecs.dll
ModLoad: 000007fe`fda80000 000007fe`fdb5b000   C:\Windows\system32\oleaut32.dll
ModLoad: 000007fe`fd5f0000 000007fe`fd604000   C:\Windows\system32\RpcRtRemote.dll
ModLoad: 000007fe`cf3f0000 000007fe`cfe65000   C:\Windows\assembly\NativeImages_v4.0.30319_64\System.Core\6d2b3ec7c816fa571e3386dee4d9441c\System.Core.ni.dll
ModLoad: 000007fe`ef4b0000 000007fe`ef5e3000   C:\Windows\assembly\NativeImages_v4.0.30319_64\System.Configuration\f9510d0dd8edf16c84d0497e438c04a7\System.Configuration.ni.dll
ModLoad: 000007fe`d2600000 000007fe`d2eab000   C:\Windows\assembly\NativeImages_v4.0.30319_64\System.Xml\1f9f54067fa94d3e748e5ccfe812fbe2\System.Xml.ni.dll
ModLoad: 000007fe`fdc70000 000007fe`fe9fb000   C:\Windows\system32\shell32.dll
ModLoad: 000007fe`fd6a0000 000007fe`fd6af000   C:\Windows\system32\profapi.dll
ModLoad: 000007fe`fd010000 000007fe`fd032000   C:\Windows\system32\bcrypt.dll
ModLoad: 000007fe`ef290000 000007fe`ef2e1000   C:\Windows\assembly\NativeImages_v4.0.30319_64\System.Numerics\0700d8248797588288d5ebde98740dfe\System.Numerics.ni.dll
ModLoad: 000007fe`d8070000 000007fe`d83b4000   C:\Windows\assembly\NativeImages_v4.0.30319_64\System.Runteb92aa12#\48c9de7e8a063c7673d2377c1c7741eb\System.Runtime.Serialization.ni.dll
ModLoad: 000007fe`cdc70000 000007fe`ce5e0000   C:\Windows\assembly\NativeImages_v4.0.30319_64\System.Data\d05683b2ed9291c6ef9f560fd2a6cedb\System.Data.ni.dll
ModLoad: 000007fe`eb480000 000007fe`eb7e9000   C:\Windows\Microsoft.Net\assembly\GAC_64\System.Data\v4.0_4.0.0.0__b77a5c561934e089\System.Data.dll
ModLoad: 000007fe`fefe0000 000007fe`ff02d000   C:\Windows\system32\WS2_32.dll
ModLoad: 000007fe`feef0000 000007fe`feef8000   C:\Windows\system32\NSI.dll
ModLoad: 000007fe`fd6e0000 000007fe`fd84d000   C:\Windows\system32\CRYPT32.dll
ModLoad: 000007fe`fd6b0000 000007fe`fd6bf000   C:\Windows\system32\MSASN1.dll
ModLoad: 000007fe`ea6d0000 000007fe`ea729000   C:\Windows\assembly\NativeImages_v4.0.30319_64\System.Comp46f2b404#\1a869b314d2ee82fd4a2e30076b9b206\System.ComponentModel.DataAnnotations.ni.dll
ModLoad: 000007fe`f51d0000 000007fe`f5270000   C:\Windows\WinSxS\amd64_microsoft.windows.common-controls_6595b64144ccf1df_5.82.7601.18837_none_a4d981ff711297b6\comctl32.dll
ModLoad: 00000001`80000000 00000001`80397000   S:\GAMEs\_emu\_multiEmu\BizHawk-2.9.1\dll\SlimDX.dll
ModLoad: 00000000`78ad0000 00000000`78ba2000   C:\Windows\system32\MSVCR100.dll
ModLoad: 000007fe`f9f30000 000007fe`f9f6b000   C:\Windows\system32\WINMM.dll
ModLoad: 00000000`78890000 00000000`78928000   C:\Windows\system32\MSVCP100.dll
ModLoad: 000007fe`f7960000 000007fe`f7b5f000   C:\Windows\system32\d3d9.dll
ModLoad: 000007fe`f7950000 000007fe`f7957000   C:\Windows\system32\d3d8thk.dll
ModLoad: 000007fe`fae60000 000007fe`fae78000   C:\Windows\system32\dwmapi.dll
ModLoad: 000007fe`df2a0000 000007fe`e0acd000   C:\Windows\system32\nvd3dumx.dll
ModLoad: 000007fe`cb010000 000007fe`cb273000   C:\Windows\system32\d3dx9_43.dll
ModLoad: 000007fe`d7f50000 000007fe`d806d000   C:\Windows\system32\OPENGL32.DLL
ModLoad: 000007fe`f8ca0000 000007fe`f8ccd000   C:\Windows\system32\GLU32.dll
ModLoad: 000007fe`d8fc0000 000007fe`d90b1000   C:\Windows\system32\DDRAW.dll
ModLoad: 000007fe`f9010000 000007fe`f9018000   C:\Windows\system32\DCIMAN32.dll
ModLoad: 000007fe`ffa60000 000007fe`ffc37000   C:\Windows\system32\SETUPAPI.dll
ModLoad: 000007fe`fd860000 000007fe`fd896000   C:\Windows\system32\CFGMGR32.dll
ModLoad: 000007fe`fd950000 000007fe`fd96a000   C:\Windows\system32\DEVOBJ.dll
ModLoad: 000007fe`fc890000 000007fe`fc8b7000   C:\Windows\system32\cryptnet.dll
ModLoad: 000007fe`fdc10000 000007fe`fdc62000   C:\Windows\system32\WLDAP32.dll
ModLoad: 000007fe`fc820000 000007fe`fc88b000   C:\Windows\system32\drvstore.dll
ModLoad: 000007fe`fda20000 000007fe`fda5b000   C:\Windows\system32\WINTRUST.DLL
ModLoad: 000007fe`fda60000 000007fe`fda79000   C:\Windows\system32\imagehlp.dll
ModLoad: 000007fe`fd040000 000007fe`fd090000   C:\Windows\system32\ncrypt.dll
ModLoad: 000007fe`fcf60000 000007fe`fcfac000   C:\Windows\system32\bcryptprimitives.dll
ModLoad: 000007fe`fd8a0000 000007fe`fd8bf000   C:\Windows\system32\USERENV.dll
ModLoad: 000007fe`fc930000 000007fe`fc94b000   C:\Windows\system32\GPAPI.dll
ModLoad: 00000000`20bc0000 00000000`20fa7000   C:\Windows\system32\d3dx9_31.dll
ModLoad: 000007fe`fd590000 000007fe`fd5e7000   C:\Windows\system32\apphelp.dll
ModLoad: 000007fe`dda20000 000007fe`ddac3000   C:\Windows\assembly\NativeImages_v4.0.30319_64\System.Net.Http\c4f050b964666d373356e56e29be7aa5\System.Net.Http.ni.dll
ModLoad: 000007fe`f8d30000 000007fe`f8d6c000   C:\Windows\system32\DINPUT8.dll
ModLoad: 000007fe`fae80000 000007fe`fae8b000   C:\Windows\system32\HID.DLL
ModLoad: 00000000`1be30000 00000000`1be4e000   C:\Windows\system32\xinput1_3.dll
ModLoad: 000007fe`f28b0000 000007fe`f2938000   C:\Windows\system32\DSOUND.dll
ModLoad: 000007fe`fb5b0000 000007fe`fb5dc000   C:\Windows\system32\POWRPROF.dll
ModLoad: 000007fe`fdb70000 000007fe`fdc09000   C:\Windows\system32\CLBCatQ.DLL
ModLoad: 000007fe`fb530000 000007fe`fb57b000   C:\Windows\System32\MMDevApi.dll
ModLoad: 000007fe`fb400000 000007fe`fb52c000   C:\Windows\System32\PROPSYS.dll
ModLoad: 000007fe`f9c40000 000007fe`f9c8f000   C:\Windows\system32\AUDIOSES.DLL
ModLoad: 000007fe`fb2c0000 000007fe`fb2c9000   C:\Windows\system32\avrt.dll
ModLoad: 000007fe`cae20000 000007fe`cb00d000   C:\Windows\assembly\NativeImages_v4.0.30319_64\Microsoft.CSharp\1e1862430fb7f74553a0fa4c0b71f79b\Microsoft.CSharp.ni.dll
ModLoad: 000007fe`fb710000 000007fe`fb905000   C:\Windows\WinSxS\amd64_microsoft.windows.common-controls_6595b64144ccf1df_6.0.7601.24483_none_e372d88f30fbb845\comctl32.dll
ModLoad: 000007fe`f8c80000 000007fe`f8c92000   C:\Windows\assembly\NativeImages_v4.0.30319_64\Accessibility\9490ea14a75d8d843aabae761814ed92\Accessibility.ni.dll
ModLoad: 000007fe`ed620000 000007fe`ed6da000   C:\Windows\system32\UIAutomationCore.dll
ModLoad: 00000000`77cf0000 00000000`77cf7000   C:\Windows\system32\PSAPI.DLL
ModLoad: 000007fe`fa220000 000007fe`fa274000   C:\Windows\system32\OLEACC.dll
ModLoad: 000007fe`f2060000 000007fe`f2071000   S:\GAMEs\_emu\_multiEmu\BizHawk-2.9.1\dll\libbizhash.DLL
ModLoad: 000007fe`ebc00000 000007fe`ebc7c000   C:\Windows\assembly\NativeImages_v4.0.30319_64\System.Dynamic\1fed41ee508883631efa9029620f8dc3\System.Dynamic.ni.dll
ModLoad: 000007fe`b1a50000 000007fe`b20a4000   S:\GAMEs\_emu\_multiEmu\BizHawk-2.9.1\dll\octoshock.dll
ModLoad: 000007fe`cac70000 000007fe`cacfe000   C:\Windows\system32\MSVCP140.dll
ModLoad: 000007fe`fb2a0000 000007fe`fb2bb000   C:\Windows\system32\VCRUNTIME140.dll
ModLoad: 000007fe`f3a70000 000007fe`f3a74000   C:\Windows\system32\api-ms-win-crt-runtime-l1-1-0.dll
ModLoad: 000007fe`f6280000 000007fe`f6374000   C:\Windows\system32\ucrtbase.DLL
ModLoad: 000007fe`f6270000 000007fe`f6273000   C:\Windows\system32\api-ms-win-core-timezone-l1-1-0.dll
ModLoad: 000007fe`f6260000 000007fe`f6263000   C:\Windows\system32\api-ms-win-core-file-l2-1-0.dll
ModLoad: 000007fe`f6250000 000007fe`f6253000   C:\Windows\system32\api-ms-win-core-localization-l1-2-0.dll
ModLoad: 000007fe`f6240000 000007fe`f6243000   C:\Windows\system32\api-ms-win-core-processthreads-l1-1-1.dll
ModLoad: 000007fe`f6230000 000007fe`f6233000   C:\Windows\system32\api-ms-win-core-file-l1-2-0.dll
ModLoad: 000007fe`f3a60000 000007fe`f3a63000   C:\Windows\system32\api-ms-win-crt-heap-l1-1-0.dll
ModLoad: 000007fe`f3a50000 000007fe`f3a54000   C:\Windows\system32\api-ms-win-crt-string-l1-1-0.dll
ModLoad: 000007fe`f3a40000 000007fe`f3a44000   C:\Windows\system32\api-ms-win-crt-stdio-l1-1-0.dll
ModLoad: 000007fe`f3a30000 000007fe`f3a34000   C:\Windows\system32\api-ms-win-crt-convert-l1-1-0.dll
ModLoad: 000007fe`cad80000 000007fe`cad8c000   C:\Windows\system32\VCRUNTIME140_1.dll
ModLoad: 000007fe`f39d0000 000007fe`f39d3000   C:\Windows\system32\api-ms-win-crt-locale-l1-1-0.dll
ModLoad: 000007fe`f39e0000 000007fe`f39e3000   C:\Windows\system32\api-ms-win-crt-filesystem-l1-1-0.dll
ModLoad: 000007fe`f39f0000 000007fe`f39f3000   C:\Windows\system32\api-ms-win-crt-time-l1-1-0.dll
ModLoad: 000007fe`f3a00000 000007fe`f3a03000   C:\Windows\system32\api-ms-win-crt-environment-l1-1-0.dll
ModLoad: 000007fe`f3a10000 000007fe`f3a15000   C:\Windows\system32\api-ms-win-crt-math-l1-1-0.dll
ModLoad: 000007fe`f3a20000 000007fe`f3a23000   C:\Windows\system32\api-ms-win-crt-utility-l1-1-0.dll
ModLoad: 000007fe`b31e0000 000007fe`b36ef000   C:\Windows\assembly\NativeImages_v4.0.30319_64\WindowsBase\53a028eb88ae216cd9c8a63e87eec950\WindowsBase.ni.dll
ModLoad: 000007fe`adf80000 000007fe`aedd9000   C:\Windows\assembly\NativeImages_v4.0.30319_64\PresentationCore\9a66843054f6b803eb9ece35e1a6bb6c\PresentationCore.ni.dll
ModLoad: 000007fe`ac870000 000007fe`adf7f000   C:\Windows\assembly\NativeImages_v4.0.30319_64\Presentatio5ae0f00f#\5049cbdef9aeb1afcac292e59fe12dbc\PresentationFramework.ni.dll
ModLoad: 000007fe`d7530000 000007fe`d77a7000   C:\Windows\assembly\NativeImages_v4.0.30319_64\System.Xaml\6e001644636519af3d7a4ff4ac466030\System.Xaml.ni.dll
ModLoad: 000007fe`e2770000 000007fe`e2908000   C:\Windows\system32\dwrite.dll
ModLoad: 000007fe`b2fe0000 000007fe`b31d7000   C:\Windows\Microsoft.NET\Framework64\v4.0.30319\WPF\wpfgfx_v0400.dll
ModLoad: 000007fe`d7eb0000 000007fe`d7f4a000   C:\Windows\system32\MSVCP140_CLR0400.dll
ModLoad: 000007fe`cb4f0000 000007fe`cb60f000   C:\Windows\Microsoft.NET\Framework64\v4.0.30319\WPF\PresentationNative_v0400.dll
ModLoad: 000007fe`fd4f0000 000007fe`fd581000   C:\Windows\system32\sxs.dll
ModLoad: 000007fe`fc8d0000 000007fe`fc8fd000   C:\Windows\system32\ntmarta.dll
ModLoad: 000007fe`f2a10000 000007fe`f2cb3000   C:\Windows\System32\gameux.dll
ModLoad: 000007fe`fae20000 000007fe`fae54000   C:\Windows\System32\XmlLite.dll
ModLoad: 000007fe`f3f30000 000007fe`f3fad000   C:\Windows\System32\wer.dll
ModLoad: 000007fe`f2ef0000 000007fe`f2f24000   C:\Windows\System32\shdocvw.dll
ModLoad: 000007fe`f2ea0000 000007fe`f2eac000   C:\Windows\system32\LINKINFO.dll
ModLoad: 000007fe`f69d0000 000007fe`f6a50000   C:\Windows\system32\ntshrui.dll
ModLoad: 000007fe`fd0e0000 000007fe`fd103000   C:\Windows\system32\srvcli.dll
ModLoad: 000007fe`f69c0000 000007fe`f69cf000   C:\Windows\system32\cscapi.dll
ModLoad: 000007fe`f9cd0000 000007fe`f9cdb000   C:\Windows\system32\slc.dll
ModLoad: 00000000`62480000 00000000`62587000   S:\GAMEs\_emu\_multiEmu\BizHawk-2.9.1\dll\libzstd.dll
ModLoad: 00000000`20fb0000 00000000`2119a000   S:\GAMEs\_emu\_multiEmu\BizHawk-2.9.1\dll\waterboxhost.dll
ModLoad: 000007fe`f2050000 000007fe`f2056000   S:\GAMEs\_emu\_multiEmu\BizHawk-2.9.1\dll\libbizabiadapter_msabi_sysv.dll
(3ac8.e58): Break instruction exception - code 80000003 (!!! second chance !!!)
*** ERROR: Symbol file could not be found.  Defaulted to export symbols for S:\GAMEs\_emu\_multiEmu\BizHawk-2.9.1\dll\waterboxhost.dll - 
waterboxhost+0x451b1:
00000000`20ff51b1 4584ff          test    r15b,r15b
disassembly view
00000000`20ff516a 8b1e            mov     ebx,dword ptr [rsi]
00000000`20ff516c 4883c208        add     rdx,8
00000000`20ff5170 4889f9          mov     rcx,rdi
00000000`20ff5173 4829d9          sub     rcx,rbx
00000000`20ff5176 72e8            jb      waterboxhost+0x45160 (00000000`20ff5160)
00000000`20ff5178 48035e08        add     rbx,qword ptr [rsi+8]
00000000`20ff517c 4839fb          cmp     rbx,rdi
00000000`20ff517f 76df            jbe     waterboxhost+0x45160 (00000000`20ff5160)
00000000`20ff5181 48c1e90c        shr     rcx,0Ch
00000000`20ff5185 488b5648        mov     rdx,qword ptr [rsi+48h]
00000000`20ff5189 4839d1          cmp     rcx,rdx
00000000`20ff518c 0f8387010000    jae     waterboxhost+0x45319 (00000000`20ff5319)
00000000`20ff5192 488b6e40        mov     rbp,qword ptr [rsi+40h]
00000000`20ff5196 488d3449        lea     rsi,[rcx+rcx*2]
00000000`20ff519a 0fb644f510      movzx   eax,byte ptr [rbp+rsi*8+10h]
00000000`20ff519f 3c05            cmp     al,5
00000000`20ff51a1 770d            ja      waterboxhost+0x451b0 (00000000`20ff51b0)
00000000`20ff51a3 0fb6c0          movzx   eax,al
00000000`20ff51a6 b934000000      mov     ecx,34h
00000000`20ff51ab 0fa3c1          bt      ecx,eax
00000000`20ff51ae 7222            jb      waterboxhost+0x451d2 (00000000`20ff51d2)
00000000`20ff51b0 cc              int     3
00000000`20ff51b1 4584ff          test    r15b,r15b
00000000`20ff51b4 7510            jne     waterboxhost+0x451c6 (00000000`20ff51c6)
00000000`20ff51b6 488b0553400300  mov     rax,qword ptr [waterboxhost!_jit_debug_descriptor+0x14150 (00000000`21029210)]
00000000`20ff51bd 4c85f0          test    rax,r14
00000000`20ff51c0 0f853c010000    jne     waterboxhost+0x45302 (00000000`20ff5302)
00000000`20ff51c6 4c89e1          mov     rcx,r12
00000000`20ff51c9 e8fed40100      call    waterboxhost!arrive6+0x54c (00000000`210126cc)
00000000`20ff51ce 31c0            xor     eax,eax
00000000`20ff51d0 eb6b            jmp     waterboxhost+0x4523d (00000000`20ff523d)
00000000`20ff51d2 4881e700f0ffff  and     rdi,0FFFFFFFFFFFFF000h
00000000`20ff51d9 488d0cf500000000 lea     rcx,[rsi*8]
00000000`20ff51e1 4801e9          add     rcx,rbp
00000000`20ff51e4 4889fa          mov     rdx,rdi
00000000`20ff51e7 e8349c0000      call    waterboxhost!wbx_get_page_data+0x310 (00000000`20ffee20)
00000000`20ff51ec 488d04f510000000 lea     rax,[rsi*8+10h]
00000000`20ff51f4 4801e8          add     rax,rbp
00000000`20ff51f7 c644f51101      mov     byte ptr [rbp+rsi*8+11h],1
00000000`20ff51fc 8b00            mov     eax,dword ptr [rax]
00000000`20ff51fe 3c05            cmp     al,5
00000000`20ff5200 b902000000      mov     ecx,2
00000000`20ff5205 0f45c8          cmovne  ecx,eax
00000000`20ff5208 4531c0          xor     r8d,r8d

registers (some notable)

eax 0
ecx 34
r15b  0

Xyrio avatar Nov 03 '23 17:11 Xyrio

Seems this is crashing on the std::intrinsics::breakpoint() here https://github.com/TASEmulators/BizHawk/blob/a73cb3839b5a0124b51f0dd3901f934bed99592c/waterbox/waterboxhost/src/memory_block/tripguard.rs#L56-L60

The eax register you provided seems to indicate too that the memory page within the memory block that got written to by the core was just unallocated or munmap'd.

Of course, this is just completely strange considering we can't reproduce it, something like this should be easily reproducible! hmmm

CasualPokePlayer avatar Nov 03 '23 17:11 CasualPokePlayer

found the commit that breaks it: crashes release 2.9 crashes https://github.com/TASEmulators/BizHawk/commit/0a2d4405f08481651bdea2499a6055abba7789de works https://github.com/TASEmulators/BizHawk/commit/44322e6a7d5197b1a2d4f5a7c0b17e08cc6c18b2 works release 2.9-rc3

this waterbox project seems wild. no idea when/if i will be able to compile/debug that.

Xyrio avatar Nov 05 '23 23:11 Xyrio

That was what I was afraid of. It could be something clang is doing here that has it do something different compared to gcc (maybe some code that works correctly for newer cpus but fucks up on older ones?). Or it could be something in the libcxx update (maybe affecting both gcc and clang).

I highly suspect this is related to that CPU anyways, since it seems rather ancient (although it's not some illegal instruction; that'd crash differently)

CasualPokePlayer avatar Nov 05 '23 23:11 CasualPokePlayer

fyi: tag 2.9.1 is missing when fetching repository. but on github it exists just that: This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository. (feel free to delete this comment after tag is fixed)

Xyrio avatar Nov 06 '23 00:11 Xyrio

2.9.1 tag was part of the release branch, which got force pushed for some reason I don't recall so the 2.9.1 tag no longer references any valid branch (although the git history will persist on github regardless). I'm not sure if that's possible to "fix" now anyways, at least not without deleting the tag and re-creating it and somehow not screwing up our current release on github.

CasualPokePlayer avatar Nov 06 '23 13:11 CasualPokePlayer