espressif/esp-coredump

v4.4.6 espcoredump.py fails to analyze coredump (IDFGH-12480)

rsiemens77 opened this issue · 9 comments

As per discussion https://esp32.com/viewtopic.php?f=13&t=38973&p=129635

I am using esp-idf v4.4.6, espcoredump.py hangs when reading it, after I trimmed the header

This is the ELF core, before trimming the header:

coredump.dmp

`
spcoredump.py v0.4-dev

==================== ESP32 CORE DUMP START ====================

Crashed task handle: 0x3ffdcf3c, name: '', GDB name: 'process 1073598268'

================== CURRENT THREAD REGISTERS ===================
exccause 0x1d (StoreProhibitedCause)
excvaddr 0x0
epc1 0x401224ff
epc2 0x0
epc3 0x0
epc4 0x0
epc5 0x0
epc6 0x0
eps2 0x0
eps3 0x0
eps4 0x0
eps5 0x0
eps6 0x0

==================== CURRENT THREAD STACK =====================
[New process 1073598268]
[New process 1073527168]
[New process 1073529056]
[New process 1073535472]
[New process 1073525280]
[New process 1073594844]
[New process 1073604136]
[New process 1073508900]
[New process 1073411924]
[New process 1073608364]
[New process 1073608712]
[New process 1073513808]
[New process 1073625240]
[Current thread is 1 (process 1073598268)]

======================== THREADS INFO =========================

Traceback (most recent call last):
File "C:\exp\frameworks\esp-idf-v4.4.6\components\espcoredump\espcoredump.py", line 387, in
temp_core_files = info_corefile()
^^^^^^^^^^^^^^^
File "C:\exp\frameworks\esp-idf-v4.4.6\components\espcoredump\espcoredump.py", line 237, in info_corefile
threads, _ = gdb.get_thread_info()
^^^^^^^^^^^^^^^^^^^^^
File "C:\exp\frameworks\esp-idf-v4.4.6\components\espcoredump\corefile\gdb.py", line 114, in get_thread_info
current_thread_id = result['current-thread-id']
~~~~~~^^^^^^^^^^^^^^^^^^^^^
TypeError: 'NoneType' object is not subscriptable
`

Hi @rsiemens77

Your coredump file looks correct. I tried with the blink.elf application by disabling CRC check. Here is the result.

espcoredump.py info_corefile -c coredump.dmp -t raw build/blink.elf

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

Crashed task handle: 0x3ffdcf3c, name: 's', GDB name: 'process 1073598268'

================== CURRENT THREAD REGISTERS ===================
exccause       0x1d (StoreProhibitedCause)
excvaddr       0x0
epc1           0x401224ff
epc2           0x0
epc3           0x0
epc4           0x0
epc5           0x0
epc6           0x0
eps2           0x0
eps3           0x0
eps4           0x0
eps5           0x0
eps6           0x0
pc             0x40081ded          0x40081ded <efuse_hal_get_major_chip_version+21>
lbeg           0x4000c28c          1073791628
lend           0x4000c296          1073791638
lcount         0x0                 0
sar            0x18                24
ps             0x60020             393248
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             0x8008b07c          -2146914180
a1             0x3ffdcbd0          1073597392
a2             0x3ffdcc1b          1073597467
a3             0x3                 3
a4             0xa                 10
a5             0x0                 0
a6             0x1                 1
a7             0x3ffcec88          1073540232
a8             0x0                 0
a9             0x1                 1
a10            0x3ffdcce3          1073597667
a11            0x3ffdcce3          1073597667
a12            0x1                 1
a13            0x3                 3
a14            0x1                 1
a15            0x1                 1

==================== CURRENT THREAD STACK =====================
#0  0x40081ded in efuse_ll_get_chip_ver_rev1 () at /Users/erhankur/dev/esp-idf/components/hal/esp32/include/hal/efuse_ll.h:102
#1  efuse_hal_get_major_chip_version () at /Users/erhankur/dev/esp-idf/components/hal/esp32/efuse_hal.c:18
#2  0x4008b07c in other_cpu_startup_idle_hook_cb () at /Users/erhankur/dev/esp-idf/components/freertos/port/port_common.c:88
#3  0x40092eb8 in ?? ()
#4  0x401073dc in ?? ()
#5  0x400f3ff4 in ?? ()
#6  0x400dfe58 in _svfprintf_r (data=<optimized out>, fp=<optimized out>, fmt0=<optimized out>, ap=...) at /Users/brnomac003/.gitlab-runner/builds/qR2TxTby/0/idf/crosstool-NG/.build/xtensa-esp32-elf/src/newlib/newlib/libc/stdio/vfprintf.c:1788
#7  0x400dfec4 in get_arg (n=1073572748, fmt=0x3ffd6834 <error: Cannot access memory at address 0x3ffd6834>, ap=0x8008eb2d, numargs_p=0x3ffcb780, args=0x3, arg_type=0x60023, last_fmt=0x0, data=<optimized out>) at /Users/brnomac003/.gitlab-runner/builds/qR2TxTby/0/idf/crosstool-NG/.build/xtensa-esp32-elf/src/newlib/newlib/libc/stdio/vfprintf.c:2066
#8  0x400df94e in _svfprintf_r (data=<optimized out>, fp=<optimized out>, fmt0=<optimized out>, ap=...) at /Users/brnomac003/.gitlab-runner/builds/qR2TxTby/0/idf/crosstool-NG/.build/xtensa-esp32-elf/src/newlib/newlib/libc/stdio/vfprintf.c:1735
#9  0x400dfec4 in get_arg (n=1073571496, fmt=0x0, ap=0x60020, numargs_p=0x60023, args=0x1, arg_type=0x10110, last_fmt=0x800d7ae0, data=<optimized out>) at /Users/brnomac003/.gitlab-runner/builds/qR2TxTby/0/idf/crosstool-NG/.build/xtensa-esp32-elf/src/newlib/newlib/libc/stdio/vfprintf.c:2066
#10 0x400d7b76 in periph_ll_get_rst_en_mask (enable=false, periph=1073571496) at /Users/erhankur/dev/esp-idf/components/hal/esp32/include/hal/clk_gate_ll.h:104
#11 periph_ll_disable_clk_set_rst (periph=1073571496) at /Users/erhankur/dev/esp-idf/components/hal/esp32/include/hal/clk_gate_ll.h:237
#12 periph_module_disable (periph=1073571496) at /Users/erhankur/dev/esp-idf/components/driver/periph_ctrl.c:32
#13 0x400de948 in _svfprintf_r (data=<optimized out>, fp=<optimized out>, fmt0=<optimized out>, ap=...) at /Users/brnomac003/.gitlab-runner/builds/qR2TxTby/0/idf/crosstool-NG/.build/xtensa-esp32-elf/src/newlib/newlib/libc/stdio/vfprintf.c:936
#14 0x400d7a8e in periph_ll_get_rst_en_reg (periph=PERIPH_LEDC_MODULE) at /Users/erhankur/dev/esp-idf/components/hal/esp32/include/hal/clk_gate_ll.h:224
#15 periph_ll_disable_clk_set_rst (periph=PERIPH_LEDC_MODULE) at /Users/erhankur/dev/esp-idf/components/hal/esp32/include/hal/clk_gate_ll.h:237
#16 periph_module_disable (periph=PERIPH_LEDC_MODULE) at /Users/erhankur/dev/esp-idf/components/driver/periph_ctrl.c:32
#17 0x4008e87c in newlib_include_assert_impl () at /Users/erhankur/dev/esp-idf/components/newlib/assert.c:97

======================== THREADS INFO =========================
  Id   Target Id          Frame
