https://bugs.winehq.org/show_bug.cgi?id=48175
Bug ID: 48175 Summary: AION (64 bit) - crashes in CrySystem32.dll.CryFree() due to high memory pointers allocated Product: Wine Version: 4.20 Hardware: x86 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: ntdll Assignee: wine-bugs@winehq.org Reporter: gofmanp@gmail.com Distribution: ---
Created attachment 65809 --> https://bugs.winehq.org/attachment.cgi?id=65809 Force down-top memory allocation
Split off from bug #40334.
The crash happens after the original issue in Bug #40334 is solved, after the loading screen or very soon after login.
The game expects memory pointers from HeapAlloc and VirtualAlloc to fit in the certain range. It is fine with ~16GB range as per my observations, that is, up to 0x3ffffffff address.
I am attaching the patch which is confirmed to fix the issue with AION. The patch consists of two, the first one is not exactly related but the second one depends on it. At the present moment the first one is passing the review upstream. The solution in the second patch is to force virtual memory allocation return lower addresses when they are available (unless top-down allocation is explicitly requested), that's how it seem to work on Windows. The patch does it essentially the same way as the allocation with zero_bits mask is performed.
https://bugs.winehq.org/show_bug.cgi?id=48175
Paul Gofman gofmanp@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Depends on| |40334 See Also| |https://bugs.winehq.org/sho | |w_bug.cgi?id=46568 URL| |https://en.aion.gameforge.c | |om/website/download/
https://bugs.winehq.org/show_bug.cgi?id=48175
Paul Gofman gofmanp@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|AION (64 bit) - crashes in |AION (64 bit) - crashes in |CrySystem32.dll.CryFree() |crysystem.dll.CryFree() due |due to high memory pointers |to high memory pointers |allocated |allocated Hardware|x86 |x86-64
https://bugs.winehq.org/show_bug.cgi?id=48175
LeonMaxx leonmaxx@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |leonmaxx@gmail.com
https://bugs.winehq.org/show_bug.cgi?id=48175
Alistair Leslie-Hughes leslie_alistair@hotmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |STAGED Staged patchset| |https://github.com/wine-sta | |ging/wine-staging/tree/mast | |er/patches/ntdll-ForceBotto | |mUpAlloc Ever confirmed|0 |1
https://bugs.winehq.org/show_bug.cgi?id=48175
Fred dracoanarion@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |dracoanarion@gmail.com
--- Comment #1 from Fred dracoanarion@gmail.com --- For information, I tried the wine-staging for Aion 64bit in the last day, and didn't encounter any issue after few hours playing on 2 different machines.
This new version of the patch looks pretty good.
https://bugs.winehq.org/show_bug.cgi?id=48175 Bug 48175 depends on bug 40334, which changed state.
Bug 40334 Summary: Multiple games and applications crash on unimplemented function ntdll.dll.RtlGetNativeSystemInformation (AION, AVG Free Edition 2012-2014, TuneUp Utilities 2014) https://bugs.winehq.org/show_bug.cgi?id=40334
What |Removed |Added ---------------------------------------------------------------------------- Status|STAGED |RESOLVED Resolution|--- |FIXED
https://bugs.winehq.org/show_bug.cgi?id=48175
François Gouget fgouget@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |fgouget@codeweavers.com Keywords| |patch
https://bugs.winehq.org/show_bug.cgi?id=48175
Shmerl shtetldik@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |shtetldik@gmail.com
--- Comment #2 from Shmerl shtetldik@gmail.com --- Looks like even recent games like Stalker 2: Heart of Chornobyl are affected by this and staging patch helps as well!