feat(heap): Add runtime hint on tlsf assert trigger

Catch all tlsf assertion failure and display a hint for out of bound writing since
all assertion failure are triggered when the tlsf metadata structure has been corrupted.
This commit is contained in:
Guillaume Souchere
2023-10-03 09:49:25 +02:00
parent c50dfa2374
commit cb9868e82d

View File

@ -388,3 +388,7 @@
-
re: "intr_alloc: No free interrupt inputs for [_\\w]+ interrupt"
hint: "For troubleshooting instructions related to interrupt allocation, run 'idf.py docs -sp api-reference/system/intr_alloc.html'"
-
re: "assert failed: [\\w]+ tlsf.c:[\\d]+"
hint: "CORRUPT HEAP: heap metadata corrupted resulting in TLSF malfunction.\nMake sure you are not making out of bound writing on the memory you allocate in your application.\nMake sure you are not writing on freed memory.\nFor more information run 'idf.py docs -sp api-reference/system/heap_debug.html'."