You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hard to pin own exactly which library causes this problem, but the executive summary is that if an ESP32 application uses either a file system on SPI flash (as with the ESP32-WROOM-32U module) and/or uses the c language file IO functions to talk to a file system created by Mongoose, then a core dump quickly happens after boot.
Code to reproduce is below, with backtraces. This application will run reliably until an MDash token is added. It then core dumps almost immediately.
Call to set mdash token (token edited)
mos config-set dash.enable=true dash.token=dOS0j99ABCDEFGE4B3mLxxx
mos.yml
author: mongoose-os
description: A Mongoose OS app skeleton
version: 1.0
libs_version: ${mos.version}
modules_version: ${mos.version}
mongoose_os_version: ${mos.version}
# Optional. List of tags for online search.
tags:
- c
# List of files / directories with C sources. No slashes at the end of dir names.
sources:
- src
# List of dirs. Files from these dirs will be copied to the device filesystem
filesystem:
- fs
build_vars:
ESP_IDF_SDKCONFIG_OPTS: ${build_vars.ESP_IDF_SDKCONFIG_OPTS} CONFIG_ESPTOOLPY_FLASHSIZE_4MB=}
ESP_IDF_SDKCONFIG_OPTS: ${build_vars.ESP_IDF_SDKCONFIG_OPTS} CONFIG_ESPTOOLPY_FLASHSIZE_16MB=y CONFIG_ESPTOOLPY_FLASHSIZE="16MB"}
ESP_IDF_EXTRA_PARTITION: fs_ext,data,spiffs,,12288K
config_schema:
- ["fstab.fs0.dev", "fs_ext"]
- ["fstab.fs0.type", "LFS"]
- ["fstab.fs0.opts", '{"bs": 4096}']
- ["fstab.fs0.path", "/data"]
- ["fstab.fs0.create", true]
- ["wifi.sta.enable", true]
- ["wifi.sta.ssid", "Jim LAN"]
- ["wifi.sta.pass", "password"]
libs:
- origin: https://github.com/mongoose-os-libs/ca-bundle
- origin: https://github.com/mongoose-os-libs/rpc-service-config
- origin: https://github.com/mongoose-os-libs/rpc-service-fs
- origin: https://github.com/mongoose-os-libs/rpc-uart
- origin: https://github.com/mongoose-os-libs/dash
- origin: https://github.com/mongoose-os-libs/rpc-service-ota
- origin: https://github.com/mongoose-os-libs/wifi
# Added for file system
- origin: https://github.com/mongoose-os-libs/fstab
- origin: https://github.com/mongoose-os-libs/vfs-fs-lfs
# Used by the mos tool to catch mos binaries incompatible with this file format
manifest_version: 2017-09-29
Hard to pin own exactly which library causes this problem, but the executive summary is that if an ESP32 application uses either a file system on SPI flash (as with the ESP32-WROOM-32U module) and/or uses the c language file IO functions to talk to a file system created by Mongoose, then a core dump quickly happens after boot.
Code to reproduce is below, with backtraces. This application will run reliably until an MDash token is added. It then core dumps almost immediately.
Call to set mdash token (token edited)
mos config-set dash.enable=true dash.token=dOS0j99ABCDEFGE4B3mLxxx
mos.yml
main.cpp
Back trace:
Another backtrace:
The text was updated successfully, but these errors were encountered: