Skip to content

***ERROR*** A stack overflow in task sys_evt has been detected #8902

@createskyblue

Description

@createskyblue

Board

ESP32 PICO V3-02

Device Description

On the self-made development board

Hardware Configuration

image

In esp32 pico v3-02, the SD0 and SD1 pins should be available to users. After reading the data sheet, it should not be connected to flash or psram. Please ignore the warning label in the schematic diagram above.

Version

latest master (checkout manually)

IDE Name

PlatfornIO

Operating System

Windows 10

Flash frequency

80MHz

PSRAM enabled

yes

Upload speed

921600

Description

Using Painless_ Mesh 1.5.0 library for Mesh networking experiments, while using serial port 0 to send and receive instructions. It has been found that when running the same code with different configuration files, the child nodes and main nodes are physically far away, it is easy to crash. But if the nodes are relatively close, the crash described below will not occur for a long time. Currently, we have not further identified the specific location of the error

使用Painless_Mesh-1.5.0库进行Mesh组网实验,同时使用串口0收发指令。发现当运行相同代码,不同配置文件的子节点和主节点物理较远的时候,容易发生崩溃。但是如果节点们比较近,则长时间都不会发生下面描述的崩溃。暂时没有进一步定位到错误的具体位置

Sketch

Unable to provide

Debug Message

禄 77 03 00 04 02 00 FF 84 FC   (I send instructions to serial port 0)
芦 w�����锟紻 
锟絯�����锟紻(Receive raw data from mesh network and forward it directly to serial port.)
w�����锟紻锟絯�����锟斤拷锟�(Receive raw data from mesh network and forward it directly to serial port.)
w�����锟斤拷0(Receive raw data from mesh network and forward it directly to serial port.)
禄 77 03 00 04 02 FF FF 74 BD
芦 w����锟斤拷锟斤拷
w����锟斤拷锟絃
w����锟斤拷锟�
锟絯����锟斤拷t
锟絯����锟斤拷tq
禄 77 03 00 04 02 FF FF 74 BD
芦 w����锟斤拷锟斤拷
w����锟斤拷t
锟絯����锟斤拷锟絃
w����锟斤拷tq
w����锟斤拷锟�
禄 77 03 00 04 02 FF FF 74 BD(Receive raw data from mesh network and forward it directly to serial port.)
芦 锟絯����锟斤拷锟斤拷(Receive raw data from mesh network and forward it directly to serial port.)
w����锟斤拷锟絃(Receive raw data from mesh network and forward it directly to serial port.)

(ps:Theoretically, it should need to receive data from the mesh network twice more, but unfortunately it crashed.)

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

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


Backtrace: 0x401142e6:0x3ffb4a40 0x40110efe:0x3ffb4a70 0x40110f64:0x3ffb4ab0 0x400836f6:0x3ffb4ad0 0x40083775:0x3ffb4af0 0x40113ce2:0x3ffb4b20 0x401139dc:0x3ffb4b50 0x401139fd:0x3ffb4b70 0x401135d2:0x3ffb4b90 0x4011397b:0x3ffb4c00 0x40083b09:0x3ffb4c50 0x40085da8:0x3ffb4c70 0x40083a65:0x3ffb4d30 0x4008d399:0x3ffb4d50 0x4009091d:0x3ffb4d70 0x4008f0dd:0x3ffb4df0 0x4008d4a8:
0x3ffb4e20 0x4008d458:0x3f40b683 |<-CORRUPTED




ELF file SHA256: 15683556465e6a0d

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

rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 271414342, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:1
load:0x3fff0030,len:1344
lo
ad:0x40078000,len:13964
load:0x40080400,len:3600
entry 0x400805f0

setLogLevel: ERROR | MESH_STATUS | CONNECTION | SYNC | COMMUNICATION | GENERAL | MSG_TYPES | REMOTE |
Guru Meditation Error: Core  0 panic'ed (Unhandled debug exception). 
Debug exception reason: Stack canary watchpoint triggered (sys_evt) 
Core  0 register dump:
PC      : 0x4009072f  PS      : 0x00060036  A0      : 0x8008efec  A1      : 0x3ffb4a40  
A2      : 0x3ffbf5d8  A3      : 0xb33fffff  A4      : 0x0000abab  A5      : 0x00060023  
A6      : 0x00060023  A7      : 0x0000cdcd  A8      : 0xb33fffff  A9      : 0xffffffff  
A10     : 0x3ffbf5c4  A11     : 0x00000001  A12     : 0x00060021  A13     : 0x80000000  
A14     : 0x007bf5d8  A15     : 0x003fffff  SAR     : 0x00000004  EXCCAUSE: 0x00000001  
EXCVADDR: 0x00000000  LBEG    : 0x4008b441  LEND    : 0x4008b451  LCOUNT  : 0xffffffff  