* 1    process 1073598268 0x40081ded in efuse_ll_get_chip_ver_rev1 () at /Users/erhankur/dev/esp-idf/components/hal/esp32/include/hal/efuse_ll.h:102
  2    process 1073527168 0x4018e2ea in ?? ()
  3    process 1073529056 0x4018e2ea in ?? ()
  4    process 1073535472 0x4008bee1 in spi_flash_hal_program_page (host=<optimized out>, buffer=<optimized out>, address=<optimized out>, length=<optimized out>) at /Users/erhankur/dev/esp-idf/components/hal/spi_flash_hal_iram.c:87
  5    process 1073525280 0x40086578 in rtc_clk_bbpll_configure (xtal_freq=RTC_XTAL_FREQ_AUTO, pll_freq=8558) at /Users/erhankur/dev/esp-idf/components/esp_hw_support/port/esp32/rtc_clk.c:396
  6    process 1073594844 0x40086578 in rtc_clk_bbpll_configure (xtal_freq=RTC_XTAL_FREQ_AUTO, pll_freq=-1) at /Users/erhankur/dev/esp-idf/components/esp_hw_support/port/esp32/rtc_clk.c:396
  7    process 1073604136 0x40086578 in rtc_clk_bbpll_configure (xtal_freq=RTC_XTAL_FREQ_AUTO, pll_freq=-1) at /Users/erhankur/dev/esp-idf/components/esp_hw_support/port/esp32/rtc_clk.c:396
  8    process 1073508900 0x4008c070 in rwdt_ll_disable_stage (stage=WDT_STAGE0, hw=0x1) at /Users/erhankur/dev/esp-idf/components/hal/esp32/include/hal/rwdt_ll.h:117
  9    process 1073411924 0x4008656a in rtc_clk_bbpll_configure (xtal_freq=1072693468, pll_freq=1) at /Users/erhankur/dev/esp-idf/components/esp_hw_support/port/esp32/rtc_clk.c:396
  10   process 1073608364 0x40086578 in rtc_clk_bbpll_configure (xtal_freq=RTC_XTAL_FREQ_AUTO, pll_freq=-1) at /Users/erhankur/dev/esp-idf/components/esp_hw_support/port/esp32/rtc_clk.c:396
  11   process 1073608712 0x4008bee1 in spi_flash_hal_program_page (host=<optimized out>, buffer=<optimized out>, address=<optimized out>, length=<optimized out>) at /Users/erhankur/dev/esp-idf/components/hal/spi_flash_hal_iram.c:87
  12   process 1073513808 0x4000bff0 in ?? ()
  13   process 1073625240 0x4008bee1 in spi_flash_hal_program_page (host=<optimized out>, buffer=<optimized out>, address=<optimized out>, length=<optimized out>) at /Users/erhankur/dev/esp-idf/components/hal/spi_flash_hal_iram.c:87

==================== THREAD 1 (TCB: 0x3ffdcf3c, name: 's') =====================
#0  0x40081ded in efuse_ll_get_chip_ver_rev1 () at /Users/erhankur/dev/esp-idf/components/hal/esp32/include/hal/efuse_ll.h:102
#1  efuse_hal_get_major_chip_version () at /Users/erhankur/dev/esp-idf/components/hal/esp32/efuse_hal.c:18
#2  0x4008b07c in other_cpu_startup_idle_hook_cb () at /Users/erhankur/dev/esp-idf/components/freertos/port/port_common.c:88
#3  0x40092eb8 in ?? ()
#4  0x401073dc in ?? ()
#5  0x400f3ff4 in ?? ()
#6  0x400dfe58 in _svfprintf_r (data=<optimized out>, fp=<optimized out>, fmt0=<optimized out>, ap=...) at /Users/brnomac003/.gitlab-runner/builds/qR2TxTby/0/idf/crosstool-NG/.build/xtensa-esp32-elf/src/newlib/newlib/libc/stdio/vfprintf.c:1788
#7  0x400dfec4 in get_arg (n=1073572748, fmt=0x3ffd6834 <error: Cannot access memory at address 0x3ffd6834>, ap=0x8008eb2d, numargs_p=0x3ffcb780, args=0x3, arg_type=0x60023, last_fmt=0x0, data=<optimized out>) at /Users/brnomac003/.gitlab-runner/builds/qR2TxTby/0/idf/crosstool-NG/.build/xtensa-esp32-elf/src/newlib/newlib/libc/stdio/vfprintf.c:2066
#8  0x400df94e in _svfprintf_r (data=<optimized out>, fp=<optimized out>, fmt0=<optimized out>, ap=...) at /Users/brnomac003/.gitlab-runner/builds/qR2TxTby/0/idf/crosstool-NG/.build/xtensa-esp32-elf/src/newlib/newlib/libc/stdio/vfprintf.c:1735
#9  0x400dfec4 in get_arg (n=1073571496, fmt=0x0, ap=0x60020, numargs_p=0x60023, args=0x1, arg_type=0x10110, last_fmt=0x800d7ae0, data=<optimized out>) at /Users/brnomac003/.gitlab-runner/builds/qR2TxTby/0/idf/crosstool-NG/.build/xtensa-esp32-elf/src/newlib/newlib/libc/stdio/vfprintf.c:2066
#10 0x400d7b76 in periph_ll_get_rst_en_mask (enable=false, periph=1073571496) at /Users/erhankur/dev/esp-idf/components/hal/esp32/include/hal/clk_gate_ll.h:104
#11 periph_ll_disable_clk_set_rst (periph=1073571496) at /Users/erhankur/dev/esp-idf/components/hal/esp32/include/hal/clk_gate_ll.h:237
#12 periph_module_disable (periph=1073571496) at /Users/erhankur/dev/esp-idf/components/driver/periph_ctrl.c:32
#13 0x400de948 in _svfprintf_r (data=<optimized out>, fp=<optimized out>, fmt0=<optimized out>, ap=...) at /Users/brnomac003/.gitlab-runner/builds/qR2TxTby/0/idf/crosstool-NG/.build/xtensa-esp32-elf/src/newlib/newlib/libc/stdio/vfprintf.c:936
#14 0x400d7a8e in periph_ll_get_rst_en_reg (periph=PERIPH_LEDC_MODULE) at /Users/erhankur/dev/esp-idf/components/hal/esp32/include/hal/clk_gate_ll.h:224
#15 periph_ll_disable_clk_set_rst (periph=PERIPH_LEDC_MODULE) at /Users/erhankur/dev/esp-idf/components/hal/esp32/include/hal/clk_gate_ll.h:237
#16 periph_module_disable (periph=PERIPH_LEDC_MODULE) at /Users/erhankur/dev/esp-idf/components/driver/periph_ctrl.c:32
#17 0x4008e87c in newlib_include_assert_impl () at /Users/erhankur/dev/esp-idf/components/newlib/assert.c:97

==================== THREAD 2 (TCB: 0x3ffcb980, name: 'I') =====================
#0  0x4018e2ea in ?? ()
#1  0x400d3329 in esp_vfs_unlink (r=0x8, path=0x0) at /Users/erhankur/dev/esp-idf/components/vfs/vfs.c:618
#2  0x4008c748 in block_size (block=<optimized out>) at /Users/erhankur/dev/esp-idf/components/heap/heap_tlsf_block_functions.h:74
#3  tlsf_block_size (ptr=<optimized out>) at /Users/erhankur/dev/esp-idf/components/heap/heap_tlsf.c:659
#4  0x4008e87c in newlib_include_assert_impl () at /Users/erhankur/dev/esp-idf/components/newlib/assert.c:97

==================== THREAD 3 (TCB: 0x3ffcc0e0, name: 'I') =====================
#0  0x4018e2ea in ?? ()
#1  0x400d3329 in esp_vfs_unlink (r=0x8, path=0x1 <error: Cannot access memory at address 0x1>) at /Users/erhankur/dev/esp-idf/components/vfs/vfs.c:618
#2  0x4008c748 in block_size (block=<optimized out>) at /Users/erhankur/dev/esp-idf/components/heap/heap_tlsf_block_functions.h:74
#3  tlsf_block_size (ptr=<optimized out>) at /Users/erhankur/dev/esp-idf/components/heap/heap_tlsf.c:659
#4  0x4008e87c in newlib_include_assert_impl () at /Users/erhankur/dev/esp-idf/components/newlib/assert.c:97

==================== THREAD 4 (TCB: 0x3ffcd9f0, name: 'm') =====================
#0  0x4008bee1 in spi_flash_hal_program_page (host=<optimized out>, buffer=<optimized out>, address=<optimized out>, length=<optimized out>) at /Users/erhankur/dev/esp-idf/components/hal/spi_flash_hal_iram.c:87
#1  0x400d929d in esp_core_dump_get_task_snapshot (handle=0x0, task=0x3ffc1cd8, interrupted_stack=0x2) at /Users/erhankur/dev/esp-idf/components/espcoredump/src/core_dump_common.c:220
#2  0x4008e87c in newlib_include_assert_impl () at /Users/erhankur/dev/esp-idf/components/newlib/assert.c:97

==================== THREAD 5 (TCB: 0x3ffcb220, name: 'm') =====================
#0  0x40086578 in rtc_clk_bbpll_configure (xtal_freq=RTC_XTAL_FREQ_AUTO, pll_freq=8558) at /Users/erhankur/dev/esp-idf/components/esp_hw_support/port/esp32/rtc_clk.c:396
#1  0x4008d6bc in multi_heap_set_lock (heap=0x64, lock=0x3ffb1628 <xTaskQueueMutex>) at /Users/erhankur/dev/esp-idf/components/heap/multi_heap.c:137
#2  0x400f6ba8 in ?? ()
#3  0x400d9da4 in elf_add_tcb (self=0x0, task=0x3ffc263c) at /Users/erhankur/dev/esp-idf/components/espcoredump/src/core_dump_elf.c:299
#4  0x40191848 in ?? ()
#5  0x4008e87c in newlib_include_assert_impl () at /Users/erhankur/dev/esp-idf/components/newlib/assert.c:97

==================== THREAD 6 (TCB: 0x3ffdc1dc, name: 'e') =====================
#0  0x40086578 in rtc_clk_bbpll_configure (xtal_freq=RTC_XTAL_FREQ_AUTO, pll_freq=-1) at /Users/erhankur/dev/esp-idf/components/esp_hw_support/port/esp32/rtc_clk.c:396
#1  0x4008bee1 in spi_flash_hal_program_page (host=<optimized out>, buffer=<optimized out>, address=<optimized out>, length=<optimized out>) at /Users/erhankur/dev/esp-idf/components/hal/spi_flash_hal_iram.c:87
#2  0x400d772f in periph_ll_get_rst_en_mask (enable=true, periph=4027711) at /Users/erhankur/dev/esp-idf/components/hal/esp32/include/hal/clk_gate_ll.h:144
#3  periph_ll_enable_clk_clear_rst (periph=4027711) at /Users/erhankur/dev/esp-idf/components/hal/esp32/include/hal/clk_gate_ll.h:231
#4  periph_module_enable (periph=4027711) at /Users/erhankur/dev/esp-idf/components/driver/periph_ctrl.c:20
#5  0x4008e87c in newlib_include_assert_impl () at /Users/erhankur/dev/esp-idf/components/newlib/assert.c:97

==================== THREAD 7 (TCB: 0x3ffde628, name: 't') =====================
#0  0x40086578 in rtc_clk_bbpll_configure (xtal_freq=RTC_XTAL_FREQ_AUTO, pll_freq=-1) at /Users/erhankur/dev/esp-idf/components/esp_hw_support/port/esp32/rtc_clk.c:396
#1  0x4008bee1 in spi_flash_hal_program_page (host=<optimized out>, buffer=<optimized out>, address=<optimized out>, length=<optimized out>) at /Users/erhankur/dev/esp-idf/components/hal/spi_flash_hal_iram.c:87
#2  0x40140490 in ?? ()
#3  0x4012e43f in ?? ()
#4  0x4012e501 in ?? ()
#5  0x4008e87c in newlib_include_assert_impl () at /Users/erhankur/dev/esp-idf/components/newlib/assert.c:97

==================== THREAD 8 (TCB: 0x3ffc7224, name: 'i') =====================
#0  0x4008c070 in rwdt_ll_disable_stage (stage=WDT_STAGE0, hw=0x1) at /Users/erhankur/dev/esp-idf/components/hal/esp32/include/hal/rwdt_ll.h:117
#1  wdt_hal_init (hal=0x3ffaf960, wdt_inst=<optimized out>, prescaler=<optimized out>, enable_intr=true) at /Users/erhankur/dev/esp-idf/components/hal/wdt_hal_iram.c:40
#2  0x400835ba in lock_acquire_generic (lock=0x1, delay=1074287284, mutex_type=1 '\\001') at /Users/erhankur/dev/esp-idf/components/newlib/locks.c:129
#3  0x4008e87c in newlib_include_assert_impl () at /Users/erhankur/dev/esp-idf/components/newlib/assert.c:97

==================== THREAD 9 (TCB: 0x3ffaf754, name: 'i') =====================
#0  0x4008656a in rtc_clk_bbpll_configure (xtal_freq=1072693468, pll_freq=1) at /Users/erhankur/dev/esp-idf/components/esp_hw_support/port/esp32/rtc_clk.c:396
#1  0x40086578 in rtc_clk_bbpll_configure (xtal_freq=RTC_XTAL_FREQ_AUTO, pll_freq=-1) at /Users/erhankur/dev/esp-idf/components/esp_hw_support/port/esp32/rtc_clk.c:396
#2  0x4008c070 in rwdt_ll_disable_stage (stage=WDT_STAGE0, hw=0x1) at /Users/erhankur/dev/esp-idf/components/hal/esp32/include/hal/rwdt_ll.h:117
#3  wdt_hal_init (hal=0x3ffaf0f8, wdt_inst=<optimized out>, prescaler=<optimized out>, enable_intr=true) at /Users/erhankur/dev/esp-idf/components/hal/wdt_hal_iram.c:40
#4  0x400835ba in lock_acquire_generic (lock=0x0, delay=1074287284, mutex_type=0 '\\000') at /Users/erhankur/dev/esp-idf/components/newlib/locks.c:129
#5  0x4008e87c in newlib_include_assert_impl () at /Users/erhankur/dev/esp-idf/components/newlib/assert.c:97

==================== THREAD 10 (TCB: 0x3ffdf6ac, name: 's') =====================
#0  0x40086578 in rtc_clk_bbpll_configure (xtal_freq=RTC_XTAL_FREQ_AUTO, pll_freq=-1) at /Users/erhankur/dev/esp-idf/components/esp_hw_support/port/esp32/rtc_clk.c:396
#1  0x4008bee1 in spi_flash_hal_program_page (host=<optimized out>, buffer=<optimized out>, address=<optimized out>, length=<optimized out>) at /Users/erhankur/dev/esp-idf/components/hal/spi_flash_hal_iram.c:87
#2  0x40190f28 in ?? ()
#3  0x40190f40 in ?? ()
#4  0x4008e87c in newlib_include_assert_impl () at /Users/erhankur/dev/esp-idf/components/newlib/assert.c:97

==================== THREAD 11 (TCB: 0x3ffdf808, name: 'a') =====================
#0  0x4008bee1 in spi_flash_hal_program_page (host=<optimized out>, buffer=<optimized out>, address=<optimized out>, length=<optimized out>) at /Users/erhankur/dev/esp-idf/components/hal/spi_flash_hal_iram.c:87
#1  0x40103d80 in ?? ()
#2  0x4008e87c in newlib_include_assert_impl () at /Users/erhankur/dev/esp-idf/components/newlib/assert.c:97

==================== THREAD 12 (TCB: 0x3ffc8550, name: 'e') =====================
#0  0x4000bff0 in ?? ()
#1  0x4008eb2d in memspi_host_read_data_slicer (host=<optimized out>, address=0, len=8500, align_address=0x1baa828, page_size=1061171800) at /Users/erhankur/dev/esp-idf/components/spi_flash/memspi_host_driver.c:245
#2  0x4008dc5d in mbedtls_sha256_software_process (ctx=<error reading variable: Cannot access memory at address 0x3ffc834c>, data=<optimized out>) at /Users/erhankur/dev/esp-idf/components/mbedtls/port/sha/parallel_engine/esp_sha256.c:255
#3  0x400d6daf in esp_efuse_utility_process (field=0x0, ptr=0x3ffb1628 <xTaskQueueMutex>, ptr_size_bits=<optimized out>, func_proc=0x0) at /Users/erhankur/dev/esp-idf/components/efuse/src/esp_efuse_utility.c:62
#4  0x4008e87c in newlib_include_assert_impl () at /Users/erhankur/dev/esp-idf/components/newlib/assert.c:97

==================== THREAD 13 (TCB: 0x3ffe3898, name: 'w') =====================
#0  0x4008bee1 in spi_flash_hal_program_page (host=<optimized out>, buffer=<optimized out>, address=<optimized out>, length=<optimized out>) at /Users/erhankur/dev/esp-idf/components/hal/spi_flash_hal_iram.c:87
#1  0x4012b410 in ?? ()
#2  0x400946b4 in ?? ()
#3  0x4008e87c in newlib_include_assert_impl () at /Users/erhankur/dev/esp-idf/components/newlib/assert.c:97


======================= ALL MEMORY REGIONS ========================
Name   Address   Size   Attrs
.rtc.text 0x400c0000 0x0 RW
.rtc.dummy 0x3ff80000 0x0 RW
.rtc.force_fast 0x3ff80000 0x0 RW
.rtc.force_slow 0x50000010 0x0 RW
.iram0.vectors 0x40080000 0x403 R XA
.iram0.text 0x40080404 0xff87 R XA
.dram0.data 0x3ffb0000 0x44f0 RW A
.ext_ram_noinit 0x3f800000 0x0 RW
.noinit 0x3ffb44f0 0x0 RW
.ext_ram.bss 0x3f800000 0x0 RW
.flash.appdesc 0x3f400020 0x100 R  A
.flash.rodata 0x3f400120 0x9178 RW A
.flash.rodata_noload 0x3f409298 0x0 RW
.flash.text 0x400d0020 0x1a51b R XA
.iram0.data 0x4009038c 0x0 RW
.iram0.bss 0x4009038c 0x0 RW
.dram0.heap_start 0x3ffb5250 0x0 RW
.coredump.tasks.data 0x3ffdcf3c 0x158 RW
.coredump.tasks.data 0x3ffdcb10 0x420 RW
.coredump.tasks.data 0x3ffcb980 0x158 RW
.coredump.tasks.data 0x3ffcb7d0 0x1a0 RW
.coredump.tasks.data 0x3ffcc0e0 0x158 RW
.coredump.tasks.data 0x3ffcbf30 0x1a0 RW
.coredump.tasks.data 0x3ffcd9f0 0x158 RW
.coredump.tasks.data 0x3ffd9d80 0x1d0 RW
.coredump.tasks.data 0x3ffcb220 0x158 RW
.coredump.tasks.data 0x3ffcada0 0x470 RW
.coredump.tasks.data 0x3ffdc1dc 0x158 RW
.coredump.tasks.data 0x3ffdc000 0x1d0 RW
.coredump.tasks.data 0x3ffde628 0x158 RW
.coredump.tasks.data 0x3ffde400 0x220 RW
.coredump.tasks.data 0x3ffc7224 0x158 RW
.coredump.tasks.data 0x3ffafe10 0x1a0 RW
.coredump.tasks.data 0x3ffaf754 0x158 RW
.coredump.tasks.data 0x3ffaf560 0x1e0 RW
.coredump.tasks.data 0x3ffdf6ac 0x158 RW
.coredump.tasks.data 0x3ffdf4a0 0x200 RW
.coredump.tasks.data 0x3ffdf808 0x158 RW
.coredump.tasks.data 0x3ffe1430 0x1b0 RW
.coredump.tasks.data 0x3ffc8550 0x158 RW
.coredump.tasks.data 0x3ffc8390 0x1b0 RW
.coredump.tasks.data 0x3ffe3898 0x158 RW
.coredump.tasks.data 0x3ffe36c0 0x1d0 RW

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

Can you try the same command without trimming? Also, is it possible to get your app elf file? You can send me by email, if you don't want to attach here.

And what do you see when you try to run below commands with your trimmed elf and application elf file. Please copy paste the outputs.

xtensa-esp32-elf-gdb --nx --nw --quiet --interpreter=mi2 -c trimmed.dmp build/blink.elf
```

Then, 

info threads

hi @rsiemens77. We are waiting for your response. Or did you managed to solve it?

@dobairoland I will have to remove some sensitive code from the executable and recreate the associated coredump and elf for you to analyze. I am still planning to do this.

I'm closing this for now because we cannot reproduce it. If you provide here more information then please ping me and we can reopen it.

Please be aware that ESP-IDF v4.4 is supported only until July. That means that the last release will be started to be tested in early June. So if we don't receive update regarding this then we won't be able to fix it until the last deadline.

Hi, thanks for the notice. Please find attached my elf coredump for my sanitized application. I can email you the associated sanitized elf. What is your email?

I still get the same frozen state:

`C:\exp\dmcs>python ..\frameworks\esp-idf-v4.4.6\components\espcoredump\espcoredump.py info_corefile -t elf -c coredump-trim.elf build\sanitized.elf
espcoredump.py v0.4-dev

==================== ESP32 CORE DUMP START ====================

Crashed task handle: 0x3ffea850, name: '', GDB name: 'process 1073653840'

================== CURRENT THREAD REGISTERS ===================
exccause 0x1c (LoadProhibitedCause)
excvaddr 0x4
epc1 0x4011a1cf
epc2 0x0
epc3 0x0
epc4 0x0
epc5 0x0
epc6 0x0
eps2 0x0
eps3 0x0
eps4 0x0
eps5 0x0
eps6 0x0

==================== CURRENT THREAD STACK =====================
[New process 1073653840]
[New process 1073524328]
[New process 1073526216]
[New process 1073528104]
[New process 1073534432]
[New process 1073647816]
[New process 1073659740]
[New process 1073411924]
[New process 1073663968]
[New process 1073668416]
[New process 1073512856]
[New process 1073679324]
[New process 1073507948]
[Current thread is 1 (process 1073653840)]

======================== THREADS INFO =========================

Traceback (most recent call last):
File "C:\exp\frameworks\esp-idf-v4.4.6\components\espcoredump\espcoredump.py", line 387, in
temp_core_files = info_corefile()
^^^^^^^^^^^^^^^
File "C:\exp\frameworks\esp-idf-v4.4.6\components\espcoredump\espcoredump.py", line 237, in info_corefile
threads, _ = gdb.get_thread_info()
^^^^^^^^^^^^^^^^^^^^^
File "C:\exp\frameworks\esp-idf-v4.4.6\components\espcoredump\corefile\gdb.py", line 114, in get_thread_info
current_thread_id = result['current-thread-id']
~~~~~~^^^^^^^^^^^^^^^^^^^^^
TypeError: 'NoneType' object is not subscriptable`

coredump-elf.dmp

Can you try with a gdb timeout parameter?

espcoredump.py --gdb-timeout-sec 10 info_corefile -c coredump.dec -t raw sanitized.elf

@rsiemens77 did you have a chance to try?

That seems to help! Haven't analyzed the output yet, but looks promising.

`espcoredump.py v0.4-dev

