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.

Core Dump on AP Client

kreookreoo BR
edited October 2018 in Mongoose OS

Hello! It seems that with version 2.6 of mos tool my app crashes when there is new AP client.
The error message/reason varies but the first time it crashes after a clean flash it always the same error:

dhcps: send_offer>>udp_sendto result 0
Debug exception reason: Stack canary watchpoint triggered (tiT)

These are my Libs is mos.yml

libs:
  - origin: https://github.com/mongoose-os-libs/ca-bundle
  - origin: https://github.com/mongoose-os-libs/http-server
  - origin: https://github.com/mongoose-os-libs/mjs
  - origin: https://github.com/mongoose-os-libs/dht
  - origin: https://github.com/mongoose-os-libs/gcp
  - origin: https://github.com/mongoose-os-libs/rpc-loopback
  - origin: https://github.com/mongoose-os-libs/rpc-service-ota
  - origin: https://github.com/mongoose-os-libs/rpc-service-wifi
  - 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-service-gpio
  - origin: https://github.com/mongoose-os-libs/rpc-uart
  - origin: https://github.com/mongoose-os-libs/mqtt
  - origin: https://github.com/mongoose-os-libs/wifi
  - origin: https://github.com/mongoose-os-libs/dash
  - origin: https://github.com/mongoose-os-libs/file-logger

Attached is the full dump file.

I tracked this problem on the expressif-idf which is the very same error I keep getting:

https://github.com/espressif/esp-idf/issues/2447
It was introduced with 3.1, which is what mos 2.6 uses right?

I tried to run mos update 2.5.1 to reproduce the problem, but** it didnt happen**, at least not until now. So mos 2.5.1 and IDF 3.0 worked for me.

Any light on this? Should it be on github? I kinda would like to keep up with mos current version to use the lastest features (mgos_gpio_blink anyone? :D ).

Thanks

Comments

  • valentinvalentin Amsterdam
    edited October 2018

    I am having the same issue with a corrupt heap message.

    dhcps: send_nak>>udp_sendto result 0
    CORRUPT HEAP: multi_heap.c:429 detected at 0x3ffc8eac
    abort() was called at PC 0x4008d9ef on core 0
    

    It happens every time a client connects to the AP.

  • Found a fix! Add this to your mos.yml:

    build_vars:
        ESP_IDF_SDKCONFIG_OPTS: "CONFIG_TCPIP_TASK_STACK_SIZE=6144" 
    

    It basically double the TCPIP stack size (link)

    Thanked by 3kreoo mamuesp FabioGM
  • @valentin I will try this solution my friend! thank you very much.
    I wonder if more people are getting this too.

  • NeedlerpNeedlerp United Kingdom
    edited October 2018

    I've been having exactly this problem. Will try this solution now.

    Result: Success!!! Many thanks for this, it'd been bugging me all day!

Sign In or Register to comment.