-
Notifications
You must be signed in to change notification settings - Fork 7.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Core 0 panic'ed (Interrupt wdt timeout on CPU0) (IDFGH-565) #2954
Comments
HI @leewo0 this is a known WiFi/BT coexist issue, we already find out the root cause: the interrupt watchdog happens because the WiFi Transmitting interrupt status is not cleared when both WiFi/BT are in sleep status . The solution are still under investigation, I guess we will get a solution and merge it into IDF in two weeks. |
Thank you for your reply. I'm glad you have found out the cause. |
@leewo0 The bug has been fixed. Please update IDF to check it. |
The Fix commit ID in master: bf1955a |
@JosuGZ Could you please provide the whole log? |
Hi, I am also experiencing the same issue. CORRUPT HEAP: Bad tail at 0x3ffd7199. Expected 0xbaad5678 got 0xbaad5600 ELF file SHA256: 7dc60b2b9414700e91ab41a9576633ffe41896e54ee51acc7206cd0d98c32f8a Backtrace: 0x4008ce50:0x3ffd5a30 0x4008ddc2:0x3ffd5a50 0x4008e15a:0x3ffd5a70 0x4008e4c4:0x3ffd5a90 0x4008e5f5:0x3ffd5ad0 0x40083016:0x3ffd5af0 0x400830ed:0x3ffd5b20 0x400eede6:0x3ffd5b40 0x400ed98f:0x3ffd5b60 0x4000bd83:0x3ffd5b80 0x4000117d:0x3ffd5ba0 0x400592fe:0x3ffd5bc0 0x4005937a:0x3ffd5be0 0x40058bbf:0x3ffd5c00 0x400d9955:0x3ffd5c30 0x400df13e:0x3ffd5c60 0x400df281:0x3ffd5f70 0x40082eb5:0x3ffd5fa0 0x400d3a1a:0x3ffd5ff0 0x400d46ea:0x3ffd6090 0x4008def5:0x3ffd65d0 Core 1 register dump: ELF file SHA256: 7dc60b2b9414700e91ab41a9576633ffe41896e54ee51acc7206cd0d98c32f8a Backtrace: 0x4008f4e2:0x3ffe6130 0x4008d894:0x3ffe6150 0x4008e8b0:0x3ffe6170 0x4008e919:0x3ffe61b0 0x40082fbd:0x3ffe61d0 0x400830ad:0x3ffe6200 0x400dc026:0x3ffe6220 0x400d5b91:0x3ffe6530 0x400904dd:0x3ffe6580 0x400906a2:0x3ffe65b0 0x40090e8a:0x3ffe65d0 0x400d36a7:0x3ffe6600 0x400d36cd:0x3ffe6620 0x400d3ab4:0x3ffe6640 0x4008def5:0x3ffe66f0 Please suggest what does this error mean? Waiting for your response. Thanks |
You have a memory corruption problem, It seems that you are accessing the n+1 element of an array with n elements. Are you using the idf-monitor? |
No, I am not using idf-monitor. I am using putty to check the logs, but I can use idf-monitor if you would ask to. Thanks |
The idf-monitor will resolve memory addresses from the serial output thus seeding some light about where your problem lies:
|
I thought I did provide a log last time, my bad, sorry. I can confirm I'm no longer experiencing this problem as it was me the one taking too long to exit a critical section. And as I believe the @PRitu21 problem is unrelated, I think this may be closed again. |
Something similar issues I am facing. I am running a TIMER0 and its resulting in GuruMeditation error. |
I am facing this issue when i enable light sleep in power management
when i diable light_sleep_enable microcontroller does not restart using eps-idf - v3.3.1
|
Hi @umer-ilyas! |
thanks @KonstantinKondrashov i ll test your patch and let you know what happens |
sorry this patch could not help out |
Hi @umer-ilyas! |
i applied both patches and now it seems that it is working |
…INT_STATUS is not set Closes: WIFI-1576 Closes: #2954
…INT_STATUS is not set Closes: WIFI-1576 Closes: #2954
…INT_STATUS is not set Closes: WIFI-1576 Closes: #2954
…INT_STATUS is not set Closes: WIFI-1576 Closes: #2954
…INT_STATUS is not set Closes: WIFI-1576 Closes: #2954
This error occurs about 5-6 times per 12 hours(interval is random). Maybe more before I changed the timeout value from 300ms to 500ms in menuconfig. And it seems that this issue has no direct relationship with my application(application not running on CPU0?). I think this is caused by interrupt disable in ISR of CPU0 as 'Core 0 was running in ISR context:' and 'vTaskEnterCritical' according to the backtrace(each time the backtrace varies but these two msg seem always exist).
My application goes like this: both ble and wifi-sta are enabled. A uart is used with its driver installed and a task is created to deal with uart event queues. MQTT/BLE is used to receive data and then transfer with uart. A MQTT send task is created to receive queue objects, then send. Each task has hang mechanism. When it's running, uart continously receives data and send to MQTT send task by queue(about 1000Bytes/sec). MQTT receives data and transfer with uart(14Bytes/sec).
ESP-IDF is updated (commit b173cf2).CPU clock is 240MHz.Interrupt watchdog settings are default except timeout value changed to 500ms.
sdkconfig:
CONFIG_INT_WDT=y
CONFIG_INT_WDT_TIMEOUT_MS=500
CONFIG_INT_WDT_CHECK_CPU1=y
CONFIG_TASK_WDT=y
CONFIG_TASK_WDT_PANIC=
CONFIG_TASK_WDT_TIMEOUT_S=5
CONFIG_TASK_WDT_CHECK_IDLE_TASK_CPU0=y
CONFIG_TASK_WDT_CHECK_IDLE_TASK_CPU1=y
I have read #2672 and #2530. CONFIG_INT_WDT_CHECK_CPU1 is enabled.
What causes this error? I don't want to shut down the interrupt watchdog which could be worse for my application.
case 1:
Guru Meditation Error: Core 0 panic'ed (Interrupt wdt timeout on CPU0)
Core 0 register dump:
PC : 0x40094375 PS : 0x00060834 A0 : 0x80088be3 A1 : 0x3ffbe2b0
0x40094375: vTaskExitCritical at /home/tommy/esp/esp-idf/components/freertos/tasks.c:3537
A2 : 0x00000000 A3 : 0x00000000 A4 : 0x3ffbe308 A5 : 0x00000000
A6 : 0x3ffdd328 A7 : 0x00060021 A8 : 0x80094375 A9 : 0x3ffbe2a0
A10 : 0x00000003 A11 : 0x00060823 A12 : 0x00060821 A13 : 0x00000001
A14 : 0x00060821 A15 : 0x00000000 SAR : 0x00000015 EXCCAUSE: 0x00000005
EXCVADDR: 0x00000000 LBEG : 0x4000c2e0 LEND : 0x4000c2f6 LCOUNT : 0xffffffff
Core 0 was running in ISR context:
EPC1 : 0x40094255 EPC2 : 0x00000000 EPC3 : 0x00000000 EPC4 : 0x40094375
0x40094255: vTaskEnterCritical at /home/tommy/esp/esp-idf/components/freertos/tasks.c:3537
0x40094375: vTaskExitCritical at /home/tommy/esp/esp-idf/components/freertos/tasks.c:3537
Backtrace: 0x40094375:0x3ffbe2b0 0x40088be0:0x3ffbe2d0 0x4008a6fd:0x3ffbe2f0 0x40089dd9:0x3ffbe330 0x4008d0ca:0x3ffbe350 0x4008246d:0x3ffbe380 0x4000bfed:0x00000000
0x40094375: vTaskExitCritical at /home/tommy/esp/esp-idf/components/freertos/tasks.c:3537
0x40088be0: wifi_int_restore_wrapper at /home/tommy/esp/esp-idf/components/esp32/wifi_os_adapter.c:198
0x4008a6fd: pp_post at ??:?
0x40089dd9: lmacPostTxComplete at ??:?
0x4008d0ca: wDev_ProcessFiq at ??:?
0x4008246d: _xt_lowint1 at /home/tommy/esp/esp-idf/components/freertos/xtensa_vectors.S:1105
Core 1 register dump:
PC : 0x401b50de PS : 0x00060434 A0 : 0x800d4161 A1 : 0x3ffbc370
0x401b50de: esp_pm_impl_waiti at /home/tommy/esp/esp-idf/components/esp32/pm_esp32.c:487
A2 : 0x00000000 A3 : 0x00000001 A4 : 0x80093b9e A5 : 0x3ffbc2a0
A6 : 0x00000003 A7 : 0x00060023 A8 : 0x800d4026 A9 : 0x3ffbc340
A10 : 0x00000000 A11 : 0x00000001 A12 : 0x80093b9e A13 : 0x3ffdbf30
A14 : 0x00000003 A15 : 0x00060023 SAR : 0x00000000 EXCCAUSE: 0x00000005
EXCVADDR: 0x00000000 LBEG : 0x00000000 LEND : 0x00000000 LCOUNT : 0x00000000
Backtrace: 0x401b50de:0x3ffbc370 0x400d415e:0x3ffbc390 0x40094951:0x3ffbc3b0 0x40093995:0x3ffbc3d0
0x401b50de: esp_pm_impl_waiti at /home/tommy/esp/esp-idf/components/esp32/pm_esp32.c:487
0x400d415e: esp_vApplicationIdleHook at /home/tommy/esp/esp-idf/components/esp32/freertos_hooks.c:86
0x40094951: prvIdleTask at /home/tommy/esp/esp-idf/components/freertos/tasks.c:3537
0x40093995: vPortTaskWrapper at /home/tommy/esp/esp-idf/components/freertos/port.c:403
case 2:
Guru Meditation Error: Core 0 panic'ed (Interrupt wdt timeout on CPU0)
Core 0 register dump:
PC : 0x40088be3 PS : 0x00060e34 A0 : 0x8008a700 A1 : 0x3ffbe2d0
0x40088be3: wifi_int_restore_wrapper at /home/tommy/esp/esp-idf/components/esp32/wifi_os_adapter.c:198
A2 : 0x3ffb60f8 A3 : 0x00000000 A4 : 0x3ffbe308 A5 : 0x3ffb5dc0
A6 : 0x00000007 A7 : 0x00000000 A8 : 0x80088be3 A9 : 0x3ffbe2b0
A10 : 0x00000000 A11 : 0x00000000 A12 : 0x3ffbe308 A13 : 0x00000000
A14 : 0x3ffdd314 A15 : 0x00060021 SAR : 0x0000001f EXCCAUSE: 0x00000005
EXCVADDR: 0x00000000 LBEG : 0x4000c2e0 LEND : 0x4000c2f6 LCOUNT : 0xffffffff
Core 0 was running in ISR context:
EPC1 : 0x40094255 EPC2 : 0x00000000 EPC3 : 0x00000000 EPC4 : 0x40088be3
0x40094255: vTaskEnterCritical at /home/tommy/esp/esp-idf/components/freertos/tasks.c:3537
0x40088be3: wifi_int_restore_wrapper at /home/tommy/esp/esp-idf/components/esp32/wifi_os_adapter.c:198
Backtrace: 0x40088be3:0x3ffbe2d0 0x4008a6fd:0x3ffbe2f0 0x40089dd9:0x3ffbe330 0x4008d0ca:0x3ffbe350 0x4008246d:0x3ffbe380 0x4000bfed:0x00000000
0x40088be3: wifi_int_restore_wrapper at /home/tommy/esp/esp-idf/components/esp32/wifi_os_adapter.c:198
0x4008a6fd: pp_post at ??:?
0x40089dd9: lmacPostTxComplete at ??:?
0x4008d0ca: wDev_ProcessFiq at ??:?
0x4008246d: _xt_lowint1 at /home/tommy/esp/esp-idf/components/freertos/xtensa_vectors.S:1105
Core 1 register dump:
PC : 0x401b50de PS : 0x00060e34 A0 : 0x800d4161 A1 : 0x3ffbc370
0x401b50de: esp_pm_impl_waiti at /home/tommy/esp/esp-idf/components/esp32/pm_esp32.c:487
A2 : 0x00000000 A3 : 0x00000001 A4 : 0x80093b9e A5 : 0x3ffbc2a0
A6 : 0x00000003 A7 : 0x00060023 A8 : 0x800d4026 A9 : 0x3ffbc340
A10 : 0x00000000 A11 : 0x00000001 A12 : 0x80093b9e A13 : 0x3ffdbeb0
A14 : 0x00000003 A15 : 0x00060023 SAR : 0x00000000 EXCCAUSE: 0x00000005
EXCVADDR: 0x00000000 LBEG : 0x00000000 LEND : 0x00000000 LCOUNT : 0x00000000
Backtrace: 0x401b50de:0x3ffbc370 0x400d415e:0x3ffbc390 0x40094951:0x3ffbc3b0 0x40093995:0x3ffbc3d0
0x401b50de: esp_pm_impl_waiti at /home/tommy/esp/esp-idf/components/esp32/pm_esp32.c:487
0x400d415e: esp_vApplicationIdleHook at /home/tommy/esp/esp-idf/components/esp32/freertos_hooks.c:86
0x40094951: prvIdleTask at /home/tommy/esp/esp-idf/components/freertos/tasks.c:3537
0x40093995: vPortTaskWrapper at /home/tommy/esp/esp-idf/components/freertos/port.c:403
The text was updated successfully, but these errors were encountered: