# No error when macro crashes

**URL:** <https://root-forum.cern.ch/t/no-error-when-macro-crashes/14931>\
**Category:** ROOT\
**Created:** [September 13, 2012, 7:48pm UTC](https://root-forum.cern.ch/t/no-error-when-macro-crashes/14931 "2012-09-13T19:48:36Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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:** [September 13, 2012, 8:07pm UTC](https://root-forum.cern.ch/t/no-error-when-macro-crashes/14931/2 "2012-09-13T20:07:10Z")

</div>

Nothing in the “output”, that you show in your post, suggests that your macro “died” in any way.

Try to add some “debug” lines, e.g.: `std::cout << "Before totalPE" << std::endl << std::flush;
Double_t totalPE[fiberNum][numOfVoxels];
std::cout << "After totalPE" << std::endl << std::flush;`  
There is just one possible problem in the line that you suspect.  
Your “Double\_t totalPE[768][16_16_16];” is 24MB long.  
It is possible that this exceeds your stack size “limit”. Try:  
[bash]$ ulimit -S -a  
[bash]$ ulimit -H -a  
[tcsh]$ limit  
[tcsh]$ limit -h  
If this is the case, try (note: your new “soft limit” cannot be higher than the “hard limit”):  
[bash]$ ulimit -S -s 32768  
[tcsh]$ limit stacksize 32768  
and then try to run your “root -q …” command again.

---

_[View the full topic](https://root-forum.cern.ch/t/no-error-when-macro-crashes/14931)._
