title: How does the gcc option -fstack-check exactly work?
body: <p>My program crashed when I added the option -fstack-check and -fstack-protector. __stack_chk_fail is called in the back trace. </p>
  
  <p>So how could I know where the problem is ? What does -fstack-check really check ? 
  The information about gcc seems too huge to find out the answer.</p>