SnapDragonfly / SnapAirUnit

SnapAirUnit aims to provide an basic kit connecting open-source flight controller and snap/python programming language.
GNU General Public License v3.0
1 stars 2 forks source link

Crash when NULL character is received from debug tool #47

Closed lida2003 closed 1 year ago

lida2003 commented 1 year ago

Issue: debug tool send "sdk?" commands, cause FM crashed. Version: APP(0.1.a710b9a-dirty) Logs: see below

SnapAirUnit> sdk?
I (11789) sau: Version: SDK(v5.0-rc1-2-g7f4bcc3695) APP(0.1.a710b9a-dirty)

.... bla ... bla...bla
I (3480) esp_netif_handlers: sta ip: 192.168.78.229, mask: 255.255.255.0, gw: 192.168.78.1
I (3480) sta: got ip:192.168.78.229
I (3480) sta: connected to ap SSID:AutoLab password:68686868
I (3500) http: Starting HTTP Server
I (6660) tel: tello_protocol_parse 1 bytes
I (6660) tel: 00
I (6660) tel: argc(0) commands(9)
Guru Meditation Error: Core  0 panic'ed (LoadProhibited). Exception was unhandled.

Core  0 register dump:
PC      : 0x4000127a  PS      : 0x00060530  A0      : 0x800db000  A1      : 0x3ffd9d40
A2      : 0x3ffbe088  A3      : 0x00000000  A4      : 0x3f4055d8  A5      : 0x00001a04
A6      : 0x3f405578  A7      : 0x00000000  A8      : 0x00000062  A9      : 0x3ffd9cd0
A10     : 0x401a79a4  A11     : 0x3f405578  A12     : 0x3f4055d8  A13     : 0x3ffd9d30
0x401a79a4: vprintf at /builds/idf/crosstool-NG/.build/xtensa-esp32-elf/src/newlib/newlib/libc/stdio/vprintf.c:30

A14     : 0x3ffd9d10  A15     : 0x0000000c  SAR     : 0x00000004  EXCCAUSE: 0x0000001c
EXCVADDR: 0x00000000  LBEG    : 0x400014fd  LEND    : 0x4000150d  LCOUNT  : 0xfffffffe

Backtrace: 0x40001277:0x3ffd9d40 0x400daffd:0x3ffd9d50 0x400db121:0x3ffd9dd0 0x400dab48:0x3ffd9df0 0x400959e9:0x3ffd9ee0
0x400daffd: tello_protocol_parse at /home/daniel/Work/SnapAirUnit/build/../main/tello_protocol.c:77

0x400db121: udp_handle_tello_protocol at /home/daniel/Work/SnapAirUnit/build/../main/tello_protocol.c:137

0x400dab48: udp_server_task at /home/daniel/Work/SnapAirUnit/build/../main/udp_server.c:206

0x400959e9: vPortTaskWrapper at /home/daniel/Work/esp-idf-v5.0/components/freertos/FreeRTOS-Kernel/portable/xtensa/port.c:151

ELF file SHA256: 2bd39ed5003e5d58

Rebooting...
ets Jun  8 2016 00:22:57

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
lida2003 commented 1 year ago

debug tool issue, users will NOT met this situation. BUT a precation is need.