You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems like the compilation flags for ESP32 projects differ from the defaults from the arduino-esp32 repository. In particular, arduino-esp32 apparently defaults with the stack-canary option turned on, while the platformio build has it off.
I discovered this when trying to debug an extremely confusing issue where I had a stack overflow that was corrupting the freertos internal task management structures.
Principally, it seems that projects need to be compiled with -D CONFIG_FREERTOS_CHECK_STACKOVERFLOW_CANARY.
It seems like the compilation flags for ESP32 projects differ from the defaults from the arduino-esp32 repository. In particular, arduino-esp32 apparently defaults with the stack-canary option turned on, while the platformio build has it off.
I discovered this when trying to debug an extremely confusing issue where I had a stack overflow that was corrupting the freertos internal task management structures.
Principally, it seems that projects need to be compiled with
-D CONFIG_FREERTOS_CHECK_STACKOVERFLOW_CANARY
.See: espressif/arduino-esp32#315
The text was updated successfully, but these errors were encountered: