ERROR Exception in thread pool-1-thread-1

  • scanner used: sonar-scanner-cli-4.6.2.2472-windows.zip
  • wrapper used: version 6.28 (win-x86-64)
  • error observed: ERROR Exception in thread pool-1-thread-1 when scanner runs

We’re running a scan on a project compiled with a gcc cross compiler running on cygwin shell. Since cygwin runs on windows OS, we’re using windows versions of wrapper and scanner.
Wrapper runs flawlessy but scanner exits when it scans the first .c file.

The error is:
16:30:50.462527600 ERROR Exception in thread pool-1-thread-1
16:30:50.463527700 ERROR com.sonar.cpp.analyzer.Analyzer$AnalyzerException: Exit code != 0: C:/Jenkins/workspace/F0055/F0055/make/…/…/sw_base/S0664/S0664.c

16:30:50.522533600 ERROR
An error occurred while analyzing the following compilation unit:
C:/Jenkins/workspace/F0055/F0055/make/…/…/sw_base/S0664/S0664.c
A file named “sonar-cfamily-reproducer.zip” has been generated to help the problem investigation.
Please contact SonarSource support providing the following file to help improving the analyzer:
C:\Jenkins\workspace\F0055\sonar-cfamily-reproducer.zip

java.lang.IllegalStateException:
An error occurred while analyzing the following compilation unit:
C:/Jenkins/workspace/F0055/F0055/make/…/…/sw_base/S0664/S0664.c
A file named “sonar-cfamily-reproducer.zip” has been generated to help the problem investigation.
Please contact SonarSource support providing the following file to help improving the analyzer:
C:\Jenkins\workspace\F0055\sonar-cfamily-reproducer.zip

at com.sonar.cpp.plugin.CFamilySensor.process(CFamilySensor.java:444)

et cetera.

Attached, you can find the sonar-cfamily-reproducer.zip

I’ve read it but I don’t understand where the problem is.

Your help will be appreciaeted. Thank you

Giacomo

sonar-cfamily-reproducer.zip (60.0 KB)

Hi,

Welcome to the community!

Thanks for including the reproducer bundle!

It looks like you’re on SonarQube 9.2? Could you verify that this still happens on 9.3?

 
Ann