Skip to content
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

Crashed task handle: 0x3ffbbbf4, name: 'esp_timer' case InterruptWDTTimoutCPU0 (IDFGH-7181) #8780

Closed
sxsx2yzyz opened this issue Apr 15, 2022 · 7 comments
Assignees
Labels
Resolution: Done Issue is done internally Status: Done Issue is done internally

Comments

@sxsx2yzyz
Copy link

sxsx2yzyz commented Apr 15, 2022

Environment

  • Module or chip used: [ESP32-WROVER-IE]
  • IDF version (run git describe --tags to find it):
    v5.0-dev-422-ga18cb70905-dirty
  • Build System: [idf.py]
  • Compiler version (run xtensa-esp32-elf-gcc --version to find it):
    8.4.0
  • Operating System: [macOS]
  • Using an IDE?: [vscode]
  • Power Supply: [external 3.3V]

Problem Description

The program ran for about 30 hours and an InterruptWDTTimoutCPU0 error occurred

coredump:

espcoredump.py v0.4-dev
===============================================================
==================== ESP32 CORE DUMP START ====================

Crashed task handle: 0x3ffbbbf4, name: 'esp_timer', GDB name: 'process 1073462260'

================== CURRENT THREAD REGISTERS ===================
exccause       0x45 (InterruptWDTTimoutCPU0)
excvaddr       0x0
epc1           0x0
epc2           0x0
epc3           0x0
epc4           0x0
epc5           0x0
epc6           0x0
epc7           0x0
eps2           0x0
eps3           0x0
eps4           0x0
eps5           0x0
eps6           0x0
eps7           0x0
pc             0x4009903f          0x4009903f <xPortEnterCriticalTimeout+67>
lbeg           0x400843d5          1074283477
lend           0x400843dd          1074283485
lcount         0x27                39
sar            0x1a                26
ps             0x60625             394789
threadptr      <unavailable>
br             <unavailable>
scompare1      <unavailable>
acclo          <unavailable>
acchi          <unavailable>
m0             <unavailable>
m1             <unavailable>
m2             <unavailable>
m3             <unavailable>
expstate       <unavailable>
f64r_lo        <unavailable>
f64r_hi        <unavailable>
f64s           <unavailable>
fcr            <unavailable>
fsr            <unavailable>
a0             0x8008408d          -2146942835
a1             0x3ffbbaf0          1073462000
a2             0x3ffbe388          1073472392
a3             0xb33fffff          -1287651329
a4             0xabab              43947
a5             0x60623             394787
a6             0x60620             394784
a7             0xcdcd              52685
a8             0xabab              43947
a9             0xffffffff          -1
a10            0x3                 3
a11            0x60623             394787
a12            0x60620             394784
a13            0x3ffc47b4          1073498036
a14            0x7be388            8119176
a15            0x3fffff            4194303

==================== CURRENT THREAD STACK =====================
#0  0x4009903f in compare_and_set_native (set=0x3ffbbaf0, compare=3007315967, addr=0x3ffbe388 <s_timer_lock>) at /Users/yangzhen/esp/esp-idf/components/esp_hw_support/include/soc/compare_set.h:25
#1  spinlock_acquire (timeout=<optimized out>, lock=0x3ffbe388 <s_timer_lock>) at /Users/yangzhen/esp/esp-idf/components/esp_hw_support/include/soc/spinlock.h:103
#2  xPortEnterCriticalTimeout (mux=0x3ffbe388 <s_timer_lock>, timeout=<optimized out>) at /Users/yangzhen/esp/esp-idf/components/freertos/FreeRTOS-Kernel/portable/xtensa/port.c:287
#3  0x4008408d in xPortEnterCriticalTimeoutSafe (timeout=-1, mux=<optimized out>) at /Users/yangzhen/esp/esp-idf/components/freertos/FreeRTOS-Kernel/portable/xtensa/include/freertos/portmacro.h:592
#4  vPortEnterCriticalSafe (mux=<optimized out>) at /Users/yangzhen/esp/esp-idf/components/freertos/FreeRTOS-Kernel/portable/xtensa/include/freertos/portmacro.h:599
#5  timer_list_lock (timer_type=<optimized out>) at /Users/yangzhen/esp/esp-idf/components/esp_timer/src/esp_timer.c:307
#6  0x400d6bf2 in timer_process_alarm (dispatch_method=ESP_TIMER_TASK) at /Users/yangzhen/esp/esp-idf/components/esp_timer/src/esp_timer.c:363
#7  timer_task (arg=<optimized out>) at /Users/yangzhen/esp/esp-idf/components/esp_timer/src/esp_timer.c:388

======================== THREADS INFO =========================
  Id   Target Id          Frame 
* 1    process 1073462260 0x4009903f in compare_and_set_native (set=0x3ffbbaf0, compare=3007315967, addr=0x3ffbe388 <s_timer_lock>) at /Users/yangzhen/esp/esp-idf/components/esp_hw_support/include/soc/compare_set.h:25
  2    process 1073651656 0x3f82ad94 in ?? ()
  3    process 1073463460 0x4018ccd6 in esp_pm_impl_waiti () at /Users/yangzhen/esp/esp-idf/components/hal/esp32/include/hal/cpu_ll.h:183
  4    process 1073465348 0x4018ccd6 in esp_pm_impl_waiti () at /Users/yangzhen/esp/esp-idf/components/hal/esp32/include/hal/cpu_ll.h:183
  5    process 1073634348 0x4008ee24 in esp_crosscore_int_send (core_id=<optimized out>, reason_mask=1) at /Users/yangzhen/esp/esp-idf/components/esp_system/crosscore_int.c:117
  6    process 1073642732 0x4008ee3c in esp_crosscore_int_send_yield (core_id=1) at /Users/yangzhen/esp/esp-idf/components/esp_system/crosscore_int.c:136
  7    process 1073587392 0x4008ee3c in esp_crosscore_int_send_yield (core_id=1) at /Users/yangzhen/esp/esp-idf/components/esp_system/crosscore_int.c:136
  8    process 1073457812 0x4008ee3c in esp_crosscore_int_send_yield (core_id=1) at /Users/yangzhen/esp/esp-idf/components/esp_system/crosscore_int.c:136
  9    process 1073638796 0x4000bff0 in ?? ()
  10   process 1073645900 0x4008ee3c in esp_crosscore_int_send_yield (core_id=0) at /Users/yangzhen/esp/esp-idf/components/esp_system/crosscore_int.c:136
  11   process 1073584760 0x4008ee3c in esp_crosscore_int_send_yield (core_id=1) at /Users/yangzhen/esp/esp-idf/components/esp_system/crosscore_int.c:136
  12   process 1073606800 0x4008ee3c in esp_crosscore_int_send_yield (core_id=1) at /Users/yangzhen/esp/esp-idf/components/esp_system/crosscore_int.c:136
  13   process 1073439164 0x4008ee3c in esp_crosscore_int_send_yield (core_id=1) at /Users/yangzhen/esp/esp-idf/components/esp_system/crosscore_int.c:136
  14   process 1073446228 0x4008ee3c in esp_crosscore_int_send_yield (core_id=0) at /Users/yangzhen/esp/esp-idf/components/esp_system/crosscore_int.c:136
  15   process 1073706272 0x4008ee3c in esp_crosscore_int_send_yield (core_id=1) at /Users/yangzhen/esp/esp-idf/components/esp_system/crosscore_int.c:136
  16   process 1073469564 0x4008ee3c in esp_crosscore_int_send_yield (core_id=1) at /Users/yangzhen/esp/esp-idf/components/esp_system/crosscore_int.c:136
  17   process 1073469216 0x4000bff0 in ?? ()
  18   process 1073437340 0x4008ee3c in esp_crosscore_int_send_yield (core_id=1) at /Users/yangzhen/esp/esp-idf/components/esp_system/crosscore_int.c:136

==================== THREAD 1 (TCB: 0x3ffbbbf4, name: 'esp_timer') =====================
#0  0x4009903f in compare_and_set_native (set=0x3ffbbaf0, compare=3007315967, addr=0x3ffbe388 <s_timer_lock>) at /Users/yangzhen/esp/esp-idf/components/esp_hw_support/include/soc/compare_set.h:25
#1  spinlock_acquire (timeout=<optimized out>, lock=0x3ffbe388 <s_timer_lock>) at /Users/yangzhen/esp/esp-idf/components/esp_hw_support/include/soc/spinlock.h:103
#2  xPortEnterCriticalTimeout (mux=0x3ffbe388 <s_timer_lock>, timeout=<optimized out>) at /Users/yangzhen/esp/esp-idf/components/freertos/FreeRTOS-Kernel/portable/xtensa/port.c:287
#3  0x4008408d in xPortEnterCriticalTimeoutSafe (timeout=-1, mux=<optimized out>) at /Users/yangzhen/esp/esp-idf/components/freertos/FreeRTOS-Kernel/portable/xtensa/include/freertos/portmacro.h:592
#4  vPortEnterCriticalSafe (mux=<optimized out>) at /Users/yangzhen/esp/esp-idf/components/freertos/FreeRTOS-Kernel/portable/xtensa/include/freertos/portmacro.h:599
#5  timer_list_lock (timer_type=<optimized out>) at /Users/yangzhen/esp/esp-idf/components/esp_timer/src/esp_timer.c:307
#6  0x400d6bf2 in timer_process_alarm (dispatch_method=ESP_TIMER_TASK) at /Users/yangzhen/esp/esp-idf/components/esp_timer/src/esp_timer.c:363
#7  timer_task (arg=<optimized out>) at /Users/yangzhen/esp/esp-idf/components/esp_timer/src/esp_timer.c:388

==================== THREAD 2 (TCB: 0x3ffe9fc8, name: 'wifi') =====================
#0  0x3f82ad94 in ?? ()

==================== THREAD 3 (TCB: 0x3ffbc0a4, name: 'IDLE') =====================
#0  0x4018ccd6 in esp_pm_impl_waiti () at /Users/yangzhen/esp/esp-idf/components/hal/esp32/include/hal/cpu_ll.h:183
#1  0x400d2fac in esp_vApplicationIdleHook () at /Users/yangzhen/esp/esp-idf/components/esp_system/freertos_hooks.c:63
#2  0x400972cf in prvIdleTask (pvParameters=<optimized out>) at /Users/yangzhen/esp/esp-idf/components/freertos/FreeRTOS-Kernel/tasks.c:3973

==================== THREAD 4 (TCB: 0x3ffbc804, name: 'IDLE') =====================
#0  0x4018ccd6 in esp_pm_impl_waiti () at /Users/yangzhen/esp/esp-idf/components/hal/esp32/include/hal/cpu_ll.h:183
#1  0x400d2fac in esp_vApplicationIdleHook () at /Users/yangzhen/esp/esp-idf/components/esp_system/freertos_hooks.c:63
#2  0x400972cf in prvIdleTask (pvParameters=<optimized out>) at /Users/yangzhen/esp/esp-idf/components/freertos/FreeRTOS-Kernel/tasks.c:3973

==================== THREAD 5 (TCB: 0x3ffe5c2c, name: 'netStatLedTask') =====================
#0  0x4008ee24 in esp_crosscore_int_send (core_id=<optimized out>, reason_mask=1) at /Users/yangzhen/esp/esp-idf/components/esp_system/crosscore_int.c:117
#1  0x4008ee3c in esp_crosscore_int_send_yield (core_id=1) at /Users/yangzhen/esp/esp-idf/components/esp_system/crosscore_int.c:136
#2  0x4009771a in vTaskDelay (xTicksToDelay=10) at /Users/yangzhen/esp/esp-idf/components/hal/esp32/include/hal/cpu_ll.h:39
#3  0x400dc8b5 in netStatLedTask () at /Users/yangzhen/esp/esp-app/led_ble_wifi/main/netStatLed.c:42

