https://bugs.winehq.org/show_bug.cgi?id=50853
Bug ID: 50853 Summary: Elgato Stream Deck 4.9.3 (.NET 4.5 app) installer: 'WINE_MONO_TRACE=all' crashes Wine-Mono Product: Wine Version: 6.4 Hardware: x86-64 OS: Linux Status: NEW Severity: normal Priority: P2 Component: mscoree Assignee: wine-bugs@winehq.org Reporter: focht@gmx.net Distribution: ---
Hello folks,
split off from bug 50849
Doing a full trace of installer managed custom action with 'WINE_MONO_TRACE=all' causes an internal crash in Wine-Mono much earlier than running it without.
--- snip --- $ WINE_MONO_VERBOSE=1 WINE_MONO_TRACE=all WINEDEBUG=+seh,+loaddll,+mscoree wine msiexec -i Stream_Deck_4.9.3.13222.msi ... converting method (wrapper cominterop) int System.IAppDomainSetup:set_ApplicationBase (intptr,string) Method (wrapper cominterop) int System.IAppDomainSetup:set_ApplicationBase (intptr,string) emitted at 0000000003b595d0 to 0000000003b59885 (code length 693) [rundll32.exe] 011c:trace:seh:RtlGrowFunctionTable 0000000000089130, 50 [000000000000011c: 0.00845 1] ENTER:c (wrapper cominterop) System.IAppDomainSetup:set_ApplicationBase (intptr,string)(0000000001c3aed0, [STRING:0000000002000740:file:///C:\users\focht\Temp\msic05c.tmp-]) converting method (wrapper managed-to-native) object object:__icall_wrapper_cominterop_get_ccw_object (intptr,int) Method (wrapper managed-to-native) object object:__icall_wrapper_cominterop_get_ccw_object (intptr,int) emitted at 0000000003b598a0 to 0000000003b59b66 (code length 710) [rundll32.exe] 011c:trace:seh:RtlGrowFunctionTable 0000000000089130, 51 [000000000000011c: 0.00855 2] ENTER:c (wrapper managed-to-native) object:__icall_wrapper_cominterop_get_ccw_object (intptr,int)(0000000001c3aed0, 0) [000000000000011c: 0.00857 2] LEAVE:c (wrapper managed-to-native) object:__icall_wrapper_cominterop_get_ccw_object (intptr,int)([System.AppDomainSetup:00000000020004d0] converting method (wrapper managed-to-native) object object:__icall_wrapper_cominterop_set_ccw_object_domain (object,intptr) Method (wrapper managed-to-native) object object:__icall_wrapper_cominterop_set_ccw_object_domain (object,intptr) emitted at 0000000003b59b80 to 0000000003b59e46 (code length 710) [rundll32.exe] 011c:trace:seh:RtlGrowFunctionTable 0000000000089130, 52 [000000000000011c: 0.00866 2] ENTER:c (wrapper managed-to-native) object:__icall_wrapper_cominterop_set_ccw_object_domain (object,intptr)([System.AppDomainSetup:00000000020004d0], 000000000022ef30) [000000000000011c: 0.00867 2] LEAVE:c (wrapper managed-to-native) object:__icall_wrapper_cominterop_set_ccw_object_domain (object,intptr)([System.AppDomainSetup:00000000020004d0] 011c:trace:seh:RtlGrowFunctionTable 0000000000089130, 53 converting method void System.AppDomainSetup:set_ApplicationBase (string) Method void System.AppDomainSetup:set_ApplicationBase (string) emitted at 0000000003b59e90 to 0000000003b5a078 (code length 488) [rundll32.exe] 011c:trace:seh:RtlGrowFunctionTable 0000000000089130, 54 [000000000000011c: 0.00876 2] ENTER:c System.AppDomainSetup:set_ApplicationBase (string)(this:00000000020004d0[System.AppDomainSetup rundll32.exe], [STRING:0000000002000740:file:///C:\users\focht\Temp\msic05c.tmp-]) [000000000000011c: 0.00877 2] LEAVE:c System.AppDomainSetup:set_ApplicationBase (string)( converting method (wrapper managed-to-native) void object:__icall_wrapper_cominterop_restore_domain (intptr) Method (wrapper managed-to-native) void object:__icall_wrapper_cominterop_restore_domain (intptr) emitted at 0000000003b5a090 to 0000000003b5a31b (code length 651) [rundll32.exe] 011c:trace:seh:RtlGrowFunctionTable 0000000000089130, 55 [000000000000011c: 0.00886 2] ENTER:c (wrapper managed-to-native) object:__icall_wrapper_cominterop_restore_domain (intptr)(0000000000000000) [000000000000011c: 0.00887 2] LEAVE:c (wrapper managed-to-native) object:__icall_wrapper_cominterop_restore_domain (intptr)( [000000000000011c: 0.00888 1] LEAVE:c (wrapper cominterop) System.IAppDomainSetup:set_ApplicationBase (intptr,string)(result=0 [000000000000011c: 0.00889 0] LEAVE:c (wrapper native-to-managed) System.IAppDomainSetup:set_ApplicationBase (intptr,intptr)(code=c0000005 flags=0 addr=000000000152C9F6 ip=000000000152C9F6 tid=011c 011c:trace:seh:dispatch_exception info[0]=0000000000000000 011c:trace:seh:dispatch_exception info[1]=0000000000000000 011c:warn:seh:dispatch_exception EXCEPTION_ACCESS_VIOLATION exception (code=c0000005) raised 011c:trace:seh:dispatch_exception rax=000000000152c9f6 rbx=0000000001bb1850 rcx=000000000152cbf4 rdx=0000000000080000 011c:trace:seh:dispatch_exception rsi=0000000000000000 rdi=0000000001c36b40 rbp=0000000000000001 rsp=000000000022ed40 011c:trace:seh:dispatch_exception r8=0000000000000078 r9=0000000000000002 r10=0000000001bb18d8 r11=0000000001918048 011c:trace:seh:dispatch_exception r12=0000000000b02a48 r13=0000000000000000 r14=000000000022ede0 r15=0000000001c36b50 011c:trace:seh:call_vectored_handlers calling handler at 00000000015D38F0 code=c0000005 flags=0
================================================================= Native Crash Reporting ================================================================= Got a UNKNOWN while executing native code. This usually indicates a fatal error in the mono runtime or one of the native libraries used by your application. =================================================================
================================================================= Managed Stacktrace: ================================================================= ================================================================= 011c:trace:seh:call_vectored_handlers handler at 00000000015D38F0 returned 0 011c:trace:seh:call_vectored_handlers calling handler at 000000007B012010 code=c0000005 flags=0 011c:trace:seh:call_vectored_handlers handler at 000000007B012010 returned 0 --- snip ---
$ sha1sum Stream_Deck_4.9.3.13222.msi d54a6df51519c5028eeb27b8f1a577d50a62e375 Stream_Deck_4.9.3.13222.msi
$ du -sh Stream_Deck_4.9.3.13222.msi 96M Stream_Deck_4.9.3.13222.msi
$ wine --version wine-6.4
Regards
https://bugs.winehq.org/show_bug.cgi?id=50853
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- URL| |https://web.archive.org/web | |/20210323091854/https://edg | |e.elgato.com/egc/windows/sd | |/Stream_Deck_4.9.3.13222.ms | |i Keywords| |download, Installer
https://bugs.winehq.org/show_bug.cgi?id=50853
--- Comment #1 from Esme Povirk madewokherd@gmail.com --- I believe this particular crash was fixed by the upstream mono commit d6c2313a95058e9d6ee8d4b9b33cbaf9dfec1048 which was merged in Wine Mono 6.1.
In general, though, I don't expect all of the tracing to work due to the line length limit in Wine's debug code.
https://bugs.winehq.org/show_bug.cgi?id=50853
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |2c94b7a609fe40a79ea30096bdb | |2dcac4198069e Resolution|--- |FIXED Status|NEW |RESOLVED
--- Comment #2 from Anastasius Focht focht@gmx.net --- Hello folks,
this is fixed by commit https://source.winehq.org/git/wine.git/commitdiff/2c94b7a609fe40a79ea30096bd... ("mscoree: Update Wine Mono to 6.1.1.").
Part of Wine 6.6 release.
Thanks Esme.
Direct link to upstream Mono:
https://github.com/madewokherd/mono/commit/d6c2313a95058e9d6ee8d4b9b33cbaf9d... ("Don't assume result is non-NULL if its type is not TYPE_VOID when tracing. (#20832)")
$ wine --version wine-6.8
Regards
https://bugs.winehq.org/show_bug.cgi?id=50853
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #3 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 6.9.