whitecatboard / Lua-RTOS-ESP32

Lua RTOS for ESP32
Other
1.2k stars 221 forks source link

Global memory curruption #340

Closed Mynogs closed 4 years ago

Mynogs commented 4 years ago

I use the current version of the Lua RTOS (git repo). There I reproducibly observe that global Lua variables are damaged. For example, an i2c handle (userdata) mutates into a table. Or suddenly print is nil. My application is small and trivial. The error occurs on different boards (all equipped with WROVER). If I use an older version (Generic ESP32 board, with wcc) the error does not occur. And the application runs stable. It doesn't matter whether I activate the external RAM or not.

Mynogs commented 4 years ago

The root cause to this issue was an bug in sys/driver/spi. Please see issue #345.