https://bugs.winehq.org/show_bug.cgi?id=46155
--- Comment #6 from Anastasius Focht focht@gmx.net --- Hello André,
here is the output for v2 patch:
--- snip --- $ WINEDEBUG=+seh,+loaddll wine64 ./pwsh.exe ... 0009:trace:loaddll:load_native_dll Loaded L"Z:\home\focht\projects\woa-winrt\powershell620-arm64\pwsh.exe" at 0x140000000: native 0009:trace:loaddll:load_builtin_dll Loaded L"C:\windows\system32\api-ms-win-crt-runtime-l1-1-0.dll" at 0x7f87800000: builtin 0009:trace:loaddll:load_builtin_dll Loaded L"C:\windows\system32\ucrtbase.dll" at 0x7f875f0000: builtin 0009:trace:loaddll:load_builtin_dll Loaded L"C:\windows\system32\api-ms-win-crt-math-l1-1-0.dll" at 0x7f875b0000: builtin 0009:trace:loaddll:load_builtin_dll Loaded L"C:\windows\system32\api-ms-win-crt-heap-l1-1-0.dll" at 0x7f87580000: builtin 0009:trace:loaddll:load_builtin_dll Loaded L"C:\windows\system32\api-ms-win-crt-stdio-l1-1-0.dll" at 0x7f87560000: builtin 0009:trace:loaddll:load_builtin_dll Loaded L"C:\windows\system32\api-ms-win-crt-string-l1-1-0.dll" at 0x7f87540000: builtin 0009:trace:loaddll:load_builtin_dll Loaded L"C:\windows\system32\api-ms-win-crt-locale-l1-1-0.dll" at 0x7f87510000: builtin 0009:trace:loaddll:load_builtin_dll Loaded L"C:\windows\system32\api-ms-win-crt-convert-l1-1-0.dll" at 0x7f874f0000: builtin 0009:trace:loaddll:load_builtin_dll Loaded L"C:\windows\system32\advapi32.dll" at 0x7f87450000: builtin 0009:trace:loaddll:load_builtin_dll Loaded L"C:\windows\system32\api-ms-win-crt-multibyte-l1-1-0.dll" at 0x7f87420000: builtin 0009:fixme:ntdll:EtwEventRegister ({5eec90ab-c022-44b2-a5dd-fd716a222a15}, 0x1400014e0, 0x14001d4a0, 0x14001d4c0) stub. 0009:fixme:ntdll:EtwEventSetInformation (deadbeef, 2, 0x140018a08, 43) stub 0009:fixme:msvcrt:_configure_wide_argv (1) stub 0009:fixme:msvcrt:_initialize_wide_environment stub 0009:trace:loaddll:load_builtin_dll Loaded L"C:\windows\system32\api-ms-win-crt-filesystem-l1-1-0.dll" at 0x7f87390000: builtin 0009:trace:loaddll:load_native_dll Loaded L"Z:\home\focht\projects\woa-winrt\powershell620-arm64\hostfxr.dll" at 0x180000000: native 0009:fixme:ntdll:EtwEventRegister ({5eec90ab-c022-44b2-a5dd-fd716a222a15}, 0x1800014e0, 0x180054130, 0x180054150) stub. 0009:fixme:ntdll:EtwEventSetInformation (deadbeef, 2, 0x180047828, 43) stub 0009:trace:loaddll:load_native_dll Loaded L"Z:\home\focht\projects\woa-winrt\powershell620-arm64\hostpolicy.dll" at 0x3d0000: native 0009:fixme:ntdll:EtwEventRegister ({5eec90ab-c022-44b2-a5dd-fd716a222a15}, 0x3d14e0, 0x450250, 0x450270) stub. 0009:fixme:ntdll:EtwEventSetInformation (deadbeef, 2, 0x440078, 43) stub 0009:trace:loaddll:load_builtin_dll Loaded L"C:\windows\system32\gdi32.dll" at 0x7f86d60000: builtin 0009:trace:loaddll:load_builtin_dll Loaded L"C:\windows\system32\version.dll" at 0x7f86d20000: builtin 0009:trace:loaddll:load_builtin_dll Loaded L"C:\windows\system32\user32.dll" at 0x7f86f30000: builtin 0009:trace:loaddll:load_builtin_dll Loaded L"C:\windows\system32\rpcrt4.dll" at 0x7f86c70000: builtin 0009:trace:loaddll:load_builtin_dll Loaded L"C:\windows\system32\ole32.dll" at 0x7f871e0000: builtin 0009:trace:loaddll:load_builtin_dll Loaded L"C:\windows\system32\oleaut32.dll" at 0x7f86ad0000: builtin 0009:trace:loaddll:load_builtin_dll Loaded L"C:\windows\system32\shlwapi.dll" at 0x7f86a20000: builtin 0009:trace:loaddll:load_builtin_dll Loaded L"C:\windows\system32\api-ms-win-crt-utility-l1-1-0.dll" at 0x7f869f0000: builtin 0009:trace:loaddll:load_builtin_dll Loaded L"C:\windows\system32\api-ms-win-crt-time-l1-1-0.dll" at 0x7f869c0000: builtin 0009:trace:loaddll:load_native_dll Loaded L"Z:\home\focht\projects\woa-winrt\powershell620-arm64\coreclr.dll" at 0x570000: native 0009:trace:loaddll:load_builtin_dll Loaded L"C:\windows\system32\imm32.dll" at 0x7f86820000: builtin 0009:fixme:ntdll:EtwEventRegister ({5eec90ab-c022-44b2-a5dd-fd716a222a15}, 0x5726a0, 0xa65020, 0xa65040) stub. 0009:fixme:ntdll:EtwEventSetInformation (deadbeef, 2, 0x9c17e1, 43) stub 0009:fixme:process:GetNumaHighestNodeNumber (0x2adbf4): semi-stub 0009:fixme:thread:SetThreadStackGuarantee (0x2adbf4): stub 0009:fixme:ntdll:EtwEventRegister ({e13c0d23-ccbc-4e12-931b-d9cc2eee27e4}, 0x62c430, 0xa68a50, 0xa68a50) stub. 0009:fixme:ntdll:EtwEventRegister ({763fd754-7086-4dfe-95eb-c01a46faf4ca}, 0x62c430, 0xa68aa0, 0xa68aa0) stub. 0009:fixme:ntdll:EtwEventRegister ({a669021c-c450-4609-a035-5af59af4df18}, 0x62c430, 0xa68a00, 0xa68a00) stub. 0009:trace:loaddll:load_builtin_dll Loaded L"C:\windows\system32\api-ms-win-core-windowserrorreporting-l1-1-0.dll" at 0x7f86800000: builtin 0009:fixme:wer:WerRegisterRuntimeExceptionModule (L"Z:\home\focht\projects\woa-winrt\powershell620-arm64\mscordaccore.dll", 0x570000) stub! 0009:trace:loaddll:free_modref Unloaded module L"C:\windows\system32\api-ms-win-core-windowserrorreporting-l1-1-0.dll" : builtin 0009:fixme:msvcrt:_control87 not implemented 0009:trace:seh:raise_exception code=c0000005 flags=0 addr=0x83fc2c pc=83fc2c tid=0009 0009:trace:seh:raise_exception info[0]=0000000000000000 0009:trace:seh:raise_exception info[1]=0000000018f30000 0009:trace:seh:raise_exception x0=0000000018f30000 x1=00000000002ad8a0 x2=0000000000000000 x3=0000000000000008 0009:trace:seh:raise_exception x4=0000000000000001 x5=0000000000000004 x6=0000000000000001 x7=000000007bd4cba0 0009:trace:seh:raise_exception x8=000000000000c000 x9=00000000002ad9d8 x10=00000000ffffffff x11=00000000ffffffff 0009:trace:seh:raise_exception x12=0000000000000000 x13=0000000018f30040 x14=0000000000000001 x15=000000007bd4cb38 0009:trace:seh:raise_exception x16=000000007bd2e010 x17=0000007f87dc9860 x18=000000007ffd8000 x19=0000000000a77348 0009:trace:seh:raise_exception x20=0000000018f30000 x21=0000000018f30000 x22=0000000000f30000 x23=0000000000090168 0009:trace:seh:raise_exception x24=0000000000a6a270 x25=00000000000000c4 x26=0000000000a69ea8 x27=0000000000030000 0009:trace:seh:raise_exception x28=0000000000595290 fp=00000000002ada30 lr=000000000083fbdc sp=00000000002ada30 0009:trace:seh:raise_exception pc=000000000083fc2c 0009:trace:seh:call_vectored_handlers calling handler at 0x5e4550 code=c0000005 flags=0 0009:fixme:advapi:RegisterEventSourceW ((null),L".NET Runtime"): stub 0009:fixme:advapi:ReportEventW (0xcafe4242,0x0001,0x0000,0x000003ff,(nil),0x0001,0x00000000,0x2abc50,(nil)): stub 0009:err:eventlog:ReportEventW L"Application: pwsh.exe\nCoreCLR Version: 4.6.26919.2\nDescription: The process was terminated due to an internal error in the .NET Runtime at IP 000000000083FC2C (0000000000570000) with exit code 80131506.\n" 0009:fixme:advapi:DeregisterEventSource (0xcafe4242) stub wine: Unhandled page fault on read access to 0x18f30000 at address 0x83fc2c (thread 0009), starting debugger... 0009:trace:seh:start_debugger Starting debugger "winedbg --auto 8 164" qemuarm64:~/projects/woa-winrt/powershell620-arm64$ be_arm64_single_step: not done Process of pid=0008 has terminated No process loaded, cannot execute 'echo Modules:' Cannot get info on module while no process is loaded No process loaded, cannot execute 'echo Threads:' process tid prio (all id:s are in hex) 0000000e services.exe 00000026 0 00000022 0 0000001d 0 00000013 0 00000010 0 0000000f 0 00000011 winedevice.exe 0000001a 0 00000017 0 00000016 0 00000012 0 00000018 explorer.exe 00000028 0 00000027 0 00000024 0 00000019 0 0000001b plugplay.exe 0000001f 0 0000001e 0 0000001c 0 00000020 winedevice.exe 00000029 0 00000025 0 00000023 0 00000021 0 winedbg: Internal crash at 0x7f96699120 002c:fixme:seh:RtlUnwind Not implemented on ARM64 --- snip ---
Due to the addition of TerminateProcess() it's even more likely that 'winedbg' can't get a backtrace in time and/or crashes itself.
The function now mimics the broken behaviour of 'kernel32.UnhandledExceptionFilter' from bug 24038 ;-)
Regards