title: How to detect possible / potential stack overflow problems in a c / c++ program?
body: <p>Is there a standard way to see how much stack space your app has and what the highest watermark for stack usage is during a run?</p>
  
  <p>Also in the dreaded case of actual overflow what happens? </p>
  
  <p>Does it crash, trigger an exception or signal? Is there a standard or is it different on all systems and compilers?</p>
  
  <p>I'm looking specifically for Windows, Linux and Macintosh. </p>