# Segmentation Fault depending on linux distribution

**URL:** <https://root-forum.cern.ch/t/segmentation-fault-depending-on-linux-distribution/18020>\
**Category:** ROOT\
**Created:** [August 5, 2014, 1:29pm UTC](https://root-forum.cern.ch/t/segmentation-fault-depending-on-linux-distribution/18020 "2014-08-05T13:29:34Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![Wile\_E\_Coyote](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/wile_e_coyote/32/12417_2.png) [@Wile\_E\_Coyote](https://root-forum.cern.ch/u/Wile_E_Coyote)\
**Post date:** [August 6, 2014, 12:28pm UTC](https://root-forum.cern.ch/t/segmentation-fault-depending-on-linux-distribution/18020/6 "2014-08-06T12:28:27Z")

</div>

Try something like (note: some [Valgrind](http://valgrind.org/) functionality requires that the source code, that you want to analyse, is compiled with debug symbols):

```auto
valgrind --tool=memcheck --leak-check=full [--show-reachable=yes] [--track-origins=yes] [--num-callers=50] [--vgdb=full] --suppressions=`root-config --etcdir`/valgrind-root.supp `root-config --bindir`/root.exe -l -q 'YourMacro.cxx[++g][(Any, Parameters, You, Need)]'
valgrind --tool=exp-sgcheck [--num-callers=50] [--vgdb=full] --suppressions=`root-config --etcdir`/valgrind-root.supp `root-config --bindir`/root.exe -l -q 'YourMacro.cxx[++g][(Any, Parameters, You, Need)]'

```

or:

```auto
valgrind --tool=memcheck --leak-check=full [--show-reachable=yes] [--track-origins=yes] [--num-callers=50] [--vgdb=full] --suppressions=`root-config --etcdir`/valgrind-root.supp YourExecutable [Any Options You Need]
valgrind --tool=exp-sgcheck [--num-callers=50] [--vgdb=full] --suppressions=`root-config --etcdir`/valgrind-root.supp YourExecutable [Any Options You Need]

```

and especially carefully study messages that appear in the beginning of the output.  
(Note: the `--show-reachable=yes` option will give you too many warnings, I believe.)

---

_[View the full topic](https://root-forum.cern.ch/t/segmentation-fault-depending-on-linux-distribution/18020)._
