http://bugs.winehq.org/show_bug.cgi?id=11222
Summary: When trying to embed a manifest file, mt.exe crashes in kernel32 Product: Wine Version: 0.9.46. Platform: PC OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: kernel32 AssignedTo: wine-bugs@winehq.org ReportedBy: n.tessore@gmail.com
This bug occurs when trying to cross-compile with the Microsoft Visual Studio Express Edition using wine.
Compilation works flawlessly. However, when embedding the manifest file using
mt.exe -nologo -manifest "myprog.manifest" -outputresource:myprog.exe;1
wine crashes.
The output is:
wine: Unhandled page fault on read access to 0xcd98b404 at address 0x7b88037a (thread 002f), starting debugger... Unhandled exception: page fault on read access to 0xcd98b404 in 32-bit code (0x7b88037a).
[...]
Backtrace: =>1 0x7b88037a EndUpdateResourceW+0x3fa(hUpdate=0x1325da, fDiscard=0x0) [/build/buildd/wine-0.9.46/dlls/kernel32/resource.c:1035] in kernel32 (0x0033f8e8) 2 0x01051db0 in mt (+0x51db0) (0x0033f8f8) 3 0x01052945 in mt (+0x52945) (0x0033f944) 4 0x0102ff68 in mt (+0x2ff68) (0x0033f994) 5 0x01028c48 in mt (+0x28c48) (0x0033fe7c) 6 0x01028f48 in mt (+0x28f48) (0x0033fe8c) 7 0x0103c2a8 in mt (+0x3c2a8) (0x0033ff08) 8 0x7b874c7e start_process+0xee(arg=0x0) [/build/buildd/wine-0.9.46/dlls/kernel32/process.c:839] in kernel32 (0x0033ffe8) 9 0xb7ddd9d7 wine_switch_to_stack+0x17() in libwine.so.1 (0x00000000) 0x7b88037a EndUpdateResourceW+0x3fa [/build/buildd/wine-0.9.46/dlls/kernel32/resource.c:1035] in kernel32: movl 0x4(%edx),%ecx
http://bugs.winehq.org/show_bug.cgi?id=11222
--- Comment #1 from Lei Zhang thestig@google.com 2008-01-16 11:49:31 --- Does upgrading to wine 0.9.53 help?
http://bugs.winehq.org/show_bug.cgi?id=11222
--- Comment #2 from NT n.tessore@gmail.com 2008-01-16 16:43:13 --- (In reply to comment #1)
Does upgrading to wine 0.9.53 help?
0.9.53 gives exactly the same result.
http://bugs.winehq.org/show_bug.cgi?id=11222
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |focht@gmx.net
--- Comment #3 from Anastasius Focht focht@gmx.net 2008-01-24 10:37:19 --- Hello,
I don't see any problems embedding manifests into PE files. That tool ships with most Microsoft Platform SDKs or Visual Studio Installations (2005).
The "mt.exe" version I used for testing is: 5.2.3790.2075 (from VS.NET 2005). winever: wine-0.9.53-289-g71f81bf
Test run with simple manifest and small test PE:
--- snip --- wine mt.exe -nologo -manifest "test.manifest" -outputresource:test.exe fixme:advapi:RegisterEventSourceA ((null),".NET Runtime"): stub fixme:advapi:RegisterEventSourceW (L"",L".NET Runtime"): stub fixme:advapi:ReportEventW (0xcafe4242,0x0001,0x0000,0x00000000,(nil),0x0001,0x00000000,0x33e66c,(nil)): stub err:eventlog:ReportEventW L"Error enumerating shim databases - 234" fixme:advapi:DeregisterEventSource (0xcafe4242) stub --- snip ---
The test PE file gets updated and has the manifest resource correctly embedded (I checked with PE tools).
So what's your problem?
1. State the exact version of tools you use. Make sure you use a recent version. 2. Manually execute the command line on wine console (not within build environment) - just to be sure it's really related to mt.exe itself.
E.g. "C:\Program Files\Microsoft Visual Studio 8\VC\bin\mt.exe" -manifest "blah.manifest" -outputresource:"blah.exe" ...
Regards
http://bugs.winehq.org/show_bug.cgi?id=11222
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |ABANDONED
--- Comment #4 from Austin English austinenglish@gmail.com 2008-06-18 15:06:03 --- Is this still an issue in wine 1.0?
--- Comment #5 from Austin English austinenglish@gmail.com 2008-12-17 14:48:28 --- Abandoned.
http://bugs.winehq.org/show_bug.cgi?id=11222
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #6 from Austin English austinenglish@gmail.com 2008-12-17 15:34:54 --- Closing.