Copyright © https://mongoose-os.com

Mongoose OS Forum

frame
ATTENTION! This forum has moved to:

https://community.mongoose-os.com

Do not post any new messages.

File-Logger Core Dump

bblankbblank Durham, NC
edited January 29 in Mongoose OS

Hello! I am using the File-Logger library for debugging purposes and am encountering a periodic core dump (shown below). Any thoughts?

Reading symbols from /fw.elf...done.
Found core at 23 - 454389
Mapping DRAM: 335872 @ 0x3ffae000
Mapping /opt/Espressif/rom/rom.bin at 0x40000000
Mapping /fw.elf .iram0.vectors: 1024 @ 0x40080000
Mapping /fw.elf .iram0.text: 68524 @ 0x40080400
Mapping /fw.elf .dram0.data: 9640 @ 0x3ffb0000
Mapping /fw.elf .dram0.bss: 35096 @ 0x3ffb25a8
Mapping /fw.elf .flash.rodata: 167112 @ 0x3f400020
Mapping /fw.elf .flash.text: 733214 @ 0x400d0018
Loaded core dump from last snippet in  /core
Remote debugging using 127.0.0.1:1234
_xt_lowint1 ()
    at /opt/Espressif/esp-idf/components/freertos/xtensa_vectors.S:1081
1081        s32i    a0, sp, XT_STK_PS
#0  _xt_lowint1 ()
    at /opt/Espressif/esp-idf/components/freertos/xtensa_vectors.S:1081
#1  0x40060230 in ?? ()
#2  0x4008cd4c in xTaskResumeAll ()
    at /opt/Espressif/esp-idf/components/freertos/tasks.c:2298
#3  0x40082395 in spi_flash_op_unlock ()
    at /opt/Espressif/esp-idf/components/spi_flash/cache_utils.c:217
#4  spi_flash_enable_interrupts_caches_and_other_cpu ()
    at /opt/Espressif/esp-idf/components/spi_flash/cache_utils.c:232
#5  0x400823ed in spi_flash_guard_end ()
    at /opt/Espressif/esp-idf/components/spi_flash/flash_ops.c:161
#6  0x4008289c in spi_flash_read (src=<optimized out>, dstv=0x3ffc1c30, 
    size=<optimized out>)
    at /opt/Espressif/esp-idf/components/spi_flash/flash_ops.c:610
#7  0x400eb383 in esp32_vfs_dev_partition_read (dev=<optimized out>, 
    offset=4096, len=256, dst=0x3ffc1c30)
    at /Users/baileyblankenship/Documents/Workspace/Embedded/Projects/bx2/deps/vfs-common/src/esp32/esp32_vfs_dev_partition.c:68
#8  0x400ead87 in mgos_vfs_dev_read (dev=0x3ffc17c8, offset=4096, len=256, 
    dst=0x3ffc1c30)
    at /Users/baileyblankenship/Documents/Workspace/Embedded/Projects/bx2/deps/vfs-common/src/mgos_vfs_dev.c:152
#9  0x400ee22c in mgos_spiffs_read (spfs=<optimized out>, addr=4096, 
    size=256, dst=0x3ffc1c30 "\001")
    at /Users/baileyblankenship/Documents/Workspace/Embedded/Projects/bx2/deps/vfs-fs-spiffs/src/mgos_vfs_fs_spiffs.c:94
#10 0x40180e94 in spiffs_phys_rd (fs=0x3ffc196c, addr=4096, len=256, 
    dst=0x3ffc1c30 "\001")
    at /Users/baileyblankenship/Documents/Workspace/Embedded/Projects/bx2/deps/vfs-fs-spiffs/src/spiffs/spiffs_nucleus.c:85
#11 0x400f1938 in spiffs_obj_lu_find_entry_visitor (fs=0x3ffc196c, 
    starting_block=<optimized out>, starting_lu_entry=<optimized out>, 
    flags=1 '\001', obj_id=32777, 
    v=0x400f14fc <spiffs_obj_lu_find_id_and_span_v>, 
    user_const_p=user_const_p@entry=0x0, 
    user_var_p=user_var_p@entry=0x3ffbe5c0, 
    block_ix=block_ix@entry=0x3ffbe5b4, lu_entry=lu_entry@entry=0x3ffbe5b0)
    at /Users/baileyblankenship/Documents/Workspace/Embedded/Projects/bx2/deps/vfs-fs-spiffs/src/spiffs/spiffs_nucleus.c:182
#12 0x400f1d20 in spiffs_obj_lu_find_id_and_span (fs=0x3ffc196c, 
    obj_id=32777, spix=0, exclusion_pix=0, pix=0x3ffbe61a)
    at /Users/baileyblankenship/Documents/Workspace/Embedded/Projects/bx2/deps/vfs-fs-spiffs/src/spiffs/spiffs_nucleus.c:553
#13 0x400f0753 in spiffs_gc_clean (fs=0x3ffc196c, bix=34)
    at /Users/baileyblankenship/Documents/Workspace/Embedded/Projects/bx2/deps/vfs-fs-spiffs/src/spiffs/spiffs_gc.c:555
#14 0x400f0924 in spiffs_gc_check (fs=0x3ffc196c, len=251)
    at /Users/baileyblankenship/Documents/Workspace/Embedded/Projects/bx2/deps/vfs-fs-spiffs/src/spiffs/spiffs_gc.c:157
#15 0x400f21af in spiffs_object_create (fs=0x3ffc196c, obj_id=19, 
    name=0x3ffbe1cc "\311\027\373?\322\027\373?\333\027\373?\344\027\373?\355\027\373?\366\027\373?\377\027\373?\b\030\373?\021\030\373?", meta=0x0, 
    type=1 '\001', objix_hdr_pix=0x3ffbe726)
    at /Users/baileyblankenship/Documents/Workspace/Embedded/Projects/bx2/deps/vfs-fs-spiffs/src/spiffs/spiffs_nucleus.c:949
