SonarQube Developer Edition v9.9.5 (build 90363)
Jenkins 2.452.1 LTS
SonarQube deployed inside Kubernetes with Docker image
Sonar-scanner: sonar-scanner-cli-5.0.1.3006-linux
Hi Community.
We are facing with the issue during sonar-scanner execution during C++ code scan:
11:58:26.614 INFO: [pool-2-thread-11] /path/to/file/CliVars.cpp
11:58:29.209 ERROR: Exception in thread pool-2-thread-9
11:58:29.209 com.sonar.cpp.analyzer.Analyzer$AnalyzerException: Exit code 139: /path/to/file/AdapterCli.cpp
11:58:29.209 at com.sonar.cpp.analyzer.Subprocess.lambda$execute$1(Subprocess.java:42)
11:58:29.209 at com.sonar.cpp.analyzer.Subprocess.execute(Subprocess.java:113)
11:58:29.210 at com.sonar.cpp.analyzer.Subprocess.execute(Subprocess.java:38)
11:58:29.210 at com.sonar.cpp.analyzer.ReproducerRequester.requestReproducer(ReproducerRequester.java:37)
11:58:29.210 at com.sonar.cpp.analyzer.AnalysisHandler.acceptResult(AnalysisHandler.java:39)
11:58:29.210 at com.sonar.cpp.analyzer.Subprocess.execute(Subprocess.java:113)
11:58:29.210 at com.sonar.cpp.plugin.CFamilySensor.lambda$process$19(CFamilySensor.java:1075)
11:58:29.210 at com.sonar.cpp.analyzer.AnalysisExecutor.lambda$submit$0(AnalysisExecutor.java:58)
11:58:29.210 at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
11:58:29.210 at java.base/java.util.concurrent.FutureTask.run(Unknown Source)
11:58:29.210 at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
11:58:29.210 at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
11:58:29.210 at java.base/java.lang.Thread.run(Unknown Source)
11:58:29.210
11:59:25.604 ERROR:
11:59:25.604 An error occurred while analyzing the following compilation unit:
11:59:25.604 /path/to/file/AdapterCli.cpp
11:59:25.604 A file named "sonar-cfamily-reproducer.zip" has been generated to help the problem investigation.
11:59:25.604 Please contact SonarSource support providing the following file to help improving the analyzer:
11:59:25.604 /home/jenkins/agent/workspace/sonar-cfamily-reproducer.zip
11:59:25.604
11:59:25.604 INFO: ------------------------------------------------------------------------
11:59:25.604 INFO: EXECUTION FAILURE
11:59:25.604 INFO: ------------------------------------------------------------------------
11:59:25.604 INFO: Total time: 15:42.189s
11:59:25.604 INFO: Final Memory: 61M/320M
11:59:25.604 INFO: ------------------------------------------------------------------------
11:59:25.604 ERROR: Error during SonarScanner execution
Could you please find the way to solve the issue ASAP.
We have a reproduce file and will provide it in the private message.
Thank you for your help.