Backtrace: 0x4009072c:0x3ffb4a40 0x4008efe9:0x3ffb4a80 0x40
08d4a8:0x3ffb4ab0 0x4008d458:0xa5a5a5a5 |<-CORRUPTED




ELF file SHA256: 15683556465e6a0d

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

rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 271414342, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:1
load:0x3fff0030,len:1344
lo
ad:0x40078000,len:13964
load:0x40080400,len:3600
entry 0x400805f0

setLogLevel: ERROR | MESH_STATUS | CONNECTION | SYNC | COMMUNICATION | GENERAL | MSG_TYPES | REMOTE |
w����%锟絏锟斤拷
锟絯����%锟絏锟斤拷
锟絯����%锟絏u
禄 77 03 00 04 02 FF FF 74 BD
芦 	锟絯����锟斤拷锟斤拷
w����锟斤拷锟絃
w����锟斤拷锟�
锟絯����%锟絏q

锟絯����%锟絏m锟�
锟絯����%锟絏q

锟絯����%锟絏锟斤拷
锟絯����%锟絏u
禄 77 03 00 04 02 00 FF 84 FC
芦 	锟絯�����锟紻
锟絯�����锟紻
w�����锟斤拷锟�
w�����锟紻锟�
ets Jul 29 2019 12:21:46

rst:0x7 (TG0WDT_SYS_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 271414342, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:1
load:0x3fff0030,len:1344
load:0x40078
000,len:13964
load:0x40080400,len:3600
entry 0x400805f0

setLogLevel: ERROR | MESH_STATUS | CONNECTION | SYNC | COMMUNICATION | GENERAL | MSG_TYPES | REMOTE |

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

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


Backtrace: 0x401142e6:0x3ffb4a40 0x40110efe:0x3ffb4a70 0x40110f64:0x3ffb4ab0 0x400836f6:0x3ffb4ad0 0x40083775:0x3ffb4af0 0x40113ce2:0x3ffb4b20 0x401139dc:0x3ffb4b50 0x401139fd:0x3ffb4b70 0x401135d2:0x3ffb4b90 0x4011397b:0x3ffb4c00 0x40083b09:0x3ffb4c50 0x40085da8:0x3ffb4c70 0x40083a65:0x3ffb4d30 0x4008d399:0x3ffb4d50 0x4009091d:0x3ffb4d70 0x4008f0dd:0x3ffb4df0 0x4008d4a8:
0x3ffb4e20 0x4008d458:0x3f40b683 |<-CORRUPTED



Decoder:
START:
/Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/vfs/vfs.c:88
/Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/esp_system/startup.c:296
/Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/esp_system/startup.c:328
/Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/esp_system/port/arch/xtensa/debug_helpers.c:59
/Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/esp_system/port/arch/xtensa/debug_helpers.c:76
/Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/hal/esp32/include/hal/uart_ll.h:872
/Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/hal/esp32/include/hal/uart_ll.h:136
/Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/hal/esp32/include/hal/uart_ll.h:493
/Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/esp_system/port/brownout.c:86
/Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/hal/esp32/include/hal/uart_ll.h:120
/Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/esp_system/port/panic_handler.c:219
/Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/freertos/port/xtensa/xtensa_vectors.S:703
/Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/esp_system/panic.c:408
/Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/esp_system/esp_system.c:137
/Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/freertos/port/xtensa/port.c:407
/Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/freertos/tasks.c:3505
/Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/freertos/port/xtensa/portasm.S:436
/Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/freertos/port/xtensa/portasm.S:231
END

Other Steps to Reproduce

No response

I have checked existing issues, online documentation and the Troubleshooting Guide

  • I confirm I have checked existing issues, online documentation and Troubleshooting guide.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions