java.io.EOFException in SonarScanner since updating to 9.4

Our IT recently updated our SonarQube Enterprise from 8.9 LTS to 9.4. Since then we haven been getting the following error:

2022-06-17T10:33:14.0569872Z 12:33:14.054 INFO: [pool-1-thread-1] <Path omitted/file>.cpp
2022-06-17T10:33:18.1337882Z ##[error]12:33:18.125 ERROR: Exception in thread pool-1-thread-1
2022-06-17T10:33:18.1356028Z 12:33:18.125 ERROR: Exception in thread pool-1-thread-1
2022-06-17T10:33:18.1360791Z ##[error]java.lang.IllegalStateException: java.io.EOFException
	at com.sonar.cpp.analyzer.Subprocess.execute(Subprocess.java:156)
	at com.sonar.cpp.analyzer.Subprocess.execute(Subprocess.java:54)
	at com.sonar.cpp.plugin.CFamilySensor.lambda$process$14(CFamilySensor.java:791)
	at com.sonar.cpp.analyzer.AnalysisExecutor.lambda$submit$0(AnalysisExecutor.java:59)
	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
	at java.base/java.lang.Thread.run(Thread.java:833)
Caused by: java.io.EOFException: null
	at java.base/java.io.DataInputStream.readInt(DataInputStream.java:398)
	at com.sonar.cpp.analyzer.Protocol.readString(Protocol.java:134)
	at com.sonar.cpp.analyzer.Protocol.read(Protocol.java:98)
	at com.sonar.cpp.analyzer.Protocol.read(Protocol.java:123)
	at com.sonar.cpp.analyzer.Subprocess.lambda$execute$0(Subprocess.java:58)
	at com.sonar.cpp.analyzer.Subprocess.execute(Subprocess.java:126)
	... 8 common frames omitted
2022-06-17T10:33:18.1363231Z java.lang.IllegalStateException: java.io.EOFException
2022-06-17T10:33:18.1363570Z 	at com.sonar.cpp.analyzer.Subprocess.execute(Subprocess.java:156)
2022-06-17T10:33:18.1363916Z 	at com.sonar.cpp.analyzer.Subprocess.execute(Subprocess.java:54)
2022-06-17T10:33:18.1364296Z 	at com.sonar.cpp.plugin.CFamilySensor.lambda$process$14(CFamilySensor.java:791)
2022-06-17T10:33:18.1364696Z 	at com.sonar.cpp.analyzer.AnalysisExecutor.lambda$submit$0(AnalysisExecutor.java:59)
2022-06-17T10:33:18.1365110Z 	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539)
2022-06-17T10:33:18.1365494Z 	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
2022-06-17T10:33:18.1365880Z 	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
2022-06-17T10:33:18.1366309Z 	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
2022-06-17T10:33:18.1366659Z 	at java.base/java.lang.Thread.run(Thread.java:833)
2022-06-17T10:33:18.1366946Z Caused by: java.io.EOFException: null
2022-06-17T10:33:18.1367267Z 	at java.base/java.io.DataInputStream.readInt(DataInputStream.java:398)
2022-06-17T10:33:18.1367614Z 	at com.sonar.cpp.analyzer.Protocol.readString(Protocol.java:134)
2022-06-17T10:33:18.1367958Z 	at com.sonar.cpp.analyzer.Protocol.read(Protocol.java:98)
2022-06-17T10:33:18.1368293Z 	at com.sonar.cpp.analyzer.Protocol.read(Protocol.java:123)
2022-06-17T10:33:18.1368655Z 	at com.sonar.cpp.analyzer.Subprocess.lambda$execute$0(Subprocess.java:58)
2022-06-17T10:33:18.1369027Z 	at com.sonar.cpp.analyzer.Subprocess.execute(Subprocess.java:126)
2022-06-17T10:33:18.1369303Z 	... 8 common frames omitted

We have a Azure Devops Pipeline that uses the Run Analysis-Plugin for C# and build-wrapper-win-x86/MSBuild through PowerShell for C++. The Error is during the C+┬▒Part. No code changes have been made on the file that triggers this error, so this seems like a regression/bug in the new version. I turned off multithreading and turned on sonar.verbose but no changes.

Hi @fabian.korak,

Can you try with our latest version 9.5? We fixed similar issue recently.

Let me know if you still face the issue after.

Thanks,