SonarCloud analysis failing with CFamily plugin version:

  • Sonar Cloud connected to Azure DevOps
  • INFO: SonarScanner
  • INFO: Java 16.0.1 Oracle Corporation (64-bit)
  • INFO: Windows 10 10.0 amd64

Running the analysis from the pipeline stops with several of these errors

##[error]ERROR: Exception in thread pool-2-thread-1
	at com.sonar.cpp.jni.FileSystemOperations.realPath(
	at java.base/java.util.HashMap.computeIfAbsent(
	at com.sonar.cpp.fs.CanonicalPathCache.computeIfAbsent(
	at com.sonar.cpp.plugin.CFamilySensor.inputFile(
	at com.sonar.cpp.plugin.CFamilySensor.inputFile(
	at com.sonar.cpp.plugin.CFamilySensor.lambda$process$14(
	at com.sonar.cpp.analyzer.AnalysisExecutor.lambda$submit$0(
	at java.base/java.util.concurrent.Executors$
	at java.base/
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(
	at java.base/java.util.concurrent.ThreadPoolExecutor$
	at java.base/

This started happening a few days ago, until then everything worked fine.
The last successful analysis used CFamily plugin version:
Now we are using CFamily plugin version: and the analysis fails consistently.

I can provide the “wrapper out” files

Hello @francesco.salis,

Can you share the full scanner logs? Also, the build-wrapper JSON/logs.

We changed how we compute the path in 6.31. It should be more robust in checking the validity of the path.


Hello @Abbas_Sabra , thanks for your reply.

I can share the logs and files, but I’d like to do that in private.
Is this possible?


@francesco.salis, I sent you a PM to share them in private.


We have encountered this issue as well. Following with interest. @Abbas_Sabra please “@” me if I can provide anything of use.

Hi @Ben_Ernst,

I’m still waiting for a cfamily.reproducer file from @francesco.salis to confirm the exact root cause of the issue.

Meanwhile, we deployed a new version: CFamily 6.32. When you run the analysis, you can check if it is picked up and if it fixes the issue? We fixed many issues and yours might be one of them.

If not, I will send you a private message where you can share your logs.


1 Like

Thanks, @francesco.salis, for the cfamily.reproducer. I had a look at it and it is one of the issues that we fixed with 6.32. Retregirring the analysis should lead to a successful analysis.

Done it, and it is in fact fixed.
Thanks @Abbas_Sabra

We no longer see this issue either

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.