Encountered an sonar-scanner error in my private github actions-based C++20 pipeline:
- name: Install sonar-scanner
uses: SonarSource/sonarcloud-github-c-cpp@v1
...
- name: Run sonar-scanner
id: sonar
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
run: |
sonar-scanner
Has been working fine so far. Relevant bits from CI log:
- SonarScanner 4.8.0.2856
- Java 11.0.17 Eclipse Adoptium (64-bit)
- Linux 5.15.0-1041-azure amd64
- Analyzing on SonarQube server 8.0.0.44209
- CFamily plugin version: 6.46.1.62260
ERROR: Exception in thread pool-5-thread-2
com.sonar.cpp.analyzer.Analyzer$AnalyzerException: Exit code 139: /home/runner/work/miri-m-libmiri/miri-m-libmiri/src/serialization/binary/AnalogValue.cpp
at com.sonar.cpp.analyzer.AnalysisHandler.acceptResult(AnalysisHandler.java:67)
at com.sonar.cpp.analyzer.Subprocess.execute(Subprocess.java:128)
at com.sonar.cpp.plugin.CFamilySensor.lambda$process$40(CFamilySensor.java:1579)
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 have the reproducer file ready in case it is relevant.
For now, I can workaround by explicitly ignoring this particular file, but I would want to not have to do that everytime sonar breaks.