Open mill1000 opened 5 years ago
Hi @mill1000, a workaround for this has been merged into master branch, but has not been backported to v3.1: https://github.com/espressif/esp-idf/commit/3ba63a520c91b961a2632ad7385c8bac9039e197. We will backport this, in the meantime you can try cherry-picking this commit to your branch of IDF.
@igrr, Ah excellent. I can confirm that cherry-picking 3ba63a5 resolves the issue and I can successfully access all the threads.
Any technical reason CONFIG_FREERTOS_TASK_FUNCTION_WRAPPER is tied to DEBUG optimization? I could use the wrappers in a Release build for better coredumps.
@mill1000 Yes, I think we can allow this in Release builds as well.
@igrr Should we close this now? Or wait for the backport? I'm not sure what your policy is.
Environment
Problem Description
When attempting to debug a coredump I have come across a task (thread) that I cannot access. I have tried updating espcoredump.py to the version that supports the ROM functions, and have been able to replicate the behavior in a minimal example.
I believe it is the FreeRTOS "Tmr Svc" task. All other tasks have been accounted for.
Expected Behavior
At very least I should be able to switch to the thread and see what the PC was.
Actual Behavior
GDB crashes
Steps to repropduce
info threads
Code to reproduce this issue
Debug Logs
Other items if possible
Contains ELF, Coredump and sdkconfig blink.zip