# Segmentation violations in RooStats / RooFit, related to variable range?

**URL:** <https://root-forum.cern.ch/t/segmentation-violations-in-roostats-roofit-related-to-variable-range/21102>\
**Category:** Roofit and RooStats\
**Created:** [May 8, 2016, 4:00pm UTC](https://root-forum.cern.ch/t/segmentation-violations-in-roostats-roofit-related-to-variable-range/21102 "2016-05-08T16:00:07Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![Pepe\_Le\_Pew](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/pepe_le_pew/32/12365_2.png) [@Pepe\_Le\_Pew](https://root-forum.cern.ch/u/Pepe_Le_Pew)\
**Post date:** [May 11, 2016, 12:07pm UTC](https://root-forum.cern.ch/t/segmentation-violations-in-roostats-roofit-related-to-variable-range/21102/6 "2016-05-11T12:07:46Z")

</div>

Always try to precompile your macro using ACLiC, in order to find source code problems, e.g. try something like (inspect all reported warnings and errors):  
root [0] .L YourRootMacro.cxx++

You can “debug” many problems using “valgrind”. See, for example: [Segmentation Fault depending on linux distribution](https://root-forum.cern.ch/t/segmentation-fault-depending-on-linux-distribution/18020/6)

---

_[View the full topic](https://root-forum.cern.ch/t/segmentation-violations-in-roostats-roofit-related-to-variable-range/21102)._
