Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8342299

Document that jpackage includes (possibly old) VC Redistributable MSVCP140.dll from JDK

XMLWordPrintable

    • b25
    • x86_64
    • windows

      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


            asemenyuk Alexey Semenyuk
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: