Hello,
When upgrading the SonarQube to the version 7.7, the sonar scanner is crashing on analyzing c files when running on a windows machine. But it works when launched from a linux machine.
Setup :
- SonarQube V7.7
- Scanner 3.3.0.1492
- Windows server 2012 R2
Do you have any idea where this crash come from?
Thanks
Louis
Here is the logs:
Blockquote
\sonar-scanner-3.3.0.1492-windows/bin/sonar-scanner -Dsonar.branch.name=testSonar
…
INFO: Available processors: 8
INFO: Using 1 thread for analysis according to value of “sonar.cfamily.threads” property.
WARN: Metric ‘comment_lines_data’ is deprecated. Provided value is ignored.
WARN: Invalid character encountered in file D:/ws/E56-141_Build_testSonar@2/40_Code/10_SourceCode/Specific/S1_Application/MotorTest.c at line 351 for encoding UTF-8. Please fix file content or configure the encoding to be used using property ‘sonar.sourceEncoding’.
WARN: Invalid character encountered in file D:/ws/E56-141_Build_testSonar@2/40_Code/10_SourceCode/Common/C3_HardwareAbstraction/EM9557T/ADCDrv.c at line 159 for encoding UTF-8. Please fix file content or configure the encoding to be used using property ‘sonar.sourceEncoding’.
WARN: Invalid character encountered in file D:/ws/E56-141_Build_testSonar@2/40_Code/10_SourceCode/Common_E56_E57/C1_Application/AppTask_HandSynchro.c at line 390 for encoding UTF-8. Please fix file content or configure the encoding to be used using property ‘sonar.sourceEncoding’.
INFO: [pool-1-thread-1] d:/ws/E56-141_Build_testSonar@2/40_Code/10_SourceCode/Common/C0_Global/ETAMath.c
ERROR: Exception in thread pool-1-thread-1
java.lang.IllegalStateException: exit code != 0
at com.sonar.cpp.analyzer.Subprocess.execute(Subprocess.java:54)
at com.sonar.cpp.analyzer.Subprocess.execute(Subprocess.java:25)
at com.sonar.cpp.plugin.CFamilySensor.lambda$process$4(CFamilySensor.java:323)
at com.sonar.cpp.analyzer.AnalysisExecutor.lambda$submit$0(AnalysisExecutor.java:53)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
INFO: ------------------------------------------------------------------------
INFO: EXECUTION FAILURE
INFO: ------------------------------------------------------------------------
INFO: Total time: 42.149s
INFO: Final Memory: 33M/438M
INFO: ------------------------------------------------------------------------
ERROR: Error during SonarQube Scanner execution
ERROR: java.lang.IllegalStateException: exit code != 0
ERROR: Caused by: exit code != 0
ERROR:
ERROR: Re-run SonarQube Scanner using the -X switch to enable full debug logging.
script returned exit code 1