Must-share information (formatted with Markdown):
- which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
- Sonarqube Server developer edition 10.7, sonar-scanner-cli 6.2
- how is SonarQube deployed: zip
- what are you trying to achieve: Thread crashes
- what have you tried so far to achieve this : decrease the number of threads
*We have a Jenkins pipeline where we run several Macos hosts as worker nodes and we have the latest versions of sonarqube server developer edition, and sonar-scanner-cli.
Our pipeline checks the number of CPUs on the worker node and starts that many threads.
But at a specific point all threads crash with a log as seen below.
17:47:21.206 ERROR Exception in thread pool-4-thread-10
com.sonar.cpp.analyzer.Analyzer$AnalyzerException: Exit code 139: /Users/ios4/workspace/ios-review-sonarqube@13/ios/Software/Targets/Polaris/SPPolarisHelper.m
at com.sonar.cpp.analyzer.AnalysisHandler.acceptResult(AnalysisHandler.java:76)
at com.sonar.cpp.analyzer.Subprocess.execute(Subprocess.java:128)
at com.sonar.cpp.plugin.CFamilySensor.lambda$process$12(CFamilySensor.java:811)
at com.sonar.cpp.analyzer.AnalysisExecutor.lambda$submit$0(AnalysisExecutor.java:58)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.base/java.util.concurrent.FutureTask.run(Unknown Source)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.base/java.lang.Thread.run(Unknown Source)
I tried to increase resources for sonarqube as
export SONAR_SCANNER_OPTS=“-Xmx10g -Xms2g”
but that did not solve the problem.
I used google and Microsoft Co-Pilot to help but it was also not helping any more.
What can I do and where can the problem be?