https://bugs.winehq.org/show_bug.cgi?id=38661
Bug ID: 38661 Summary: Demoscene 'Coronoid' (64-bit .NET app) fails to run, Wine loader reports 'executable doesn't have an entry point, it cannot be executed' Product: Wine Version: 1.7.44 Hardware: x86 OS: Linux Status: NEW Severity: normal Priority: P2 Component: ntdll Assignee: wine-bugs@winehq.org Reporter: focht@gmx.net Distribution: ---
Hello folks,
this has been reported in Wine-Staging first, shamelessly cloning it here for discussion and raise awareness of this insufficiency in Wine loader.
https://bugs.wine-staging.com/show_bug.cgi?id=190
Requires 64-bit WINEPREFIX as the main .NET executable is 64-bit.
--- snip --- $ wine ./still\ -\ coronoid.exe err:process:start_process L"Z:\home\focht\Downloads\still - coronoid\still - coronoid.exe" doesn't have an entry point, it cannot be executed --- snip ---
--- snip --- $ file *.{dll,exe} Core.dll: PE32 executable (DLL) (console) Intel 80386 Mono/.Net assembly, for MS Windows still - coronoid.exe: PE32+ executable (GUI) x86-64 Mono/.Net assembly, for MS Windows --- snip ---
The patch by Michael:
https://github.com/wine-compholio/wine-staging/tree/master/patches/ntdll-CLI... ("Implement proper handling of CLI .NET images in Wine library loader")
For Wine-Mono bits ('mscoree._CorValidateImage') I'll create an extra ticket.
$ sha1sum still---coronoid.zip 3ab7239a42be3135fff996a77b6f4e3b34c73295 still---coronoid.zip
$ du -sh still---coronoid.zip 56M still---coronoid.zip
$ wine --version wine-1.7.44
Regards
https://bugs.winehq.org/show_bug.cgi?id=38661
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |dotnet, download, win64 URL| |ftp://ftp.scene.org/pub/par | |ties/2015/nvscene15/demo_pc | |/still---coronoid.zip Hardware|x86 |x86-64
https://bugs.winehq.org/show_bug.cgi?id=38661
Sebastian Lackner sebastian@fds-team.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |michael@fds-team.de, | |sebastian@fds-team.de
https://bugs.winehq.org/show_bug.cgi?id=38661
Michael Müller michael@fds-team.de changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |STAGED Staged patchset| |https://github.com/wine-com | |pholio/wine-staging/tree/ma | |ster/patches/ntdll-CLI_Imag | |es
https://bugs.winehq.org/show_bug.cgi?id=38661
Sebastian Lackner sebastian@fds-team.de changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|Demoscene 'Coronoid' |Demoscene 'Coronoid' and |(64-bit .NET app) fails to |Rust (64-bit .NET apps) |run, Wine loader reports |fails to run, Wine loader |'executable doesn't have an |reports 'executable doesn't |entry point, it cannot be |have an entry point, it |executed' |cannot be executed'
--- Comment #1 from Sebastian Lackner sebastian@fds-team.de --- Someone on #winehq reported the same problem with the game Rust (via Steam) in a 64-bit prefix.
err:process:start_process L"C:\[...]\Rust.exe" doesn't have an entry point, it cannot be executed
For reference, interesting parts of the winedump output:
--- snip --- winedump .wine/drive_c/[...]/Rust.exe
File Header Machine: 8664 (AMD64) [...] entrypoint RVA 0x0 0 [...] CLR Header rva: 0x2000 size: 0x48 rva: 0x0 size: 0x0 --- snip ---
My last attempt to submit the first patch: https://www.winehq.org/pipermail/wine-patches/2015-August/141857.html
Without the mscoree semi-stub implementation of that function, the loader changes would break wine-mono.
https://bugs.winehq.org/show_bug.cgi?id=38661
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |patch
https://bugs.winehq.org/show_bug.cgi?id=38661
fjfrackiewicz@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |fjfrackiewicz@gmail.com
--- Comment #2 from fjfrackiewicz@gmail.com --- Noxico, another 64-bit game, also exhibits this exact behavior.
Download link:
http://helmet.kafuka.org/noxico/files/noxico-0.1.5.7z
https://bugs.winehq.org/show_bug.cgi?id=38661
--- Comment #3 from Anastasius Focht focht@gmx.net --- Hello folks,
revisiting, obviously still present.
$ wine --version wine-3.1
Regards
https://bugs.winehq.org/show_bug.cgi?id=38661
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |vamp898@ignaz.org
--- Comment #4 from Anastasius Focht focht@gmx.net --- *** Bug 44445 has been marked as a duplicate of this bug. ***
https://bugs.winehq.org/show_bug.cgi?id=38661
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|Demoscene 'Coronoid' and |64-bit .NET CLR/managed |Rust (64-bit .NET apps) |executables can't be run by |fails to run, Wine loader |Wine loader (entry point |reports 'executable doesn't |not set to mscoree.dll |have an entry point, it |_CorExeMain/_CorDllMain)(De |cannot be executed' |moscene 'Coronoid', Rust, | |SIGMA Photo Pro 6)
--- Comment #5 from Anastasius Focht focht@gmx.net --- Hello folks,
bug 44445 -> 64-bit SIGMA Photo Pro 6 (.NET 4.0 app) also has this problem.
Due to recent rewrite of Wine loader code, the Wine-Staging patches don't apply anymore. Even worse, Wine crashes now when the entry point is not set.
--- snip --- ... 0009:trace:module:process_attach (L"SIGMA_PhotoPro6.exe",0x53fb00) - END 0009:Starting process L"C:\Program Files\SIGMA\SIGMA Photo Pro 6\SIGMA_PhotoPro6.exe" (entryproc=0x140000000) 0009:trace:ntdll:NtQueryInformationProcess (0xffffffffffffffff,0x00000007,0x53fda8,0x00000008,(nil)) 0009: get_process_info( handle=ffffffff ) 0009: get_process_info() = 0 { pid=0008, ppid=0000, affinity=000000ff, peb=7fffffeaf000, start_time=1d3a21ecc8a2296 (-0.0048600), end_time=0, exit_code=259, priority=2, cpu=x86_64, debugger_present=0, debug_children=1 } 0009:trace:seh:NtRaiseException code=c0000005 flags=0 addr=0x140000000 ip=140000000 tid=0009 0009:trace:seh:NtRaiseException info[0]=0000000000000000 0009:trace:seh:NtRaiseException info[1]=0000000140000000 0009:trace:seh:NtRaiseException rax=0000000140000000 rbx=0000000000000000 rcx=00007fffffeaf000 rdx=00007fffffeaf000 0009:trace:seh:NtRaiseException rsi=0000000140000000 rdi=00007fffffeaf000 rbp=000000000053fdc0 rsp=000000000053fd88 0009:trace:seh:NtRaiseException r8=0000003de5787683 r9=0000000000000005 r10=0000000000000008 r11=0000000000000246 0009:trace:seh:NtRaiseException r12=0000000000000000 r13=0000000000000000 r14=0000000000000000 r15=0000000000000000 0009:warn:seh:call_stack_handlers exception data not found in L"SIGMA_PhotoPro6.exe" ... --- snip ---
--- snip --- ... ->File Header Machine: 0x8664 (AMD64) NumberOfSections: 0x0002 TimeDateStamp: 0x59783667 (GMT: Wed Jul 26 06:27:51 2017) PointerToSymbolTable: 0x00000000 NumberOfSymbols: 0x00000000 SizeOfOptionalHeader: 0x00F0 Characteristics: 0x0022 (EXECUTABLE_IMAGE) (LARGE_ADDRESS_AWARE)
->Optional Header 64 Magic: 0x020B (HDR64_MAGIC) MajorLinkerVersion: 0x0B MinorLinkerVersion: 0x00 -> 11.00 SizeOfCode: 0x0095A200 SizeOfInitializedData: 0x00047000 SizeOfUninitializedData: 0x00000000 AddressOfEntryPoint: 0x00000000 BaseOfCode: 0x00002000 ImageBase: 0x0000000140000000 SectionAlignment: 0x00002000 FileAlignment: 0x00000200 MajorOperatingSystemVersion: 0x0004 MinorOperatingSystemVersion: 0x0000 -> 4.00 MajorImageVersion: 0x0000 MinorImageVersion: 0x0000 -> 0.00 MajorSubsystemVersion: 0x0004 MinorSubsystemVersion: 0x0000 -> 4.00 Win32VersionValue: 0x00000000 SizeOfImage: 0x009A4E28 SizeOfHeaders: 0x00000200 CheckSum: 0x009A5561 Subsystem: 0x0002 (WINDOWS_GUI) DllCharacteristics: 0x8540 SizeOfStackReserve: 0x0000000000400000 SizeOfStackCommit: 0x0000000000004000 SizeOfHeapReserve: 0x0000000000100000 SizeOfHeapCommit: 0x0000000000002000 LoaderFlags: 0x00000000 NumberOfRvaAndSizes: 0x00000010
DataDirectory (16) RVA Size ------------- ---------- ---------- ExportTable 0x00000000 0x00000000 ImportTable 0x00000000 0x00000000 Resource 0x0095E000 0x00046E28 (".rsrc") Exception 0x00000000 0x00000000 Security 0x00000000 0x00000000 Relocation 0x00000000 0x00000000 Debug 0x0095BFAC 0x0000001C (".text") Copyright 0x00000000 0x00000000 GlobalPtr 0x00000000 0x00000000 TLSTable 0x00000000 0x00000000 LoadConfig 0x00000000 0x00000000 BoundImport 0x00000000 0x00000000 IAT 0x00000000 0x00000000 DelayImport 0x00000000 0x00000000 COM 0x00002000 0x00000048 (".text") Reserved 0x00000000 0x00000000 --- snip ---
Refining summary to collect more apps.
Regards
https://bugs.winehq.org/show_bug.cgi?id=38661
Alistair Leslie-Hughes leslie_alistair@hotmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|STAGED |RESOLVED Fixed by SHA1| |39c8875ff8aa543eaa50e52db0c | |546717de691af Resolution|--- |FIXED CC| |leslie_alistair@hotmail.com
--- Comment #6 from Alistair Leslie-Hughes leslie_alistair@hotmail.com --- Fixed by https://source.winehq.org/git/wine.git/?a=commit;h=39c8875ff8aa543eaa50e52db...
https://bugs.winehq.org/show_bug.cgi?id=38661
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #7 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 3.3.
https://bugs.winehq.org/show_bug.cgi?id=38661
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |privat@lgruhlke.org
--- Comment #8 from Anastasius Focht focht@gmx.net --- *** Bug 44363 has been marked as a duplicate of this bug. ***
https://bugs.winehq.org/show_bug.cgi?id=38661
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- URL|ftp://ftp.scene.org/pub/par |https://web.archive.org/web |ties/2015/nvscene15/demo_pc |/20180812044952/http://arch |/still---coronoid.zip |ive.scene.org/pub/parties/2 | |015/nvscene15/demo_pc/still | |---coronoid.zip