==================== THREAD 6 (TCB: 0x3ffe7cec, name: 'tiT') =====================
#0  0x4008ee3c in esp_crosscore_int_send_yield (core_id=1) at /Users/yangzhen/esp/esp-idf/components/esp_system/crosscore_int.c:136
#1  0x40096d9e in xQueueReceive (xQueue=0x3ffe0f68, pvBuffer=0x3ffe7c50, xTicksToWait=<optimized out>) at /Users/yangzhen/esp/esp-idf/components/hal/esp32/include/hal/cpu_ll.h:39
#2  0x4013a252 in sys_arch_mbox_fetch (mbox=0x3ffc78d0 <tcpip_mbox>, msg=0x3ffe7c50, timeout=186) at /Users/yangzhen/esp/esp-idf/components/lwip/port/esp32/freertos/sys_arch.c:330
#3  0x4012c6bb in tcpip_timeouts_mbox_fetch (mbox=<optimized out>, msg=<optimized out>) at /Users/yangzhen/esp/esp-idf/components/lwip/lwip/src/api/tcpip.c:110
#4  tcpip_thread (arg=<optimized out>) at /Users/yangzhen/esp/esp-idf/components/lwip/lwip/src/api/tcpip.c:148

==================== THREAD 7 (TCB: 0x3ffda4c0, name: 'timerTask') =====================
#0  0x4008ee3c in esp_crosscore_int_send_yield (core_id=1) at /Users/yangzhen/esp/esp-idf/components/esp_system/crosscore_int.c:136
#1  0x4009771a in vTaskDelay (xTicksToDelay=60000) at /Users/yangzhen/esp/esp-idf/components/hal/esp32/include/hal/cpu_ll.h:39
#2  0x400d82e2 in timerTask () at /Users/yangzhen/esp/esp-app/led_ble_wifi/main/led.c:213

==================== THREAD 8 (TCB: 0x3ffbaa94, name: 'ipc1') =====================
#0  0x4008ee3c in esp_crosscore_int_send_yield (core_id=1) at /Users/yangzhen/esp/esp-idf/components/esp_system/crosscore_int.c:136
#1  0x40096f0c in xQueueSemaphoreTake (xQueue=0x3ffb7f60, xTicksToWait=<optimized out>) at /Users/yangzhen/esp/esp-idf/components/hal/esp32/include/hal/cpu_ll.h:39
#2  0x4008ee73 in ipc_task (arg=<optimized out>) at /Users/yangzhen/esp/esp-idf/components/esp_system/esp_ipc.c:51

==================== THREAD 9 (TCB: 0x3ffe6d8c, name: 'dTc') =====================
#0  0x4000bff0 in ?? ()
#1  0x400991d8 in vPortClearInterruptMaskFromISR (prev_level=<optimized out>) at /Users/yangzhen/esp/esp-idf/components/freertos/FreeRTOS-Kernel/portable/xtensa/include/freertos/portmacro.h:571
#2  vPortExitCritical (mux=<optimized out>) at /Users/yangzhen/esp/esp-idf/components/freertos/FreeRTOS-Kernel/portable/xtensa/port.c:318
#3  0x400988e5 in ulTaskGenericNotifyTake (uxIndexToWait=<optimized out>, xClearCountOnExit=1, xTicksToWait=4294967295) at /Users/yangzhen/esp/esp-idf/components/freertos/FreeRTOS-Kernel/tasks.c:5384
#4  0x400ddda3 in delayToConnect (param=<optimized out>) at /Users/yangzhen/esp/esp-app/led_ble_wifi/main/_wifi.c:173

==================== THREAD 10 (TCB: 0x3ffe894c, name: 'sys_evt') =====================
#0  0x4008ee3c in esp_crosscore_int_send_yield (core_id=0) at /Users/yangzhen/esp/esp-idf/components/esp_system/crosscore_int.c:136
#1  0x40096d9e in xQueueReceive (xQueue=0x3ffe110c, pvBuffer=0x3ffe8880, xTicksToWait=<optimized out>) at /Users/yangzhen/esp/esp-idf/components/hal/esp32/include/hal/cpu_ll.h:39
#2  0x40191b65 in esp_event_loop_run (event_loop=0x3ffe10f0, ticks_to_run=4294967295) at /Users/yangzhen/esp/esp-idf/components/esp_event/esp_event.c:632
#3  0x40191ce3 in esp_event_loop_run_task (args=0x3ffe10f0) at /Users/yangzhen/esp/esp-idf/components/esp_event/esp_event.c:115

==================== THREAD 11 (TCB: 0x3ffd9a78, name: 'hciT') =====================
#0  0x4008ee3c in esp_crosscore_int_send_yield (core_id=1) at /Users/yangzhen/esp/esp-idf/components/esp_system/crosscore_int.c:136
#1  0x40096f0c in xQueueSemaphoreTake (xQueue=0x3ffd8f6c, xTicksToWait=<optimized out>) at /Users/yangzhen/esp/esp-idf/components/hal/esp32/include/hal/cpu_ll.h:39
#2  0x400fd3ac in osi_sem_take (sem=0x3ffd8ce0, timeout=4294967295) at /Users/yangzhen/esp/esp-idf/components/bt/common/osi/semaphore.c:60
#3  0x400fd099 in osi_thread_run (arg=<optimized out>) at /Users/yangzhen/esp/esp-idf/components/bt/common/osi/thread.c:59

==================== THREAD 12 (TCB: 0x3ffdf090, name: 'BTU_TASK') =====================
#0  0x4008ee3c in esp_crosscore_int_send_yield (core_id=1) at /Users/yangzhen/esp/esp-idf/components/esp_system/crosscore_int.c:136
#1  0x40096f0c in xQueueSemaphoreTake (xQueue=0x3ffdcd84, xTicksToWait=<optimized out>) at /Users/yangzhen/esp/esp-idf/components/hal/esp32/include/hal/cpu_ll.h:39
#2  0x400fd3ac in osi_sem_take (sem=0x3ffd9cb0, timeout=4294967295) at /Users/yangzhen/esp/esp-idf/components/bt/common/osi/semaphore.c:60
#3  0x400fd099 in osi_thread_run (arg=<optimized out>) at /Users/yangzhen/esp/esp-idf/components/bt/common/osi/thread.c:59

==================== THREAD 13 (TCB: 0x3ffb61bc, name: 'BTC_TASK') =====================
#0  0x4008ee3c in esp_crosscore_int_send_yield (core_id=1) at /Users/yangzhen/esp/esp-idf/components/esp_system/crosscore_int.c:136
#1  0x40096f0c in xQueueSemaphoreTake (xQueue=0x3ffb60b4, xTicksToWait=<optimized out>) at /Users/yangzhen/esp/esp-idf/components/hal/esp32/include/hal/cpu_ll.h:39
#2  0x400fd3ac in osi_sem_take (sem=0x3ffb5e28, timeout=4294967295) at /Users/yangzhen/esp/esp-idf/components/bt/common/osi/semaphore.c:60
#3  0x400fd099 in osi_thread_run (arg=<optimized out>) at /Users/yangzhen/esp/esp-idf/components/bt/common/osi/thread.c:59

==================== THREAD 14 (TCB: 0x3ffb7d54, name: 'ipc0') =====================
#0  0x4008ee3c in esp_crosscore_int_send_yield (core_id=0) at /Users/yangzhen/esp/esp-idf/components/esp_system/crosscore_int.c:136
#1  0x40096f0c in xQueueSemaphoreTake (xQueue=0x3ffb7cfc, xTicksToWait=<optimized out>) at /Users/yangzhen/esp/esp-idf/components/hal/esp32/include/hal/cpu_ll.h:39
#2  0x4008ee73 in ipc_task (arg=<optimized out>) at /Users/yangzhen/esp/esp-idf/components/esp_system/esp_ipc.c:51

==================== THREAD 15 (TCB: 0x3fff7520, name: 'httpd') =====================
#0  0x4008ee3c in esp_crosscore_int_send_yield (core_id=1) at /Users/yangzhen/esp/esp-idf/components/esp_system/crosscore_int.c:136
#1  0x40096f0c in xQueueSemaphoreTake (xQueue=0x3ffe2ed0, xTicksToWait=<optimized out>) at /Users/yangzhen/esp/esp-idf/components/hal/esp32/include/hal/cpu_ll.h:39
#2  0x4013a184 in sys_arch_sem_wait (sem=0x3f822f74, timeout=0) at /Users/yangzhen/esp/esp-idf/components/lwip/port/esp32/freertos/sys_arch.c:184
#3  0x4012c348 in lwip_select (maxfdp1=55, readset=0x3fff7480, writeset=0x0, exceptset=0x0, timeout=<optimized out>) at /Users/yangzhen/esp/esp-idf/components/lwip/lwip/src/api/sockets.c:2153
#4  0x400d4005 in esp_vfs_select (nfds=55, readfds=0x3fff7480, writefds=0x0, errorfds=0x0, timeout=0x0) at /Users/yangzhen/esp/esp-idf/components/vfs/vfs.c:1005
#5  0x4013cced in httpd_server (hd=<optimized out>) at /Users/yangzhen/esp/esp-idf/components/esp_http_server/src/httpd_main.c:205
#6  httpd_thread (arg=0x3f823bdc) at /Users/yangzhen/esp/esp-idf/components/esp_http_server/src/httpd_main.c:250

==================== THREAD 16 (TCB: 0x3ffbd87c, name: 'computeTask') =====================
#0  0x4008ee3c in esp_crosscore_int_send_yield (core_id=1) at /Users/yangzhen/esp/esp-idf/components/esp_system/crosscore_int.c:136
#1  0x40096d9e in xQueueReceive (xQueue=0x3ffbd6a4, pvBuffer=0x0, xTicksToWait=<optimized out>) at /Users/yangzhen/esp/esp-idf/components/hal/esp32/include/hal/cpu_ll.h:39
#2  0x400db06f in computeTask () at /Users/yangzhen/esp/esp-app/led_ble_wifi/main/led.c:3050

==================== THREAD 17 (TCB: 0x3ffbd720, name: 'ws2811SendTask') =====================
#0  0x4000bff0 in ?? ()
#1  0x400991d8 in vPortClearInterruptMaskFromISR (prev_level=<optimized out>) at /Users/yangzhen/esp/esp-idf/components/freertos/FreeRTOS-Kernel/portable/xtensa/include/freertos/portmacro.h:571
#2  vPortExitCritical (mux=<optimized out>) at /Users/yangzhen/esp/esp-idf/components/freertos/FreeRTOS-Kernel/portable/xtensa/port.c:318
#3  0x400988e5 in ulTaskGenericNotifyTake (uxIndexToWait=<optimized out>, xClearCountOnExit=1, xTicksToWait=4294967295) at /Users/yangzhen/esp/esp-idf/components/freertos/FreeRTOS-Kernel/tasks.c:5384
#4  0x400d843d in ws2811SendTask () at /Users/yangzhen/esp/esp-app/led_ble_wifi/main/led.c:3074

