Sonnar scanner IllegalStateException

Issue
16:39:40.524 INFO: [pool-4-thread-1] D:/workspace/Mlibrary/mapping.c 16:39:41.243 ERROR: Exception in thread pool-4-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:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748)

Versions

  • sonar.scanner.app=ScannerCli
  • sonar.scanner.appVersion=3.3.0.1492
  • sonarqube 7.5.0.20543

Trying
Trying to run a sonar scanner on a C project

Tried so far
Setup the sonar scanner and ran it multiple times with no success.

Please close this issue. I did a few more searches on this community and found an issue https://jira.sonarsource.com/browse/CPP-2126 that was linked to the GCC compiler I use. I did the sonar scanner update and this fixed the issue.

1 Like