Skip to content

[release/9.0-staging] [mono] Workaround MSVC miscompiling sgen_clz #114903

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

Merged

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Apr 22, 2025

Backport of #114786 to release/9.0-staging

/cc @akoeplinger

Customer Impact

  • Customer reported
  • Found internally

Newer version of MSVC miscompiles a certain function in the mono runtime, leading to crashes.

Regression

  • Yes
  • No

Yes, due to infrastructure update bringing in new VS/MSVC.

Testing

Manual testing.

Risk

Low, this is a no-op change to workaround a compiler bug.

After the recent VS upgrade from 17.12.5 to 17.13.2 we started seeing access violations in the mono-aot-cross.exe when targetting wasm.

We tracked it down to sgen_clz being miscompiled, we can workaround the compiler bug by switching from ternary condition to if/else.
@akoeplinger
Copy link
Member

No-op change to workaround compiler bug, tell mode, applying servicing-approved.

@akoeplinger akoeplinger added the Servicing-approved Approved for servicing release label Apr 23, 2025
@akoeplinger
Copy link
Member

/ba-g unrelated CI timeouts

@akoeplinger akoeplinger merged commit b881aaf into release/9.0-staging Apr 23, 2025
72 of 82 checks passed
@akoeplinger akoeplinger deleted the backport/pr-114786-to-release/9.0-staging branch April 23, 2025 10:36
@github-actions github-actions bot locked and limited conversation to collaborators May 24, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-VM-meta-mono Servicing-approved Approved for servicing release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy