http://bugs.winehq.org/show_bug.cgi?id=30518
Bug #: 30518 Summary: 64-bit mono cannot run hello world Product: Wine Version: 1.5.2 Platform: x86 OS/Version: Linux Status: NEW Keywords: download, source, testcase, win64 Severity: normal Priority: P2 Component: ntdll AssignedTo: wine-bugs@winehq.org ReportedBy: madewokherd@gmail.com Classification: Unclassified
Created attachment 39919 --> http://bugs.winehq.org/attachment.cgi?id=39919 C# hello world source code
To reproduce: * Download and extract http://madewokherd.nfshost.com/omgsecret/mono-64bit-exe.tar.gz, or build wine-mono from https://github.com/madewokherd/wine-mono, and copy mono.exe and libmono-2.0.dll from build-cross-x86_64/mono/mini/.libs to image/bin. * Download the attached helloworld.exe, or build it from helloworld.cs. * Run: wine image/bin/mono.exe helloworld.exe
Currently, this results in wine: Call from 0x7fd2bcbde2fa to unimplemented function KERNEL32.dll.RtlInstallFunctionTableCallback, aborting
http://bugs.winehq.org/show_bug.cgi?id=30518
--- Comment #1 from Vincent Povirk madewokherd@gmail.com 2012-04-25 08:48:45 CDT --- Created attachment 39920 --> http://bugs.winehq.org/attachment.cgi?id=39920 C# hello world exe
http://bugs.winehq.org/show_bug.cgi?id=30518
Vincent Povirk madewokherd@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |madewokherd@gmail.com
http://bugs.winehq.org/show_bug.cgi?id=30518
Felix Yan felixonmars@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |felixonmars@gmail.com
http://bugs.winehq.org/show_bug.cgi?id=30518
Ken Sharp kennybobs@o2.co.uk changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |kennybobs@o2.co.uk
--- Comment #2 from Ken Sharp kennybobs@o2.co.uk 2012-11-06 02:20:32 CST --- This also causes remote compiles on the MT5 Agent to fail on 64-bit systems. http://msdn.microsoft.com/en-gb/library/windows/desktop/ms680595%28v=vs.85%2...
WINEARCH=win32 should work around this, but setting a different Windows version may also work. Cannot confirm at the moment.
http://bugs.winehq.org/show_bug.cgi?id=30518
Ken Sharp kennybobs@o2.co.uk changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|64-bit mono cannot run |Unimplemented function |hello world |KERNEL32.dll.RtlInstallFunc | |tionTableCallback
http://bugs.winehq.org/show_bug.cgi?id=30518
Dan Kegel dank@kegel.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |dank@kegel.com
--- Comment #3 from Dan Kegel dank@kegel.com 2013-02-16 12:15:56 CST --- A user reported in email that this happens in Metatrader 5 when he tries to "attach an indicator or expert advisor to a chart".
http://bugs.winehq.org/show_bug.cgi?id=30518
--- Comment #4 from Ken Sharp kennybobs@o2.co.uk 2013-02-17 03:21:44 CST --- That suggests Bug 32140 is fixed.
Did the user try installing MT5 with WINEARCH=win32?
http://bugs.winehq.org/show_bug.cgi?id=30518
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |focht@gmx.net Summary|Unimplemented function |Multiple 64-bit |KERNEL32.dll.RtlInstallFunc |applications need |tionTableCallback |KERNEL32.dll.RtlInstallFunc | |tionTableCallback (Mono, | |Metatrader 5 Agent)
--- Comment #5 from Anastasius Focht focht@gmx.net 2013-04-21 14:29:42 CDT --- Hello folks,
refining summary. Still present with wine-1.5.28-133-g7d8f3a1
This is needed for 64-bit Mono exception support:
https://github.com/mono/mono/blob/master/mono/mini/exceptions-amd64.c
Regards
http://bugs.winehq.org/show_bug.cgi?id=30518
Vincent Povirk madewokherd@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- URL| |http://www.ludumdare.com/co | |mpo/minild-48/?action=previ | |ew&uid=11418
--- Comment #6 from Vincent Povirk madewokherd@gmail.com --- FWIW, I found a downloadable program in the wild that hits this (using Unity3D/Mono): http://www.ludumdare.com/compo/minild-48/?action=preview&uid=11418
http://bugs.winehq.org/show_bug.cgi?id=30518
Sebastian Lackner sebastian@fds-team.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |sebastian@fds-team.de
--- Comment #7 from Sebastian Lackner sebastian@fds-team.de --- Hi,
I've written a bunch of patches to implement the missing functionality:
https://github.com/compholio/wine-compholio-daily/tree/master/patches/11-Dyn...
For Unity3D (64-bit) this seems to solve the issue, but would be nice if you guys could do a bit more testing with other applications, and report back if you see any problems with these changes.
Otherwise I'll send them to wine-devel during the next few days.
Regards, Sebastian
http://bugs.winehq.org/show_bug.cgi?id=30518
--- Comment #8 from Sebastian Lackner sebastian@fds-team.de --- Hi,
my patches are upstream and included in Wine 1.7.17 - it would be nice if you guys could do some testing, and check if this problem still exists (or if there are any new problems with specific applications).
Regards, Sebastian
http://bugs.winehq.org/show_bug.cgi?id=30518
--- Comment #9 from Vincent Povirk madewokherd@gmail.com --- Corruptong still crashes, but it's not because this function is unimplemented.
http://bugs.winehq.org/show_bug.cgi?id=30518
--- Comment #10 from Vincent Povirk madewokherd@gmail.com --- 64-bit Mono is now able to run helloworld.exe with no problems.
http://bugs.winehq.org/show_bug.cgi?id=30518
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |7ba43b2fd1b7e62e12018f65056 | |907e1303d18a3 Status|NEW |RESOLVED Resolution|--- |FIXED
--- Comment #11 from Anastasius Focht focht@gmx.net --- Hello folks,
resolving fixed as per Vincent's comment #10
Commit series:
http://source.winehq.org/git/wine.git/commitdiff/a71d1e389f7fffb66b93de3a9a9... ("ntdll: Unify exception function lookup on x86_64.")
http://source.winehq.org/git/wine.git/commitdiff/98307b22fba5c0d757be15b9f35... ("ntdll: Implement RtlAddFunctionTable / RtlDeleteFunctionTable for x86_64.")
http://source.winehq.org/git/wine.git/commitdiff/4d8edf7612a62e1d2234f310b06... ("ntdll: Implement RtlInstallFunctionTableCallback on x86_64.")
http://source.winehq.org/git/wine.git/commitdiff/7ba43b2fd1b7e62e12018f65056... ("kernel32: Forward RtlInstallFunctionTableCallback to ntdll.")
Thanks Sebastian
Regards
https://bugs.winehq.org/show_bug.cgi?id=30518
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #12 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 1.7.18.
https://bugs.winehq.org/show_bug.cgi?id=30518
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |luckyslink819351788@gmail.c | |om
--- Comment #13 from Anastasius Focht focht@gmx.net --- *** Bug 41082 has been marked as a duplicate of this bug. ***