open_memstream [used by esp-console] fails when CONFIG_HEAP_TASK_TRACKING: assert failed: insert_free_block tlsf.c:358 (current && "free list cannot have a null entry") (IDFGH-11345) #12493
Labels
Resolution: NA
Issue resolution is unavailable
Status: Done
Issue is done internally
Type: Bug
bugs in IDF
Answers checklist.
IDF version.
v5.2-dev-3775-gb4268c874a
Espressif SoC revision.
ESP32-S3 (QFN56) (revision v0.1)
Operating System used.
Linux
How did you build your project?
Command line with idf.py
If you are using Windows, please specify command line type.
None
Development Kit.
ESP32-S3-WROOM-1
Power Supply used.
USB
What is the expected behavior?
Provided the following program:
And the following config:
CONFIG_HEAP_TASK_TRACKING=y
Legit code should run properly and not crash.
What is the actual behavior?
Crash as per the following traceback:
Steps to reproduce.
Attached [1] a trivial example project.
Use:
[1] example.zip
Debug Logs.
No response
More Information.
Turning off
CONFIG_HEAP_TASK_TRACKING
makes it work, so either the problem is in the task tracing or in theopen_memstream()
, I guess it is in the task tracing as it does work properly.It is important as
components/console/commands.c::esp_console_cmd_register()
is usingopen_memstream()
so any application with console support cannot be run withCONFIG_HEAP_TASK_TRACKING
.The text was updated successfully, but these errors were encountered: