Building ESPHome with AddressSanitizer

I suspect I might have a memory leak in my project but I can’t find it. Building with AddressSanitizer · google/sanitizers Wiki · GitHub has been suggested to me. Is it possible and, if so, how do I do it?

Why do you suspect that?

I suspect you won’t be able to use that tool without some work (that will likely require a deep understanding of esphome and platform.io and esp-idf and others).

If you share your yaml and logs you might get better help, or perhaps follow this guide: 🚀 Bulletproof Your ESPHome: The Memory Guide - #7 by laptopology

1 Like