http://bugs.winehq.org/show_bug.cgi?id=29323
Bug #: 29323 Summary: Wine fails to load wordpro.exe, says Bad EXE format Product: Wine Version: 1.3.34 Platform: x86-64 URL: ftp://ftp.lotus.com/pub/lotusweb/product/smartsuite/de mo/suitedemo.EXE OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: loader AssignedTo: wine-bugs@winehq.org ReportedBy: markk@clara.co.uk Classification: Unclassified
Hi,
This bug applies to the Word Pro executable in the Lotus SmartSuite Millennium demo. (Warning: the demo installer is ~345MB.)
After downloading and running the installer, run wordpro.exe. Wine fails saying wine: Bad EXE format for C:\Lotus\wordpro\wordpro.exe
I'm assuming wordpro.exe does actually work in Windows. Here is part of a +module trace:
trace:module:load_dll looking for L"C:\Lotus\wordpro\wordpro.exe" in L".;C:\windows\system32;C:\windows\system;C:\windows;C:\windows\system32;C:\windows;C:\windows\system32\wbem" trace:module:get_load_order looking for L"C:\Lotus\wordpro\wordpro.exe" trace:module:get_load_order got main exe default n,b for L"C:\Lotus\wordpro\wordpro.exe" trace:module:load_native_dll Trying native dll L"C:\Lotus\wordpro\wordpro.exe" trace:module:map_image mapped PE file at 0x400000-0x8fd000 trace:module:map_image mapping section .text at 0x401000 off 1000 size 438000 virt 437389 flags e0000020 trace:module:map_image mapping section .rdata at 0x839000 off 439000 size b2000 virt b1e53 flags 40000040 trace:module:map_image mapping section .data at 0x8eb000 off 4eb000 size 3000 virt a31c flags c0000040 trace:module:map_image mapping section .tls at 0x8f6000 off 4ee000 size 1000 virt c flags c0000040 warn:module:map_image Section .rsrc too large (4f7000+a000/4fd000) warn:module:load_dll Failed to load module L"C:\Lotus\wordpro\wordpro.exe"; status=c000007b wine: Bad EXE format for C:\Lotus\wordpro\wordpro.exe
http://bugs.winehq.org/show_bug.cgi?id=29323
Mark K markk@clara.co.uk changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download CC| |markk@clara.co.uk
http://bugs.winehq.org/show_bug.cgi?id=29323
--- Comment #1 from Mark K markk@clara.co.uk 2011-12-11 06:16:34 CST --- Some other executables in the SmartSuite demo also show the same problem; at least approach.exe, org5.exe and fastsite.exe.
http://bugs.winehq.org/show_bug.cgi?id=29323
--- Comment #2 from Mark K markk@clara.co.uk 2011-12-11 06:18:24 CST --- Created attachment 37922 --> http://bugs.winehq.org/attachment.cgi?id=37922 Partial +module logs
http://bugs.winehq.org/show_bug.cgi?id=29323
Dmitry Timoshkov dmitry@baikal.ru changed:
What |Removed |Added ---------------------------------------------------------------------------- CC|markk@clara.co.uk | Component|loader |-unknown Summary|Wine fails to load |wordpro.exe failed to load: |wordpro.exe, says Bad EXE |Bad EXE format |format |
http://bugs.winehq.org/show_bug.cgi?id=29323
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |focht@gmx.net
--- Comment #3 from Anastasius Focht focht@gmx.net 2011-12-14 13:49:09 CST --- Hello,
--- quote --- I'm assuming wordpro.exe does actually work in Windows. --- quote ---
I doubt these apps run on more recent Windows versions out of the box. If you search IBM forums for Lotus Smartsuite running on Windows 7 you get complaints. They say for Windows Vista and above you have to install and run these apps in "Windows XP compatibility" mode.
That means application shims are applied that alter operating system behaviour (loader, etc.) to allow undocumented stuff/hacks that worked in earlier Windows versions.
Regards
http://bugs.winehq.org/show_bug.cgi?id=29323
Mark K markk@clara.co.uk changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |markk@clara.co.uk
--- Comment #4 from Mark K markk@clara.co.uk 2011-12-18 10:15:49 CST --- I tested the SmartSuite demo under Windows 98SE and 2000.
Under Windows 2000, the same executables failed to load as with Wine: Working: 123w.exe, f32main.exe Not working: approach.exe, fastsite.exe, org5.exe, wordpro.exe
Under Windows 98 however, fastsite.exe does work. (approach.exe, org5.exe and wordpro.exe fail giving an out of memory message.)
The suitedemo.EXE file seems to be a self-extracting archive of the files on a SmartSuite demo CD. It seems something about it is broken; on googling for "smartsuite demo", a couple of results on the first page are forum postings mentioning the same problem.
Nonetheless, it might be worthwhile to investigate why fastsite.exe loads under Windows 98, but not later version of Windows or Wine.
https://bugs.winehq.org/show_bug.cgi?id=29323
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED URL|ftp://ftp.lotus.com/pub/lot |ftp://ftp.lotus.com/pub/lot |usweb/product/smartsuite/de |usweb/product/smartsuite/de |mo/suitedemo.EXE |mo/suitedemo.EXE Component|-unknown |ntdll Resolution|--- |WONTFIX Summary|wordpro.exe failed to load: |Lotus SmartSuite Millennium |Bad EXE format |'fastsite.exe' fails to | |load: 'Bad EXE format' (PE | |IMAGE_OPTIONAL_HEADER.SizeO | |fImage value too small to | |fit last section)
--- Comment #5 from Anastasius Focht focht@gmx.net --- Hello folks,
since you verified all executables flagged by Wine loader as 'Bad EXE format' failing the same way on NT-based Windows versions it seems Wine's loader behaves as designed/specified.
--- snip --- 0026:trace:module:load_native_dll Trying native dll L"C:\Lotus\fastsite\fastsite.exe" 0026:trace:module:map_image mapped PE file at 0x400000-0x4fa000 0026:trace:module:map_image mapping section .text at 0x401000 off 400 size b6800 virt b6682 flags e0000020 0026:trace:module:map_image clearing 0x4b7800 - 0x4b8000 0026:trace:module:map_image mapping section .rdata at 0x4b8000 off b6c00 size 33000 virt 32e49 flags 40000040 0026:trace:module:map_image mapping section .data at 0x4eb000 off e9c00 size 8400 virt 9068 flags c0000040 0026:trace:module:map_image clearing 0x4f3400 - 0x4f4000 0026:trace:module:map_image mapping section .idata at 0x4f5000 off f2000 size 3a00 virt 3898 flags c0000040 0026:trace:module:map_image clearing 0x4f8a00 - 0x4f9000 0026:warn:module:map_image Section .rsrc too large (f9000+5000/fa000) 0026:warn:module:load_dll Failed to load module L"C:\Lotus\fastsite\fastsite.exe"; status=c000007b wine: Bad EXE format for C:\Lotus\fastsite\fastsite.exe. --- snip ---
All 'bad' executables have their PE IMAGE_OPTIONAL_HEADER.SizeOfImage value too small to fit last section. Looking at the compiler/linker signatures it seems the executables were created with Microsoft Visual C++ 5.0 ~1999. Such broken executables can't possibly work with modern NT based OS loaders.
You can 'repair' all broken executables by using PE tools like 'LordPE' which automatically adjusts the PE IMAGE_OPTIONAL_HEADER.SizeOfImage value to have the last section fit too.
Regards
https://bugs.winehq.org/show_bug.cgi?id=29323
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #6 from Austin English austinenglish@gmail.com --- Closing.