https://bugs.winehq.org/show_bug.cgi?id=46370
Bug ID: 46370 Summary: DUSK (and potentially other 64bit Unity games) crash on launch to due lack of functional RtlAddFunctionTable impl Product: Wine Version: 4.0-rc2 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: ntdll Assignee: wine-bugs@winehq.org Reporter: aoanla@gmail.com Distribution: ---
Created attachment 63111 --> https://bugs.winehq.org/attachment.cgi?id=63111 Backtrace and immediate context for crash (DUSK)
The game DUSK (available on Steam) has a 64bit single player binary, and a 32bit multiplayer binary, both built in Unity.
The 32bit multiplayer binary works fine. The 64bit single player binary (needed to play the bulk of the game - the single player content) crashes on launch, with a backtrace suggesting a failure to execute RtlAddFunctionTable (and RtlAddGrowableFunctionTable, which seems to call it).
According to bug 46143, the Rtl family functions here are merely stubs, which is probably why this doesn't work.
As the crash seems to happen within Mono, I would imagine this would break many Unity, or Mono 2.0, based applications in 64bit mode.
https://bugs.winehq.org/show_bug.cgi?id=46370
Sam Skipsey aoanla@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Distribution|--- |Mint
https://bugs.winehq.org/show_bug.cgi?id=46370
Matteo Bruni matteo.mystral@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|DUSK (and potentially other |DUSK crashes in |64bit Unity games) crash on |RtlAddFunctionTable() on |launch to due lack of |launch |functional | |RtlAddFunctionTable impl |
--- Comment #1 from Matteo Bruni matteo.mystral@gmail.com --- (In reply to Sam Skipsey from comment #0)
with a backtrace suggesting a failure to execute RtlAddFunctionTable (and RtlAddGrowableFunctionTable, which seems to call it).
According to bug 46143, the Rtl family functions here are merely stubs, which is probably why this doesn't work.
Nah, they are stubs only for the ARM64 architecture, they have been implemented for amd64 for a long time.
The backtrace actually shows that the crash is inside RtlAddFunctionTable(). Can you please install Wine debug symbols and get a new backtrace? Also attaching the whole terminal output might be helpful.
https://bugs.winehq.org/show_bug.cgi?id=46370
--- Comment #2 from Sam Skipsey aoanla@gmail.com --- Created attachment 63294 --> https://bugs.winehq.org/attachment.cgi?id=63294 Full terminal output (inc backtrace) with debug symbols installed
Here you go. Full backtrace and terminal logs from launching dusk onwards, with wine-staging-debug installed (and now using wine 4.0-rc6 since it's out).
https://bugs.winehq.org/show_bug.cgi?id=46370
--- Comment #3 from Sam Skipsey aoanla@gmail.com --- Created attachment 63295 --> https://bugs.winehq.org/attachment.cgi?id=63295 Full terminal output (inc backtrace) with debug symbols installed (wine64)
using wine64 dusk.exe, otherwise same as above
https://bugs.winehq.org/show_bug.cgi?id=46370
--- Comment #4 from Nikolay Sivov bunglehead@gmail.com --- It crashes in accessing at index -1, because count is 0. This is allowed for growable case. See bug 46479 for some patches you could try.
https://bugs.winehq.org/show_bug.cgi?id=46370
Matteo Bruni matteo.mystral@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |DUPLICATE
--- Comment #5 from Matteo Bruni matteo.mystral@gmail.com --- The patches from bug 46479 were merged into Wine, please try with current Wine git or the 4.1 release (as soon as it's out).
*** This bug has been marked as a duplicate of bug 46479 ***
https://bugs.winehq.org/show_bug.cgi?id=46370
Alistair Leslie-Hughes leslie_alistair@hotmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #6 from Alistair Leslie-Hughes leslie_alistair@hotmail.com --- Closing Duplicate.