Issue with cout in ROOT: Program exits without displaying output

https://root-forum.cern.ch/t/no-error-when-macro-crashes/14931
https://root-forum.cern.ch/t/upper-limit-of-entries-in-one-bin-and-in-whole-histogram/15475
https://root-forum.cern.ch/t/max-bin-number-in-histogramm/17971
https://root-forum.cern.ch/t/issue-3d-histogram/16012
https://root-forum.cern.ch/t/std-bad-alloc/14432