ESP8266 code crashes, memory overwritten - stackoverflow?

A section of the ESP 8266 Beginners Guide (Sharing CPU time with the RF part) explains in more detail what Riva mentioned.