Repository navigation
CppCheck: delete cppcheck-addon-ctu-file-list after usage - #6984
Conversation
|
No feedback in over a month - merging. |
There was a problem hiding this comment.
I think there's a bug with -j here.
If I run cppcheck with an addon and use the -j flag and cppcheck analyzes the same source file twice for any reason (could be because its compiled twice with different flags) then it dies with:
error: Bailing out from analysis: Checking file failed: Failed to execute addon 'misra' - exitcode is 1 [internalError]
--verbose shows output from the plugin like this that makes it seem like one of the xml artifact files is malformed
https://gist.github.com/andymacg/69ff6f79e01bee2c75afdb7f674762cd
However when I manually inspected the xml file, it parsed OK, so I think its a race condition where two threads overwrite the same file.
There was a problem hiding this comment.
I made a fix with #7082. But I am not sure how this can be tested effectively.
A unit test that ensures that the PID is part of the file list name? Or do you have any other suggestion?

No description provided.