Menu

windows cppcheck 2.14.2 gui crash

lamoda
2024-06-23
2024-06-27
  • lamoda

    lamoda - 2024-06-23

    after load any cppcheck project
    2.14.1 was ok

     

    Last edit: lamoda 2024-06-23
  • Daniel Marjamäki

    here is a small and simple cppcheck project:
    https://github.com/danmar/cppcheck/tree/main/test/cli/helloworld

    I can open that with 2.14.2 gui in windows. does that crash for you?

     
    • lamoda

      lamoda - 2024-06-25

      will try

       
    • lamoda

      lamoda - 2024-06-25

      yes simple cppcheck project crash

       
    • lamoda

      lamoda - 2024-06-25

      add pdb symbols
      and i will show backtrace

       
  • Daniel Marjamäki

     
    • Daniel Marjamäki

      it should be self contained.. no installation should be required. just unpack and execute the cppcheck-gui.exe

       
    • lamoda

      lamoda - 2024-06-26

      The procedure entry point CreatDXGIFactory2 could not be located in the dynamic link library dxgi.dll

      iam use windows 7

       
    • lamoda

      lamoda - 2024-06-26

      your dev build with Qt6
      but release 2.14.2 with Qt5

       
    • lamoda

      lamoda - 2024-06-26

      try look about disable for Qt6 options like "-no-feature-d3d12" or simular

       
  • lamoda

    lamoda - 2024-06-26
     
    • lamoda

      lamoda - 2024-06-26

      yes iam found
      i dont known how it possible
      but there are no initialization std::mutex in 2.14.2 build
      use import function Mtx_init_in_situ absent
      so mutex try use without initialize

      in 2.14.1 all ok
      Mtx_init_in_situ function present in cppcheckgui.exe
      so mutex lock uses corrent

       
      • Daniel Marjamäki

        very strange. No changes from 2.14.1 to 2.14.2 seems related to mutexes as far as I can tell.

        The changed files are:

        daniel@laptop:~/cppcheck$ git diff 2.14.1..2.14.2 | grep "^diff"
        diff --git a/Makefile b/Makefile
        diff --git a/cli/main.cpp b/cli/main.cpp
        diff --git a/gui/erroritem.cpp b/gui/erroritem.cpp
        diff --git a/gui/erroritem.h b/gui/erroritem.h
        diff --git a/gui/projectfiledialog.cpp b/gui/projectfiledialog.cpp
        diff --git a/gui/resultstree.cpp b/gui/resultstree.cpp
        diff --git a/gui/xmlreportv2.cpp b/gui/xmlreportv2.cpp
        diff --git a/lib/cppcheck.cpp b/lib/cppcheck.cpp
        diff --git a/lib/cppcheck.h b/lib/cppcheck.h
        diff --git a/lib/errorlogger.cpp b/lib/errorlogger.cpp
        diff --git a/lib/errorlogger.h b/lib/errorlogger.h
        diff --git a/lib/preprocessor.cpp b/lib/preprocessor.cpp
        diff --git a/lib/preprocessor.h b/lib/preprocessor.h
        diff --git a/lib/token.h b/lib/token.h
        diff --git a/lib/tokenize.cpp b/lib/tokenize.cpp
        diff --git a/lib/version.h b/lib/version.h
        diff --git a/man/manual.md b/man/manual.md
        diff --git a/releasenotes.txt b/releasenotes.txt
        diff --git a/test/helpers.cpp b/test/helpers.cpp
        diff --git a/test/helpers.h b/test/helpers.h
        diff --git a/test/testerrorlogger.cpp b/test/testerrorlogger.cpp
        diff --git a/test/testpreprocessor.cpp b/test/testpreprocessor.cpp
        diff --git a/test/testsymboldatabase.cpp b/test/testsymboldatabase.cpp
        diff --git a/test/testtokenize.cpp b/test/testtokenize.cpp
        diff --git a/win_installer/productInfo.wxi b/win_installer/productInfo.wxi
        

        Do you still believe it's related to simplecpp somehow?

         
        • lamoda

          lamoda - 2024-06-27

          make correct build with pdb and Qt5
          to see full backstrace

           
        • lamoda

          lamoda - 2024-06-27

          diff between 2.14.1 and 2.14.2 only compiler version
          2.14.1 VS 2022 17.9 Preview 1 / 19.39.33218
          2.14.2 VS 2022 17.10 / 19.40.33731

          MS use constexpr for std mutex for constructor
          this is wrong, seems issue
          but users can drop constexpr for std mutex
          by add var -D_DISABLE_CONSTEXPR_MUTEX_CONSTRUCTOR
          try add for build

           
  • lamoda

    lamoda - 2024-06-27

    well i found why crash
    i have on my windows addition redistriubute package with version msvcp140
    which has different implementation of std mutex

    i drop it from windows
    and all works

    sorry for disturb

     

    Last edit: lamoda 2024-06-27
    • Daniel Marjamäki

      Thanks! Good to know why it crashed for you.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.