title: Why do I get the Debug exception reason: Stack canary watchpoint triggered (main)?
body: <p>I'm writing a program for <code>esp32-wroom-32</code> using <code>esp-idf-v3.0</code>.<br>
  I'm trying to add logs, which will be saved in fatfs.<br>
  After some logs I get:</p>
  
  <pre><code>21:54:21.306 -&gt; Debug exception reason: Stack canary watchpoint triggered (main) 
  21:54:21.306 -&gt; Register dump:
  21:54:21.306 -&gt; PC      : 0x40089827  PS      : 0x00060b36  A0      : 0x40082179  A1      : 0x3ffd3860  
  21:54:21.340 -&gt; A2      : 0x3ff40000  A3      : 0x00000033  A4      : 0x00000033  A5      : 0x00000000  
  21:54:21.340 -&gt; A6      : 0x00000024  A7      : 0xff000000  A8      : 0xe37fc000  A9      : 0x0000007e  
  21:54:21.340 -&gt; A10     : 0x00000000  A11     : 0xffffffff  A12     : 0x00000004  A13     : 0x00000001  
  21:54:21.340 -&gt; A14     : 0x00000005  A15     : 0x00000000  SAR     : 0x00000004  EXCCAUSE: 0x00000001  
  21:54:21.340 -&gt; EXCVADDR: 0x00000000  LBEG    : 0x400014fd  LEND    : 0x4000150d  LCOUNT  : 0xfffffff6  
  </code></pre>
  
  <p>Why does it happen to main?</p>