http://bugs.winehq.org/show_bug.cgi?id=22925
Summary: Hearts of Iron III - crashes on startup (-O0 vs -O2) Product: Wine Version: 1.1.38 Platform: x86 OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: ntdll AssignedTo: wine-bugs@winehq.org ReportedBy: wylda@volny.cz CC: julliard@winehq.org
Hearts of Iron III crashes on start up. This looks to me like a hidden bug covered by gcc optimizations (like when 1.1.44 was released). When using -O0 game crashes, but when -O2 is used game runs.
1. Use windowed mode (800x600) and follow installation HOW-TO http://appdb.winehq.org/objectManager.php?sClass=version&iId=17439
2. I did a regression test between 1.1.37 and 1.1.38:
commit 90f31aa3811ef3e9920796d51b8da748c15cff05 Author: Alexandre Julliard julliard@winehq.org Date: Wed Jan 27 13:35:32 2010 +0100
ntdll: Always enable tail checking when running under Valgrind.
:040000 040000 15de4799ed58f77fa6c6e72f01c6d0a7eefca3b1 8efe76a427789790a92e281130526a92068dc359 M dlls
3. No other bug report suffers from this commit.
4. Revert of this patch on top of wine-1.1.43-628 makes that problem go away. Since wine-1.1.43-629 (the one which broke 1.1.44, when -O0 was used) it's broken again and reverting no longer works.
5. Adding author of this patch to CC.
--private keyword: bisected
PS: This doesn't apply Hoi3 demo - is affected different way. In Hoi3 demo, you can test only -O0 and see, that reverting fixes the issue. In FULL game you don't need to revert, just use -O2 and it fixes the issue.