https://bugs.winehq.org/show_bug.cgi?id=47906
Bug ID: 47906 Summary: Regression at commit 0116660dd80b38da8201e2156adade67fc2ae823 cause game crash. Product: Wine Version: 4.14 Hardware: x86 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: kernel32 Assignee: wine-bugs@winehq.org Reporter: l12436@yahoo.com.tw Distribution: ---
Created attachment 65401 --> https://bugs.winehq.org/attachment.cgi?id=65401 Stdout of Alice Madness Return.
there are some regression at commit 0116660dd80b38da8201e2156adade67fc2ae823 causing Alice Madness Return crash at startup.
Game is completely normal before this commit.
The moving code commit is too huge, so I did not has any solution for this. I just using old code for playing that game.
https://bugs.winehq.org/show_bug.cgi?id=47906
Zebediah Figura z.figura12@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Regression SHA1| |0116660dd80b38da8201e2156ad | |ade67fc2ae823 CC| |julliard@winehq.org Summary|Regression at commit |Alice Madness Return |0116660dd80b38da8201e2156ad |crashes |ade67fc2ae823 cause game | |crash. | Keywords| |regression
https://bugs.winehq.org/show_bug.cgi?id=47906
--- Comment #1 from TOM l12436@yahoo.com.tw --- Created attachment 65574 --> https://bugs.winehq.org/attachment.cgi?id=65574 backtrace with debug installed.
https://bugs.winehq.org/show_bug.cgi?id=47906
--- Comment #2 from TOM l12436@yahoo.com.tw --- Created attachment 65576 --> https://bugs.winehq.org/attachment.cgi?id=65576 backtrace with revert b96d15e1
According to my debugger test. Assemble return to a invalid address. Causing it crash.
https://bugs.winehq.org/show_bug.cgi?id=47906
--- Comment #3 from TOM l12436@yahoo.com.tw --- According to the other tool debug. After executing set_full_cpu_context() the address is return incorrectly to a weird address.
https://bugs.winehq.org/show_bug.cgi?id=47906
--- Comment #4 from TOM l12436@yahoo.com.tw --- Crash happened in singal_i386.c set_full_cpu_context() "pushl 0x98(%ecx)\n\t" /* SegDs */ "movl 0xa8(%ecx),%edx\n\t" /* Edx */ "movl 0xac(%ecx),%ecx\n\t" /* Ecx */ "popl %ds\n\t" "movl %eax,%esp\n\t" "popl %eax\n\t" "iret\n" it return incorrect address after iret.
I do not has solution for it.
https://bugs.winehq.org/show_bug.cgi?id=47906
TOM l12436@yahoo.com.tw changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|kernel32 |-unknown Product|Wine |Wine-staging CC| |leslie_alistair@hotmail.com | |, z.figura12@gmail.com
https://bugs.winehq.org/show_bug.cgi?id=47906
TOM l12436@yahoo.com.tw changed:
What |Removed |Added ---------------------------------------------------------------------------- Product|Wine-staging |Wine Component|-unknown |kernel32
https://bugs.winehq.org/show_bug.cgi?id=47906
TOM l12436@yahoo.com.tw changed:
What |Removed |Added ---------------------------------------------------------------------------- Product|Wine |Wine-staging Component|kernel32 |-unknown
https://bugs.winehq.org/show_bug.cgi?id=47906
TOM l12436@yahoo.com.tw changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|-unknown |kernelbase Product|Wine-staging |Wine
https://bugs.winehq.org/show_bug.cgi?id=47906
Alistair Leslie-Hughes leslie_alistair@hotmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC|leslie_alistair@hotmail.com | |, z.figura12@gmail.com |
https://bugs.winehq.org/show_bug.cgi?id=47906
Zhiyi Zhang zzhang@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |zzhang@codeweavers.com
--- Comment #5 from Zhiyi Zhang zzhang@codeweavers.com --- 0116660dd80b38da8201e2156adade67fc2ae823 also added DECLSPEC_HOTPATCH to many functions in the process of moving. There are some known bugs in gcc that trigger crashes when DECLSPEC_HOTPATCH is applied to small functions. You can try something like de6554a312a731db7d85440ce4eab44eeb53962a to remove DECLSPEC_HOTPATCH to all those affected function and see if they fix your issue.
I don't have the game so I can't reproduce it.
https://bugs.winehq.org/show_bug.cgi?id=47906
--- Comment #6 from TOM l12436@yahoo.com.tw --- (In reply to Zhiyi Zhang from comment #5)
0116660dd80b38da8201e2156adade67fc2ae823 also added DECLSPEC_HOTPATCH to many functions in the process of moving. There are some known bugs in gcc that trigger crashes when DECLSPEC_HOTPATCH is applied to small functions. You can try something like de6554a312a731db7d85440ce4eab44eeb53962a to remove DECLSPEC_HOTPATCH to all those affected function and see if they fix your issue.
I don't have the game so I can't reproduce it.
OK Thanks for your information. I will try it.
https://bugs.winehq.org/show_bug.cgi?id=47906
--- Comment #7 from TOM l12436@yahoo.com.tw --- (In reply to Zhiyi Zhang from comment #5)
0116660dd80b38da8201e2156adade67fc2ae823 also added DECLSPEC_HOTPATCH to many functions in the process of moving. There are some known bugs in gcc that trigger crashes when DECLSPEC_HOTPATCH is applied to small functions. You can try something like de6554a312a731db7d85440ce4eab44eeb53962a to remove DECLSPEC_HOTPATCH to all those affected function and see if they fix your issue.
I don't have the game so I can't reproduce it.
no luck for the test, I remove all the DECLSPEC_HOTPATCH under kernel32 kernelbase ntdll. game still crash at same location.
https://bugs.winehq.org/show_bug.cgi?id=47906
Zebediah Figura z.figura12@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|kernelbase |kernel32
https://bugs.winehq.org/show_bug.cgi?id=47906
Béla Gyebrószki gyebro69@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |gyebro69@gmail.com
--- Comment #8 from Béla Gyebrószki gyebro69@gmail.com --- Is this still an issue with recent Wine?
I have the game from Origin, it starts properly either in Wine-5.0.2 or 5.15. Wine was compiled with Mingw enabled.
https://bugs.winehq.org/show_bug.cgi?id=47906
--- Comment #9 from TOM l12436@yahoo.com.tw --- This has be fix under 5.19. I have successfully execute Game.
https://bugs.winehq.org/show_bug.cgi?id=47906
Gijs Vermeulen gijsvrm@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |FIXED
--- Comment #10 from Gijs Vermeulen gijsvrm@gmail.com --- (In reply to TOM from comment #9)
This has be fix under 5.19. I have successfully execute Game.
Reporting FIXED, marking as such. If anyone can still reproduce, feel free to reopen.
https://bugs.winehq.org/show_bug.cgi?id=47906
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #11 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 5.20.