==================== ESP32 CORE DUMP START ====================

Crashed task handle: 0x3ffea850, name: 'scheduleTasks', GDB name: 'process 1073653840'

================== CURRENT THREAD REGISTERS ===================
exccause 0x1c (LoadProhibitedCause)
excvaddr 0x4
epc1 0x4011a1cf
epc2 0x0
epc3 0x0
epc4 0x0
epc5 0x0
epc6 0x0
eps2 0x0
eps3 0x0
eps4 0x0
eps5 0x0
eps6 0x0
pc 0x400eaebd 0x400eaebd <LcdFactory::showImage(int, int, int, int)+13>
lbeg 0x4000c2e0 1073791712
lend 0x4000c2f6 1073791734
lcount 0xffffffff 4294967295
sar 0xa 10
ps 0x60620 394784
threadptr
br
scompare1
acclo
acchi
m0
m1
m2
m3
expstate
f64r_lo
f64r_hi
f64s
fcr
fsr
a0 0x800dec62 -2146571166
a1 0x3ffea670 1073653360
a2 0x0 0
a3 0x11 17
a4 0x0 0
a5 0x0 0
a6 0xffffffff -1
a7 0xffffffff -1
a8 0x44 68
a9 0x3ffea650 1073653328
a10 0x6615e8 6690280
a11 0x0 0
a12 0x6615de 6690270
a13 0xc 12
a14 0x1 1
a15 0x1 1

==================== CURRENT THREAD STACK =====================
#0 0x400eaebd in LcdFactory::showImage (lcdid=0, pmid=17, x=, y=0) at C:/exp/dmcs/main/LcdFactory.cpp:541
#1 0x400dec62 in executeACT (ctxt=, p=0x3ffe3830) at C:/exp/dmcs/main/Execute.cpp:1353
#2 0x400decda in executeListACT (ctxt=0x3ffe38bc) at C:/exp/dmcs/main/Execute.cpp:1374
#3 0x400de6ee in executeACT (ctxt=0x3ffe32c8, p=0x3ffe38a8) at C:/exp/dmcs/main/Execute.cpp:1082
#4 0x400decda in executeListACT (ctxt=0x3ffe32c8) at C:/exp/dmcs/main/Execute.cpp:1374
#5 0x400d801e in Script::run (this=0x3ffe3280, now_ms=6690) at C:/exp/dmcs/main/Aardvark.cpp:1976
#6 0x400dd6dc in Task::scheduleTasks (schedms=6690) at C:/exp/dmcs/main/Task.cpp:152
#7 0x400d7f6a in scheduleTasks (param=) at C:/exp/dmcs/main/Aardvark.cpp:11626
#8 0x4008e87c in vPortTaskWrapper (pxCode=0x400d7f58 <scheduleTasks(void*)>, pvParameters=0x0) at C:/exp/frameworks/esp-idf-v4.4.6/components/freertos/port/xtensa/port.c:142

======================== THREADS INFO =========================
Id Target Id Frame

  • 1 process 1073653840 0x400eaebd in LcdFactory::showImage (lcdid=0, pmid=17, x=, y=0) at C:/exp/dmcs/main/LcdFactory.cpp:541
    2 process 1073524328 0x4000bff0 in ?? ()
    3 process 1073526216 0x401862ea in esp_pm_impl_waiti () at C:/exp/frameworks/esp-idf-v4.4.6/components/esp_pm/pm_impl.c:849
    4 process 1073528104 0x401862ea in esp_pm_impl_waiti () at C:/exp/frameworks/esp-idf-v4.4.6/components/esp_pm/pm_impl.c:849
    5 process 1073534432 0x4008bee1 in xQueueReceive (xQueue=0x3ffe746c, pvBuffer=0x3ffe73b4, xTicksToWait=) at C:/exp/frameworks/esp-idf-v4.4.6/components/hal/esp32/include/hal/cpu_ll.h:39
    6 process 1073647816 0x40086578 in esp_crosscore_int_send_yield (core_id=0) at C:/exp/frameworks/esp-idf-v4.4.6/components/esp_system/crosscore_int.c:145
    7 process 1073659740 0x40086578 in esp_crosscore_int_send_yield (core_id=0) at C:/exp/frameworks/esp-idf-v4.4.6/components/esp_system/crosscore_int.c:145
    8 process 1073411924 0x4008656a in esp_crosscore_int_send (core_id=, reason_mask=) at C:/exp/frameworks/esp-idf-v4.4.6/components/esp_system/crosscore_int.c:140
    9 process 1073663968 0x40086578 in esp_crosscore_int_send_yield (core_id=0) at C:/exp/frameworks/esp-idf-v4.4.6/components/esp_system/crosscore_int.c:145
    10 process 1073668416 0x4008bee1 in xQueueReceive (xQueue=0x3ffec138, pvBuffer=0x3ffee080, xTicksToWait=) at C:/exp/frameworks/esp-idf-v4.4.6/components/hal/esp32/include/hal/cpu_ll.h:39
    11 process 1073512856 0x4000bff0 in ?? ()
    12 process 1073679324 0x4008bee1 in xQueueReceive (xQueue=0x3ffeeae8, pvBuffer=0x3fff0b20, xTicksToWait=) at C:/exp/frameworks/esp-idf-v4.4.6/components/hal/esp32/include/hal/cpu_ll.h:39
    13 process 1073507948 0x4000bff0 in ?? ()

==================== THREAD 1 (TCB: 0x3ffea850, name: 'scheduleTasks') =====================
#0 0x400eaebd in LcdFactory::showImage (lcdid=0, pmid=17, x=, y=0) at C:/exp/dmcs/main/LcdFactory.cpp:541
#1 0x400dec62 in executeACT (ctxt=, p=0x3ffe3830) at C:/exp/dmcs/main/Execute.cpp:1353
#2 0x400decda in executeListACT (ctxt=0x3ffe38bc) at C:/exp/dmcs/main/Execute.cpp:1374
#3 0x400de6ee in executeACT (ctxt=0x3ffe32c8, p=0x3ffe38a8) at C:/exp/dmcs/main/Execute.cpp:1082
#4 0x400decda in executeListACT (ctxt=0x3ffe32c8) at C:/exp/dmcs/main/Execute.cpp:1374
#5 0x400d801e in Script::run (this=0x3ffe3280, now_ms=6690) at C:/exp/dmcs/main/Aardvark.cpp:1976
#6 0x400dd6dc in Task::scheduleTasks (schedms=6690) at C:/exp/dmcs/main/Task.cpp:152
#7 0x400d7f6a in scheduleTasks (param=) at C:/exp/dmcs/main/Aardvark.cpp:11626
#8 0x4008e87c in vPortTaskWrapper (pxCode=0x400d7f58 <scheduleTasks(void*)>, pvParameters=0x0) at C:/exp/frameworks/esp-idf-v4.4.6/components/freertos/port/xtensa/port.c:142

