Skip to content

Instantly share code, notes, and snippets.

@tnishinaga
Created September 7, 2020 16:00
Show Gist options
  • Save tnishinaga/b29a9f4028d6b7462b358ae1e1807f7e to your computer and use it in GitHub Desktop.
Save tnishinaga/b29a9f4028d6b7462b358ae1e1807f7e to your computer and use it in GitHub Desktop.
esp32 fprintf to tcp socket error log
I (48636) esp_netif_lwip: DHCP server assigned IP to a station, IP is: 192.168.4.2
I (51966) wifi softAP: accept success
abort() was called at PC 0x40082c46 on core 0
0x40082c46: lock_acquire_generic at /Users/tnishinaga/opt/esp-idf/components/newlib/locks.c:142
Backtrace:0x4008804f:0x3ffc8ca0 0x400887ad:0x3ffc8cc0 0x4008f59a:0x3ffc8ce0 0x40082c46:0x3ffc8d50 0x40082d69:0x3ffc8d80 0x40136621:0x3ffc8da0 0x40131fa9:0x3ffc9060 0x40131ea1:0x3ffc90b0 0x400889ab:0x3ffc90e0 0x4008b6b8:0x3ffc9100 0x4008b7d9:0x3ffc9140 0x40082c7e:0x3ffc9160 0x40082d69:0x3ffc9190 0x4013bd06:0x3ffc91b0 0x4013e2f9:0x3ffc9540 0x40132249:0x3ffc9570 0x400d77e5:0x3ffc95c0 0x400887b5:0x3ffc9690
0x4008804f: panic_abort at /Users/tnishinaga/opt/esp-idf/components/esp_system/panic.c:349
0x400887ad: esp_system_abort at /Users/tnishinaga/opt/esp-idf/components/esp_system/system_api.c:104
0x4008f59a: abort at /Users/tnishinaga/opt/esp-idf/components/newlib/abort.c:46
0x40082c46: lock_acquire_generic at /Users/tnishinaga/opt/esp-idf/components/newlib/locks.c:142
0x40082d69: _lock_acquire_recursive at /Users/tnishinaga/opt/esp-idf/components/newlib/locks.c:170
0x40136621: _vfiprintf_r at /builds/idf/crosstool-NG/.build/HOST-x86_64-apple-darwin12/xtensa-esp32-elf/src/newlib/newlib/libc/stdio/vfprintf.c:853 (discriminator 2)
0x40131fa9: fiprintf at /builds/idf/crosstool-NG/.build/HOST-x86_64-apple-darwin12/xtensa-esp32-elf/src/newlib/newlib/libc/stdio/fiprintf.c:48
0x40131ea1: __assert_func at /builds/idf/crosstool-NG/.build/HOST-x86_64-apple-darwin12/xtensa-esp32-elf/src/newlib/newlib/libc/stdlib/assert.c:58 (discriminator 8)
0x400889ab: spinlock_acquire at /Users/tnishinaga/opt/esp-idf/components/soc/include/soc/spinlock.h:116
(inlined by) vPortCPUAcquireMutex at /Users/tnishinaga/opt/esp-idf/components/freertos/xtensa/include/freertos/portmacro.h:202
(inlined by) vPortEnterCritical at /Users/tnishinaga/opt/esp-idf/components/freertos/xtensa/port.c:420
0x4008b6b8: xQueueGenericReceive at /Users/tnishinaga/opt/esp-idf/components/freertos/queue.c:1461 (discriminator 4)
0x4008b7d9: xQueueTakeMutexRecursive at /Users/tnishinaga/opt/esp-idf/components/freertos/queue.c:634
0x40082c7e: lock_acquire_generic at /Users/tnishinaga/opt/esp-idf/components/newlib/locks.c:156
0x40082d69: _lock_acquire_recursive at /Users/tnishinaga/opt/esp-idf/components/newlib/locks.c:170
0x4013bd06: __svfscanf_r at /builds/idf/crosstool-NG/.build/HOST-x86_64-apple-darwin12/xtensa-esp32-elf/src/newlib/newlib/libc/stdio/vfscanf.c:589 (discriminator 2)
0x4013e2f9: _vfscanf_r at /builds/idf/crosstool-NG/.build/HOST-x86_64-apple-darwin12/xtensa-esp32-elf/src/newlib/newlib/libc/stdio/vfscanf.c:254
0x40132249: fscanf at /builds/idf/crosstool-NG/.build/HOST-x86_64-apple-darwin12/xtensa-esp32-elf/src/newlib/newlib/libc/stdio/fscanf.c:33
0x400d77e5: TcpServerTask at /Users/tnishinaga/tmp/sock_fprintf/build/../main/main.c:183 (discriminator 9)
0x400887b5: vPortTaskWrapper at /Users/tnishinaga/opt/esp-idf/components/freertos/xtensa/port.c:169
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment