https://bugs.winehq.org/show_bug.cgi?id=46712
Bug ID: 46712 Summary: Atelier Firis config tool crashes with "Unhandled page fault on execute access" Product: Wine Version: unspecified Hardware: x86 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: tijs96@hotmail.com Distribution: ---
Created attachment 63681 --> https://bugs.winehq.org/attachment.cgi?id=63681 Terminal outputs
Atelier Firis launches a config tool to change game settings before launching the actual game. The config tool crashes at startup with the following error:
wine: Unhandled page fault on execute access to 0x400033e0 at address 0x400033e0 (thread 00d8), starting debugger...
I've attached logs with the default terminal output, a +relay output (without kernel32, advapi32, gdi32, ntdll and winex11) and a +win output. All of the logs include output from steam as well. The following lines from the +relay output seem interesting:
00d8:Call user32.SetWindowLongA(000101e2,fffffffc,1400033e0) ret=140004058 00d8:Ret user32.SetWindowLongA() retval=7f648ef86e32 ret=140004058 00d8:Ret dialog proc 0x140003c20 (hwnd=0x101dc,msg=WM_INITDIALOG,wp=000101e2,lp=00000000) retval=00000001 result=00000000 00d8:Ret window proc 0x7f648ef1525a (hwnd=0x101dc,msg=WM_INITDIALOG,wp=000101e2,lp=00000000) retval=00000001 00d8:Call window proc 0x400033e0 (hwnd=0x101e2,msg=WM_GETDLGCODE,wp=00000000,lp=00000000) wine: Unhandled page fault on execute access to 0x400033e0 at address 0x400033e0 (thread 00d8), starting debugger...
The relay and win logs were taken on wine 4.0-rc5, but the game still behaves the same in wine 4.2-staging. I'm using arch-linux, 64bit. Proton bug report for the game: https://github.com/ValveSoftware/Proton/issues/1486
https://bugs.winehq.org/show_bug.cgi?id=46712
mrdeathjr28@yahoo.es changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |mrdeathjr28@yahoo.es
https://bugs.winehq.org/show_bug.cgi?id=46712
ubuntor2000@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |ubuntor2000@gmail.com
--- Comment #1 from ubuntor2000@gmail.com --- Odd, it's calling SetWindowLongA (instead of SetWindowLongPtrA) to set a new window procedure address, but SetWindowLongA is supposed to be only for 32bit values, so wine is truncating the address.
https://bugs.winehq.org/show_bug.cgi?id=46712
--- Comment #2 from Nikolay Sivov bunglehead@gmail.com --- Created attachment 63685 --> https://bugs.winehq.org/attachment.cgi?id=63685 patch
It looks like 64-bit version simply rejects calls like that. Please try this patch if you can, it should be expanded for other pointer-sized slots with proper tests.
https://bugs.winehq.org/show_bug.cgi?id=46712
Nikolay Sivov bunglehead@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Version|unspecified |4.2 Component|-unknown |user32
https://bugs.winehq.org/show_bug.cgi?id=46712
tijs96@hotmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |FIXED
--- Comment #3 from tijs96@hotmail.com --- It looks like you forgot "WIN_ReleasePtr( wndPtr );" in your patch, resulting in a crash with "00ec:err:graphics:USER_CheckNotLock BUG: holding USER lock".
I added "WIN_ReleasePtr( wndPtr );" before the two return statements, and now the config tool works fine. Thanks for the patch!
https://bugs.winehq.org/show_bug.cgi?id=46712
Józef Kucia joseph.kucia@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |UNCONFIRMED CC| |joseph.kucia@gmail.com Resolution|FIXED |---
--- Comment #4 from Józef Kucia joseph.kucia@gmail.com --- It is not fixed in Wine yet.
https://bugs.winehq.org/show_bug.cgi?id=46712
--- Comment #5 from Nikolay Sivov bunglehead@gmail.com --- Ah, thanks. Reopening, since nothing was merged in wine yet.
https://bugs.winehq.org/show_bug.cgi?id=46712
Nikolay Sivov bunglehead@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever confirmed|0 |1
--- Comment #6 from Nikolay Sivov bunglehead@gmail.com --- Should be fixed with c2f4e2b338906918c77634631ff82f106570e02e, d00ed8e7b94390f831873278b399b6862f3cc484. Please test with Wine 4.3.
https://bugs.winehq.org/show_bug.cgi?id=46712
--- Comment #7 from tijs96@hotmail.com --- Can confirm that the crash is fixed on wine 4.3.
https://bugs.winehq.org/show_bug.cgi?id=46712
Gijs Vermeulen gijsvrm@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |c2f4e2b338906918c77634631ff | |82f106570e02e Status|NEW |RESOLVED Resolution|--- |FIXED
--- Comment #8 from Gijs Vermeulen gijsvrm@gmail.com --- (In reply to tijs96 from comment #7)
Can confirm that the crash is fixed on wine 4.3.
In that case marking FIXED, thanks for reporting back.
https://bugs.winehq.org/show_bug.cgi?id=46712
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #9 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 4.4.
https://bugs.winehq.org/show_bug.cgi?id=46712
Michael Stefaniuc mstefani@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |4.0.x
https://bugs.winehq.org/show_bug.cgi?id=46712
Michael Stefaniuc mstefani@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|4.0.x |---
--- Comment #10 from Michael Stefaniuc mstefani@winehq.org --- Removing the 4.0.x milestone from bug fixes included in 4.0.2.
https://bugs.winehq.org/show_bug.cgi?id=46712
malo.allee@hotmail.fr changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |malo.allee@hotmail.fr