odd crashes from wifi stack

tschak909
Posts: 36
Joined: Mon Oct 26, 2020 8:17 pm

odd crashes from wifi stack

Postby tschak909 » Tue Jan 11, 2022 10:24 pm

I seem to be having odd crashes in the wifi stack that I can't trace.

Code: Select all

16:10:58.159 > Guru Meditation Error: Core  0 panic'ed (StoreProhibited). Exception was unhandled.
16:10:58.159 >
16:10:58.159 > Core  0 register dump:
16:10:58.159 > PC      : 0x40083317  PS      : 0x00060233  A0      : 0x8008345e  A1      : 0x3ffd3080
16:10:58.161 > A2      : 0x3ffeae98  A3      : 0x14141414  A4      : 0x00000001  A5      : 0x00000000
16:10:58.161 > A6      : 0x00000090  A7      : 0x00000003  A8      : 0x14141414  A9      : 0x3ffd3060
16:10:58.161 > A10     : 0x00000007  A11     : 0x00000000  A12     : 0x00000010  A13     : 0x3ffd3010
16:10:58.161 > A14     : 0x690d001a  A15     : 0x4e046805  SAR     : 0x00000007  EXCCAUSE: 0x0000001d  
16:10:58.501 > EXCVADDR: 0x14141430  LBEG    : 0x401461d5  LEND    : 0x40146204  LCOUNT  : 0x00000007
16:10:58.501 >
16:10:58.501 > Backtrace:0x40083314:0x3ffd3080 0x4008345b:0x3ffd30a0 0x4008a9f7:0x3ffd30c0 0x40083779:0x3ffd30e0 0x40152e68:0x3ffd3100 0x401f58d9:0x3ffd3210 0x401f593d:0x3ffd3260 0x401f764d:0x3ffd3280 0x401f42d4:0x3ffd32a0 0x40090639:0x3ffd32d0
16:10:58.501 >   #0  0x40083314:0x3ffd3080 in timer_remove at C:\Users\thomc\.platformio\packages\framework-espidf\components\esp_timer\src/esp_timer.c:235 (discriminator 1)
16:10:58.501 >   #1  0x4008345b:0x3ffd30a0 in esp_timer_stop at C:\Users\thomc\.platformio\packages\framework-espidf\components\esp_timer\src/esp_timer.c:185
16:10:58.501 >   #2  0x4008a9f7:0x3ffd30c0 in ets_timer_disarm at C:\Users\thomc\.platformio\packages\framework-espidf\components\esp_timer\src/ets_timer_legacy.c:109
16:10:58.501 >   #3  0x40083779:0x3ffd30e0 in timer_disarm_wrapper at C:\Users\thomc\.platformio\packages\framework-espidf\components\esp_wifi\esp32/esp_adapter.c:437
16:10:58.501 >   #4  0x40152e68:0x3ffd3100 in sta_recv_mgmt at ??:?
16:10:58.501 >   #5  0x401f58d9:0x3ffd3210 in sta_input at ??:?
16:10:58.501 >   #6  0x401f593d:0x3ffd3260 in sta_rx_cb at ??:?
16:10:58.501 >   #7  0x401f764d:0x3ffd3280 in ppRxPkt at ??:?
16:10:58.501 >   #8  0x401f42d4:0x3ffd32a0 in ppTask at ??:?
16:10:58.501 >   #9  0x40090639:0x3ffd32d0 in vPortTaskWrapper at C:\Users\thomc\.platformio\packages\framework-espidf\components\freertos\port\xtensa/port.c:168
How can I peel this back so I can see what is actually failing?

-Thom

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

Re: odd crashes from wifi stack

Postby ESP_Sprite » Wed Jan 12, 2022 1:16 am

Looks like memory corruption... seems a timer pointer has been overwritten by some value '0x14141430', and I also see spurious 0x14141414 values pop up in the register; those look like bytewise data rather than proper 32-bit values to me. If that's the case, this may help you.

Who is online

Users browsing this forum: Bing [Bot] and 240 guests