==================== THREAD 18 (TCB: 0x3ffb5a9c, name: 'btController') =====================
#0  0x4008ee3c in esp_crosscore_int_send_yield (core_id=1) at /Users/yangzhen/esp/esp-idf/components/esp_system/crosscore_int.c:136
#1  0x40096d9e in xQueueReceive (xQueue=0x3ffb58f0, pvBuffer=0x3ffd89c0, xTicksToWait=<optimized out>) at /Users/yangzhen/esp/esp-idf/components/hal/esp32/include/hal/cpu_ll.h:39
#2  0x40086134 in queue_recv_hlevel_wrapper (queue=0x3ffb5974, item=0x3ffd89c0, block_time_ms=4294967295) at /Users/yangzhen/esp/esp-idf/components/bt/controller/esp32/bt.c:957
#3  0x40109345 in btdm_controller_task () at /Users/yangzhen/esp/esp-idf/components/esp_system/crosscore_int.c:147


======================= ALL MEMORY REGIONS ========================
Name   Address   Size   Attrs
.rtc.text 0x400c0000 0x0 RW  
.rtc.dummy 0x3ff80000 0x0 RW  
.rtc.force_fast 0x3ff80000 0x0 RW  
.rtc.data 0x50000000 0x10 RW A
.rtc_noinit 0x50000010 0x0 RW  
.rtc.force_slow 0x50000010 0x0 RW  
.iram0.vectors 0x40080000 0x403 R XA
.iram0.text 0x40080404 0x1efd7 R XA
.dram0.data 0x3ffbdb60 0x6934 RW A
.ext_ram_noinit 0x3f800000 0x0 RW  
.noinit 0x3ffc4494 0x0 RW  
.ext_ram.bss 0x3f800000 0x0 RW  
.flash.appdesc 0x3f400020 0x100 R  A
.flash.rodata 0x3f400120 0x37ae0 RW A
.flash.text 0x400d0020 0xc2a67 R XA
.phyiram.20 0x40192a88 0x61 R XA
.phyiram.18 0x40192aec 0x10e R XA
.phyiram.19 0x40192bfc 0x90 R XA
.phyiram.17 0x40192c8c 0x2d7 R XA
.phyiram.0 0x40192f64 0x2b R XA
.phyiram.1 0x40192f90 0x7d R XA
.phyiram.2 0x40193010 0x21e R XA
.phyiram.3 0x40193230 0xab R XA
.phyiram.4 0x401932dc 0xff R XA
.phyiram.6 0x401933dc 0x83 R XA
.phyiram.7 0x40193460 0x1ff R XA
.phyiram.8 0x40193660 0x177 R XA
.phyiram.9 0x401937d8 0x8e R XA
.phyiram.13 0x40193868 0xba R XA
.phyiram.12 0x40193924 0xeb R XA
.phyiram.14 0x40193a10 0x1cb R XA
.phyiram.16 0x40193bdc 0x72 R XA
.phyiram.11 0x40193c50 0x78 R XA
.phyiram.15 0x40193cc8 0xba R XA
.phyiram.21 0x40193d84 0x4a R XA
.phyiram.22 0x40193dd0 0x31 R XA
.phyiram.23 0x40193e04 0x103 R XA
.phyiram.24 0x40193f08 0x87 R XA
.iram0.data 0x4009f3dc 0x0 RW  
.iram0.bss 0x4009f3dc 0x0 RW  
.dram0.heap_start 0x3ffcd738 0x0 RW  
.coredump.tasks.data 0x3ffbbbf4 0x158 RW 
.coredump.tasks.data 0x3ffbba30 0x1bc RW 
.coredump.tasks.data 0x3ffe9fc8 0x158 RW 
.coredump.tasks.data 0x3ffe9df0 0x1d0 RW 
.coredump.tasks.data 0x3ffbc0a4 0x158 RW 
.coredump.tasks.data 0x3ffbc670 0x18c RW 
.coredump.tasks.data 0x3ffbc804 0x158 RW 
.coredump.tasks.data 0x3ffbcdd0 0x18c RW 
.coredump.tasks.data 0x3ffe5c2c 0x158 RW 
.coredump.tasks.data 0x3ffe5a80 0x1a4 RW 
.coredump.tasks.data 0x3ffe7cec 0x158 RW 
.coredump.tasks.data 0x3ffe7b00 0x1e4 RW 
.coredump.tasks.data 0x3ffda4c0 0x158 RW 
.coredump.tasks.data 0x3ffda320 0x198 RW 
.coredump.tasks.data 0x3ffbaa94 0x158 RW 
.coredump.tasks.data 0x3ffba8e0 0x1ac RW 
.coredump.tasks.data 0x3ffe6d8c 0x158 RW 
.coredump.tasks.data 0x3ffe6b50 0x234 RW 
.coredump.tasks.data 0x3ffe894c 0x158 RW 
.coredump.tasks.data 0x3ffe8750 0x1f4 RW 
.coredump.tasks.data 0x3ffd9a78 0x158 RW 
.coredump.tasks.data 0x3ffd98b0 0x1c0 RW 
.coredump.tasks.data 0x3ffdf090 0x158 RW 
.coredump.tasks.data 0x3ffdeec0 0x1c8 RW 
.coredump.tasks.data 0x3ffb61bc 0x158 RW 
.coredump.tasks.data 0x3ffdc680 0x1c0 RW 
.coredump.tasks.data 0x3ffb7d54 0x158 RW 
.coredump.tasks.data 0x3ffba4e0 0x1a8 RW 
.coredump.tasks.data 0x3fff7520 0x158 RW 
.coredump.tasks.data 0x3fff7200 0x318 RW 
.coredump.tasks.data 0x3ffbd87c 0x158 RW 
.coredump.tasks.data 0x3ffd7870 0x1dc RW 
.coredump.tasks.data 0x3ffbd720 0x158 RW 
.coredump.tasks.data 0x3ffd38a0 0x1a8 RW 
.coredump.tasks.data 0x3ffb5a9c 0x158 RW 
.coredump.tasks.data 0x3ffd8880 0x1d0 RW 

===================== ESP32 CORE DUMP END =====================
===============================================================
@espressif-bot espressif-bot added the Status: Opened Issue is new label Apr 15, 2022
@github-actions github-actions bot changed the title Crashed task handle: 0x3ffbbbf4, name: 'esp_timer' case InterruptWDTTimoutCPU0 Crashed task handle: 0x3ffbbbf4, name: 'esp_timer' case InterruptWDTTimoutCPU0 (IDFGH-7181) Apr 15, 2022
@o-marshmallow
Copy link
Collaborator

Hi @sxsx2yzyz,

I see that Thread 1 is looping indefinetely, triggering the watchdog which means it was unable to take the s_timeout_lock spinlock. Most of the tasks where waiting, apart from that hard to tell what is going on or what is the issue.

Does this always happen after 30 hours? What is your application exaclty doing? I know it's hard but can you try providing a small example that reproduces the issue? Or have your tried reproducing it?

@sxsx2yzyz
Copy link
Author

Hi @sxsx2yzyz,

I see that Thread 1 is looping indefinetely, triggering the watchdog which means it was unable to take the s_timeout_lock spinlock. Most of the tasks where waiting, apart from that hard to tell what is going on or what is the issue.

Does this always happen after 30 hours? What is your application exaclty doing? I know it's hard but can you try providing a small example that reproduces the issue? Or have your tried reproducing it?

I had the same problem again and this time after the program has been running for about 33.5 hours.I have 2 pieces of esp32wrover-E and 1 piece of esp32wrover-IE, the problem is always esp32wrover-IE.
This is the part of my code for esp_timer:

static xQueueHandle frameQueue = NULL;
static void frameGenerateTask()
{
    xQueueSend(frameQueue, NULL, NULL);
}
void xx()
{
...
    frameQueue = xQueueCreate(400, 0); 
    const esp_timer_create_args_t periodic_timer_args = {
        .callback = &frameGenerateTask,
        /* name is optional, but may help identify the timer when debugging */
        .name = "frame"};

    esp_timer_handle_t periodic_timer;
    ESP_ERROR_CHECK(esp_timer_create(&periodic_timer_args, &periodic_timer));
    ESP_ERROR_CHECK(esp_timer_start_periodic(periodic_timer, 25 * 1000));
...
}

I tried to analyse coredump, but the program was recompiled and app.elf has been changed. Here is output of run espcoredump.py info_corefile -t raw -c . /coredump . /build/app.elf.

espcoredump.py v0.4-dev
===============================================================
==================== ESP32 CORE DUMP START ====================

Crashed task handle: 0x3ffbbbf4, name: 'esp_timer', GDB name: 'process 1073462260'

================== CURRENT THREAD REGISTERS ===================
exccause       0x45 (InterruptWDTTimoutCPU0)
excvaddr       0x0
epc1           0x0
epc2           0x0
epc3           0x0
epc4           0x0
epc5           0x0
epc6           0x0
epc7           0x0
eps2           0x0
eps3           0x0
eps4           0x0
eps5           0x0
eps6           0x0
eps7           0x0
pc             0x4009903f          0x4009903f <spi_flash_hal_erase_block+75>
lbeg           0x400843d5          1074283477
lend           0x400843dd          1074283485
lcount         0x27                39
sar            0x1f                31
ps             0x60625             394789
threadptr      <unavailable>
br             <unavailable>
scompare1      <unavailable>
acclo          <unavailable>
acchi          <unavailable>
m0             <unavailable>
m1             <unavailable>
m2             <unavailable>
m3             <unavailable>
expstate       <unavailable>
f64r_lo        <unavailable>
f64r_hi        <unavailable>
f64s           <unavailable>
fcr            <unavailable>
fsr            <unavailable>
a0             0x8008408d          -2146942835
a1             0x3ffbbaf0          1073462000
a2             0x3ffbe388          1073472392
a3             0xb33fffff          -1287651329
a4             0xabab              43947
a5             0x60623             394787
a6             0x60620             394784
a7             0xcdcd              52685
a8             0xabab              43947
a9             0xffffffff          -1
a10            0x3                 3
a11            0x60623             394787
a12            0x60620             394784
a13            0x60023             393251
a14            0x7be388            8119176
a15            0x3fffff            4194303

==================== CURRENT THREAD STACK =====================
#0  0x4009903f in spi_flash_hal_erase_block (host=0x3ffbe388 <s_timer_lock>, start_address=<optimized out>) at /Users/yangzhen/esp/esp-idf/components/hal/spi_flash_hal_iram.c:67
#1  0x4008408d in timer_insert (timer=0x0, without_update_alarm=<optimized out>) at /Users/yangzhen/esp/esp-idf/components/esp_timer/src/esp_timer.c:246
#2  0x400d6ba6 in timer_process_alarm (dispatch_method=ESP_TIMER_TASK) at /Users/yangzhen/esp/esp-idf/components/esp_timer/src/esp_timer.c:341
#3  timer_task (arg=<optimized out>) at /Users/yangzhen/esp/esp-idf/components/esp_timer/src/esp_timer.c:388

======================== THREADS INFO =========================
  Id   Target Id          Frame 
* 1    process 1073462260 0x4009903f in spi_flash_hal_erase_block (host=0x3ffbe388 <s_timer_lock>, start_address=<optimized out>) at /Users/yangzhen/esp/esp-idf/components/hal/spi_flash_hal_iram.c:67
  2    process 1073651656 0x3f82379c in ?? ()
  3    process 1073463460 0x4018ba96 in l2cu_enqueue_ccb (p_ccb=<optimized out>) at /Users/yangzhen/esp/esp-idf/components/bt/host/bluedroid/stack/l2cap/l2c_utils.c:1344
  4    process 1073465348 0x4018ba96 in l2cu_enqueue_ccb (p_ccb=<optimized out>) at /Users/yangzhen/esp/esp-idf/components/bt/host/bluedroid/stack/l2cap/l2c_utils.c:1344
  5    process 1073634348 0x4008ee3c in coex_timer_ts_start_disalarm () at /Users/yangzhen/esp/esp-idf/components/esp_system/freertos_hooks.c:39
  6    process 1073642732 0x4008ee3c in coex_timer_ts_start_disalarm () at /Users/yangzhen/esp/esp-idf/components/esp_system/freertos_hooks.c:39
  7    process 1073578868 0x4008ee3c in coex_timer_ts_start_disalarm () at /Users/yangzhen/esp/esp-idf/components/esp_system/freertos_hooks.c:39
  8    process 1073457812 0x4008ee3c in coex_timer_ts_start_disalarm () at /Users/yangzhen/esp/esp-idf/components/esp_system/freertos_hooks.c:39
  9    process 1073638796 0x4000bff0 in ?? ()
  10   process 1073645900 0x4008ee3c in coex_timer_ts_start_disalarm () at /Users/yangzhen/esp/esp-idf/components/esp_system/freertos_hooks.c:39
  11   process 1073446228 0x4008ee3c in coex_timer_ts_start_disalarm () at /Users/yangzhen/esp/esp-idf/components/esp_system/freertos_hooks.c:39
  12   process 1073596244 0x4008ee3c in coex_timer_ts_start_disalarm () at /Users/yangzhen/esp/esp-idf/components/esp_system/freertos_hooks.c:39
  13   process 1073607136 0x4008ee3c in coex_timer_ts_start_disalarm () at /Users/yangzhen/esp/esp-idf/components/esp_system/freertos_hooks.c:39
  14   process 1073438948 0x4008ee3c in coex_timer_ts_start_disalarm () at /Users/yangzhen/esp/esp-idf/components/esp_system/freertos_hooks.c:39
  15   process 1073706272 0x4008ee3c in coex_timer_ts_start_disalarm () at /Users/yangzhen/esp/esp-idf/components/esp_system/freertos_hooks.c:39
  16   process 1073576468 0x4008ee3c in coex_timer_ts_start_disalarm () at /Users/yangzhen/esp/esp-idf/components/esp_system/freertos_hooks.c:39
  17   process 1073469816 0x4000bff0 in ?? ()
  18   process 1073437340 0x4008ee3c in coex_timer_ts_start_disalarm () at /Users/yangzhen/esp/esp-idf/components/esp_system/freertos_hooks.c:39

==================== THREAD 1 (TCB: 0x3ffbbbf4, name: 'esp_timer') =====================
#0  0x4009903f in spi_flash_hal_erase_block (host=0x3ffbe388 <s_timer_lock>, start_address=<optimized out>) at /Users/yangzhen/esp/esp-idf/components/hal/spi_flash_hal_iram.c:67
#1  0x4008408d in timer_insert (timer=0x0, without_update_alarm=<optimized out>) at /Users/yangzhen/esp/esp-idf/components/esp_timer/src/esp_timer.c:246
#2  0x400d6ba6 in timer_process_alarm (dispatch_method=ESP_TIMER_TASK) at /Users/yangzhen/esp/esp-idf/components/esp_timer/src/esp_timer.c:341
#3  timer_task (arg=<optimized out>) at /Users/yangzhen/esp/esp-idf/components/esp_timer/src/esp_timer.c:388

==================== THREAD 2 (TCB: 0x3ffe9fc8, name: 'wifi') =====================
#0  0x3f82379c in ?? ()

==================== THREAD 3 (TCB: 0x3ffbc0a4, name: 'IDLE') =====================
#0  0x4018ba96 in l2cu_enqueue_ccb (p_ccb=<optimized out>) at /Users/yangzhen/esp/esp-idf/components/bt/host/bluedroid/stack/l2cap/l2c_utils.c:1344
#1  0x400d2f60 in cpu_ll_get_core_id () at /Users/yangzhen/esp/esp-idf/components/hal/esp32/include/hal/cpu_ll.h:35
#2  xPortGetCoreID () at /Users/yangzhen/esp/esp-idf/components/freertos/FreeRTOS-Kernel/portable/xtensa/include/freertos/portmacro.h:634
#3  esp_vApplicationIdleHook () at /Users/yangzhen/esp/esp-idf/components/esp_system/freertos_hooks.c:49
#4  0x400972cf in vTaskPlaceOnUnorderedEventList (pxEventList=0x0, xItemValue=1073498096, xTicksToWait=0) at /Users/yangzhen/esp/esp-idf/components/freertos/FreeRTOS-Kernel/tasks.c:3577

==================== THREAD 4 (TCB: 0x3ffbc804, name: 'IDLE') =====================
#0  0x4018ba96 in l2cu_enqueue_ccb (p_ccb=<optimized out>) at /Users/yangzhen/esp/esp-idf/components/bt/host/bluedroid/stack/l2cap/l2c_utils.c:1344
#1  0x400d2f60 in cpu_ll_get_core_id () at /Users/yangzhen/esp/esp-idf/components/hal/esp32/include/hal/cpu_ll.h:35
#2  xPortGetCoreID () at /Users/yangzhen/esp/esp-idf/components/freertos/FreeRTOS-Kernel/portable/xtensa/include/freertos/portmacro.h:634
#3  esp_vApplicationIdleHook () at /Users/yangzhen/esp/esp-idf/components/esp_system/freertos_hooks.c:49
#4  0x400972cf in vTaskPlaceOnUnorderedEventList (pxEventList=0x0, xItemValue=1073498096, xTicksToWait=1) at /Users/yangzhen/esp/esp-idf/components/freertos/FreeRTOS-Kernel/tasks.c:3577

==================== THREAD 5 (TCB: 0x3ffe5c2c, name: 'netStatLedTask') =====================
#0  0x4008ee3c in coex_timer_ts_start_disalarm () at /Users/yangzhen/esp/esp-idf/components/esp_system/freertos_hooks.c:39
#1  0x4009771a in vTaskPrioritySet (xTask=<optimized out>, uxNewPriority=<optimized out>) at /Users/yangzhen/esp/esp-idf/components/freertos/FreeRTOS-Kernel/tasks.c:1926
#2  0x400dc2f9 in initLed () at /Users/yangzhen/esp/esp-app/led_ble_wifi/main/led.c:3177

==================== THREAD 6 (TCB: 0x3ffe7cec, name: 'tiT') =====================
#0  0x4008ee3c in coex_timer_ts_start_disalarm () at /Users/yangzhen/esp/esp-idf/components/esp_system/freertos_hooks.c:39
#1  0x40096d9e in xTaskIncrementTick () at /Users/yangzhen/esp/esp-idf/components/hal/esp32/include/hal/cpu_ll.h:39
#2  0x40139056 in nd6_tmr () at /Users/yangzhen/esp/esp-idf/components/lwip/lwip/src/core/ipv6/nd6.c:1166
#3  0x4012b4bf in lwip_socket_drop_registered_mld6_memberships (s=<optimized out>) at /Users/yangzhen/esp/esp-idf/components/lwip/lwip/src/api/sockets.c:4292
#4  lwip_close (s=<optimized out>) at /Users/yangzhen/esp/esp-idf/components/lwip/lwip/src/api/sockets.c:857

==================== THREAD 7 (TCB: 0x3ffd8374, name: 'timerTask') =====================
#0  0x4008ee3c in coex_timer_ts_start_disalarm () at /Users/yangzhen/esp/esp-idf/components/esp_system/freertos_hooks.c:39
#1  0x4009771a in vTaskPrioritySet (xTask=<optimized out>, uxNewPriority=<optimized out>) at /Users/yangzhen/esp/esp-idf/components/freertos/FreeRTOS-Kernel/tasks.c:1926
#2  0x400d804e in setGdataByData (opt=<optimized out>, optLen=<optimized out>) at /Users/yangzhen/esp/esp-app/led_ble_wifi/main/led.c:895

==================== THREAD 8 (TCB: 0x3ffbaa94, name: 'ipc1') =====================
#0  0x4008ee3c in coex_timer_ts_start_disalarm () at /Users/yangzhen/esp/esp-idf/components/esp_system/freertos_hooks.c:39
#1  0x40096f0c in xTaskResumeAll () at /Users/yangzhen/esp/esp-idf/components/hal/esp32/include/hal/cpu_ll.h:39
#2  0x4008ee73 in ?? () at /Users/yangzhen/esp/esp-idf/components/esp_system/freertos_hooks.c:39

==================== THREAD 9 (TCB: 0x3ffe6d8c, name: 'dTc') =====================
#0  0x4000bff0 in ?? ()
#1  0x400991d8 in spi_flash_ll_set_hold (hold_n=0, dev=0x800991d8) at /Users/yangzhen/esp/esp-idf/components/hal/esp32/include/hal/spi_flash_ll.h:403
#2  spi_flash_hal_device_config (host=0x3ffc4778 <s_correction_us>) at /Users/yangzhen/esp/esp-idf/components/hal/spi_flash_hal_common.inc:52
#3  0x400988e5 in cpu_ll_set_breakpoint (pc=1, id=1073639052) at /Users/yangzhen/esp/esp-idf/components/hal/esp32/include/hal/cpu_ll.h:77
#4  cpu_hal_set_breakpoint (/builds/idf/crosstool-NG/.build/HOST-x86_64-apple-darwin12/xtensa-esp32-elf/src/gdb/gdb/inline-frame.c:155: internal-error: void inline_frame_this_id(frame_info*, void**, frame_id*): Assertion `frame_id_p (*this_id)' failed.
A problem internal to GDB has been detected,
further debugging may prove unreliable.
Quit this debugging session? (y or n) [answered Y; input not from terminal]
/builds/idf/crosstool-NG/.build/HOST-x86_64-apple-darwin12/xtensa-esp32-elf/src/gdb/gdb/inline-frame.c:155: internal-error: void inline_frame_this_id(frame_info*, void**, frame_id*): Assertion `frame_id_p (*this_id)' failed.
A problem internal to GDB has been detected,
further debugging may prove unreliable.
Create a core file of GDB? (y or n) [answered Y; input not from terminal]
Traceback (most recent call last):
  File "/Users/yangzhen/esp/esp-idf/components/espcoredump/espcoredump.py", line 350, in <module>
    temp_core_files = info_corefile()
  File "/Users/yangzhen/esp/esp-idf/components/espcoredump/espcoredump.py", line 206, in info_corefile
    gdb.switch_thread(thr_id)
  File "/Users/yangzhen/esp/esp-idf/components/espcoredump/corefile/gdb.py", line 120, in switch_thread
    self._gdbmi_run_cmd_get_one_response('-thread-select %s' % thr_id, 'done', 'result')
  File "/Users/yangzhen/esp/esp-idf/components/espcoredump/corefile/gdb.py", line 79, in _gdbmi_run_cmd_get_one_response
    return self._gdbmi_run_cmd_get_responses(cmd, resp_message, resp_type, multiple=False)[0]
  File "/Users/yangzhen/esp/esp-idf/components/espcoredump/corefile/gdb.py", line 72, in _gdbmi_run_cmd_get_responses
    raise ESPCoreDumpError("Couldn't find response with message '{}', type '{}' in responses '{}'".format(
corefile.ESPCoreDumpError: Couldn't find response with message 'done', type 'result' in responses '[]'

@sxsx2yzyz
Copy link
Author

The same thing happened again, this time with esp32-wrover-E, 67 hours after the chip was booted, and here are the results of the coredump analysis.

espcoredump.py v0.4-dev
===============================================================
==================== ESP32 CORE DUMP START ====================

Crashed task handle: 0x3ffbbbf4, name: 'esp_timer', GDB name: 'process 1073462260'

================== CURRENT THREAD REGISTERS ===================
exccause       0x45 (InterruptWDTTimoutCPU0)
excvaddr       0x0
epc1           0x0
epc2           0x0
epc3           0x0
epc4           0x0
epc5           0x0
epc6           0x0
epc7           0x0
eps2           0x0
eps3           0x0
eps4           0x0
eps5           0x0
eps6           0x0
eps7           0x0
pc             0x40099037          0x40099037 <spi_flash_hal_erase_block+67>
lbeg           0x400843d5          1074283477
lend           0x400843dd          1074283485
lcount         0x26                38
sar            0x1f                31
ps             0x60625             394789
threadptr      <unavailable>
br             <unavailable>
scompare1      <unavailable>
acclo          <unavailable>
acchi          <unavailable>
m0             <unavailable>
m1             <unavailable>
m2             <unavailable>
m3             <unavailable>
expstate       <unavailable>
f64r_lo        <unavailable>
f64r_hi        <unavailable>
f64s           <unavailable>
fcr            <unavailable>
fsr            <unavailable>
a0             0x8008408d          -2146942835
a1             0x3ffbbaf0          1073462000
a2             0x3ffbe388          1073472392
a3             0xb33fffff          -1287651329
a4             0xabab              43947
a5             0x60623             394787
a6             0x60620             394784
a7             0xcdcd              52685
a8             0xabab              43947
a9             0xffffffff          -1
a10            0x3                 3
a11            0x60623             394787
a12            0x60620             394784
a13            0x3ffc47b4          1073498036
a14            0x7be388            8119176
a15            0x3fffff            4194303

==================== CURRENT THREAD STACK =====================
#0  0x40099037 in spi_flash_ll_erase_block (dev=0xabab) at /Users/yangzhen/esp/esp-idf/components/hal/esp32/include/hal/spi_flash_ll.h:119
#1  spi_flash_hal_erase_block (host=0x3ffbe388 <s_timer_lock>, start_address=<optimized out>) at /Users/yangzhen/esp/esp-idf/components/hal/spi_flash_hal_iram.c:61
#2  0x4008408d in timer_insert (timer=0x0, without_update_alarm=<optimized out>) at /Users/yangzhen/esp/esp-idf/components/esp_timer/src/esp_timer.c:246
#3  0x400d6ba6 in timer_process_alarm (dispatch_method=ESP_TIMER_TASK) at /Users/yangzhen/esp/esp-idf/components/esp_timer/src/esp_timer.c:341
#4  timer_task (arg=<optimized out>) at /Users/yangzhen/esp/esp-idf/components/esp_timer/src/esp_timer.c:388

======================== THREADS INFO =========================
  Id   Target Id          Frame 
* 1    process 1073462260 0x40099037 in spi_flash_ll_erase_block (dev=0xabab) at /Users/yangzhen/esp/esp-idf/components/hal/esp32/include/hal/spi_flash_ll.h:119
  2    process 1073651656 0x00000000 in ?? ()
  3    process 1073463460 0x4018ba96 in gatt_sr_reset_cback_cnt (p_tcb=0x0) at /Users/yangzhen/esp/esp-idf/components/bt/host/bluedroid/stack/gatt/gatt_utils.c:1958
  4    process 1073465348 0x4018ba96 in gatt_sr_reset_cback_cnt (p_tcb=0x0) at /Users/yangzhen/esp/esp-idf/components/bt/host/bluedroid/stack/gatt/gatt_utils.c:1958
  5    process 1073642732 0x4008ee3c in coex_timer_ts_start_disalarm () at /Users/yangzhen/esp/esp-idf/components/esp_system/freertos_hooks.c:39
  6    process 1073634348 0x4008ee24 in coex_timer_ts_start_alarm () at /Users/yangzhen/esp/esp-idf/components/esp_system/freertos_hooks.c:39
  7    process 1073579304 0x4008ee3c in coex_timer_ts_start_disalarm () at /Users/yangzhen/esp/esp-idf/components/esp_system/freertos_hooks.c:39
  8    process 1073457812 0x4008ee3c in coex_timer_ts_start_disalarm () at /Users/yangzhen/esp/esp-idf/components/esp_system/freertos_hooks.c:39
  9    process 1073638796 0x4000bff0 in ?? ()
  10   process 1073645900 0x4008ee3c in coex_timer_ts_start_disalarm () at /Users/yangzhen/esp/esp-idf/components/esp_system/freertos_hooks.c:39
  11   process 1073596740 0x4008ee3c in coex_timer_ts_start_disalarm () at /Users/yangzhen/esp/esp-idf/components/esp_system/freertos_hooks.c:39
  12   process 1073607616 0x4008ee3c in coex_timer_ts_start_disalarm () at /Users/yangzhen/esp/esp-idf/components/esp_system/freertos_hooks.c:39
  13   process 1073438948 0x4008ee3c in coex_timer_ts_start_disalarm () at /Users/yangzhen/esp/esp-idf/components/esp_system/freertos_hooks.c:39
  14   process 1073446228 0x4008ee3c in coex_timer_ts_start_disalarm () at /Users/yangzhen/esp/esp-idf/components/esp_system/freertos_hooks.c:39
  15   process 1073706272 0x4008ee3c in coex_timer_ts_start_disalarm () at /Users/yangzhen/esp/esp-idf/components/esp_system/freertos_hooks.c:39
  16   process 1073576904 0x4008ee3c in coex_timer_ts_start_disalarm () at /Users/yangzhen/esp/esp-idf/components/esp_system/freertos_hooks.c:39
  17   process 1073560168 0x4000bff0 in ?? ()
  18   process 1073437340 0x4008ee3c in coex_timer_ts_start_disalarm () at /Users/yangzhen/esp/esp-idf/components/esp_system/freertos_hooks.c:39

==================== THREAD 1 (TCB: 0x3ffbbbf4, name: 'esp_timer') =====================
#0  0x40099037 in spi_flash_ll_erase_block (dev=0xabab) at /Users/yangzhen/esp/esp-idf/components/hal/esp32/include/hal/spi_flash_ll.h:119
#1  spi_flash_hal_erase_block (host=0x3ffbe388 <s_timer_lock>, start_address=<optimized out>) at /Users/yangzhen/esp/esp-idf/components/hal/spi_flash_hal_iram.c:61
#2  0x4008408d in timer_insert (timer=0x0, without_update_alarm=<optimized out>) at /Users/yangzhen/esp/esp-idf/components/esp_timer/src/esp_timer.c:246
#3  0x400d6ba6 in timer_process_alarm (dispatch_method=ESP_TIMER_TASK) at /Users/yangzhen/esp/esp-idf/components/esp_timer/src/esp_timer.c:341
#4  timer_task (arg=<optimized out>) at /Users/yangzhen/esp/esp-idf/components/esp_timer/src/esp_timer.c:388

==================== THREAD 2 (TCB: 0x3ffe9fc8, name: 'wifi') =====================
#0  0x00000000 in ?? ()

==================== THREAD 3 (TCB: 0x3ffbc0a4, name: 'IDLE') =====================
#0  0x4018ba96 in gatt_sr_reset_cback_cnt (p_tcb=0x0) at /Users/yangzhen/esp/esp-idf/components/bt/host/bluedroid/stack/gatt/gatt_utils.c:1958
#1  0x400d2f60 in cpu_ll_get_core_id () at /Users/yangzhen/esp/esp-idf/components/hal/esp32/include/hal/cpu_ll.h:35
#2  xPortGetCoreID () at /Users/yangzhen/esp/esp-idf/components/freertos/FreeRTOS-Kernel/portable/xtensa/include/freertos/portmacro.h:634
#3  esp_vApplicationIdleHook () at /Users/yangzhen/esp/esp-idf/components/esp_system/freertos_hooks.c:49
#4  0x400972cf in vTaskPlaceOnUnorderedEventList (pxEventList=0x0, xItemValue=1073498096, xTicksToWait=0) at /Users/yangzhen/esp/esp-idf/components/freertos/FreeRTOS-Kernel/tasks.c:3577

==================== THREAD 4 (TCB: 0x3ffbc804, name: 'IDLE') =====================
#0  0x4018ba96 in gatt_sr_reset_cback_cnt (p_tcb=0x0) at /Users/yangzhen/esp/esp-idf/components/bt/host/bluedroid/stack/gatt/gatt_utils.c:1958
#1  0x400d2f60 in cpu_ll_get_core_id () at /Users/yangzhen/esp/esp-idf/components/hal/esp32/include/hal/cpu_ll.h:35
#2  xPortGetCoreID () at /Users/yangzhen/esp/esp-idf/components/freertos/FreeRTOS-Kernel/portable/xtensa/include/freertos/portmacro.h:634
#3  esp_vApplicationIdleHook () at /Users/yangzhen/esp/esp-idf/components/esp_system/freertos_hooks.c:49
#4  0x400972cf in vTaskPlaceOnUnorderedEventList (pxEventList=0x0, xItemValue=1073498096, xTicksToWait=1) at /Users/yangzhen/esp/esp-idf/components/freertos/FreeRTOS-Kernel/tasks.c:3577

==================== THREAD 5 (TCB: 0x3ffe7cec, name: 'tiT') =====================
#0  0x4008ee3c in coex_timer_ts_start_disalarm () at /Users/yangzhen/esp/esp-idf/components/esp_system/freertos_hooks.c:39
#1  0x40096d9e in xTaskIncrementTick () at /Users/yangzhen/esp/esp-idf/components/hal/esp32/include/hal/cpu_ll.h:39
#2  0x40139056 in nd6_tmr () at /Users/yangzhen/esp/esp-idf/components/lwip/lwip/src/core/ipv6/nd6.c:1013
#3  0x4012b4bf in lwip_bind (s=<optimized out>, name=<optimized out>, namelen=<optimized out>) at /Users/yangzhen/esp/esp-idf/components/lwip/lwip/src/api/sockets.c:792

==================== THREAD 6 (TCB: 0x3ffe5c2c, name: 'netStatLedTask') =====================
#0  0x4008ee24 in coex_timer_ts_start_alarm () at /Users/yangzhen/esp/esp-idf/components/esp_system/freertos_hooks.c:39
#1  0x4008ee3c in coex_timer_ts_start_disalarm () at /Users/yangzhen/esp/esp-idf/components/esp_system/freertos_hooks.c:39
#2  0x4009771a in vTaskPrioritySet (xTask=<optimized out>, uxNewPriority=<optimized out>) at /Users/yangzhen/esp/esp-idf/components/freertos/FreeRTOS-Kernel/tasks.c:1926
#3  0x400dc2f9 in initLed () at /Users/yangzhen/esp/esp-app/led_ble_wifi/main/led.c:3165

==================== THREAD 7 (TCB: 0x3ffd8528, name: 'timerTask') =====================
#0  0x4008ee3c in coex_timer_ts_start_disalarm () at /Users/yangzhen/esp/esp-idf/components/esp_system/freertos_hooks.c:39
#1  0x4009771a in vTaskPrioritySet (xTask=<optimized out>, uxNewPriority=<optimized out>) at /Users/yangzhen/esp/esp-idf/components/freertos/FreeRTOS-Kernel/tasks.c:1926
#2  0x400d804e in setRecLedColrByFrameIndex (frameIndex=172 '\\254', brightness=170 '\\252', ledIndexOffset=23208, totalLedNumber=0) at /Users/yangzhen/esp/esp-app/led_ble_wifi/main/led.c:360

==================== THREAD 8 (TCB: 0x3ffbaa94, name: 'ipc1') =====================
#0  0x4008ee3c in coex_timer_ts_start_disalarm () at /Users/yangzhen/esp/esp-idf/components/esp_system/freertos_hooks.c:39
#1  0x40096f0c in xTaskResumeAll () at /Users/yangzhen/esp/esp-idf/components/hal/esp32/include/hal/cpu_ll.h:39
#2  0x4008ee73 in ?? () at /Users/yangzhen/esp/esp-idf/components/esp_system/freertos_hooks.c:39

==================== THREAD 9 (TCB: 0x3ffe6d8c, name: 'dTc') =====================
#0  0x4000bff0 in ?? ()
#1  0x400991d8 in spi_flash_ll_set_hold (hold_n=0, dev=0x800991d8) at /Users/yangzhen/esp/esp-idf/components/hal/esp32/include/hal/spi_flash_ll.h:403
#2  spi_flash_hal_device_config (host=0x3ffc4778 <s_correction_us>) at /Users/yangzhen/esp/esp-idf/components/hal/spi_flash_hal_common.inc:52
#3  0x400988e5 in cpu_ll_set_breakpoint (pc=1, id=1073639052) at /Users/yangzhen/esp/esp-idf/components/hal/esp32/include/hal/cpu_ll.h:77
#4  cpu_hal_set_breakpoint (/builds/idf/crosstool-NG/.build/HOST-x86_64-apple-darwin12/xtensa-esp32-elf/src/gdb/gdb/inline-frame.c:155: internal-error: void inline_frame_this_id(frame_info*, void**, frame_id*): Assertion `frame_id_p (*this_id)' failed.
A problem internal to GDB has been detected,
further debugging may prove unreliable.
Quit this debugging session? (y or n) [answered Y; input not from terminal]
/builds/idf/crosstool-NG/.build/HOST-x86_64-apple-darwin12/xtensa-esp32-elf/src/gdb/gdb/inline-frame.c:155: internal-error: void inline_frame_this_id(frame_info*, void**, frame_id*): Assertion `frame_id_p (*this_id)' failed.
A problem internal to GDB has been detected,
further debugging may prove unreliable.
Create a core file of GDB? (y or n) [answered Y; input not from terminal]
Traceback (most recent call last):
  File "/Users/yangzhen/esp/esp-idf/components/espcoredump/espcoredump.py", line 350, in <module>
    temp_core_files = info_corefile()
  File "/Users/yangzhen/esp/esp-idf/components/espcoredump/espcoredump.py", line 206, in info_corefile
    gdb.switch_thread(thr_id)
  File "/Users/yangzhen/esp/esp-idf/components/espcoredump/corefile/gdb.py", line 120, in switch_thread
    self._gdbmi_run_cmd_get_one_response('-thread-select %s' % thr_id, 'done', 'result')
  File "/Users/yangzhen/esp/esp-idf/components/espcoredump/corefile/gdb.py", line 79, in _gdbmi_run_cmd_get_one_response
    return self._gdbmi_run_cmd_get_responses(cmd, resp_message, resp_type, multiple=False)[0]
  File "/Users/yangzhen/esp/esp-idf/components/espcoredump/corefile/gdb.py", line 72, in _gdbmi_run_cmd_get_responses
    raise ESPCoreDumpError("Couldn't find response with message '{}', type '{}' in responses '{}'".format(
corefile.ESPCoreDumpError: Couldn't find response with message 'done', type 'result' in responses '[]'

@tsctrl
Copy link

tsctrl commented Apr 29, 2022

i have the same issue, happen when enable psram in menuconfig and enable psram during startup.
i am using idf 4.3 wrover module devkit c

==================== CURRENT THREAD STACK =====================
#0  0x40094cd1 in search_suitable_block (sli=<synthetic pointer>, fli=<synthetic pointer>, control=0xffffffff) at /components/heap/heap_tlsf.c:441
#1  block_locate_free (size=12, control=0xffffffff) at /components/heap/heap_tlsf.c:441
#2  tlsf_malloc (tlsf=0xffffffff, size=<optimized out>) at /components/heap/heap_tlsf.c:757
#3  0x40095892 in multi_heap_malloc_impl (heap=0x3f800000, size=8) at /components/heap/multi_heap.c:197
#4  0x40081f14 in heap_caps_malloc (size=8, caps=5120) at /components/heap/heap_caps.c:145
#5  0x40081fcc in heap_caps_malloc_prefer (size=8, num=1) at /components/heap/heap_caps.c:226
#6  0x40087a9c in wifi_malloc (size=8) at /components/esp_wifi/esp32/esp_adapter.c:77
#7  0x401587e6 in ieee80211_timer_process () at /components/esp_wifi/esp32/esp_adapter.c:177
#8  0x40146594 in ?? () at /components/esp_wifi/esp32/esp_adapter.c:177
#9  0x400dc48d in timer_process_alarm (dispatch_method=<optimized out>) at /components/esp_timer/src/esp_timer.c:322
#10 0x400dc4b9 in timer_task (arg=0x0) at /components/esp_timer/src/esp_timer.c:341

in my case if i enable this option:
[*] Try to allocate memories of WiFi and LWIP in SPIRAM firstly. If failed, allocate internal memory

@sxsx2yzyz
Copy link
Author

and

I enabled too.Now i'm trying not to use esp_timer.

@sxsx2yzyz
Copy link
Author

I no longer use anything related to esp_timer, e.g. LEDC_LOW_SPEED_MODE for ledc, periodic_timer for esp_timer. no longer have this problem.

@sxsx2yzyz
Copy link
Author

Again

espcoredump.py v0.4-dev
===============================================================
==================== ESP32 CORE DUMP START ====================

Crashed task handle: 0x3ffbbbf4, name: 'esp_timer', GDB name: 'process 1073462260'

================== CURRENT THREAD REGISTERS ===================
exccause       0x45 (InterruptWDTTimoutCPU0)
excvaddr       0x0
epc1           0x0
epc2           0x0
epc3           0x0
epc4           0x0
epc5           0x0
epc6           0x0
epc7           0x0
eps2           0x0
eps3           0x0
eps4           0x0
eps5           0x0
eps6           0x0
eps7           0x0
pc             0x400994e7          0x400994e7 <xPortEnterCriticalTimeout+59>
lbeg           0x40093014          1074343956
lend           0x40093030          1074343984
lcount         0xffffffff          4294967295
sar            0x17                23
ps             0x60025             393253
threadptr      <unavailable>
br             <unavailable>
scompare1      <unavailable>
acclo          <unavailable>
acchi          <unavailable>
m0             <unavailable>
m1             <unavailable>
m2             <unavailable>
m3             <unavailable>
expstate       <unavailable>
f64r_lo        <unavailable>
f64r_hi        <unavailable>
f64s           <unavailable>
fcr            <unavailable>
fsr            <unavailable>
a0             0x800842a1          -2146942303
a1             0x3ffbbad0          1073461968
a2             0x3ffbe388          1073472392
a3             0xb33fffff          -1287651329
a4             0xabab              43947
a5             0x60023             393251
a6             0x60020             393248
a7             0xcdcd              52685
a8             0xabab              43947
a9             0xffffffff          -1
a10            0x3                 3
a11            0x60023             393251
a12            0x60020             393248
a13            0x3f81e584          1065477508
a14            0x7be388            8119176
a15            0x3fffff            4194303

==================== CURRENT THREAD STACK =====================
#0  compare_and_set_native (set=0x3ffbbad0, compare=3007315967, addr=0x3ffbe388 <s_timer_lock>) at /Users/yangzhen/esp/esp-idf/components/esp_hw_support/include/soc/compare_set.h:25
#1  spinlock_acquire (timeout=<optimized out>, lock=0x3ffbe388 <s_timer_lock>) at /Users/yangzhen/esp/esp-idf/components/esp_hw_support/include/soc/spinlock.h:103
#2  xPortEnterCriticalTimeout (mux=0x3ffbe388 <s_timer_lock>, timeout=<optimized out>) at /Users/yangzhen/esp/esp-idf/components/freertos/FreeRTOS-Kernel/portable/xtensa/port.c:287
#3  0x400842a1 in xPortEnterCriticalTimeoutSafe (timeout=-1, mux=<optimized out>) at /Users/yangzhen/esp/esp-idf/components/freertos/FreeRTOS-Kernel/portable/xtensa/include/freertos/portmacro.h:592
#4  vPortEnterCriticalSafe (mux=<optimized out>) at /Users/yangzhen/esp/esp-idf/components/freertos/FreeRTOS-Kernel/portable/xtensa/include/freertos/portmacro.h:599
#5  timer_list_lock (timer_type=<optimized out>) at /Users/yangzhen/esp/esp-idf/components/esp_timer/src/esp_timer.c:307
#6  0x40084422 in timer_process_alarm (dispatch_method=ESP_TIMER_TASK) at /Users/yangzhen/esp/esp-idf/components/esp_timer/src/esp_timer.c:363
#7  0x400d7211 in timer_task (arg=<optimized out>) at /Users/yangzhen/esp/esp-idf/components/esp_timer/src/esp_timer.c:388

======================== THREADS INFO =========================
  Id   Target Id          Frame 
* 1    process 1073462260 compare_and_set_native (set=0x3ffbbad0, compare=3007315967, addr=0x3ffbe388 <s_timer_lock>) at /Users/yangzhen/esp/esp-idf/components/esp_hw_support/include/soc/compare_set.h:25
  2    process 1073658312 0xeb8aad14 in ?? ()
  3    process 1073465280 0x401a144e in ?? () at /Users/yangzhen/esp/esp-idf/components/freertos/FreeRTOS-Kernel/portable/xtensa/port.c:435
  4    process 1073463392 0x401a144e in ?? () at /Users/yangzhen/esp/esp-idf/components/freertos/FreeRTOS-Kernel/portable/xtensa/port.c:435
  5    process 1073649388 0x4008ec74 in esp_crosscore_int_send_yield (core_id=1) at /Users/yangzhen/esp/esp-idf/components/esp_system/crosscore_int.c:136
  6    process 1073444960 0x4008ec74 in esp_crosscore_int_send_yield (core_id=1) at /Users/yangzhen/esp/esp-idf/components/esp_system/crosscore_int.c:136
  7    process 1073592384 0x4008ec74 in esp_crosscore_int_send_yield (core_id=1) at /Users/yangzhen/esp/esp-idf/components/esp_system/crosscore_int.c:136
  8    process 1073457812 0x4008ec74 in esp_crosscore_int_send_yield (core_id=1) at /Users/yangzhen/esp/esp-idf/components/esp_system/crosscore_int.c:136
  9    process 1073609840 0x4008ec74 in esp_crosscore_int_send_yield (core_id=1) at /Users/yangzhen/esp/esp-idf/components/esp_system/crosscore_int.c:136
  10   process 1073641004 0x4008ec74 in esp_crosscore_int_send_yield (core_id=1) at /Users/yangzhen/esp/esp-idf/components/esp_system/crosscore_int.c:136
  11   process 1073438948 0x4008ec74 in esp_crosscore_int_send_yield (core_id=1) at /Users/yangzhen/esp/esp-idf/components/esp_system/crosscore_int.c:136
  12   process 1073645452 0x4000bff0 in ?? ()
  13   process 1073652556 0x4008ec62 in esp_crosscore_int_send (core_id=<optimized out>, reason_mask=<optimized out>) at /Users/yangzhen/esp/esp-idf/components/esp_system/crosscore_int.c:119
  14   process 1073446096 0x4008ec62 in esp_crosscore_int_send (core_id=<optimized out>, reason_mask=<optimized out>) at /Users/yangzhen/esp/esp-idf/components/esp_system/crosscore_int.c:119
  15   process 1073712928 0x4008ec74 in esp_crosscore_int_send_yield (core_id=1) at /Users/yangzhen/esp/esp-idf/components/esp_system/crosscore_int.c:136
  16   process 1073587936 0x4008ec74 in esp_crosscore_int_send_yield (core_id=1) at /Users/yangzhen/esp/esp-idf/components/esp_system/crosscore_int.c:136
  17   process 1073571200 0x4008ec62 in esp_crosscore_int_send (core_id=<optimized out>, reason_mask=<optimized out>) at /Users/yangzhen/esp/esp-idf/components/esp_system/crosscore_int.c:119
  18   process 1073437340 0x4008ec74 in esp_crosscore_int_send_yield (core_id=1) at /Users/yangzhen/esp/esp-idf/components/esp_system/crosscore_int.c:136

==================== THREAD 1 (TCB: 0x3ffbbbf4, name: 'esp_timer') =====================
#0  compare_and_set_native (set=0x3ffbbad0, compare=3007315967, addr=0x3ffbe388 <s_timer_lock>) at /Users/yangzhen/esp/esp-idf/components/esp_hw_support/include/soc/compare_set.h:25
#1  spinlock_acquire (timeout=<optimized out>, lock=0x3ffbe388 <s_timer_lock>) at /Users/yangzhen/esp/esp-idf/components/esp_hw_support/include/soc/spinlock.h:103
#2  xPortEnterCriticalTimeout (mux=0x3ffbe388 <s_timer_lock>, timeout=<optimized out>) at /Users/yangzhen/esp/esp-idf/components/freertos/FreeRTOS-Kernel/portable/xtensa/port.c:287
#3  0x400842a1 in xPortEnterCriticalTimeoutSafe (timeout=-1, mux=<optimized out>) at /Users/yangzhen/esp/esp-idf/components/freertos/FreeRTOS-Kernel/portable/xtensa/include/freertos/portmacro.h:592
#4  vPortEnterCriticalSafe (mux=<optimized out>) at /Users/yangzhen/esp/esp-idf/components/freertos/FreeRTOS-Kernel/portable/xtensa/include/freertos/portmacro.h:599
#5  timer_list_lock (timer_type=<optimized out>) at /Users/yangzhen/esp/esp-idf/components/esp_timer/src/esp_timer.c:307
#6  0x40084422 in timer_process_alarm (dispatch_method=ESP_TIMER_TASK) at /Users/yangzhen/esp/esp-idf/components/esp_timer/src/esp_timer.c:363
#7  0x400d7211 in timer_task (arg=<optimized out>) at /Users/yangzhen/esp/esp-idf/components/esp_timer/src/esp_timer.c:388

==================== THREAD 2 (TCB: 0x3ffeb9c8, name: 'wifi') =====================
#0  0xeb8aad14 in ?? ()

==================== THREAD 3 (TCB: 0x3ffbc7c0, name: 'IDLE') =====================
#0  0x401a144e in ?? () at /Users/yangzhen/esp/esp-idf/components/freertos/FreeRTOS-Kernel/portable/xtensa/port.c:435
#1  0x400d30d8 in esp_vApplicationIdleHook () at /Users/yangzhen/esp/esp-idf/components/esp_system/freertos_hooks.c:63
#2  0x400974ed in prvIdleTask (pvParameters=<optimized out>) at /Users/yangzhen/esp/esp-idf/components/freertos/FreeRTOS-Kernel/tasks.c:3973

==================== THREAD 4 (TCB: 0x3ffbc060, name: 'IDLE') =====================
#0  0x401a144e in ?? () at /Users/yangzhen/esp/esp-idf/components/freertos/FreeRTOS-Kernel/portable/xtensa/port.c:435
#1  0x400d30d8 in esp_vApplicationIdleHook () at /Users/yangzhen/esp/esp-idf/components/esp_system/freertos_hooks.c:63
#2  0x400974ed in prvIdleTask (pvParameters=<optimized out>) at /Users/yangzhen/esp/esp-idf/components/freertos/FreeRTOS-Kernel/tasks.c:3973

==================== THREAD 5 (TCB: 0x3ffe96ec, name: 'tiT') =====================
#0  0x4008ec74 in esp_crosscore_int_send_yield (core_id=1) at /Users/yangzhen/esp/esp-idf/components/esp_system/crosscore_int.c:136
#1  0x40096fb0 in xQueueReceive (xQueue=0x3ffe25cc, pvBuffer=0x3ffe9650, xTicksToWait=<optimized out>) at /Users/yangzhen/esp/esp-idf/components/hal/esp32/include/hal/cpu_ll.h:39
#2  0x40146cf6 in sys_arch_mbox_fetch (mbox=<optimized out>, msg=0x3ffe9650, timeout=319) at /Users/yangzhen/esp/esp-idf/components/lwip/port/esp32/freertos/sys_arch.c:320
#3  0x40137905 in tcpip_timeouts_mbox_fetch (mbox=0x3ffc7870 <tcpip_mbox>, msg=<optimized out>) at /Users/yangzhen/esp/esp-idf/components/lwip/lwip/src/api/tcpip.c:100
#4  tcpip_thread (arg=<optimized out>) at /Users/yangzhen/esp/esp-idf/components/lwip/lwip/src/api/tcpip.c:148

==================== THREAD 6 (TCB: 0x3ffb7860, name: 'netStatLedTask') =====================
#0  0x4008ec74 in esp_crosscore_int_send_yield (core_id=1) at /Users/yangzhen/esp/esp-idf/components/esp_system/crosscore_int.c:136
#1  0x40096fb0 in xQueueReceive (xQueue=0x3ffb7804, pvBuffer=0x3ffbd690, xTicksToWait=<optimized out>) at /Users/yangzhen/esp/esp-idf/components/hal/esp32/include/hal/cpu_ll.h:39
#2  0x400de07d in netStatLedTask () at /Users/yangzhen/esp/esp-app/led_ble_wifi/main/netStatLed.c:62

==================== THREAD 7 (TCB: 0x3ffdb840, name: 'timerTask') =====================
#0  0x4008ec74 in esp_crosscore_int_send_yield (core_id=1) at /Users/yangzhen/esp/esp-idf/components/esp_system/crosscore_int.c:136
#1  0x40097ac6 in vTaskDelay (xTicksToDelay=60000) at /Users/yangzhen/esp/esp-idf/components/hal/esp32/include/hal/cpu_ll.h:39
#2  0x400d8593 in timerTask () at /Users/yangzhen/esp/esp-app/led_ble_wifi/main/led.c:188

==================== THREAD 8 (TCB: 0x3ffbaa94, name: 'ipc1') =====================
#0  0x4008ec74 in esp_crosscore_int_send_yield (core_id=1) at /Users/yangzhen/esp/esp-idf/components/esp_system/crosscore_int.c:136
#1  0x4009713e in xQueueSemaphoreTake (xQueue=0x3ffb7edc, xTicksToWait=<optimized out>) at /Users/yangzhen/esp/esp-idf/components/hal/esp32/include/hal/cpu_ll.h:39
#2  0x4008ecbf in ipc_task (arg=<optimized out>) at /Users/yangzhen/esp/esp-idf/components/esp_system/esp_ipc.c:51

==================== THREAD 9 (TCB: 0x3ffdfc70, name: 'hciT') =====================
#0  0x4008ec74 in esp_crosscore_int_send_yield (core_id=1) at /Users/yangzhen/esp/esp-idf/components/esp_system/crosscore_int.c:136
#1  0x4009713e in xQueueSemaphoreTake (xQueue=0x3ffdf164, xTicksToWait=<optimized out>) at /Users/yangzhen/esp/esp-idf/components/hal/esp32/include/hal/cpu_ll.h:39
#2  0x401027fc in osi_sem_give (sem=0x3ffdeee8) at /Users/yangzhen/esp/esp-idf/components/bt/common/osi/semaphore.c:44
#3  0x40102497 in osi_mutex_global_deinit () at /Users/yangzhen/esp/esp-idf/components/bt/common/osi/mutex.c:88

==================== THREAD 10 (TCB: 0x3ffe762c, name: 'BTU_TASK') =====================
#0  0x4008ec74 in esp_crosscore_int_send_yield (core_id=1) at /Users/yangzhen/esp/esp-idf/components/esp_system/crosscore_int.c:136
#1  0x4009713e in xQueueSemaphoreTake (xQueue=0x3ffe1094, xTicksToWait=<optimized out>) at /Users/yangzhen/esp/esp-idf/components/hal/esp32/include/hal/cpu_ll.h:39
#2  0x401027fc in osi_sem_give (sem=0x3ffe0f50) at /Users/yangzhen/esp/esp-idf/components/bt/common/osi/semaphore.c:44
#3  0x40102497 in osi_mutex_global_deinit () at /Users/yangzhen/esp/esp-idf/components/bt/common/osi/mutex.c:88

==================== THREAD 11 (TCB: 0x3ffb60e4, name: 'BTC_TASK') =====================
#0  0x4008ec74 in esp_crosscore_int_send_yield (core_id=1) at /Users/yangzhen/esp/esp-idf/components/esp_system/crosscore_int.c:136
#1  0x4009713e in xQueueSemaphoreTake (xQueue=0x3ffb5fdc, xTicksToWait=<optimized out>) at /Users/yangzhen/esp/esp-idf/components/hal/esp32/include/hal/cpu_ll.h:39
#2  0x401027fc in osi_sem_give (sem=0x3ffb5d50) at /Users/yangzhen/esp/esp-idf/components/bt/common/osi/semaphore.c:44
#3  0x40102497 in osi_mutex_global_deinit () at /Users/yangzhen/esp/esp-idf/components/bt/common/osi/mutex.c:88

==================== THREAD 12 (TCB: 0x3ffe878c, name: 'dTc') =====================
#0  0x4000bff0 in ?? ()
#1  0x40099688 in vPortClearInterruptMaskFromISR (prev_level=<optimized out>) at /Users/yangzhen/esp/esp-idf/components/freertos/FreeRTOS-Kernel/portable/xtensa/include/freertos/portmacro.h:571
#2  vPortExitCritical (mux=<optimized out>) at /Users/yangzhen/esp/esp-idf/components/freertos/FreeRTOS-Kernel/portable/xtensa/port.c:318
#3  0x40098d31 in ulTaskGenericNotifyTake (uxIndexToWait=<optimized out>, xClearCountOnExit=1, xTicksToWait=4294967295) at /Users/yangzhen/esp/esp-idf/components/freertos/FreeRTOS-Kernel/tasks.c:5384
#4  0x400def7e in time_sync_notification_cb (tv=0x0) at /Users/yangzhen/esp/esp-app/led_ble_wifi/main/_wifi.c:37

==================== THREAD 13 (TCB: 0x3ffea34c, name: 'sys_evt') =====================
#0  0x4008ec62 in esp_crosscore_int_send (core_id=<optimized out>, reason_mask=<optimized out>) at /Users/yangzhen/esp/esp-idf/components/esp_system/crosscore_int.c:119
#1  0x4008ec74 in esp_crosscore_int_send_yield (core_id=0) at /Users/yangzhen/esp/esp-idf/components/esp_system/crosscore_int.c:136
#2  0x40096fb0 in xQueueReceive (xQueue=0x3ffe2754, pvBuffer=0x3ffea260, xTicksToWait=<optimized out>) at /Users/yangzhen/esp/esp-idf/components/hal/esp32/include/hal/cpu_ll.h:39
#3  0x401a63fc in esp_event_loop_run (event_loop=0x3ffe2350, ticks_to_run=4294967295) at /Users/yangzhen/esp/esp-idf/components/esp_event/esp_event.c:620
#4  0x401a6417 in esp_event_loop_run (event_loop=<unavailable>, ticks_to_run=<unavailable>) at /Users/yangzhen/esp/esp-idf/components/esp_event/esp_event.c:632

==================== THREAD 14 (TCB: 0x3ffb7cd0, name: 'ipc0') =====================
#0  0x4008ec62 in esp_crosscore_int_send (core_id=<optimized out>, reason_mask=<optimized out>) at /Users/yangzhen/esp/esp-idf/components/esp_system/crosscore_int.c:119
#1  0x4008ec74 in esp_crosscore_int_send_yield (core_id=0) at /Users/yangzhen/esp/esp-idf/components/esp_system/crosscore_int.c:136
#2  0x4009713e in xQueueSemaphoreTake (xQueue=0x3ffb7c78, xTicksToWait=<optimized out>) at /Users/yangzhen/esp/esp-idf/components/hal/esp32/include/hal/cpu_ll.h:39
#3  0x4008ecbf in ipc_task (arg=<optimized out>) at /Users/yangzhen/esp/esp-idf/components/esp_system/esp_ipc.c:51

==================== THREAD 15 (TCB: 0x3fff8f20, name: 'httpd') =====================
#0  0x4008ec74 in esp_crosscore_int_send_yield (core_id=1) at /Users/yangzhen/esp/esp-idf/components/esp_system/crosscore_int.c:136
#1  0x4009713e in xQueueSemaphoreTake (xQueue=0x3fffdcf4, xTicksToWait=<optimized out>) at /Users/yangzhen/esp/esp-idf/components/hal/esp32/include/hal/cpu_ll.h:39
#2  0x40146c24 in sys_sem_signal_isr (sem=0x3f80f748) at /Users/yangzhen/esp/esp-idf/components/lwip/port/esp32/freertos/sys_arch.c:166
#3  0x40137500 in lwip_select (maxfdp1=50, readset=0x3fff8e80, writeset=0x0, exceptset=0x0, timeout=0x0) at /Users/yangzhen/esp/esp-idf/components/lwip/lwip/src/api/sockets.c:2144
#4  0x400d4411 in esp_vfs_select (nfds=50, readfds=0x3fff8e80, writefds=0x0, errorfds=0x0, timeout=0x0) at /Users/yangzhen/esp/esp-idf/components/vfs/vfs.c:1005
#5  0x40149c79 in httpd_server (hd=<optimized out>) at /Users/yangzhen/esp/esp-idf/components/esp_http_server/src/httpd_main.c:200
#6  httpd_thread (arg=0x3fffd350) at /Users/yangzhen/esp/esp-idf/components/esp_http_server/src/httpd_main.c:250

==================== THREAD 16 (TCB: 0x3ffda6e0, name: 'computeTask') =====================
#0  0x4008ec74 in esp_crosscore_int_send_yield (core_id=1) at /Users/yangzhen/esp/esp-idf/components/esp_system/crosscore_int.c:136
#1  0x40096fb0 in xQueueReceive (xQueue=0x3ffd1cf4, pvBuffer=0x0, xTicksToWait=<optimized out>) at /Users/yangzhen/esp/esp-idf/components/hal/esp32/include/hal/cpu_ll.h:39
#2  0x400dca77 in computeTask () at /Users/yangzhen/esp/esp-app/led_ble_wifi/main/led.c:3279

==================== THREAD 17 (TCB: 0x3ffd6580, name: 'ws2811SendTask') =====================
#0  0x4008ec62 in esp_crosscore_int_send (core_id=<optimized out>, reason_mask=<optimized out>) at /Users/yangzhen/esp/esp-idf/components/esp_system/crosscore_int.c:119
#1  0x4008ec74 in esp_crosscore_int_send_yield (core_id=0) at /Users/yangzhen/esp/esp-idf/components/esp_system/crosscore_int.c:136
#2  0x40096fb0 in xQueueReceive (xQueue=0x3ffd1d4c, pvBuffer=0x3ffd60e0, xTicksToWait=<optimized out>) at /Users/yangzhen/esp/esp-idf/components/hal/esp32/include/hal/cpu_ll.h:39
#3  0x4008545f in ws2811SendTask () at /Users/yangzhen/esp/esp-app/led_ble_wifi/main/led.c:3295

==================== THREAD 18 (TCB: 0x3ffb5a9c, name: 'btController') =====================
#0  0x4008ec74 in esp_crosscore_int_send_yield (core_id=1) at /Users/yangzhen/esp/esp-idf/components/esp_system/crosscore_int.c:136
#1  0x40096fb0 in xQueueReceive (xQueue=0x3ffb58f0, pvBuffer=0x3ffdc930, xTicksToWait=<optimized out>) at /Users/yangzhen/esp/esp-idf/components/hal/esp32/include/hal/cpu_ll.h:39
#2  0x40085a24 in queue_recv_hlevel_wrapper (queue=0x3ffb5974, item=0x3ffdc930, block_time_ms=4294967295) at /Users/yangzhen/esp/esp-idf/components/bt/controller/esp32/bt.c:957
#3  0x40111105 in ?? () at /Users/yangzhen/esp/esp-idf/components/esp_system/crosscore_int.c:147


======================= ALL MEMORY REGIONS ========================
Name   Address   Size   Attrs
.rtc.text 0x400c0000 0x0 RW  
.rtc.dummy 0x3ff80000 0x0 RW  
.rtc.force_fast 0x3ff80000 0x0 RW  
.rtc.data 0x50000000 0x10 RW A
.rtc_noinit 0x50000010 0x0 RW  
.rtc.force_slow 0x50000010 0x0 RW  
.iram0.vectors 0x40080000 0x403 R XA
.iram0.text 0x40080404 0x1fa83 R XA
.dram0.data 0x3ffbdb60 0x6858 RW A
.ext_ram_noinit 0x3f800000 0x0 RW  
.noinit 0x3ffc43b8 0x0 RW  
.ext_ram.bss 0x3f800000 0x0 RW  
.flash.appdesc 0x3f400020 0x100 R  A
.flash.rodata 0x3f400120 0x35e48 RW A
.flash.text 0x400d0020 0xd7233 R XA
.phyiram.20 0x401a7254 0x61 R XA
.phyiram.18 0x401a72b8 0x10e R XA
.phyiram.19 0x401a73c8 0x90 R XA
.phyiram.17 0x401a7458 0x2d7 R XA
.phyiram.0 0x401a7730 0x2b R XA
.phyiram.1 0x401a775c 0x7d R XA
.phyiram.2 0x401a77dc 0x21e R XA
.phyiram.3 0x401a79fc 0xab R XA
.phyiram.4 0x401a7aa8 0xff R XA
.phyiram.6 0x401a7ba8 0x83 R XA
.phyiram.7 0x401a7c2c 0x1ff R XA
.phyiram.8 0x401a7e2c 0x177 R XA
.phyiram.9 0x401a7fa4 0x8e R XA
.phyiram.13 0x401a8034 0xba R XA
.phyiram.12 0x401a80f0 0xeb R XA
.phyiram.14 0x401a81dc 0x1cb R XA
.phyiram.16 0x401a83a8 0x72 R XA
.phyiram.11 0x401a841c 0x78 R XA
.phyiram.15 0x401a8494 0xba R XA
.phyiram.21 0x401a8550 0x4a R XA
.phyiram.22 0x401a859c 0x31 R XA
.phyiram.23 0x401a85d0 0x103 R XA
.phyiram.24 0x401a86d4 0x87 R XA
.iram0.data 0x4009fe88 0x0 RW  
.iram0.bss 0x4009fe88 0x0 RW  
.dram0.heap_start 0x3ffcd6f0 0x0 RW  
.coredump.tasks.data 0x3ffbbbf4 0x158 RW 
.coredump.tasks.data 0x3ffbba10 0x1dc RW 
.coredump.tasks.data 0x3ffeb9c8 0x158 RW 
.coredump.tasks.data 0x3ffeb7b0 0x210 RW 
.coredump.tasks.data 0x3ffbc7c0 0x158 RW 
.coredump.tasks.data 0x3ffbcd80 0x198 RW 
.coredump.tasks.data 0x3ffbc060 0x158 RW 
.coredump.tasks.data 0x3ffbc620 0x198 RW 
.coredump.tasks.data 0x3ffe96ec 0x158 RW 
.coredump.tasks.data 0x3ffe9500 0x1e4 RW 
.coredump.tasks.data 0x3ffb7860 0x158 RW 
.coredump.tasks.data 0x3ffbd570 0x1bc RW 
.coredump.tasks.data 0x3ffdb840 0x158 RW 
.coredump.tasks.data 0x3ffdb6b0 0x188 RW 
.coredump.tasks.data 0x3ffbaa94 0x158 RW 
.coredump.tasks.data 0x3ffba8d0 0x1bc RW 
.coredump.tasks.data 0x3ffdfc70 0x158 RW 
.coredump.tasks.data 0x3ffdfaa0 0x1c8 RW 
.coredump.tasks.data 0x3ffe762c 0x158 RW 
.coredump.tasks.data 0x3ffe7460 0x1c4 RW 
.coredump.tasks.data 0x3ffb60e4 0x158 RW 
.coredump.tasks.data 0x3ffdea00 0x1c4 RW 
.coredump.tasks.data 0x3ffe878c 0x158 RW 
.coredump.tasks.data 0x3ffe8560 0x224 RW 
.coredump.tasks.data 0x3ffea34c 0x158 RW 
.coredump.tasks.data 0x3ffea110 0x234 RW 
.coredump.tasks.data 0x3ffb7cd0 0x158 RW 
.coredump.tasks.data 0x3ffba4b0 0x1d8 RW 
.coredump.tasks.data 0x3fff8f20 0x158 RW 
.coredump.tasks.data 0x3fff8bf0 0x328 RW 
.coredump.tasks.data 0x3ffda6e0 0x158 RW 
.coredump.tasks.data 0x3ffda500 0x1d8 RW 
.coredump.tasks.data 0x3ffd6580 0x158 RW 
.coredump.tasks.data 0x3ffd5fa0 0x5d8 RW 
.coredump.tasks.data 0x3ffb5a9c 0x158 RW 
.coredump.tasks.data 0x3ffdc7f0 0x1d0 RW 

===================== ESP32 CORE DUMP END =====================
===============================================================

@sxsx2yzyz sxsx2yzyz closed this as not planned Won't fix, can't repro, duplicate, stale Oct 21, 2022
@espressif-bot espressif-bot added Resolution: Done Issue is done internally Status: Done Issue is done internally and removed Status: Opened Issue is new labels Oct 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Resolution: Done Issue is done internally Status: Done Issue is done internally
Projects
None yet
Development

No branches or pull requests

5 participants