GH-42015: [MATLAB] Executing tfeather.m
test class causes MATLAB to crash on windows-2022
after MSVC update from 14.39.33519 to 14.40.33807
#42123
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Rationale for this change
After the
windows-2022
GitHub runner image was updated last week, MATLAB began crashing when running the unit tests inarrow/matlab/test/tfeather.m
on Windows. As part of the update, VS 2022 was updated from17.9.34902.65
to17.10.34928.147
and MSVC was updated from14.39.33519
to14.40.33807
.It looks like many other projects have run into this issue as well:
The suggested workaround for this crash is to supply the flag
_DISABLE_CONSTEXPR_MUTEX_CONSTRUCTOR
when building.What changes are included in this PR?
_DISABLE_CONSTEXPR_MUTEX_CONSTRUCTOR
flag when building Arrow C++.Are these changes tested?
N/A. Existing tests used.
Are there any user-facing changes?
No.
tfeather.m
test class causes MATLAB to crash onwindows-2022
after MSVC update from 14.39.33519 to 14.40.33807 #42015