ADDITIONAL SYSTEM INFORMATION :
WIndows 11 Pro, JDK 24 EA (and all previous JDK)
A DESCRIPTION OF THE PROBLEM :
MS have updated the VC Redistributbales to provide compatibility with std::mutex handling in release builds of C++ exe and dll files.
JPackage creates a distribution using jlink with an obsolete version that causes such exes and dlls to crash on first access to a std::mutex
Please see issue raised as
https://github.com/gabime/spdlog/issues/3212
https://stackoverflow.com/questions/78598141/first-stdmutexlock-crashes-in-application-built-with-latest-visual-studio
https://github.com/adoptium/temurin-build/issues/3887
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
See above links
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Exe to run without crashing
ACTUAL -
Exception on first access of std::mutex
CUSTOMER SUBMITTED WORKAROUND :
Copy latest msvcp140.dll over that included by jlink
FREQUENCY : always
WIndows 11 Pro, JDK 24 EA (and all previous JDK)
A DESCRIPTION OF THE PROBLEM :
MS have updated the VC Redistributbales to provide compatibility with std::mutex handling in release builds of C++ exe and dll files.
JPackage creates a distribution using jlink with an obsolete version that causes such exes and dlls to crash on first access to a std::mutex
Please see issue raised as
https://github.com/gabime/spdlog/issues/3212
https://stackoverflow.com/questions/78598141/first-stdmutexlock-crashes-in-application-built-with-latest-visual-studio
https://github.com/adoptium/temurin-build/issues/3887
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
See above links
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Exe to run without crashing
ACTUAL -
Exception on first access of std::mutex
CUSTOMER SUBMITTED WORKAROUND :
Copy latest msvcp140.dll over that included by jlink
FREQUENCY : always
- links to
-
Commit(master) openjdk/jdk/a28e4d83
-
Review(master) openjdk/jdk/22209