https://bugs.winehq.org/show_bug.cgi?id=38826
Bug ID: 38826 Summary: Dragon Age Origins: crash in msvcr80 Product: Wine Version: 1.7.46 Hardware: x86 OS: Mac OS X Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: kurtjaeke@gmx.de
Created attachment 51766 --> https://bugs.winehq.org/attachment.cgi?id=51766 Crash backtrace.
Dragon Age Origins crashes after showing the intro sequence, with the backtrace attached. Just for curiosity, I bisected to wine-1.7.20. It crashes at the very same location.
https://bugs.winehq.org/show_bug.cgi?id=38826
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |focht@gmx.net
--- Comment #1 from Anastasius Focht focht@gmx.net --- Hello folks,
I can't confirm this, the game works fine here on Linux.
WineHQ appdb also doesn't list a blocker: https://appdb.winehq.org/objectManager.php?sClass=application&iId=10457
Your backtrace shows 'andps xmm0,0x8(%ebp)' SSE instruction with a misaligned stack variable access. With 32-bit Wine build on OSX there should be a stack realign in function prolog code. Looking at the thread context of the faulting instruction I don't see ECX being in ESP range (ECX is usually clobbered with ESP(+4) when stack realign happens).
My guess would be it's your Wine build/tooling on OSX being broken/your problem.
---
Unrelated to this there is a lot of msvcrt stub spam emitted during the game, slowing things down.
--- snip --- fixme:msvcrt:__crtGetStringTypeW (unk 0, type 1, wstr 0x536e554(1), 0x536e558) partial stub --- snip ---
$ wine --version wine-1.7.46
Regards
https://bugs.winehq.org/show_bug.cgi?id=38826
Kurt kurtjaeke@gmx.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |kurtjaeke@gmx.de
--- Comment #2 from Kurt kurtjaeke@gmx.de --- (In reply to Anastasius Focht from comment #1)
Your backtrace shows 'andps xmm0,0x8(%ebp)' SSE instruction with a misaligned stack variable access. With 32-bit Wine build on OSX there should be a stack realign in function prolog code. Looking at the thread context of the faulting instruction I don't see ECX being in ESP range (ECX is usually clobbered with ESP(+4) when stack realign happens).
My guess would be it's your Wine build/tooling on OSX being broken/your problem.
Thanks for the nice diagnosis. I tried another compiler as you suggested: * "clang version 3.7.0 (trunk 239386)" produces faulty code * Yosemite's default compiler "Apple LLVM version 6.1.0 (clang-602.0.53) (based on LLVM 3.6.0svn)" works
In both cases, passing "-mstackrealign" in CFLAGS does not matter.
Should this be submitted to clang?
https://bugs.winehq.org/show_bug.cgi?id=38826
--- Comment #3 from Austin English austinenglish@gmail.com --- (In reply to Kurt from comment #2)
Thanks for the nice diagnosis. I tried another compiler as you suggested:
- "clang version 3.7.0 (trunk 239386)" produces faulty code
- Yosemite's default compiler "Apple LLVM version 6.1.0 (clang-602.0.53)
(based on LLVM 3.6.0svn)" works
In both cases, passing "-mstackrealign" in CFLAGS does not matter.
Should this be submitted to clang?
You might consider bisecting clang first, but yes.
https://bugs.winehq.org/show_bug.cgi?id=38826
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |UPSTREAM
--- Comment #4 from Austin English austinenglish@gmail.com --- UPSTREAM issue
https://bugs.winehq.org/show_bug.cgi?id=38826
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|Dragon Age Origins: crash |Dragon Age Origins crashes |in msvcr80 |in msvcr80 due to unaligned | |SSE stack access (OSX, | |clang version 3.7.0 trunk | |239386 produces faulty | |code)
https://bugs.winehq.org/show_bug.cgi?id=38826
--- Comment #5 from Kurt kurtjaeke@gmx.de --- Fixed upstream, see https://llvm.org/bugs/show_bug.cgi?id=22371
https://bugs.winehq.org/show_bug.cgi?id=38826
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://llvm.org/bugs/show_ | |bug.cgi?id=22371
https://bugs.winehq.org/show_bug.cgi?id=38826
Matteo Bruni matteo.mystral@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #6 from Matteo Bruni matteo.mystral@gmail.com --- (In reply to Kurt from comment #5)
Fixed upstream, see https://llvm.org/bugs/show_bug.cgi?id=22371
Thank you for the update, closing bug.