Menu

Out of memory when using Cppcheck 1.90, version 1.88 works fine

Rafał
2020-04-22
2020-04-22
  • Rafał

    Rafał - 2020-04-22

    When I use 1.88, then cppcheck takes something around 500-1000MB, but when I use 1.90, then in some moment Cppcheck will take more and more memory and at the end it will crash system(I have on computer 24GB Ram)

    Steps to reproduce:
    1. Download krita source code git clone https://invent.kde.org/kde/krita.git;cd krita
    2. Check it with Cppcheck with this command cppcheck -q -j8 --enable=all --suppress=missingIncludeSystem --suppress=variableScope --suppress=ConfigurationNotChecked --suppress=unusedFunction --force --xml --xml-version=2 . 2>&1 | tee cppcheckTEMP.xml

     
  • versat

    versat - 2020-04-22

    Sometimes there is too much recursion during the analysis. We try to detect such problems with daca@home. krita is checked there too (in version 4.2.9 which is the latest tag). It did not seem to cause problems with the options used there: http://cppcheck1.osuosl.org:8000/krita
    That does not mean that there is nothing wrong with Cppcheck. But it seems to depend on something.

     

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.