Home Dashboard Directory Help
Search

optimizer bug in VC++ 2010 64bit by ThierryTroll


Status: 

Active


7
0
Sign in
to vote
Type: Bug
ID: 573323
Opened: 7/6/2010 2:39:23 AM
Access Restriction: Public
0
Workaround(s)
view
3
User(s) can reproduce this bug

Description

Hello,

When you compile certain code with -O2 (the default for release), you might get code that crashes. The reason is that some instructions are compiled into SSE instructions and there are alignment issues because SSE requires 16-bytes alignment.



In our case, it means that Nokia Qt is completely unstable when built for 64 bit and with VC2010.



You can see our bug report http://bugreports.qt.nokia.com/browse/QTBUG-11445 It contains crash.zip that is a VC2010 solution with a project that reproduces the problem.
Details
Sign in to post a comment.
Posted by Microsoft on 9/23/2010 at 6:59 PM
Thank you for the report. Another customer has already encountered this issue, and we have issued a hotfix for the problem.

http://connect.microsoft.com/VisualStudio/Downloads/DownloadDetails.aspx?DownloadID=31433

Thanks,
~Pete
Windows C++ SDET
Posted by Vincent Huffaker on 7/8/2010 at 9:24 PM
This appears to be related to issue # 573262. I've opened customer support Incident ID 110070647285595 about this issue. A hotfix for this issue is eagerly awaited.
Posted by ThierryTroll on 7/7/2010 at 5:33 AM
The crash occurs on the following line (with assembly):
        option.rect = Rect();
000000013F8C115D lea         rcx,[rsp+28h]
000000013F8C1162 call        Rect::Rect (13F8C1005h)
000000013F8C1167 movups     xmm0,xmmword ptr [rax]
000000013F8C116A movaps     xmmword ptr [rdi+10h],xmm0 <<<< CRASH HERE
Posted by Microsoft on 7/6/2010 at 9:59 PM
Thank you for reporting the issue.
We are routing this issue to the appropriate group within the Visual Studio Product Team for triage and resolution.These specialized experts will follow-up with your issue.
Posted by Microsoft on 7/6/2010 at 5:01 PM
Thank you for your feedback, we are currently reviewing the issue you have submitted. If this issue is urgent, please contact support directly(http://support.microsoft.com)
Sign in to post a workaround.
File Name Submitted By Submitted On File Size  
crash.zip 7/6/2010 2 KB