Skip to content
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

Add WA for MSVC compiler mutex constructor issue with VS2022 #28169

Conversation

sammysun0711
Copy link
Collaborator

Details:

  • This issue is a MSVC compiler bug affecting certain versions of Visual Studio 2022. When using std::mutex a null dereference may occur, leading to a silent crash in Release mode.
  • Adding the compiler option "/D_DISABLE_CONSTEXPR_MUTEX_CONSTRUCTOR" serves as a workaround for this problem.

Reference:
https://hydrogenaud.io/index.php/topic,126070.0.html
https://github.com/microsoft/STL/wiki/Changelog#vs-2022-1710

Tickets:

@sammysun0711 sammysun0711 requested a review from a team as a code owner December 20, 2024 13:03
@github-actions github-actions bot added the category: build OpenVINO cmake script / infra label Dec 20, 2024
@ilya-lavrenov ilya-lavrenov added this to the 2025.0 milestone Dec 20, 2024
@ilya-lavrenov ilya-lavrenov self-assigned this Dec 20, 2024
@ilya-lavrenov ilya-lavrenov added this pull request to the merge queue Dec 20, 2024
Merged via the queue into openvinotoolkit:master with commit 574c1a2 Dec 20, 2024
182 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category: build OpenVINO cmake script / infra
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants