Issue with Sonar Scanner - Error Code 139

Hi,
I am experiencing an issue with the Sonar Scanner while scanning a C++ file. The scanner stops with error code 139.

Logs:

11:01:59.220 DEBUG Reproducer logs:
11:01:59.222 INFO  Requesting reproducer for: /mnt/appmgr.full/src/appmgr_utils.cpp
11:01:59.533 ERROR Exception in thread pool-6-thread-1
com.sonar.cpp.analyzer.Analyzer$AnalyzerException: Exit code 139: /mnt/appmgr.full/src/appmgr_utils.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$10(CFamilySensor.java:753)
	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)

Here are the details of my setup:

  • SonarQube Version: 10.6 (deployed using zip file)
  • Sonar Scanner Version: 6.1.0

Could you please assist me in diagnosing this issue? Any guidance on how to resolve this error would be greatly appreciated.

Thank you for your help!

Hi

Could we have the full analysis log, redacted as necessary? Also, are you comfortable uploading the reproducer publicly?

 
Thx,
Ann

The only thing that I have noticed is that the sonar-cfamily.reproducer file seems to indicate that sonar scanner has multiple versions/implementations/stubs of getline. Can you please tell how can it happen.

If I remove the getline from my code, it passes the scan.

Hi,

We need the analysis log to proceed.

 
Ann

Hi Ann,

I have updated SonarQube from 10.6 to 10.8 and my issue has been resolved. Thank you for your support

1 Like