-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ComInterfaceGenerator.Unit.Tests.WorkItemExecution failing with Internal CLR error on Win x86 #77087
Comments
Tagging subscribers to this area: @dotnet/interop-contrib Issue DetailsBuild InformationBuild: https://dev.azure.com/dnceng-public/cbb18261-c48f-4abb-8651-8cdcb5474649/_build/results?buildId=53751 Error MessageFill the error message using known issues guidance. {
"ErrorMessage": "ComInterfaceGenerator.Unit.Tests.WorkItemExecution",
"BuildRetry": false
}
|
Stacktrace of the crash:
|
Tagging subscribers to this area: @dotnet/gc Issue Details
Build InformationBuild: https://dev.azure.com/dnceng-public/cbb18261-c48f-4abb-8651-8cdcb5474649/_build/results?buildId=53751 {
"ErrorMessage": "ComInterfaceGenerator.Unit.Tests.WorkItemExecution",
"BuildRetry": false
}
|
The problem is that the C++ compiler optimizer decided to duplicate the memory load. The code (after inlining) looks like this:
It got transformed to this:
The crash is caused Duplicating memory loads like this is allowed optimization in C++. The fix should be to sprinkle |
Disassembly for reference:
|
Build Information
Build: https://dev.azure.com/dnceng-public/cbb18261-c48f-4abb-8651-8cdcb5474649/_build/results?buildId=53751
Build error leg or test failing: ComInterfaceGenerator.Unit.Tests.WorkItemExecution
Pull request: #77080
Log: https://dev.azure.com/dnceng-public/public/_build/results?buildId=53751&view=ms.vss-test-web.build-test-results-tab&runId=1099832&resultId=206563&paneView=dotnet-dnceng.dnceng-build-release-tasks.helix-test-information-tab
Report
Summary
The text was updated successfully, but these errors were encountered: