Which file is causing the error?
The execution of
sonar-scanner -X -Dsonar.projectKey=SUPER_DUPER_PROJECT -Dsonar.sources=src -Dsonar.host.url=http://ec2-w-x-y-z.us-east-2.compute.amazonaws.com:9000/sonarqube -Dsonar.login=SOME_KEY
results in the following:
.... LOTS OF DEBUG OUTPUT ...
16:36:54.037 DEBUG: 'src/tools/blach/lib/src/acquire_release.h' generated metadata with charset 'UTF-8'
16:36:54.038 DEBUG: 'src/tools/blach/include/s__list.c' generated metadata with charset 'UTF-8'
16:36:54.040 DEBUG: 'src/tools/blach/include/s__list.h' generated metadata with charset 'UTF-8'
16:36:54.044 DEBUG: 'src/tools/blach/include/s_p__list.h' generated metadata with charset 'UTF-8'
16:36:54.045 DEBUG: 'src/tools/blach/lib/src/s__csignal.h' generated metadata with charset 'UTF-8'
16:36:54.046 DEBUG: 'src/tools/blach/include/_isfuncdcl.h' generated metadata with charset 'UTF-8'
16:36:54.047 DEBUG: 'src/tools/blach/lib/src/defs.c' generated metadata with charset 'UTF-8'
16:36:54.048 INFO: Cache is explicitly disabled: Optional[false]
16:36:54.058 DEBUG: eslint-bridge server will shutdown
16:36:54.229 DEBUG: stylelint-bridge server will shutdown
16:36:54.233 INFO: ------------------------------------------------------------------------
16:36:54.233 INFO: EXECUTION FAILURE
16:36:54.233 INFO: ------------------------------------------------------------------------
16:36:54.233 INFO: Total time: 36.149s
16:36:54.345 INFO: Final Memory: 35M/117M
16:36:54.346 INFO: ------------------------------------------------------------------------
16:36:54.346 ERROR: Error during SonarScanner execution
java.lang.IllegalStateException: java.io.EOFException: End of input at line 1 column 1
at com.sonar.cpp.plugin.CFamilySensor.process(CFamilySensor.java:475)
at com.sonar.cpp.plugin.CFamilySensor.execute(CFamilySensor.java:305)
at org.sonar.scanner.sensor.AbstractSensorWrapper.analyse(AbstractSensorWrapper.java:48)
at org.sonar.scanner.sensor.ModuleSensorsExecutor.execute(ModuleSensorsExecutor.java:85)
at org.sonar.scanner.sensor.ModuleSensorsExecutor.execute(ModuleSensorsExecutor.java:62)
at org.sonar.scanner.scan.ModuleScanContainer.doAfterStart(ModuleScanContainer.java:82)
at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:137)
at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:123)
at org.sonar.scanner.scan.ProjectScanContainer.scan(ProjectScanContainer.java:386)
at org.sonar.scanner.scan.ProjectScanContainer.scanRecursively(ProjectScanContainer.java:382)
at org.sonar.scanner.scan.ProjectScanContainer.doAfterStart(ProjectScanContainer.java:351)
at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:137)
at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:123)
at org.sonar.scanner.bootstrap.GlobalContainer.doAfterStart(GlobalContainer.java:141)
at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:137)
at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:123)
at org.sonar.batch.bootstrapper.Batch.doExecute(Batch.java:72)
at org.sonar.batch.bootstrapper.Batch.execute(Batch.java:66)
at org.sonarsource.scanner.api.internal.batch.BatchIsolatedLauncher.execute(BatchIsolatedLauncher.java:46)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.base/java.lang.reflect.Method.invoke(Unknown Source)
at org.sonarsource.scanner.api.internal.IsolatedLauncherProxy.invoke(IsolatedLauncherProxy.java:60)
at com.sun.proxy.$Proxy0.execute(Unknown Source)
at org.sonarsource.scanner.api.EmbeddedScanner.doExecute(EmbeddedScanner.java:189)
at org.sonarsource.scanner.api.EmbeddedScanner.execute(EmbeddedScanner.java:138)
at org.sonarsource.scanner.cli.Main.execute(Main.java:112)
at org.sonarsource.scanner.cli.Main.execute(Main.java:75)
at org.sonarsource.scanner.cli.Main.main(Main.java:61)
Caused by: java.io.EOFException: End of input at line 1 column 1
at com.google.gson.stream.JsonReader.nextNonWhitespace(JsonReader.java:1377)
at com.google.gson.stream.JsonReader.consumeNonExecutePrefix(JsonReader.java:1514)
at com.google.gson.stream.JsonReader.doPeek(JsonReader.java:523)
at com.google.gson.stream.JsonReader.beginObject(JsonReader.java:368)
at com.sonar.cpp.plugin.CFamilySensor.process(CFamilySensor.java:435)
... 29 more