#16 0x400f0d75 in SPIFFS_open (fs=0x3ffc196c, 
    path=0x3ffbe1cc "\311\027\373?\322\027\373?\333\027\373?\344\027\373?\355\027\373?\366\027\373?\377\027\373?\b\030\373?\021\030\373?", flags=21, mode=0)
    at /Users/baileyblankenship/Documents/Workspace/Embedded/Projects/bx2/deps/vfs-fs-spiffs/src/spiffs/spiffs_hydrogen.c:256
#17 0x400ee6e5 in mgos_vfs_fs_spiffs_open (fs=<optimized out>, 
    path=0x3ffbe1cc "\311\027\373?\322\027\373?\333\027\373?\344\027\373?\355\027\373?\366\027\373?\377\027\373?\b\030\373?\021\030\373?", 
    flags=<optimized out>, mode=<optimized out>)
    at /Users/baileyblankenship/Documents/Workspace/Embedded/Projects/bx2/deps/vfs-fs-spiffs/src/mgos_vfs_fs_spiffs.c:366
#18 0x400ea429 in mgos_vfs_open (
    path=0x3ffc28a4 "/log_20190128-190232.699.txt", flags=521, mode=438)
    at /Users/baileyblankenship/Documents/Workspace/Embedded/Projects/bx2/deps/vfs-common/src/mgos_vfs.c:334
#19 0x400e16a0 in esp_vfs_open (r=0x3ffbf150, path=<optimized out>, 
    flags=521, mode=438) at /opt/Espressif/esp-idf/components/vfs/vfs.c:398
#20 0x4000bd6a in ?? ()
#21 0x400d2634 in _fopen_r (ptr=0x3ffbf150, 
    file=0x3ffc28a4 "/log_20190128-190232.699.txt", mode=<optimized out>)
    at ../../../.././newlib/libc/stdio/fopen.c:141
#22 0x400d26bb in fopen (file=0x3ffc28a4 "/log_20190128-190232.699.txt", 
    mode=0x3f4225bd "a") at ../../../.././newlib/libc/stdio/fopen.c:181
#23 0x400f54ac in init_curfile ()
    at /Users/baileyblankenship/Documents/Workspace/Embedded/Projects/bx2/deps/file-logger/src/mgos_file_logger.c:85
#24 0x400f55fa in debug_write_cb (ev=<optimized out>, ev_data=0x3ffbea70, 
    userdata=<optimized out>)
    at /Users/baileyblankenship/Documents/Workspace/Embedded/Projects/bx2/deps/file-logger/src/mgos_file_logger.c:110
#25 0x400e29c4 in mgos_event_trigger (ev=1297044225, ev_data=0x3ffbea70)
    at /mongoose-os/fw/src/mgos_event.c:128
#26 0x400e1c63 in mgos_debug_write (fd=1, data=0x3ffc10b0, len=37)
    at /mongoose-os/fw/src/mgos_debug.c:106
#27 0x400e3e28 in debug_write (fd=1, data=0x3ffc10b0, size=37)
    at /mongoose-os/fw/platforms/esp32/src/esp32_debug.c:62
#28 0x400e1754 in esp_vfs_write (r=<optimized out>, fd=4, data=0x3ffc10b0, 
    size=37) at /opt/Espressif/esp-idf/components/vfs/vfs.c:430
#29 0x4000bd86 in ?? ()
#30 0x40001180 in ?? ()
#31 0x40059301 in ?? ()
#32 0x4005937d in ?? ()
#33 0x40058bc2 in ?? ()
#34 0x400d68c4 in __sprint_r (ptr=0x3ffbf150, fp=0x3ffae910, uio=0x3ffbee14)
    at ../../../.././newlib/libc/stdio/vfprintf.c:437
#35 0x400dc0ad in _vfprintf_r (data=<optimized out>, fp=<optimized out>, 
    fmt0=<optimized out>, ap=...)
    at ../../../.././newlib/libc/stdio/vfprintf.c:1782
#36 0x400d2b4c in printf (
    fmt=0x3f415e4d "dhcps: send_nak>>udp_sendto result %x\n")
    at ../../../.././newlib/libc/stdio/printf.c:58
#37 0x4013cd94 in send_nak (len=<optimized out>, m=<optimized out>)
    at /opt/Espressif/esp-idf/components/lwip/apps/dhcpserver/dhcpserver.c:598
#38 handle_dhcp (arg=<optimized out>, pcb=<optimized out>, p=0x3ffbc088, 
    addr=<optimized out>, port=<optimized out>)
    at /opt/Espressif/esp-idf/components/lwip/apps/dhcpserver/dhcpserver.c:1038
#39 0x4013447a in udp_input (p=0x3ffbc088, inp=<optimized out>)
    at /opt/Espressif/esp-idf/components/lwip/lwip/src/core/udp.c:401
#40 0x401384e4 in ip4_input (p=0x3ffbc088, inp=0x3ffbb754)
    at /opt/Espressif/esp-idf/components/lwip/lwip/src/core/ipv4/ip4.c:740
#41 0x4013c101 in ethernet_input (p=0x3ffbc088, netif=0x3ffbb754)
    at /opt/Espressif/esp-idf/components/lwip/lwip/src/netif/ethernet.c:184
#42 0x4013127c in tcpip_thread (arg=<optimized out>)
    at /opt/Espressif/esp-idf/components/lwip/lwip/src/api/tcpip.c:135
Detaching from program: /fw.elf, Remote target
Remote doesn't know how to detach
GDB closed the connection
Sign In or Register to comment.