Closed questmaster closed 2 years ago
To get some extra hints, you should try to decode the Backtrace:
line and then paste the decoded call stack here.
You can use this online decoding utility (you need to paste there the "backtrace" line and upload your ELF file): https://maximeborges.github.io/esp-stacktrace-decoder/
Cool, thanks for the hint.
The Output is the following:
0x4008390f: lock_acquire_generic at /home/.../rust-esp32-std-hello/.embuild/platformio/packages/framework-espidf/components/newlib/locks.c:139
0x40089182: panic_abort at /home/.../rust-esp32-std-hello/.embuild/platformio/packages/framework-espidf/components/esp_system/panic.c:368
0x400899b5: esp_system_abort at /home/.../rust-esp32-std-hello/.embuild/platformio/packages/framework-espidf/components/esp_system/system_api.c:112
0x40091b1a: abort at /home/.../rust-esp32-std-hello/.embuild/platformio/packages/framework-espidf/components/newlib/abort.c:46
0x4008390f: lock_acquire_generic at /home/.../rust-esp32-std-hello/.embuild/platformio/packages/framework-espidf/components/newlib/locks.c:139
0x40083a6d: _lock_acquire_recursive at /home/.../rust-esp32-std-hello/.embuild/platformio/packages/framework-espidf/components/newlib/locks.c:167
0x40083af1: __retarget_lock_acquire_recursive at /home/.../rust-esp32-std-hello/.embuild/platformio/packages/framework-espidf/components/newlib/locks.c:323
0x4016b235: _vfiprintf_r at /builds/idf/crosstool-NG/.build/xtensa-esp32-elf/src/newlib/newlib/libc/stdio/vfprintf.c:853
0x40166fe1: fiprintf at /builds/idf/crosstool-NG/.build/xtensa-esp32-elf/src/newlib/newlib/libc/stdio/fiprintf.c:48
0x40166f69: __assert_func at /builds/idf/crosstool-NG/.build/xtensa-esp32-elf/src/newlib/newlib/libc/stdlib/assert.c:58
0x4008fadf: tlsf_free at /home/.../rust-esp32-std-hello/.embuild/platformio/packages/framework-espidf/components/heap/heap_tlsf.c:866
0x40090456: multi_heap_free_impl at /home/.../rust-esp32-std-hello/.embuild/platformio/packages/framework-espidf/components/heap/multi_heap.c:220
0x4008362a: heap_caps_free at /home/.../rust-esp32-std-hello/.embuild/platformio/packages/framework-espidf/components/heap/heap_caps.c:305
0x40091b45: free at /home/.../rust-esp32-std-hello/.embuild/platformio/packages/framework-espidf/components/newlib/heap.c:46
0x4012a4ab: pthread_local_storage_thread_deleted_callback at /home/.../rust-esp32-std-hello/.embuild/platformio/packages/framework-espidf/components/pthread/pthread_local_storage.c:139
0x4012a56f: pthread_internal_local_storage_destructor_callback at /home/.../rust-esp32-std-hello/.embuild/platformio/packages/framework-espidf/components/pthread/pthread_local_storage.c:173
0x40129fa3: pthread_exit at /home/.../rust-esp32-std-hello/.embuild/platformio/packages/framework-espidf/components/pthread/pthread.c:427
0x4012a073: pthread_task_func at /home/.../rust-esp32-std-hello/.embuild/platformio/packages/framework-espidf/components/pthread/pthread.c:212
0x4008d3ed: vPortTaskWrapper at /home/.../rust-esp32-std-hello/.embuild/platformio/packages/framework-espidf/components/freertos/port/xtensa/port.c:168
So, stil looks like a problem from the fn test_threads()
function.
Ok, it is a problem inside the .embuild
folder code and as I recently updated some of the tools including esp-idf, it seems to be an incompatibility here. So removing this folder and rebuilding solved the problem.
Thanks for the hint of the stracktrace decoding, that helped a lot...
I compiled the demo with the following call:
Building and flashing went well. when monitoring the serial connection the following output shows a crash while threads are spawned/joined... In the demo code a patching of the IDF is mentioned could this be the culprit? Any idea what went wrong here?
Thanks!