淘先锋技术网

首页 1 2 3 4 5 6 7

log:

[17:42:41.320]收←◆[TRAN]OpenDataBusRequest ok
[TRAN]Trans Srv Recv Data ret 0. 
[TRAN]TransDelSessionConnById: channelId=2
W (51106) wifi:<ba-add>idx:1 (ifx:0, 22:54:44:01:5b:a1), tid:3, ssn:0, winSize:64

[17:42:41.429]收←◆Guru Meditation Error: Core  0 panic'ed (LoadProhibited). Exception was unhandled.

Core  0 register dump:
PC      : 0x40240897  PS      : 0x00060030  A0      : 0x80240763  A1      : 0x3fffd580  
A2      : 0x3fffd594  A3      : 0x00000000  A4      : 0x3fffd58c  A5      : 0x00000000  
A6      : 0x3fffd58c  A7      : 0x3fffd580  A8      : 0x80208335  A9      : 0x3fffd4d0  
A10     : 0xff0a0000  A11     : 0xff0a0000  A12     : 0x00000000  A13     : 0x00000000  
A14     : 0x00000000  A15     : 0x3fffd4d0  SAR     : 0x00000010  EXCCAUSE: 0x0000001c  
EXCVADDR: 0x00000004  LBEG    : 0x4008b605  LEND    : 0x4008b627  LCOUNT  : 0x00000000  


Backtrace:0x40240894:0x3fffd5800 x40240760:0x3fffd5c0 0x4023ec61:0x3fffd6a0 0x4023f415:0x3fffd6e0 0x400d1d04:0x3fffd8c0 0x4009197d:0x3fffd8e0 

在device/soc/espressif/esp32/freertos_sdk/application/build目录下找到文件uart_echo.elf

根据backtrace查看代码crash位置:

addr2line -e uart_echo.elf -a -f 0x40240894:0x3fffd5800 x40240760:0x3fffd5c0 0x4023ec61:0x3fffd6a0 0x4023f415:0x3fffd6e0 0x400d1d04:0x3fffd8c0 0x4009197d:0x3fffd8e0

xxx@kaihong-build-server:/home/xxx/esp32_wifi/device/soc/espressif/esp32/freertos_sdk/application/build$ addr2line -e uart_echo.elf -a -f 0x40240894:0x3fffd5800 x40240760:0x3fffd5c0 0x4023ec61:0x3fffd6a0 0x4023f415:0x3fffd6e0 0x400d1d04:0x3fffd8c0 0x4009197d:0x3fffd8e0 
0x40240894
GetSystemAbilityById
/home/openharmony/esp32_wifi/out/esp32_devkitc_v4/esp32_lighting_loop_ctrl/../../../foundation/communication/ipc/ipc/test/rpc/samgr/rpc_mini_samgr.c:79
0x00000000
??
??:0
0x4023ec61
FindOrNewProxy
/home/openharmony/esp32_wifi/out/esp32_devkitc_v4/esp32_lighting_loop_ctrl/../../../foundation/communication/ipc/services/dbinder/c/src/dbinder_service.c:508
0x4023f415
OnRemoteInvokerMessage
/home/openharmony/esp32_wifi/out/esp32_devkitc_v4/esp32_lighting_loop_ctrl/../../../foundation/communication/ipc/services/dbinder/c/src/dbinder_service.c:731
0x400d1d04
pthread_task_func
/home/openharmony/esp32_wifi/device/soc/espressif/esp32/freertos_sdk/components/pthread/pthread.c:195 (discriminator 15)
0x4009197d
vPortTaskWrapper
/home/openharmony/esp32_wifi/device/soc/espressif/esp32/freertos_sdk/components/freertos/port/xtensa/port.c:131

由此可以确定出错位置是在rpc_mini_samgr.c的GetSystemAbilityById函数