raphaelbs / esp32-cam-ai-thinker

Informations and examples about A.I. Thinker ESP32-CAM using ESP-IDF
Apache License 2.0
483 stars 100 forks source link

Stack smashing protection mode #10

Open amckay1 opened 5 years ago

amckay1 commented 5 years ago

Hi Raphael,

This is so very helpful, thank you!

I hit a potential bug in examples/sd_jpg for which I think I found a partial fix. The default configuration for the ESP-IDF has stack smashing protection mode set to "Overall" which the example fails repeatedly (triggering restarts). Setting this to "Normal" in make menuconfig seems to fix the problem.

I'll try to learn more and hopefully find a fix that passes the more stringent protection mode.

Thanks again!

chrisMa68 commented 5 years ago

I had the same Problem, but after set CONFIG_STACK_CHECK_NORM=y is works fine...

raphaelbs commented 5 years ago

Can you share a piece of the bug? Also feel free to open a PR to add this configurations to the doc.