SonarQube server: 9.9.2.77730
Windows Server 2019 10.0 amd64
Microsoft Visual Studio 2022 (64 bit)
SonarScanner: 5.0.1.3006
Hi Community,
We are trying to analyse our C++ code with using sonar-scanner. But, during the sonar-scanner execution we have faced with the following error:
0:30:25.000141100 INFO Reached stage: symbolic execution
00:30:25.000141100 DEBUG Reproducer logs:
00:30:25.000141100 INFO Requesting reproducer for: C:/Users/user/SOME_PROJECT/Some_File.cpp
00:30:29.734508 ERROR Exception in thread pool-2-thread-1
com.sonar.cpp.analyzer.Analyzer$AnalyzerException: Exit code -1073740791: C:/Users/user/SOME_PROJECT/Some_File.cpp
at com.sonar.cpp.analyzer.AnalysisHandler.acceptResult(AnalysisHandler.java:40)
at com.sonar.cpp.analyzer.Subprocess.execute(Subprocess.java:113)
at com.sonar.cpp.plugin.CFamilySensor.lambda$process$19(CFamilySensor.java:1075)
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)
On Sonar Community pages I’ve found the similar issue: ERROR: Exception in thread ... com.sonar.cpp.analyzer.Analyzer$AnalyzerException: Exit code != 0: - #2 by mpaladin, where you recommend to use -DBOOST_ASIO_DISABLE_NOEXCEPT option during the build.
In our case we are using Microsoft Visual Studio 2022 (64 bit) and run the build with using msbuild.exe
.
Could you please clarify how to use DBOOST_ASIO_DISABLE_NOEXCEPT
with msbuild.exe
command?
Thank you for your advice!