声纳 - 跑步者v2.4 sonarQube v4.3 wenns的CXX社区插件v0.9.1
我正在尝试运行sonar-runner来阅读valgrind报告,但它不起作用。
在声纳跑步者执行时,插件证明它能够阅读valgrind报告,如下所示;
04:52:10.044 DEBUG - Sensors : QProfileSensor -> CpdSensor -> CxxSquidSensor -> CxxRatsSensor -> CxxXunitSensor -> CxxCoverageSensor -> CxxCppCheckSensor -> CxxPCLintSensor -> CxxVeraxxSensor -> CxxValgrindSensor -> InitialOpenIssuesSensor -> ProfileEventsSensor -> ProjectLinksSensor -> VersionEventsSensor -> FileHashSensor
然而,在valgrind传感器,我看到的是;
04:52:11.820 INFO - Sensor CxxValgrindSensor... 04:52:11.820 DEBUG - Using pattern 'valgrind-result.xml' to find reports 04:52:11.820 INFO - Processing report '/home/*********/sonar_testing/sonarTestingSample/./valgrind-result.xml' 04:52:11.834 WARN - Cannot find a project file to assign the valgrind error '110 bytes in 10 blocks are definitely lost in loss record 1 of 1 0x4A05FDE: malloc (vg_replace_malloc.c:236) 0x400639: IssueError(int) (in /home/*********/sonar_testing/sonarTestingSample/out) 0x400613: valgrindIssue() (in /home/*********/sonar_testing/sonarTestingSample/out) 0x4005EC: main (in /home/*********/sonar_testing/sonarTestingSample/out) ' to 04:52:11.834 INFO - Sensor CxxValgrindSensor done: 14 ms
这是什么意思?
我究竟做错了什么?
命令我用于valgrind。
valgrind --leak-check = full --xml = yes --xml-file = valgrind-result.xml ./out
答案 0 :(得分:0)
请参阅可能有用的以下链接https://github.com/wenns/sonar-cxx/issues/258。检查你的valgrind版本。这是一个与valgrind兼容的问题