http://bugs.winehq.org/show_bug.cgi?id=58611
Bug ID: 58611 Summary: Nightshade crashes: err:seh:NtRaiseException Unhandled exception code c0000409 (native vcruntime140 works around the crash) Product: Wine Version: 10.13 Hardware: x86-64 URL: https://mirror.cs.uchicago.edu/fawkes/files/nightshade /Nightshade-1.0-Windows.zip OS: Linux Status: NEW Keywords: download Severity: normal Priority: P2 Component: msvcrt Assignee: wine-bugs@winehq.org Reporter: xerox.xerox2000x@gmail.com Distribution: Debian
Reported at the forum: https://forum.winehq.org/viewtopic.php?t=41488
As titles says, native vruntime140 is enough to prevent the crash; last trace before the crash shows __std_type_info_name is called:
0100:trace:msvcrt:__std_type_info_name (00006FFF0E352A78) returning struct x1272d024::DeprecatedRAIIContextManager::DeprecatedRAIIContextManager
(Don't know what's wrong,but with a hack to return something else for that last line (i did ti->mangled) the program starts so this might point to that the problem is really in that last line.)
0100:trace:msvcrt:__unDNameEx (0000000000000000,"?AU?$DeprecatedRAIIContextManager@UEnablePythonDispatcher@?A0x1272d024@@$$V@impl@torch@@",0,00006FFFFFA317D0,00006FFFFFA317C0,0000000000000000,2800) 0100:trace:msvcrt:str_array_push 00000000001F70D8 0> "DeprecatedRAIIContextManager" 0100:trace:msvcrt:str_array_get_ref Returning 00000000001F70D8[0] => "DeprecatedRAIIContextManager" 0100:trace:msvcrt:str_array_push 00000000001F70D8 1> "EnablePythonDispatcher" 0100:trace:msvcrt:str_array_push 00000000001F70D8 0> "DeprecatedRAIIContextManager" 0100:trace:msvcrt:str_array_get_ref Returning 00000000001F70D8[1] => "EnablePythonDispatcher" 0100:trace:msvcrt:str_array_push 00000000001F7108 0> "EnablePythonDispatcher" 0100:trace:msvcrt:str_array_push 00000000001F70D8 1} "EnablePythonDispatcher" 0100:trace:msvcrt:str_array_push 00000000001F70D8 0> "DeprecatedRAIIContextManager" 0100:trace:msvcrt:str_array_push 00000000001F7108 0> "DeprecatedRAIIContextManager" 0100:trace:msvcrt:str_array_get_ref Returning 00000000001F70D8[0] => "DeprecatedRAIIContextManager" 0100:trace:msvcrt:str_array_push 00000000001F7108 1> "DeprecatedRAIIContextManager" 0100:trace:msvcrt:str_array_push 00000000001F7108 0> "DeprecatedRAIIContextManager" 0100:trace:msvcrt:str_array_push 00000000001F70D8 1> "x1272d024" 0100:trace:msvcrt:str_array_push 00000000001F70D8 0> "DeprecatedRAIIContextManager" 0100:trace:msvcrt:str_array_get_ref Returning 00000000001F70D8[1] => "x1272d024" 0100:trace:msvcrt:str_array_push 00000000001F7108 2> "x1272d024" 0100:trace:msvcrt:str_array_push 00000000001F7108 1> "DeprecatedRAIIContextManager" 0100:trace:msvcrt:str_array_push 00000000001F7108 0> "DeprecatedRAIIContextManager" 0100:trace:msvcrt:__std_type_info_name (00006FFF0E352A78) returning struct x1272d024::DeprecatedRAIIContextManager::DeprecatedRAIIContextManager 0100:trace:msvcrt:__std_type_info_name (00006FFF0E352A78) returning struct x1272d024::DeprecatedRAIIContextManager::DeprecatedRAIIContextManager 0100:trace:msvcrt:__std_type_info_name (00006FFF0E354F30) returning struct c10::AnyType 0100:trace:msvcrt:__std_type_info_name (00006FFF0E354F30) returning struct c10::AnyType 0100:trace:msvcrt:__std_type_info_name (00006FFF0E352A78) returning struct x1272d024::DeprecatedRAIIContextManager::DeprecatedRAIIContextManager 0100:trace:msvcrt:__std_type_info_name (00006FFF0E352A78) returning struct x1272d024::DeprecatedRAIIContextManager::DeprecatedRAIIContextManager 0100:trace:msvcrt:__std_type_info_name (00006FFF0E352A08) returning struct x1272d024::DeprecatedRAIIContextManager::DeprecatedRAIIContextManager 0100:trace:msvcrt:__std_type_info_name (00006FFF0E352A08) returning struct x1272d024::DeprecatedRAIIContextManager::DeprecatedRAIIContextManager 0100:trace:msvcrt:__std_type_info_name (00006FFF0E352A78) returning struct x1272d024::DeprecatedRAIIContextManager::DeprecatedRAIIContextManager 0100:err:seh:NtRaiseException Unhandled exception code c0000409 flags 1 addr 0x140019241
http://bugs.winehq.org/show_bug.cgi?id=58611
Piotr Caban piotr.caban@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |piotr.caban@gmail.com
--- Comment #1 from Piotr Caban piotr.caban@gmail.com --- While I didn't look on the app/crash itself, the app tries to demangle ?AU?$DeprecatedRAIIContextManager@UEnablePythonDispatcher@?A0x1272d024@@$$V@impl@torch@@ type.
Wine demangles it as: struct x1272d024::DeprecatedRAIIContextManager::DeprecatedRAIIContextManager while it should return: struct torch::impl::DeprecatedRAIIContextManager<struct `anonymous namespace'::EnablePythonDispatcher>
http://bugs.winehq.org/show_bug.cgi?id=58611
--- Comment #2 from Piotr Caban piotr.caban@gmail.com --- I've created MR that addresses the bug: https://gitlab.winehq.org/wine/wine/-/merge_requests/9211
Could you please give it a try?
http://bugs.winehq.org/show_bug.cgi?id=58611
Piotr Caban piotr.caban@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |8f46bd8fa97275566879410c578 | |0add7c56c163f Status|NEW |RESOLVED Resolution|--- |FIXED
--- Comment #3 from Piotr Caban piotr.caban@gmail.com --- I have verified that 8f46bd8fa97275566879410c5780add7c56c163f fixes the bug and the launcher starts. Marking as fixed.