# Reached stage: symbolic execution and Exit code != 0

**URL:** <https://community.sonarsource.com/t/reached-stage-symbolic-execution-and-exit-code-0/74389>\
**Category:** SonarQube Cloud\
**Tags:** cfamily, scanner\
**Created:** [October 12, 2022, 10:41am UTC](https://community.sonarsource.com/t/reached-stage-symbolic-execution-and-exit-code-0/74389 "2022-10-12T10:41:33Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![daniele.ferro](https://avatars.discourse-cdn.com/v4/letter/d/e56c9b/32.png) [@daniele.ferro](https://community.sonarsource.com/u/daniele.ferro)\
**Post date:** [October 12, 2022, 10:41am UTC](https://community.sonarsource.com/t/reached-stage-symbolic-execution-and-exit-code-0/74389/1 "2022-10-12T10:41:33Z")

</div>

While executing the sonar-scanner process for my project, the following errors come up:

```auto
12:03:54.917231 INFO Reached stage: symbolic execution
...
12:04:12.830992 ERROR Exception in thread pool-4-thread-4
com.sonar.cpp.analyzer.Analyzer$AnalyzerException: Exit code != 0: /home/daniele/work/maestro/repos/maestro-FW/modules/data_collector/develop-data-collector-rt/DevelopDataCollectorRt.cpp
	at com.sonar.cpp.analyzer.AnalysisHandler.acceptResult(AnalysisHandler.java:41)
	at com.sonar.cpp.analyzer.Subprocess.execute(Subprocess.java:113)
	at com.sonar.cpp.plugin.CFamilySensor.lambda$process$19(CFamilySensor.java:1031)
	at com.sonar.cpp.analyzer.AnalysisExecutor.lambda$submit$0(AnalysisExecutor.java:59)
	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

```

I’m scanning a c++ code (c++17) on linux x86. I have a sonar-cfamily-reproducer.zip file and can share in PM, if needed to analyze the problem.

Thank you

---

<div class="post-metadata">

**Author:** ![Abbas](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/abbas/32/5717_2.png) [@Abbas](https://community.sonarsource.com/u/Abbas)\
**Post date:** [October 17, 2022, 11:45am UTC](https://community.sonarsource.com/t/reached-stage-symbolic-execution-and-exit-code-0/74389/3 "2022-10-17T11:45:01Z")

</div>

Hi @daniele.ferro,

I sent you a PM where you can upload the reproducer.  
Until we investigate, you can exclude `DevelopDataCollectorRt.cpp` to unblock the analysis.

Thanks,

---

<div class="post-metadata">

**Author:** ![Abbas](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/abbas/32/5717_2.png) [@Abbas](https://community.sonarsource.com/u/Abbas)\
**Post date:** [October 19, 2022, 12:26pm UTC](https://community.sonarsource.com/t/reached-stage-symbolic-execution-and-exit-code-0/74389/7 "2022-10-19T12:26:12Z")

</div>

Hello @daniele.ferro,

Thanks for the reproducer.

My guess is that the analysis of that file requires a lot of memory.

How much ram is available on the machine where you are running the analysis? Can you try to increase it?

If you try to analyze that file separately would it crash? for example by setting `sonar.sources` to `/home/daniele/work/maestro/repos/maestro-FW/modules/data_collector/develop-data-collector-rt/DevelopDataCollectorRt.cpp`.

If it works when you analyze the file on its own, then you can try to reduce the sonar.cfamily.threads number or increase memory.

Thanks,

---

<div class="post-metadata">

**Author:** ![daniele.ferro](https://avatars.discourse-cdn.com/v4/letter/d/e56c9b/32.png) [@daniele.ferro](https://community.sonarsource.com/u/daniele.ferro)\
**Post date:** [October 19, 2022, 1:17pm UTC](https://community.sonarsource.com/t/reached-stage-symbolic-execution-and-exit-code-0/74389/8 "2022-10-19T13:17:38Z")

</div>

The analysis was performed on a machine with 8 GB ram.  
After setting the number of threads at 2, the problem has been solved and the scanner completed successfully.  
Thank you for your support !

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/system/32/31083_2.png) [@system](https://community.sonarsource.com/u/system)\
**Post date:** [October 26, 2022, 1:30pm UTC](https://community.sonarsource.com/t/reached-stage-symbolic-execution-and-exit-code-0/74389/10 "2022-10-26T13:30:08Z")

</div>

Closed on October 26, 2022, 1:30pm UTC

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