esp-idf: Guru Meditation Error: Core 0 panic'ed (Store access fault). Exception was unhandled. (IDFGH-10033)
Answers checklist.
- I have read the documentation ESP-IDF Programming Guide and the issue is not addressed there.
- I have updated my IDF branch (master or release) to the latest version and checked that the issue is present there.
- I have searched the issue tracker for a similar issue and not found a similar issue.
IDF version.
release/v5.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.
ESP32C3-DEVKIT
Power Supply used.
USB
What is the expected behavior?
I am getting crash with esp IDF v5.1Guru Meditation Error: Core 0 panic'ed (Store access fault). Exception was unhandled while downloading firmware binary from https server having chunked transfer encoded data.
This issue was not observed with v4.x.x idf version
What is the actual behavior?
The crash should not happen during firmware image binary download from server
Steps to reproduce.
Download the firmware ota image binary from any https server with chunked transfer encoded data.
Debug Logs.
D (78340) HTTP_CLIENT: data_process=132625, content_length=-1
Guru Meditation Error: Core 0 panic'ed (Store access fault). Exception was unhandled.
Core 0 register dump:
MEPC : 0x40389b4e RA : 0x40389b24 SP : 0x3fc9bcd0 GP : 0x3fc8e000
TP : 0x3fc67434 T0 : 0x40389a6c T1 : 0xfffffff0 T2 : 0x1e621639
S0/FP : 0xff800000 S1 : 0x0000005c A0 : 0x00000019 A1 : 0x0000005c
A2 : 0x00000280 A3 : 0x00000004 A4 : 0x3fcae915 A5 : 0x00000000
A6 : 0x00000a18 A7 : 0x0000055a S2 : 0x00000000 S3 : 0x3fcb1190
S4 : 0xc05813ed S5 : 0x3fc942f8 S6 : 0x3fc942d4 S7 : 0x3fc9432c
S8 : 0x00000060 S9 : 0x00000000 S10 : 0x3fc942c0 S11 : 0x3fc91120
T3 : 0x3fcaa530 T4 : 0xafe1a8c0 T5 : 0x00000000 T6 : 0x00000006
MSTATUS : 0x00001881 MTVEC : 0x40380001 MCAUSE : 0x00000007 MTVAL : 0x00000008
MHARTID : 0x00000000
Stack memory:
3fc9bcd0: 0x3fc942c0 0x00000000 0x00000060 0x00060000 0xc0380000 0x00000000 0x3fc94000 0x00000000
3fc9bcf0: 0x3fc949b0 0x0000005c 0x3fc942c0 0x403896d0 0x3fc9d168 0x3fcb1134 0x3fc9d0e4 0x0000005c
3fc9bd10: 0x3fc949b0 0x0000005c 0x00001800 0x403809fe 0x3fc94000 0x3fc94000 0x3fc91000 0x0000c22e
3fc9bd30: 0x000001bb 0x3fc94000 0x54664ad3 0x00000010 0x00001800 0x0000005c 0x00000036 0x40380a10
3fc9bd50: 0x00000014 0x11afda30 0x00000036 0x40380a40 0x00000014 0x11afda30 0x00000036 0x4202e98c
3fc9bd70: 0x00000014 0x11afda30 0x00000036 0x4202f7c0 0x000001bb 0x3fc94000 0x54664ad3 0x00000010
3fc9bd90: 0x00000a18 0x11afda30 0x3fcaa530 0x4203356c 0x3fc94000 0x3fc94000 0x3fc91000 0x3fc91000
3fc9bdb0: 0x0000136f 0x3fc94000 0x3fc94000 0x3fc94000 0x00007110 0x00000000 0x3fcaa530 0x42033632
3fc9bdd0: 0x00007110 0x00000000 0x3fcaa530 0x42033d9c 0x00007110 0x00000000 0x3fcaa530 0x42033e08
3fc9bdf0: 0x3fc94000 0x3fc94000 0x3fc94000 0x3fc91120 0x3fc94000 0x3fc94000 0x3fc91000 0x3fc91000
3fc9be10: 0x3fc94000 0x3fc94000 0x3fc94000 0x3fc94000 0x3fc94000 0x3fc94000 0x3fcaa530 0x42033342
3fc9be30: 0x3fcaa530 0xafe1a8c0 0x00000018 0x00000000 0x3fc9becc 0x00000000 0x3fc9b044 0x00000000
3fc9be50: 0x00000000 0x00000000 0x00000000 0x00000001 0x00000000 0x00000014 0x3fc9d168 0x3fc9d168
3fc9be70: 0x3fcb1230 0x3fcb38ea 0x3fc90fe0 0x42037e04 0x00000000 0x00000000 0x00000000 0x00000000
3fc9be90: 0x00000004 0x00000003 0x00000000 0x00000002 0x00000008 0x3fc9d168 0x3fcb1230 0x4203c2c8
3fc9beb0: 0x3fc94000 0xffffffff 0x3fcb1250 0x4202d480 0x00000000 0x00000000 0x00000000 0x3fcb1250
3fc9bed0: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
3fc9bef0: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5
3fc9bf10: 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0x00000154 0x3fc9bdc0 0x0001328b 0x3fc8fc9c 0x3fc8fc9c
3fc9bf30: 0x3fc9bf20 0x3fc8fc94 0x00000007 0x3fc9b070 0x3fc9b070 0x3fc9bf20 0x00000000 0x00000012
3fc9bf50: 0x3fc9b11c 0x00546974 0x0a69a495 0x0d22800e 0x0012256f 0x00000000 0x3fc9bf10 0x00000012
3fc9bf70: 0x00000000 0x00000000 0x00000000 0x00000000 0x3fc94a74 0x3fc94adc 0x3fc94b44 0x00000000
3fc9bf90: 0x00000000 0x00000001 0x00000000 0x00000000 0x00000000 0x420a34be 0x00000000 0x00000000
3fc9bfb0: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
3fc9bfd0: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
3fc9bff0: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
3fc9c010: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
3fc9c030: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
3fc9c050: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
3fc9c070: 0x3f000000 0x00000054 0x3fc9c078 0x3fc9c078 0x3fc9c078 0x3fc9c078 0x00000000 0x3fc9c090
3fc9c090: 0xffffffff 0x3fc9c090 0x3fc9c090 0x00000000 0x3fc9c0a4 0xffffffff 0x3fc9c0a4 0x3fc9c0a4
3fc9c0b0: 0x00000001 0x00000001 0x00000000 0x3700ffff 0x00000000 0xb33fffff 0x00000000 0x00000018
More Information.
Here is the backtrace after analysis PC address 0x40389b4e
riscv32-esp-elf-addr2line -pfiaC -e build/ac.elf 0x40389b4e
0x40389b4e: remove_free_block at /home/agaddam/Documents/ws_ac_li_ac_matter_fw/targets/simplifi/AC/li_esp32matter_sdk/esp-idf/components/heap/tlsf/tlsf.c:333
(inlined by) block_locate_free at /home/agaddam/Documents/ws_ac_li_ac_matter_fw/targets/simplifi/AC/li_esp32matter_sdk/esp-idf/components/heap/tlsf/tlsf.c:567
(inlined by) tlsf_malloc at /home/agaddam/Documents/ws_ac_li_ac_matter_fw/targets/simplifi/AC/li_esp32matter_sdk/esp-idf/components/heap/tlsf/tlsf.c:1004
No response
About this issue
- Original URL
- State: closed
- Created a year ago
- Comments: 35 (8 by maintainers)
Commits related to this issue
- aes: fix DMA descriptor calculation for the alignment case The number of the DMA descriptors allocated for certain length (e.g., 8176) were not sufficient (off by 1 error). This used to result in the... — committed to espressif/esp-idf by mahavirj a year ago
- aes: fix DMA descriptor calculation for the alignment case The number of the DMA descriptors allocated for certain length (e.g., 8176) were not sufficient (off by 1 error). This used to result in the... — committed to espressif/esp-idf by mahavirj a year ago
- aes: fix DMA descriptor calculation for the alignment case The number of the DMA descriptors allocated for certain length (e.g., 8176) were not sufficient (off by 1 error). This used to result in the... — committed to espressif/esp-idf by mahavirj a year ago
- aes: fix DMA descriptor calculation for the alignment case The number of the DMA descriptors allocated for certain length (e.g., 8176) were not sufficient (off by 1 error). This used to result in the... — committed to espressif/esp-idf by mahavirj a year ago
Confirm the patch fixes the panic on ESP32C3. Thanks, @mahavirj
@hmalpani I didn’t get a chance to test this out this week. I will test this change next week and let you know the feedback.