Menu

Hanging with version 1.69 in scan some cpps only include header files

Dan Zhou
2015-09-16
2015-09-22
  • Dan Zhou

    Dan Zhou - 2015-09-16

    Hi,

    Asking for help about a hanging issue. I have the dump file. How can I send it to you?

     
  • Dan Zhou

    Dan Zhou - 2015-09-16

    I use version 1.69, because 1.70 need VS2015.

     
  • Daniel Marjamäki

    I use version 1.69, because 1.70 need VS2015.

    this hang could be fixed already then.

     
  • Daniel Marjamäki

    Could you try to use the --report-progress.. if it doesn't report anything for a few minutes then what is its last message? Use it like this:

    cppcheck --report-progress  <all your normal flags>
    

    To fix this we will need to be able to reproduce it. Would it be ok for you to put the cpp file and the headers in a ZIP file and share that with us?

     
  • Dan Zhou

    Dan Zhou - 2015-09-17

    261/395 files checked 99% done
    Checking T:\Horizon\src\HzAPI\Interface\DnMToolElement.cpp...
    Checking T:\Horizon\src\HzAPI\Interface\Channel.cpp: APSTUDIO_INVOKED...
    Checking T:\Horizon\src\HzAPI\Interface\DPointCatalog.cpp: APSTUDIO_INVOKED...

    Log like this:
    My command:
    cppcheck.exe -j 16 --force --xml --debug-warnings --report-progress --inline-suppr

     
  • Dan Zhou

    Dan Zhou - 2015-09-17

    I have a reproduce sample. But because the confidencial, I may not give the codes, can I give a dump file?I attached.

    Thanks a lot!

     
  • Dan Zhou

    Dan Zhou - 2015-09-17

    It's a cpp file with 2 lines include header files, but include header file include anther header file.....many many levels....

     
  • Daniel Marjamäki

    what kind of dump file is it? it doesn't seem to be a gdb compatible dump so can you tell me how I open it.

    can you try to debug this? Compile cppcheck and run it in a debugger. The latest cppcheck source code is available here: http://github.com/danmar/cppcheck/

    Compiling is pretty simple.. If you use VS you can just open the provided visual studio solution and build. If you use gcc/clang, use the Makefile.

     

    Last edit: Daniel Marjamäki 2015-09-21
  • Dan Zhou

    Dan Zhou - 2015-09-22

    Can you give me the version 1.69 source code? Because the crash happened in 1.69, I will try debug it, thanks a lot!

     
  • Daniel Marjamäki

    Can you give me the version 1.69 source code? Because the crash happened in 1.69, I will try debug it, thanks a lot!

    You can download the source code for any release here:

    https://github.com/danmar/cppcheck/releases

    I suggest that you also try to download and compile the latest source code. A hang for that binary would be MUCH more interesting.

    I don't intend to fix the 1.69 source code even if you pinpoint the problem. If it still exists in latest source code I can fix the latest source code.

     
  • Daniel Marjamäki

    I use version 1.69, because 1.70 need VS2015.

    This is not true when you compile yourself. You can use VS2010 to compile latest source code as far as I know.

     

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.