http://bugs.winehq.org/show_bug.cgi?id=34756
Bug #: 34756 Summary: 32-bit Visual C++ 2010 Express full installer throws an exception with wine-mono Product: Wine Version: 1.7.4 Platform: x86 URL: http://download.microsoft.com/download/1/E/5/1E5F1C0A- 0D5B-426A-A603-1798B951DDAE/VS2010Express1.iso OS/Version: Linux Status: NEW Keywords: download, Installer Severity: normal Priority: P2 Component: mscoree AssignedTo: wine-bugs@winehq.org ReportedBy: austinenglish@gmail.com Classification: Unclassified
Followup to bug 32280
Download the 32 bit Visual C++ 2010 Express full install: http://download.microsoft.com/download/1/E/5/1E5F1C0A-0D5B-426A-A603-1798B95...
Attempt to install with a clean WINEPREFIX, and uncheck all optional components. During installation here's a handled exception that doesn't occur with native dotnet40 wine: Unhandled page fault on read access to 0x00000000 at address 0x368c89a2 (thread 0025), starting debugger... Unhandled exception: page fault on read access to 0x00000000 in 32-bit code (0x368c89a2) ... Backtrace: =>0 0x368c89a2 in msenv (+0x289a2) (0x0033f76c) 1 0x368c925d in msenv (+0x2925c) (0x0033f7cc) 2 0x368c92e6 in msenv (+0x292e5) (0x0033f828) 3 0x369f0fbe in msenv (+0x150fbd) (0x0033f874) 4 0x3690450b in msenv (+0x6450a) (0x0033f8ac) 5 0x36904049 in msenv (+0x64048) (0x0033f8d4) 6 0x36904147 in msenv (+0x64146) (0x0033f91c) 7 0x3690429b in msenv (+0x6429a) (0x0033f954) 8 0x3690437e in msenv (+0x6437d) (0x0033f97c) 9 0x368e8dc6 in msenv (+0x48dc5) (0x0033f9b4) 10 0x369f2d25 in msenv (+0x152d24) (0x0033fa48) 11 0x3690db92 in msenv (+0x6db91) (0x0033fa74) 12 0x00419177 in vcexpress (+0x19176) (0x0033faac) 13 0x004134f7 in vcexpress (+0x134f6) (0x0033fd98) 14 0x00414867 in vcexpress (+0x14866) (0x0033fdcc) 15 0x0042d1a4 in vcexpress (+0x2d1a3) (0x0033fe60) 16 0x7b85ffec call_process_entry+0xb() in kernel32 (0x0033fe78)
fixme:mscoree:metahostpolicy_GetRequestedRuntime 64 (nil) (nil) (nil) (nil) 0x3702d038 0x3702d034 0x33ed0c {bd39d1d2-ba2f-486a-89b0-b4b0cb466891} 0x3702d030 fixme:mscoree:metahostpolicy_GetRequestedRuntime 72 (nil) (nil) 0x33ef40 0x33ed20 0x3702d038 0x3702d034 0x33ed0c {bd39d1d2-ba2f-486a-89b0-b4b0cb466891} 0x3702d030 fixme:mscoree:get_runtime_info unsupported runtimeinfo flags 40 fixme:mscoree:CLRRuntimeInfo_GetDefaultStartupFlags 0x7e54be18 0x33f1c8 (nil) (nil) fixme:mscoree:corruntimehost_Start stub 0x18bc28
I'll attach logs.
http://bugs.winehq.org/show_bug.cgi?id=34756
--- Comment #1 from Austin English austinenglish@gmail.com 2013-10-17 17:57:55 CDT --- Created attachment 46341 --> http://bugs.winehq.org/attachment.cgi?id=46341 terminal output/backtrace
http://bugs.winehq.org/show_bug.cgi?id=34756
--- Comment #2 from Austin English austinenglish@gmail.com 2013-10-17 18:36:01 CDT --- Created attachment 46345 --> http://bugs.winehq.org/attachment.cgi?id=46345 relay,seh,tid, tailed to 500k lines
http://bugs.winehq.org/show_bug.cgi?id=34756
Alistair Leslie-Hughes leslie_alistair@hotmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |leslie_alistair@hotmail.com
http://bugs.winehq.org/show_bug.cgi?id=34756
--- Comment #3 from Vincent Povirk madewokherd@gmail.com 2013-10-18 16:38:40 CDT --- Created attachment 46355 --> http://bugs.winehq.org/attachment.cgi?id=46355 patch
Does this change anything?
http://bugs.winehq.org/show_bug.cgi?id=34756
--- Comment #4 from Alistair Leslie-Hughes leslie_alistair@hotmail.com 2013-10-19 03:36:24 CDT --- (In reply to comment #3)
Created attachment 46355 [details] patch
Does this change anything?
It didn't change anything for me.
After adding the following to end of the function FIXME("0x%08x %p\n", hr, *ppRuntime);
which resulted in. fixme:mscoree:metahostpolicy_GetRequestedRuntime 0x80131700 (nil)
http://bugs.winehq.org/show_bug.cgi?id=34756
--- Comment #5 from Alistair Leslie-Hughes leslie_alistair@hotmail.com 2013-10-22 04:47:28 CDT --- If you change in the patch hr = get_runtime_info(pwzBinary, pwzVersion, NULL, 0, 0, FALSE, &result);
to
hr = get_runtime_info(pwzBinary, pwzVersion, NULL, 0, RUNTIME_INFO_UPGRADE_VERSION, FALSE, &result);
It gets a little future but still shows the exception dialog.
http://bugs.winehq.org/show_bug.cgi?id=34756
--- Comment #6 from Vincent Povirk madewokherd@gmail.com 2013-10-23 15:25:12 CDT --- What version string is it using?
http://bugs.winehq.org/show_bug.cgi?id=34756
--- Comment #7 from Alistair Leslie-Hughes leslie_alistair@hotmail.com 2013-10-24 01:48:39 CDT --- Created attachment 46395 --> http://bugs.winehq.org/attachment.cgi?id=46395 Sample test case
The call to GetRequestedRuntime, it assumes to have an "application.exe.config" file in the application directory. It appears to parse this file and workout which runtime to use.
The example shows how VS is using this function, which follows the MSDN description of this function.
When METAHOST_POLICY_APPLY_UPGRADE_POLICY is used on the flags, then RUNTIME_INFO_UPGRADE_VERSION sould be used in the calls to get_runtime_info.
http://bugs.winehq.org/show_bug.cgi?id=34756
--- Comment #8 from Vincent Povirk madewokherd@gmail.com 2013-10-24 11:13:37 CDT --- Does this work if you have no .config file but the application executable is managed (i.e. build a managed C++ or C# project calling the method)? If so, you could just have the executable filename passed to get_runtime_info default to the running executable.
http://bugs.winehq.org/show_bug.cgi?id=34756
--- Comment #9 from Alistair Leslie-Hughes leslie_alistair@hotmail.com 2013-10-24 17:20:17 CDT --- For managed c++, it doesn't require the .config file.
http://bugs.winehq.org/show_bug.cgi?id=34756
Alistair Leslie-Hughes leslie_alistair@hotmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #46355|0 |1 is obsolete| |
--- Comment #10 from Alistair Leslie-Hughes leslie_alistair@hotmail.com 2013-11-19 21:00:52 CST --- Created attachment 46581 --> http://bugs.winehq.org/attachment.cgi?id=46581 Updated Patch
This patch is closer to what is required.
The FIXME are only there for testing.
Comments?
http://bugs.winehq.org/show_bug.cgi?id=34756
--- Comment #11 from Vincent Povirk madewokherd@gmail.com 2013-11-20 10:14:31 CST --- I don't think we should be passing an empty string to get_runtime_info when there's no binary.
Looks good otherwise.
http://bugs.winehq.org/show_bug.cgi?id=34756
--- Comment #12 from Alistair Leslie-Hughes leslie_alistair@hotmail.com 2013-11-22 17:20:00 CST --- The patch has been accepted however the exception is still thrown.
The installer calls the VCExpress.exe to setup the VC environment. Which appears to cause the crash.
VCExpress.exe attempts to load an assembly (Microsoft.VisualStudio.Dialogs), that is in the PrivateAssemblies directory. VCExpress uses AppDomain.DefineDynamicAssembly to map this assembly and mono doesn't use the prelook hook.
Can someone else confirm?
http://bugs.winehq.org/show_bug.cgi?id=34756
Alistair Leslie-Hughes leslie_alistair@hotmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #46581|0 |1 is obsolete| |
https://bugs.winehq.org/show_bug.cgi?id=34756
--- Comment #13 from Austin English austinenglish@gmail.com --- (In reply to Alistair Leslie-Hughes from comment #12)
The patch has been accepted however the exception is still thrown.
The installer calls the VCExpress.exe to setup the VC environment. Which appears to cause the crash.
VCExpress.exe attempts to load an assembly (Microsoft.VisualStudio.Dialogs), that is in the PrivateAssemblies directory. VCExpress uses AppDomain.DefineDynamicAssembly to map this assembly and mono doesn't use the prelook hook.
Can someone else confirm?
In wine-1.7.29-57-gfbf2557, it's still present. The backtrace is no longer printed to stderr, but a Microsoft error dialog is shown. With native dotnet40, I don't get that dialog.
https://bugs.winehq.org/show_bug.cgi?id=34756
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |focht@gmx.net Status|NEW |NEEDINFO
--- Comment #14 from Anastasius Focht focht@gmx.net --- Hello folks,
please retest using recent Wine/Mono.
Regards
https://bugs.winehq.org/show_bug.cgi?id=34756
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- URL|http://download.microsoft.c |https://web.archive.org/web |om/download/1/E/5/1E5F1C0A- |/20111016110147/http://down |0D5B-426A-A603-1798B951DDAE |load.microsoft.com/download |/VS2010Express1.iso |/1/E/5/1E5F1C0A-0D5B-426A-A | |603-1798B951DDAE/VS2010Expr | |ess1.iso
https://bugs.winehq.org/show_bug.cgi?id=34756
Linards linards.liepins@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |linards.liepins@gmail.com
--- Comment #15 from Linards linards.liepins@gmail.com --- Is the issue still present?
https://bugs.winehq.org/show_bug.cgi?id=34756
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Status|NEEDINFO |RESOLVED
--- Comment #16 from Anastasius Focht focht@gmx.net --- Hello folks,
this has been fixed a long time ago, somewhere in between Wine 1.7.x and Wine 2.0
There is an unrelated (non-fatal) component install failure -> 'Microsoft SQL Server Compact 3.5 SP2 (x86)'
--- snip --- ... [05/13/21,20:58:20] ExpressUI: Showing Express Finish Page [05/13/21,20:58:20] ExpressUI: Install complete... checking results [05/13/21,20:58:20] Setup.exe: GetGlobalCustomProperty - Property: {BBE1827C-F2FD-4FDA-A6D6-C83B62FFFDCA} - PropertyName: compfailed - Value: 3 [05/13/21,20:58:20] ExpressUI: FProductIsInstalled(): MsiQueryProductState: {46F8CF66-AB83-38A7-99B2-A5BE507EE472} [05/13/21,20:58:20] ExpressUI: FProductIsInstalled (installed): 5 [05/13/21,20:58:20] ExpressUI: GenerateHtml() called in INSTALL mode. [05/13/21,20:58:20] Setup.exe: GetComponents() [05/13/21,20:58:20] Setup.exe: get_Components() [05/13/21,20:58:20] Setup.exe: GetGlobalCustomProperty - Property: {BBE1827C-F2FD-4FDA-A6D6-C83B62FFFDCA} - PropertyName: compfailed - Value: 3 [05/13/21,20:58:20] ExpressUI: Return for Microsoft Application Error Reporting indicates a successful installation. DepCheck indicates the component is installed. [05/13/21,20:58:20] ExpressUI: : Skip : A higher version of Visual Studio is already installed [05/13/21,20:58:20] ExpressUI: : Skip : IA64 blocker [05/13/21,20:58:20] ExpressUI: : Skip : Windows XP Service Pack 3 is required [05/13/21,20:58:20] ExpressUI: : Skip : Windows XP x64 Service Pack 2 is required [05/13/21,20:58:20] ExpressUI: : Skip : Windows Vista Service Pack 1 Update Information [05/13/21,20:58:20] ExpressUI: : Skip : Windows Imaging Component is required [05/13/21,20:58:20] ExpressUI: : Skip : Windows Imaging Component (64-bit) is required [05/13/21,20:58:21] ExpressUI: : Skip : Windows 2003 Server Service Pack 2 Update Information [05/13/21,20:58:21] ExpressUI: : Skip : Windows Installer 3.1 or higher is required. [05/13/21,20:58:21] ExpressUI: Return for VC 9.0 Runtime (x86) indicates a successful installation. DepCheck indicates the component is installed. [05/13/21,20:58:21] ExpressUI: : Skip : Microsoft .NET Framework 4 [05/13/21,20:58:21] ExpressUI: : Skip : Microsoft Windows Installer 4.5 (x86) - Windows XP [05/13/21,20:58:21] ExpressUI: : Skip : Microsoft Windows Installer 4.5 Update (x86) - Windows XP [05/13/21,20:58:21] ExpressUI: : Skip : Microsoft Windows Installer 4.5 (x86) - Windows 2003 [05/13/21,20:58:21] ExpressUI: : Skip : Microsoft Windows Installer 4.5 Update (x86) - Windows 2003 [05/13/21,20:58:21] ExpressUI: : Skip : Microsoft Windows Installer 4.5 (x64) [05/13/21,20:58:21] ExpressUI: : Skip : Microsoft Windows Installer 4.5 Update (x64) [05/13/21,20:58:21] ExpressUI: : Skip : Microsoft Windows Installer 4.5 (x86) - Vista [05/13/21,20:58:21] ExpressUI: : Skip : Microsoft Windows Installer 4.5 (x64) - Vista [05/13/21,20:58:21] ExpressUI: : Skip : Microsoft Visual Studio 2010 Express Prerequisites x64 [05/13/21,20:58:21] ExpressUI: Return for .NET Framework 4 Multi-Targeting Pack indicates a successful installation. DepCheck indicates the component is installed. [05/13/21,20:58:21] ExpressUI: : ROOT : Microsoft Visual C++ 2010 Express - ENU [05/13/21,20:58:21] ExpressUI: Return for Microsoft Visual C++ 2010 Express - ENU indicates a successful installation. DepCheck indicates the component is installed. [05/13/21,20:58:21] ExpressUI: DepCheck indicates Microsoft SQL Server Compact 3.5 SP2 (x86) ENU is not installed. [05/13/21,20:58:21] Setup.exe: AddGlobalCustomProperty [05/13/21,20:58:21] ExpressUI: ***ERRORLOG EVENT*** : DepCheck indicates Microsoft SQL Server Compact 3.5 SP2 (x86) ENU is not installed. [05/13/21,20:58:21] ExpressUI: : Skip : Microsoft SQL Server Compact 3.5 SP2 (x64) ENU [05/13/21,20:58:21] ExpressUI: : Skip : Microsoft Silverlight [05/13/21,20:58:21] ExpressUI: : Skip : Microsoft SQL Server 2008 Express Service Pack 1 (x86) [05/13/21,20:58:21] ExpressUI: : Skip : Microsoft SQL Server 2008 Express Service Pack 1 (x64) [05/13/21,20:58:21] ExpressUI: : Skip : Microsoft SQL Server 2008 Express Service Pack 1 (x86) Upgrade [05/13/21,20:58:21] ExpressUI: : Skip : Microsoft SQL Server 2008 Express Service Pack 1 (x64) Upgrade [05/13/21,20:58:21] ExpressUI: Return for Microsoft Help Viewer 1.0 x86 indicates a successful installation. DepCheck indicates the component is installed. [05/13/21,20:58:21] ExpressUI: : Skip : Microsoft Help Viewer 1.0 x64 [05/13/21,20:58:21] ExpressUI: Obtained failed/cancel flag [05/13/21,20:58:21] Setup.exe: AddGlobalCustomProperty [05/13/21,20:58:21] ExpressUI: The main product installed correctly and we're in an initial install. [05/13/21,20:58:21] ExpressUI: But some error occurred (optional components). [05/13/21,20:58:21] Successful_Completion: ... --- snip ---
$ wine --version wine-2.0
Regards
https://bugs.winehq.org/show_bug.cgi?id=34756
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #17 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 6.9.