IllegalStateException while scanning cpp file


I’m using SonarQube 6.7.7 (build 38951) with SonarCFamily 6.2 (build 11201) and I’m getting the error pasted below while analyzing a cpp file.

I saw there were a bunch of threads regarding the same issue and that it was supposed to be fixed in 6.2, but it’s still not working for me.

Please let me know what data do you need (reproducer, logs).


INFO: [pool-103-thread-1] D:/xxx/Server/PFOutput/PFTextOutputSink.cpp
ERROR: Exception in thread pool-103-thread-1
java.lang.IllegalStateException: exit code != 0
at com.sonar.cpp.analyzer.Subprocess.execute(
at com.sonar.cpp.analyzer.Subprocess.execute(
at com.sonar.cpp.plugin.CFamilySensor.lambda$process$4(
at com.sonar.cpp.analyzer.AnalysisExecutor.lambda$submit$0(
at java.util.concurrent.Executors$
at java.util.concurrent.ThreadPoolExecutor.runWorker(
at java.util.concurrent.ThreadPoolExecutor$

Hello @turturel,

was it working ok with SonarCFamily 6.1?
Could you please share with me privately the entire sonar-scanner output and the build-wrapper-dump.json? I am sending you a PM.

Thank you for your reply - I will send the files privately.

I will reply to this thread if/when a solution is found - maybe it will help others.

1 Like

Hello @turturel,

thank you for helping me to reproduce the issue, the issue comes from a failure of the engine in case of Microsoft __leave statement. I created a ticket: It should get fixed for next release of the analyzer which is going to be 6.3.

1 Like