the report is littered with errors such as this one:
<errorid="internalError"severity="information"msg="Bailing out from checkingtest/ErrTrac/MockErrTrac_Test_HandlerCallbacks.c since there was aninternal error: Failed to execute 'python3/usr/share/cppcheck/addons/runaddon.py /usr/share/cppcheck/addons/misra.py--cli --rule-texts=thirdparty/misra/misra.txttest/ErrTrac/MockErrTrac_Test_HandlerCallbacks.c.dump'. Traceback(most recent call last):"verbose=" File"/usr/share/cppcheck/addons/runaddon.py", line 8, in<module>\012 runpy.run_path(addon,run_name='__main__')\012 File"/usr/lib/python3.10/runpy.py", line 269, in run_path\012return _run_module_code(code, init_globals, run_name,\012 File"/usr/lib/python3.10/runpy.py", line 96, in _run_module_code\012 _run_code(code, mod_globals, init_globals,\012 File"/usr/lib/python3.10/runpy.py", line 86, in _run_code\012exec(code, run_globals)\012 File"/usr/share/cppcheck/addons/misra.py", line 4630, in<module>\012 main()\012 File"/usr/share/cppcheck/addons/misra.py", line 4572, in main\012checker.parseDump(item)\012 File"/usr/share/cppcheck/addons/misra.py", line 4168, inparseDump\012 data = cppcheckdata.parsedump(dumpfile)\012 File"/usr/share/cppcheck/addons/cppcheckdata.py", line 1188, inparsedump\012 return CppcheckData(filename)\012 File"/usr/share/cppcheck/addons/cppcheckdata.py", line 1000, in__init__\012 for event, node in ElementTree.iterparse(self.filename,events=('start', 'end')):\012 File"/usr/lib/python3.10/xml/etree/ElementTree.py", line 1254, initerator\012 yield from pullparser.read_events()\012 File"/usr/lib/python3.10/xml/etree/ElementTree.py", line 1329, inread_events\012 raise event\012 File"/usr/lib/python3.10/xml/etree/ElementTree.py", line 1301, infeed\012 self._parser.feed(data)\012xml.etree.ElementTree.ParseError:not well-formed (invalid token): line 12744, column 0"><locationfile="test/ErrTrac/MockErrTrac_Test_HandlerCallbacks.c"line="0"column="0"/>
No such errors are reported if I remove the -j4 arg, or the --addon=misra.json arg.
I'd like to be able to check files in parallel because it's pretty
time-consuming like this.
When I try to run the checks in parallel, with the following command:
cppcheck --project=build/compile_commands.json --enable=all -j4 --addon=misra.json --xml-version=2
the report is littered with errors such as this one:
No such errors are reported if I remove the
-j4
arg, or the--addon=misra.json
arg.I'd like to be able to check files in parallel because it's pretty
time-consuming like this.
Last edit: Andrej Radović 2021-12-15