Software reset due to exception/panic - no core dump


I have a reset of all my ESP32 IoT devices to the same time named: Software reset due to exception/panic

My problem is that no core dump is written so I do not know what causing the issue. As all devices resets on the same time I think it must something related to the network like a basic issue with Wifi, MQTT or OTA. Any ideas how to debug this or why no core dump is written (with div zero core dump is available…)? Is it necessary to connect a serial logger?

Code of one device is available here: GitHub - NilsRo/HotWaterRecirculatingPump: Automation of hot water recirculating pump via ESP32

Many thanks in advance,

Ha, found the issue. It seems esp-idf is causing this if Wifi is distonnecting or reconnecting. Will create a more specific post as I know now what is causing the issue.

CORRUPT HEAP: Bad head at 0x3ffd19c4. Expected 0xabba1234 got 0x3ffd0e2c

assert failed: multi_heap_free multi_heap_poisoning.c:253 (head != NULL)

Backtrace: 0x40083b81:0x3ffbaca0 0x4008d80d:0x3ffbacc0 0x400936b5:0x3ffbace0 0x40093327:0x3ffbae10 0x40084045:0x3ffbae30 0x400936e5:0x3ffbae50 0x4011cfa1:0x3ffbae70

#0 0x40083b81:0x3ffbaca0 in panic_abort at /Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/esp_system/panic.c:408
#1 0x4008d80d:0x3ffbacc0 in esp_system_abort at /Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/esp_system/esp_system.c:137
#2 0x400936b5:0x3ffbace0 in __assert_func at /Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/newlib/assert.c:85
#3 0x40093327:0x3ffbae10 in multi_heap_free at /Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/heap/multi_heap_poisoning.c:253
(inlined by) multi_heap_free at /Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/heap/multi_heap_poisoning.c:245
#4 0x40084045:0x3ffbae30 in heap_caps_free at /Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/heap/heap_caps.c:361
#5 0x400936e5:0x3ffbae50 in free at /Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/newlib/heap.c:39
#6 0x4011cfa1:0x3ffbae70 in timer_process_alarm at /Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/esp_timer/src/esp_timer.c:334
(inlined by) timer_task at /Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/esp_timer/src/esp_timer.c:386

ELF file SHA256: ac4ba91f083b443d