http://bugs.winehq.org/show_bug.cgi?id=20191
Summary: VC9 mt.exe crashes when trying to embed a manifest Product: Wine Version: 1.1.30 Platform: PC-x86-64 OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown AssignedTo: wine-bugs@winehq.org ReportedBy: skyphyr@gmail.com CC: dank@kegel.com
Created an attachment (id=23803) --> (http://bugs.winehq.org/attachment.cgi?id=23803) A small source example to reproduce the mt.exe crash
Hi All,
I've been using wine to build binaries with vc9 for a while and it's gone ok, but I've hit some projects where I need to embed a manifest. It's doing that that I'm hitting a problem with wine crashing. Mt.exe runs fine when called with no arguments (just outputs help text).
I installed VC9 by copying the files over from a windows installation. I then installed vc2008 sp1 runtime in order to fix up some issues the compiler had finding some msvc* libraries.
I'm running Mandriva 2009.1 x86_64 and I've tried this using both it's standard wine (1.1.17 at the moment) and compiling 1.1.30 from source (It appears to work, but I can't be certain I did everything correctly as it pushes out a lot of text during a run of mt.exe - mostly font stuff).
I've attached two archives. One contains the output of WINEDEBUG=+relay,+seh wine c:/Program\ Files/Microsoft\ SDKs/Windows/v6.1//bin/mt.exe -manifest win32/indexedTextureLookup.dll.manifest -outputresource:win32/indexedTextureLookup.dll;2 run on both 1.1.17 and 1.1.30
The other is a small set of source (the makefile has some extraneous stuff that is part of the build process I put together to do cross-platform compilation using wine and VC, but other than that it's all pretty barebones). The line(s) in Makefile.generic which call mt.exe are commented out.
Let me know if you have any questions or if there's something I can do to help track down this bug.
Cheers,
Alan.
http://bugs.winehq.org/show_bug.cgi?id=20191
--- Comment #1 from Alan Jones skyphyr@gmail.com 2009-09-28 02:12:21 --- Created an attachment (id=23804) --> (http://bugs.winehq.org/attachment.cgi?id=23804) The 1.1.17 log described in the post
http://bugs.winehq.org/show_bug.cgi?id=20191
--- Comment #2 from Alan Jones skyphyr@gmail.com 2009-09-28 02:13:20 --- Created an attachment (id=23805) --> (http://bugs.winehq.org/attachment.cgi?id=23805) The 1.1.30 log described in the post
http://bugs.winehq.org/show_bug.cgi?id=20191
--- Comment #3 from Juan Lang juan_lang@yahoo.com 2009-09-28 21:46:30 --- For starters, you could post the console output without +relay.
For another thing, installing anything the way you did is invalid. I know it worked for you when you weren't trying to embed a manifest, and that isn't the point. The point is, we can't know if it's a result of your invalid installation or a Wine bug that it's crashing for you. If there's a bug that prevents you from installing, please reference it.
http://bugs.winehq.org/show_bug.cgi?id=20191
--- Comment #4 from Alan Jones skyphyr@gmail.com 2009-09-29 00:55:29 --- Created an attachment (id=23821) --> (http://bugs.winehq.org/attachment.cgi?id=23821) The 1.1.17 log without +relay
http://bugs.winehq.org/show_bug.cgi?id=20191
--- Comment #5 from Alan Jones skyphyr@gmail.com 2009-09-29 00:55:58 --- Created an attachment (id=23822) --> (http://bugs.winehq.org/attachment.cgi?id=23822) The 1.1.30 log without +relay
http://bugs.winehq.org/show_bug.cgi?id=20191
--- Comment #6 from Alan Jones skyphyr@gmail.com 2009-09-29 00:57:12 --- Hi Juan,
I will attempt the installation and log any bugs if it fails to install or provide further details on using mt.exe within a properly installed environment.
Cheers,
Alan.
http://bugs.winehq.org/show_bug.cgi?id=20191
--- Comment #7 from Alan Jones skyphyr@gmail.com 2009-09-29 01:06:42 --- Hi Juan,
The installation fails. I erred on the side of caution and added to this bug http://bugs.winehq.org/show_bug.cgi?id=14875 though I'm not certain they're the same thing.
Cheers,
Alan.
http://bugs.winehq.org/show_bug.cgi?id=20191
--- Comment #8 from Austin English austinenglish@gmail.com 2011-10-01 16:47:58 CDT --- This is your friendly reminder that there has been no bug activity for 1 year. Is this still an issue in current (1.3.29 or newer) wine?
http://bugs.winehq.org/show_bug.cgi?id=20191
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED URL| |http://www.microsoft.com/do | |wnload/en/details.aspx?Disp | |layLang=en&id=11310 Keywords| |download CC| |focht@gmx.net Resolution| |FIXED Summary|VC9 mt.exe crashes when |Platform SDK 6.1 manifest |trying to embed a manifest |tool "mt.exe" | |(v5.2.3790.2075) crashes | |when trying to embed a | |manifest
--- Comment #9 from Anastasius Focht focht@gmx.net 2012-01-18 15:25:44 CST --- Hello,
can't reproduce.
No need to install full blown Visual Studio 2008 (9.0) ... Use Microsoft Platform SDK v6.1 and select only build tools to cut down download/install size.
You can use winetricks for that step or manually:
Download: http://www.microsoft.com/download/en/details.aspx?DisplayLang=en&id=1131... Prerequisite: winetricks -q mfc42 dotnet20
I took "tcpanalyzer.exe.manifest" and "tcpanalyzer.exe" from "$WINEPREFIX/drive_c/Program Files/Microsoft SDKs/Windows/V6.0A/bin" folder as example.
Embedding the manifest into PE file:
--- snip --- $ pwd /home/focht/.wine/drive_c/Program Files/Microsoft SDKs/Windows/v6.1/Bin
$ wine ./mt.exe -manifest tcpanalyzer.exe.manifest -outputresource:tcpanalyzer.exe Microsoft (R) Manifest Tool version 5.2.3790.2075 Copyright (c) Microsoft Corporation 2005. All rights reserved. --- snip ---
Extracting again:
--- snip --- $ wine ./mt.exe -inputresource:tcpanalyzer.exe -out:extracted.manifest Microsoft (R) Manifest Tool version 5.2.3790.2075 Copyright (c) Microsoft Corporation 2005. All rights reserved. --- snip ---
Verify extracted manifest against input using diff tool:
--- snip --- $ diff -Naur tcpanalyzer.exe.manifest extracted.manifest --- tcpanalyzer.exe.manifest 2008-01-08 17:19:26.000000000 +0100 +++ extracted.manifest 2012-01-18 22:15:38.167039482 +0100 @@ -1,16 +1,15 @@ -<?xml version='1.0' encoding='utf-8' standalone='yes'?> -<?Copyright (c) Microsoft Corporation. All rights reserved.?> +<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <assembly xmlns="urn:schemas-microsoft-com:asm.v1" copyright="Copyright (c) Microsoft Corporation. All Rights Reserved." manifestVersion="1.0"> - <assemblyIdentity name="tcpanalyzer" processorArchitecture="X86" type="win32" version="1.0.0.0"/> + <assemblyIdentity name="tcpanalyzer" processorArchitecture="X86" type="win32" version="1.0.0.0"></assemblyIdentity> <description>A display of TCP extended statistics for diagnosing TCP application performance</description> <trustInfo xmlns="urn:schemas-microsoft-com:asm.v3"> <security> <requestedPrivileges> - <requestedExecutionLevel level="requireAdministrator" uiAccess="false"/> + <requestedExecutionLevel level="requireAdministrator" uiAccess="false"></requestedExecutionLevel> </requestedPrivileges> </security> </trustInfo> <cbb:debuggingInfo xmlns:cbb="urn:schemas-microsoft-com:asm.internal.v1"> - cbb:sourceManifest sourcePath="%basedir%\net\tcpip\commands\lhtcpanalyzer\tcpanalyzer.exe.manifest"/ + cbb:sourceManifest sourcePath="%basedir%\net\tcpip\commands\lhtcpanalyzer\tcpanalyzer.exe.manifest"</cbb:sourceManifest> </cbb:debuggingInfo> </assembly> --- snip ---
Looks good.
$ wine --version wine-1.3.37-164-gb18ff8b
Regards
http://bugs.winehq.org/show_bug.cgi?id=20191
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #10 from Alexandre Julliard julliard@winehq.org 2012-01-27 14:18:21 CST --- Closing bugs fixed in 1.4-rc1.