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

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