Panic Handler Constantly Resetting

gregstewart90
Posts: 59
Joined: Thu Jan 19, 2017 5:17 pm

Panic Handler Constantly Resetting

Postby gregstewart90 » Thu Aug 31, 2017 7:51 pm

Sometimes my esp32 will just start to constantly reset with the following output:

Code: Select all

Backtrace: 0x40086159:0x3ffd45a0 0x40087588:0x3ffd45d0 0x40089585:0x3ffd4600 0x400898fa:0x3ffd47d0 0x40089269:0x3ffd4810 0x400893cc:0x3ffd4890 0x4008202e:0x3ffd48b0 0x40086156:0x3ffd4970 0x40086156:0x3ffd49a0 0x40089585:0x3ffd49d0 0x400898fa:0x3ffd4ba0 0x40089269:0x3ffd4be0 0x400893cc:0x3ffd4c60 0x4008202e:0x3ffd4c80 0x40086156:0x3ffd4d40 0x40086156:0x3ffd4d70 0x40089585:0x3ffd4da0 0x400898fa:0x3ffd4f70 0x40089269:0x3ffd4fb0 0x400893cc:0x3ffd5030 0x4008202e:0x3ffd5050 0x40086165:0x3ffd5110 0x40086165:0x3ffd5140 0x40089585:0x3ffd5170 0x400898fa:0x3ffd5340 0x40089269:0x3ffd5380 0x400893cc:0x3ffd5400 0x4008202e:0x3ffd5420 0x400884d6:0x3ffd54e0 0x400884d6:0x3ffd5500 0x40087588:0x3ffd5530 0x40089585:0x3ffd5560 0x400898fa:0x3ffd5730 0x40089269:0x3ffd5770 0x400893cc:0x3ffd57f0 0x4008202e:0x3ffd5810 0x40086156:0x3ffd58d0 0x40086156:0x3ffd5900 0x40089585:0x3ffd5930 0x400898fa:0x3ffd5b00 0x40089269:0x3ffd5b40 0x400893cc:0x3ffd5bc0 0x4008202e:0x3ffd5be0 0x40086156:0x3ffd5ca0 0x40086156:0x3ffd5cd0 0x40089585:0x3ffd5d00 0x400898fa:0x3ffd5ed0 0x40089269:0x3ffd5f10 0x400893cc:0x3ffd5f90 0x4008202e:0x3ffd5fb0 0x40086156:0x3ffd6070
0x40086159: prvTaskGetSnapshotsFromList at /Path/To/IDF/esp-idf/components/freertos/./tasks.c:4931

0x40087588: uxTaskGetSnapshotAll at /Path/To/IDF/esp-idf/components/freertos/./tasks.c:5044 (discriminator 1)

0x40089585: esp_core_dump_write at /Path/To/IDF/esp-idf/components/esp32/./core_dump.c:112

0x400898fa: esp_core_dump_to_uart at /Path/To/IDF/esp-idf/components/esp32/./core_dump.c:534

0x40089269: commonErrorHandler at /Path/To/IDF/esp-idf/components/esp32/./panic.c:546

0x400893cc: xt_unhandled_exception at /Path/To/IDF/esp-idf/components/esp32/./panic.c:546

0x4008202e: _xt_user_exc at xtensa_vectors.o:?

0x40086156: prvTaskGetSnapshotsFromList at /Path/To/IDF/esp-idf/components/freertos/./tasks.c:4931

0x40086156: prvTaskGetSnapshotsFromList at /Path/To/IDF/esp-idf/components/freertos/./tasks.c:4931

0x40089585: esp_core_dump_write at /Path/To/IDF/esp-idf/components/esp32/./core_dump.c:112

0x400898fa: esp_core_dump_to_uart at /Path/To/IDF/esp-idf/components/esp32/./core_dump.c:534

0x40089269: commonErrorHandler at /Path/To/IDF/esp-idf/components/esp32/./panic.c:546

0x400893cc: xt_unhandled_exception at /Path/To/IDF/esp-idf/components/esp32/./panic.c:546

0x4008202e: _xt_user_exc at xtensa_vectors.o:?

0x40086156: prvTaskGetSnapshotsFromList at /Path/To/IDF/esp-idf/components/freertos/./tasks.c:4931

0x40086156: prvTaskGetSnapshotsFromList at /Path/To/IDF/esp-idf/components/freertos/./tasks.c:4931

0x40089585: esp_core_dump_write at /Path/To/IDF/esp-idf/components/esp32/./core_dump.c:112

0x400898fa: esp_core_dump_to_uart at /Path/To/IDF/esp-idf/components/esp32/./core_dump.c:534

0x40089269: commonErrorHandler at /Path/To/IDF/esp-idf/components/esp32/./panic.c:546

0x400893cc: xt_unhandled_exception at /Path/To/IDF/esp-idf/components/esp32/./panic.c:546

0x4008202e: _xt_user_exc at xtensa_vectors.o:?

0x40086165: prvTaskGetSnapshotsFromList at /Path/To/IDF/esp-idf/components/freertos/./tasks.c:4931

