Skip to content

A stack overflow in task loopTask has been detected #1

@Nismonx

Description

@Nismonx

Hi there,

Using esp32 D1 mini.

Tried with 2 platforms:
-Arduino IDE
-PlatformIO

From the terminal:
Created data folder, and generate hostkey_rsa.
-PlatformIO: Build filesystem image->Upload filesystem image -> [SUCCESS] Took 9.26 seconds


Processing esp32dev (platform: espressif32; board: wemos_d1_mini32; framework: arduino)
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/wemos_d1_mini32.html
PLATFORM: Espressif 32 (6.8.1) > WEMOS D1 MINI ESP32
HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash
DEBUG: Current (cmsis-dap) External (cmsis-dap, esp-bridge, esp-prog, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa)
PACKAGES: 
 - framework-arduinoespressif32 @ 3.20017.241212+sha.dcc1105b 
 - tool-esptoolpy @ 1.40501.0 (4.5.1) 
 - toolchain-xtensa-esp32 @ 8.4.0+2021r2-patch5
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 34 compatible libraries
Scanning dependencies...
Dependency Graph
|-- LibSSH-ESP32 @ 5.3.1
|-- SPIFFS @ 2.0.0
|-- WiFi @ 2.0.0
Building in release mode
Retrieving maximum program size .pio\build\esp32dev\firmware.elf
Checking size .pio\build\esp32dev\firmware.elf
Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"
RAM:   [==        ]  17.2% (used 56448 bytes from 327680 bytes)
Flash: [========  ]  84.8% (used 1112093 bytes from 1310720 bytes)
========================================================================================= [SUCCESS] Took 9.26 seconds =========================================================================================

Then Build project followed by Upload to ESP.

ESP boot up ok

The output log, right after esp boot up:

* Executing task: C:\Users\Jorge\.platformio\penv\Scripts\platformio.exe device monitor --port COM2 

--- Terminal on COM2 | 115200 8-N-1
--- Available filters and text transformations: colorize, debug, default, direct, esp32_exception_decoder, hexlify, log2file, nocontrol, printable, send_on_enter, time
--- More details at https://bit.ly/pio-monitor-filters
--- Quit: Ctrl+C | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H
% Mounted SPIFFS used=4016 total=1318001
WiFi IP-Address is 192.168.1.94
Started sample libssh sshd on port 22
You can login as the user user with the password user

Open PuTTy -> New Session (putty terminal stays inactive after getting an error)

Checking ESP output log:

Guru Meditation Error: Core  1 panic'ed (Unhandled debug exception). 
Debug exception reason: Stack canary watchpoint triggered (loopTask) 
Core  1 register dump:
PC      : 0x40176cdd  PS      : 0x00060336  A0      : 0x800d6b44  A1      : 0x3ffb0120  
A2      : 0x3ffb02dc  A3      : 0x3ffb025c  A4      : 0x3ffb0b5c  A5      : 0x0000001f  
A6      : 0x00000000  A7      : 0x88212000  A8      : 0x00000000  A9      : 0x00000044  
A10     : 0x0000001f  A11     : 0x3ffb0320  A12     : 0x00000000  A13     : 0x0000ff00  
A14     : 0x000000ff  A15     : 0x0000001f  SAR     : 0x00000006  EXCCAUSE: 0x00000001  
EXCVADDR: 0x00000000  LBEG    : 0x40176ccc  LEND    : 0x40176ce4  LCOUNT  : 0x0000000d  


Backtrace: 0x40176cda:0x3ffb0120 0x400d6b41:0x3ffb0140 0x400d6f48:0x3ffb1020 0x400d5234:0x3ffb1040 0x400d52b1:0x3ffb1060 0x400dc8f9:0x3ffb1090 0x400dcd0d:0x3ffb10b0 0x400e1cde:0x3ffb1110 0x400e076e:0x3ffb1160 0x400e1616:0x3ffb11a0 0x400e1651:0x3ffb11c0 0x400e0cb9:0x3ffb1200 0x400d3302:0x3ffb1220 0x400d35bb:0x3ffb2260 0x400eaa59:0x3ffb2280




ELF file SHA256: 26f2a9a16a960768

Rebooting...
ets Jul 29 2019 12:21:46

rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0030,len:1184
load:0x40078000,len:13232
load:0x40080400,len:3028
entry 0x400805e4
% Mounted SPIFFS used=4016 total=1318001
WiFi IP-Address is 192.168.1.94
Started sample libssh sshd on port 22
You can login as the user user with the password user

At some point I had this in the logs but was not able to replicate:

***ERROR*** A stack overflow in task loopTask has been detected.


Backtrace: 0x40083795:0x3ffaff70 0x4008dac9:0x3ffaff90 0x40090f61:0x3ffaffb0 0x4008f67f:0x3ffb0030 0x4008dbd8:0x3ffb0060 0x4008db88:0x00000000 |<-CORRUPTED




ELF file SHA256: 26f2a9a16a960768

Rebooting...
ets Jul 29 2019 12:21:46

rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0030,len:1184
load:0x40078000,len:13232
load:0x40080400,len:3028
entry 0x400805e4
% Mounted SPIFFS used=4016 total=1318001
WiFi IP-Address is 192.168.1.94
Started sample libssh sshd on port 22
You can login as the user user with the password user
ssh_handle_key_exchange: Socket error: Socket is not connected
execution result: 1
ets Jul 29 2019 12:21:46

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions