IllegalStateException while scanning cpp file

cpp
sonarcfamily
(Mihai Turtureanu) #1

Hi,

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).

Thanks!

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(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)

(Massimo Paladin) #2

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.

(Mihai Turtureanu) #3

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
(Massimo Paladin) #4

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: https://jira.sonarsource.com/browse/CPP-2201. It should get fixed for next release of the analyzer which is going to be 6.3.

1 Like