==================== THREAD 2 (TCB: 0x3ffcae68, name: 'main') =====================
#0 0x4000bff0 in ?? ()
#1 0x4008eb2d in vPortClearInterruptMaskFromISR (prev_level=) at C:/exp/frameworks/esp-idf-v4.4.6/components/freertos/port/xtensa/include/freertos/portmacro.h:571
#2 vPortExitCritical (mux=) at C:/exp/frameworks/esp-idf-v4.4.6/components/freertos/port/xtensa/port.c:332
#3 0x4008d8be in xTaskResumeAll () at C:/exp/frameworks/esp-idf-v4.4.6/components/freertos/tasks.c:2629
#4 0x400853a1 in spi_flash_enable_interrupts_caches_and_other_cpu () at C:/exp/frameworks/esp-idf-v4.4.6/components/spi_flash/cache_utils.c:217
#5 0x4008634c in cache_enable (arg=0x0) at C:/exp/frameworks/esp-idf-v4.4.6/components/spi_flash/spi_flash_os_func_app.c:68
#6 0x400863f1 in spi1_end (arg=0x3ffb28c4 <main_flash_arg>) at C:/exp/frameworks/esp-idf-v4.4.6/components/spi_flash/spi_flash_os_func_app.c:131
#7 0x40089284 in spiflash_end_default (chip=0x3ffb2858 <default_chip>, err=0) at C:/exp/frameworks/esp-idf-v4.4.6/components/spi_flash/esp_flash_api.c:154
#8 0x40086002 in esp_flash_read (chip=, buffer=0x3ffccc3c, address=8263168, length=128) at C:/exp/frameworks/esp-idf-v4.4.6/components/spi_flash/esp_flash_api.c:859
#9 0x401154ac in esp_partition_read (partition=0x3ffc8420, src_offset=5632, dst=0x3ffccc3c, size=128) at C:/exp/frameworks/esp-idf-v4.4.6/components/spi_flash/partition.c:424
#10 0x4010565a in littlefs_api_read (c=0x3ffccb04, block=, off=, buffer=0x3ffccc3c, size=128) at C:/exp/frameworks/esp-idf-v4.4.6/components/esp_littlefs/src/littlefs_api.c:21
#11 0x40105a8a in lfs_bd_read (lfs=0x3ffccbbc, pcache=0x0, rcache=0x3ffccbbc, hint=4, block=1, off=1560, buffer=, buffer@entry=0x3ffca440, size=size@entry=4) at C:/exp/frameworks/esp-idf-v4.4.6/components/esp_littlefs/src/littlefs/lfs.c:116
#12 0x40106681 in lfs_dir_getslice (lfs=0x3ffccbbc, dir=0x3ffca4f0, gmask=2014313472, gtag=20513, goff=0, gbuffer=0x3ffca568, gsize=gsize@entry=33) at C:/exp/frameworks/esp-idf-v4.4.6/components/esp_littlefs/src/littlefs/lfs.c:704
#13 0x4010677e in lfs_dir_get (lfs=0x3ffccbbc, dir=0x3ffca4f0, gmask=2014313472, gtag=20513, buffer=0x3ffca568) at C:/exp/frameworks/esp-idf-v4.4.6/components/esp_littlefs/src/littlefs/lfs.c:750
#14 0x40109d8b in lfs_dir_getinfo (lfs=0x3ffccbbc, dir=0x3ffca4f0, id=, info=0x3ffca560) at C:/exp/frameworks/esp-idf-v4.4.6/components/esp_littlefs/src/littlefs/lfs.c:1386
#15 0x40109dfa in lfs_rawstat (lfs=0x3ffccbbc, path=, info=0x3ffca560) at C:/exp/frameworks/esp-idf-v4.4.6/components/esp_littlefs/src/littlefs/lfs.c:3815
#16 0x40109f94 in lfs_stat (lfs=0x3ffccbbc, path=0x3fff552c <error: Cannot access memory at address 0x3fff552c>, info=0x3ffca560) at C:/exp/frameworks/esp-idf-v4.4.6/components/esp_littlefs/src/littlefs/lfs.c:5865
#17 0x401047e5 in vfs_littlefs_fstat (ctx=0x3ffccae8, fd=, st=0x3ffca6d0) at C:/exp/frameworks/esp-idf-v4.4.6/components/esp_littlefs/src/esp_littlefs.c:1558
#18 0x400d4508 in esp_vfs_fstat (r=, fd=, st=0x3ffca6d0) at C:/exp/frameworks/esp-idf-v4.4.6/components/vfs/vfs.c:521
#19 0x4000bce0 in ?? ()
#20 0x40059143 in ?? ()
#21 0x400594ad in ?? ()
#22 0x401768c1 in _fread_r (ptr=0x3ffcaec8, buf=, size=1, count=1, fp=0x3fff52b0) at /builds/idf/crosstool-NG/.build/HOST-x86_64-w64-mingw32/xtensa-esp32-elf/src/newlib/newlib/libc/stdio/fread.c:228
#23 0x40176954 in fread (buf=0x3ffca7d0, size=1, count=1, fp=0x3fff52b0) at /builds/idf/crosstool-NG/.build/HOST-x86_64-w64-mingw32/xtensa-esp32-elf/src/newlib/newlib/libc/stdio/fread.c:266
#24 0x4010140c in VFSFileImpl::read (this=, buf=0x3ffca7d0 "\270\250\374?\310[G?TT\377?`T\377?|\251\374?", size=1) at C:/exp/frameworks/esp-idf-v4.4.6/components/arduino/libraries/FS/src/vfs_api.cpp:408
#25 0x400f4890 in fs::File::read (this=) at C:/exp/frameworks/esp-idf-v4.4.6/components/arduino/libraries/FS/src/FS.cpp:69
#26 0x400f359c in Stream::timedRead (this=0x3ffca92c) at C:/exp/frameworks/esp-idf-v4.4.6/components/arduino/cores/esp32/Stream.cpp:36
#27 0x400f360f in Stream::readStringUntil (this=0x3ffca92c, terminator=10 '
') at C:/exp/frameworks/esp-idf-v4.4.6/components/arduino/cores/esp32/Stream.cpp:330
#28 0x400ec878 in handleConfig () at C:/exp/dmcs/main/Hserver.cpp:946
#29 0x40184ae4 in std::_Function_handler<void (), void (*)()>::_M_invoke(std::_Any_data const&) (__functor=...) at c:\exp\ ools\xtensa-esp32-elf\esp-2021r2-patch5-8.4.0\xtensa-esp32-elf\xtensa-esp32-elf\include\c++\8.4.0\bits/std_function.h:88
#30 0x400f2b80 in std::function<void ()>::operator()() const (this=0x3ffeab60) at c:\exp\ ools\xtensa-esp32-elf\esp-2021r2-patch5-8.4.0\xtensa-esp32-elf\xtensa-esp32-elf\include\c++\8.4.0\bits/std_function.h:687
#31 0x400f5e64 in FunctionRequestHandler::handle (this=0x3ffeab4c, server=..., requestMethod=HTTP_GET, requestUri=...) at C:/exp/frameworks/esp-idf-v4.4.6/components/arduino/libraries/WebServer/src/detail/RequestHandlersImpl.h:45
#32 0x400f5ec2 in WebServer::_handleRequest (this=0x3ffc2338 ) at C:/exp/frameworks/esp-idf-v4.4.6/components/arduino/libraries/WebServer/src/WebServer.cpp:662
#33 0x400f6006 in WebServer::handleClient (this=0x3ffc2338 ) at C:/exp/frameworks/esp-idf-v4.4.6/components/arduino/libraries/WebServer/src/WebServer.cpp:317
#34 0x400edc4b in wifiServer (param=) at C:/exp/dmcs/main/Hserver.cpp:1116
#35 0x400d8b38 in app_main () at C:/exp/dmcs/main/Aardvark.cpp:12090
#36 0x40189858 in main_task (args=) at C:/exp/frameworks/esp-idf-v4.4.6/components/freertos/port/port_common.c:141
#37 0x4008e87c in vPortTaskWrapper (pxCode=0x401897ec <main_task>, pvParameters=0x0) at C:/exp/frameworks/esp-idf-v4.4.6/components/freertos/port/xtensa/port.c:142

==================== THREAD 3 (TCB: 0x3ffcb5c8, name: 'IDLE') =====================
#0 0x401862ea in esp_pm_impl_waiti () at C:/exp/frameworks/esp-idf-v4.4.6/components/esp_pm/pm_impl.c:849
#1 0x400d37f9 in esp_vApplicationIdleHook () at C:/exp/frameworks/esp-idf-v4.4.6/components/esp_system/freertos_hooks.c:63
#2 0x4008c748 in prvIdleTask (pvParameters=0x0) at C:/exp/frameworks/esp-idf-v4.4.6/components/freertos/tasks.c:3987
#3 0x4008e87c in vPortTaskWrapper (pxCode=0x4008c73c , pvParameters=0x0) at C:/exp/frameworks/esp-idf-v4.4.6/components/freertos/port/xtensa/port.c:142

==================== THREAD 4 (TCB: 0x3ffcbd28, name: 'IDLE') =====================
#0 0x401862ea in esp_pm_impl_waiti () at C:/exp/frameworks/esp-idf-v4.4.6/components/esp_pm/pm_impl.c:849
#1 0x400d37f9 in esp_vApplicationIdleHook () at C:/exp/frameworks/esp-idf-v4.4.6/components/esp_system/freertos_hooks.c:63
#2 0x4008c748 in prvIdleTask (pvParameters=0x0) at C:/exp/frameworks/esp-idf-v4.4.6/components/freertos/tasks.c:3987
#3 0x4008e87c in vPortTaskWrapper (pxCode=0x4008c73c , pvParameters=0x0) at C:/exp/frameworks/esp-idf-v4.4.6/components/freertos/port/xtensa/port.c:142

==================== THREAD 5 (TCB: 0x3ffcd5e0, name: 'monitorBus') =====================
#0 0x4008bee1 in xQueueReceive (xQueue=0x3ffe746c, pvBuffer=0x3ffe73b4, xTicksToWait=) at C:/exp/frameworks/esp-idf-v4.4.6/components/hal/esp32/include/hal/cpu_ll.h:39
#1 0x400d7f4c in monitorBus (param=0x0) at C:/exp/dmcs/main/Aardvark.cpp:11512
#2 0x4008e87c in vPortTaskWrapper (pxCode=0x400d7e3c <monitorBus(void*)>, pvParameters=0x0) at C:/exp/frameworks/esp-idf-v4.4.6/components/freertos/port/xtensa/port.c:142

==================== THREAD 6 (TCB: 0x3ffe90c8, name: 'eventProcessor') =====================
#0 0x40086578 in esp_crosscore_int_send_yield (core_id=0) at C:/exp/frameworks/esp-idf-v4.4.6/components/esp_system/crosscore_int.c:145
#1 0x4008bee1 in xQueueReceive (xQueue=0x3ffcd304, pvBuffer=0x3ffe9010, xTicksToWait=) at C:/exp/frameworks/esp-idf-v4.4.6/components/hal/esp32/include/hal/cpu_ll.h:39
#2 0x400d7bef in eventProcessor (param=) at C:/exp/dmcs/main/Aardvark.cpp:1636
#3 0x4008e87c in vPortTaskWrapper (pxCode=0x400d7bc8 <eventProcessor(void*)>, pvParameters=0x0) at C:/exp/frameworks/esp-idf-v4.4.6/components/freertos/port/xtensa/port.c:142

==================== THREAD 7 (TCB: 0x3ffebf5c, name: 'tiT') =====================
#0 0x40086578 in esp_crosscore_int_send_yield (core_id=0) at C:/exp/frameworks/esp-idf-v4.4.6/components/esp_system/crosscore_int.c:145
#1 0x4008bee1 in xQueueReceive (xQueue=0x3ffeb080, pvBuffer=0x3ffebea0, xTicksToWait=) at C:/exp/frameworks/esp-idf-v4.4.6/components/hal/esp32/include/hal/cpu_ll.h:39
#2 0x40137dac in sys_arch_mbox_fetch (mbox=, msg=0x3ffebea0, timeout=57) at C:/exp/frameworks/esp-idf-v4.4.6/components/lwip/port/esp32/freertos/sys_arch.c:330
#3 0x40125d5b in tcpip_timeouts_mbox_fetch (mbox=0x3ffc30a4 <tcpip_mbox>, msg=0x3ffebea0) at C:/exp/frameworks/esp-idf-v4.4.6/components/lwip/lwip/src/api/tcpip.c:110
#4 0x40125e1d in tcpip_thread (arg=0x0) at C:/exp/frameworks/esp-idf-v4.4.6/components/lwip/lwip/src/api/tcpip.c:148
#5 0x4008e87c in vPortTaskWrapper (pxCode=0x40125dfc <tcpip_thread>, pvParameters=0x0) at C:/exp/frameworks/esp-idf-v4.4.6/components/freertos/port/xtensa/port.c:142

==================== THREAD 8 (TCB: 0x3ffaf754, name: 'ipc0') =====================
#0 0x4008656a in esp_crosscore_int_send (core_id=, reason_mask=) at C:/exp/frameworks/esp-idf-v4.4.6/components/esp_system/crosscore_int.c:140
#1 0x40086578 in esp_crosscore_int_send_yield (core_id=0) at C:/exp/frameworks/esp-idf-v4.4.6/components/esp_system/crosscore_int.c:144
#2 0x4008c070 in xQueueSemaphoreTake (xQueue=0x3ffaf0f8, xTicksToWait=) at C:/exp/frameworks/esp-idf-v4.4.6/components/hal/esp32/include/hal/cpu_ll.h:39
#3 0x400835ba in ipc_task (arg=0x0) at C:/exp/frameworks/esp-idf-v4.4.6/components/esp_ipc/src/esp_ipc.c:54
#4 0x4008e87c in vPortTaskWrapper (pxCode=0x40083588 <ipc_task>, pvParameters=0x0) at C:/exp/frameworks/esp-idf-v4.4.6/components/freertos/port/xtensa/port.c:142

==================== THREAD 9 (TCB: 0x3ffecfe0, name: 'sys_evt') =====================
#0 0x40086578 in esp_crosscore_int_send_yield (core_id=0) at C:/exp/frameworks/esp-idf-v4.4.6/components/esp_system/crosscore_int.c:145
#1 0x4008bee1 in xQueueReceive (xQueue=0x3ffec22c, pvBuffer=0x3ffecef0, xTicksToWait=) at C:/exp/frameworks/esp-idf-v4.4.6/components/hal/esp32/include/hal/cpu_ll.h:39
#2 0x40188f38 in esp_event_loop_run (event_loop=0x3ffec210, ticks_to_run=4294967295) at C:/exp/frameworks/esp-idf-v4.4.6/components/esp_event/esp_event.c:566
#3 0x40188f50 in esp_event_loop_run_task (args=0x3ffec210) at C:/exp/frameworks/esp-idf-v4.4.6/components/esp_event/esp_event.c:115
#4 0x4008e87c in vPortTaskWrapper (pxCode=0x40188f44 <esp_event_loop_run_task>, pvParameters=0x3ffec210) at C:/exp/frameworks/esp-idf-v4.4.6/components/freertos/port/xtensa/port.c:142

==================== THREAD 10 (TCB: 0x3ffee140, name: 'arduino_events') =====================
#0 0x4008bee1 in xQueueReceive (xQueue=0x3ffec138, pvBuffer=0x3ffee080, xTicksToWait=) at C:/exp/frameworks/esp-idf-v4.4.6/components/hal/esp32/include/hal/cpu_ll.h:39
#1 0x400fa83c in _arduino_event_task (arg=0x0) at C:/exp/frameworks/esp-idf-v4.4.6/components/arduino/libraries/WiFi/src/WiFiGeneric.cpp:304
#2 0x4008e87c in vPortTaskWrapper (pxCode=0x400fa824 <_arduino_event_task(void*)>, pvParameters=0x0) at C:/exp/frameworks/esp-idf-v4.4.6/components/freertos/port/xtensa/port.c:142

==================== THREAD 11 (TCB: 0x3ffc8198, name: 'esp_timer') =====================
#0 0x4000bff0 in ?? ()
#1 0x4008eb2d in vPortClearInterruptMaskFromISR (prev_level=) at C:/exp/frameworks/esp-idf-v4.4.6/components/freertos/port/xtensa/include/freertos/portmacro.h:571
#2 vPortExitCritical (mux=) at C:/exp/frameworks/esp-idf-v4.4.6/components/freertos/port/xtensa/port.c:332
#3 0x4008dc5d in ulTaskGenericNotifyTake (uxIndexToWait=0, xClearCountOnExit=1, xTicksToWait=) at C:/exp/frameworks/esp-idf-v4.4.6/components/freertos/tasks.c:5401
#4 0x400d726f in timer_task (arg=0x0) at C:/exp/frameworks/esp-idf-v4.4.6/components/esp_timer/src/esp_timer.c:420
#5 0x4008e87c in vPortTaskWrapper (pxCode=0x400d7260 <timer_task>, pvParameters=0x0) at C:/exp/frameworks/esp-idf-v4.4.6/components/freertos/port/xtensa/port.c:142

==================== THREAD 12 (TCB: 0x3fff0bdc, name: 'wifi') =====================
#0 0x4008bee1 in xQueueReceive (xQueue=0x3ffeeae8, pvBuffer=0x3fff0b20, xTicksToWait=) at C:/exp/frameworks/esp-idf-v4.4.6/components/hal/esp32/include/hal/cpu_ll.h:39
#1 0x40122d2c in queue_recv_wrapper (queue=0x3ffeeae8, item=0x3fff0b20, block_time_tick=4294967295) at C:/exp/frameworks/esp-idf-v4.4.6/components/esp_wifi/esp32/esp_adapter.c:439
#2 0x400946b4 in ppTask ()
#3 0x4008e87c in vPortTaskWrapper (pxCode=0x40094688 , pvParameters=0x0) at C:/exp/frameworks/esp-idf-v4.4.6/components/freertos/port/xtensa/port.c:142

==================== THREAD 13 (TCB: 0x3ffc6e6c, name: 'ipc1') =====================
#0 0x4000bff0 in ?? ()
#1 0x4008eb2d in vPortClearInterruptMaskFromISR (prev_level=) at C:/exp/frameworks/esp-idf-v4.4.6/components/freertos/port/xtensa/include/freertos/portmacro.h:571
#2 vPortExitCritical (mux=) at C:/exp/frameworks/esp-idf-v4.4.6/components/freertos/port/xtensa/port.c:332
#3 0x4008c067 in xQueueSemaphoreTake (xQueue=0x3ffaf960, xTicksToWait=) at C:/exp/frameworks/esp-idf-v4.4.6/components/freertos/queue.c:1682
#4 0x400835ba in ipc_task (arg=0x1) at C:/exp/frameworks/esp-idf-v4.4.6/components/esp_ipc/src/esp_ipc.c:54
#5 0x4008e87c in vPortTaskWrapper (pxCode=0x40083588 <ipc_task>, pvParameters=0x1) at C:/exp/frameworks/esp-idf-v4.4.6/components/freertos/port/xtensa/port.c:142

======================= ALL MEMORY REGIONS ========================
Name Address Size Attrs
.rtc.text 0x400c0000 0x0 RW
.rtc.dummy 0x3ff80000 0x0 RW
.rtc.force_fast 0x3ff80000 0x0 RW
.rtc.force_slow 0x50000014 0x0 RW
.iram0.vectors 0x40080000 0x403 R XA
.iram0.text 0x40080404 0x18243 R XA
.dram0.data 0x3ffb0000 0x4ce4 RW A
.ext_ram_noinit 0x3f800000 0x0 RW
.noinit 0x3ffb4ce4 0x0 RW
.ext_ram.bss 0x3f800000 0x0 RW
.flash.appdesc 0x3f400020 0x100 R A
.flash.rodata 0x3f400120 0x86130 RW A
.flash.text 0x400d0020 0xba017 R XA
.phyiram.21 0x4018a038 0x61 R XA
.phyiram.19 0x4018a09c 0x10e R XA
.phyiram.20 0x4018a1ac 0x9e R XA
.phyiram.18 0x4018a24c 0x2d7 R XA
.phyiram.0 0x4018a524 0x2b R XA
.phyiram.1 0x4018a550 0x7d R XA
.phyiram.2 0x4018a5d0 0x21e R XA
.phyiram.3 0x4018a7f0 0x9e R XA
.phyiram.4 0x4018a890 0x12c R XA
.phyiram.6 0x4018a9bc 0x9a R XA
.phyiram.7 0x4018aa58 0x223 R XA
.phyiram.8 0x4018ac7c 0x183 R XA
.phyiram.9 0x4018ae00 0x8e R XA
.phyiram.12 0x4018ae90 0x188 R XA
.phyiram.14 0x4018b018 0xba R XA
.phyiram.13 0x4018b0d4 0xef R XA
.phyiram.15 0x4018b1c4 0x1cb R XA
.phyiram.17 0x4018b390 0x72 R XA
.phyiram.11 0x4018b404 0x78 R XA
.phyiram.16 0x4018b47c 0xdc R XA
.phyiram.23 0x4018b558 0x4a R XA
.phyiram.24 0x4018b5a4 0x31 R XA
.phyiram.25 0x4018b5d8 0x103 R XA
.phyiram.26 0x4018b6dc 0x87 R XA
.iram0.data 0x40098648 0x0 RW
.iram0.bss 0x40098648 0x0 RW
.dram0.heap_start 0x3ffc6b00 0x0 RW
.coredump.tasks.data 0x3ffea850 0x158 RW
.coredump.tasks.data 0x3ffea5b0 0x290 RW
.coredump.tasks.data 0x3ffcae68 0x158 RW
.coredump.tasks.data 0x3ffca1d0 0xc90 RW
.coredump.tasks.data 0x3ffcb5c8 0x158 RW
.coredump.tasks.data 0x3ffcb420 0x1a0 RW
.coredump.tasks.data 0x3ffcbd28 0x158 RW
.coredump.tasks.data 0x3ffcbb80 0x1a0 RW
.coredump.tasks.data 0x3ffcd5e0 0x158 RW
.coredump.tasks.data 0x3ffe7290 0x1d0 RW
.coredump.tasks.data 0x3ffe90c8 0x158 RW
.coredump.tasks.data 0x3ffe8ef0 0x1d0 RW
.coredump.tasks.data 0x3ffebf5c 0x158 RW
.coredump.tasks.data 0x3ffebd30 0x220 RW
.coredump.tasks.data 0x3ffaf754 0x158 RW
.coredump.tasks.data 0x3ffaf560 0x1e0 RW
.coredump.tasks.data 0x3ffecfe0 0x158 RW
.coredump.tasks.data 0x3ffecdd0 0x200 RW
.coredump.tasks.data 0x3ffee140 0x158 RW
.coredump.tasks.data 0x3ffedf80 0x1b0 RW
.coredump.tasks.data 0x3ffc8198 0x158 RW
.coredump.tasks.data 0x3ffc7fe0 0x1b0 RW
.coredump.tasks.data 0x3fff0bdc 0x158 RW
.coredump.tasks.data 0x3fff0a00 0x1d0 RW
.coredump.tasks.data 0x3ffc6e6c 0x158 RW
.coredump.tasks.data 0x3ffafde0 0x1d0 RW

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

Exception in thread Thread-1 (_readerthread):
Traceback (most recent call last):
Exception in thread Thread-2 (_readerthread):
File "threading.py", line 1038, in _bootstrap_inner
Traceback (most recent call last):
File "threading.py", line 1038, in _bootstrap_inner
File "threading.py", line 975, in run
File "threading.py", line 975, in run
File "subprocess.py", line 1552, in _readerthread
File "subprocess.py", line 1552, in _readerthread
OSError: [Errno 22] Invalid argument
OSError: [Errno 22] Invalid argument
Done!
`

OK. So we can close the issue now.