ruuvi / ruuvi.gateway_esp.c

Ruuvi Gateway ESP32 code
BSD 3-Clause "New" or "Revised" License
25 stars 15 forks source link

Fix #860: Stack overflow in task adv_post_task (#861) #870

Closed TheSomeMan closed 1 year ago

sonarcloud[bot] commented 1 year ago

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

0.0% 0.0% Coverage
0.0% 0.0% Duplication

DG12 commented 1 year ago

Can you please explain to me why there seems to be many problems with the stack size?

TheSomeMan commented 1 year ago

Can you please explain to me why there seems to be many problems with the stack size?

Recently, we reduced the stack size of all threads based on actual stack usage to free up RAM, but based on collected statistics from all running Gateways, we found out that in some rare cases stack overflow is observed. Now we increased the stack size for the threads where the problem was detected.