0x40086165: prvTaskGetSnapshotsFromList at /Path/To/IDF/esp-idf/components/freertos/./tasks.c:4931

0x40089585: esp_core_dump_write at /Path/To/IDF/esp-idf/components/esp32/./core_dump.c:112

0x400898fa: esp_core_dump_to_uart at /Path/To/IDF/esp-idf/components/esp32/./core_dump.c:534

0x40089269: commonErrorHandler at /Path/To/IDF/esp-idf/components/esp32/./panic.c:546

0x400893cc: xt_unhandled_exception at /Path/To/IDF/esp-idf/components/esp32/./panic.c:546

0x4008202e: _xt_user_exc at xtensa_vectors.o:?

0x400884d6: prvTaskGetSnapshot at /Path/To/IDF/esp-idf/components/freertos/./tasks.c:4994

0x400884d6: prvTaskGetSnapshot at /Path/To/IDF/esp-idf/components/freertos/./tasks.c:4994

0x40087588: uxTaskGetSnapshotAll at /Path/To/IDF/esp-idf/components/freertos/./tasks.c:5044 (discriminator 1)

0x40089585: esp_core_dump_write at /Path/To/IDF/esp-idf/components/esp32/./core_dump.c:112

0x400898fa: esp_core_dump_to_uart at /Path/To/IDF/esp-idf/components/esp32/./core_dump.c:534

0x40089269: commonErrorHandler at /Path/To/IDF/esp-idf/components/esp32/./panic.c:546

0x400893cc: xt_unhandled_exception at /Path/To/IDF/esp-idf/components/esp32/./panic.c:546

0x4008202e: _xt_user_exc at xtensa_vectors.o:?

0x40086156: prvTaskGetSnapshotsFromList at /Path/To/IDF/esp-idf/components/freertos/./tasks.c:4931

0x40086156: prvTaskGetSnapshotsFromList at /Path/To/IDF/esp-idf/components/freertos/./tasks.c:4931

0x40089585: esp_core_dump_write at /Path/To/IDF/esp-idf/components/esp32/./core_dump.c:112

0x400898fa: esp_core_dump_to_uart at /Path/To/IDF/esp-idf/components/esp32/./core_dump.c:534

0x40089269: commonErrorHandler at /Path/To/IDF/esp-idf/components/esp32/./panic.c:546

0x400893cc: xt_unhandled_exception at /Path/To/IDF/esp-idf/components/esp32/./panic.c:546

0x4008202e: _xt_user_exc at xtensa_vectors.o:?

0x40086156: prvTaskGetSnapshotsFromList at /Path/To/IDF/esp-idf/components/freertos/./tasks.c:4931

0x40086156: prvTaskGetSnapshotsFromList at /Path/To/IDF/esp-idf/components/freertos/./tasks.c:4931

0x40089585: esp_core_dump_write at /Path/To/IDF/esp-idf/components/esp32/./core_dump.c:112

0x400898fa: esp_core_dump_to_uart at /Path/To/IDF/esp-idf/components/esp32/./core_dump.c:534

0x40089269: commonErrorHandler at /Path/To/IDF/esp-idf/components/esp32/./panic.c:546

0x400893cc: xt_unhandled_exception at /Path/To/IDF/esp-idf/components/esp32/./panic.c:546

0x4008202e: _xt_user_exc at xtensa_vectors.o:?

0x40086156: prvTaskGetSnapshotsFromList at /Path/To/IDF/esp-idf/components/freertos/./tasks.c:4931
It repeats this constantly until I unplug the usb cable. The module is stuck in this loop until I power cycle or until I pull the reset pin low and then high to reset the module. I have many of these units deployed, and I have seen some modules become unresponsive, and I assume it is because of this error. I have manually reset them, and they immediately start working. One time the module became unresponsive it caused damage. I've tried both debug and release compiler options, but both yield the same infinite loop.

ESP_Sprite
Posts: 9708
Joined: Thu Nov 26, 2015 4:08 am

Re: Panic Handler Constantly Resetting

Postby ESP_Sprite » Fri Sep 01, 2017 1:40 am

Which version of esp-idf do you use? Do you have example code that triggers this behaviour?

ESP_Angus
Posts: 2344
Joined: Sun May 08, 2016 4:11 am

Re: Panic Handler Constantly Resetting

Postby ESP_Angus » Mon Sep 04, 2017 5:31 am

We have a bug that looks a lot like this that we're currently working on a fix for. In the meantime if you disable core dump in menuconfig then you'll be able to avoid it (or you can run make erase_flash to clear the core dump partition.)

Will let you know once we have a fix.

Angus

gregstewart90
Posts: 59
Joined: Thu Jan 19, 2017 5:17 pm

Re: Panic Handler Constantly Resetting

Postby gregstewart90 » Mon Sep 04, 2017 3:36 pm

Thanks for the advice. I went to version 2.1, and that seems to have resolved the issue. It's difficult to reproduce.

Who is online

Users browsing this forum: pcouderc and 102 guests