Closed pmarcinkiew closed 6 years ago
I tried to start IoT.js test with WiFi. WiFi task during start of WiFi network very often causes crash of idle task. The backtrace is always the same.
The test was executed at pmarcinkiew/integration: https://github.com/pmarcinkiew/iotjs/commit/e22c8bc40ddc3fb1f7528d0542ab7c2fa40ad3d5
WiFi start causes crash of idle task:
TASH>> TASH>>wifi startsta ***************************************************************** * Samsung System LSI wifi application for t20 * ***************************************************************** Link call back handles registered - per default! Starting supplicant in foreground... 1262304011.974800: Successfully initialized wpa_supplicant 1262304015.068290: wl1: callling L2_packet_init: 1262304015.068290: wl1: Own MAC address: 28:6d:97:40:22:34 STA mode started successfully TASH>>wifi scan ***************************************************************** * Samsung System LSI wifi application for t20 * ***************************************************************** Link call back handles registered - per default! Successfully started scan...waiting for result! Scan Result - networks: BSSID RSSI SECURITY CH SSID 1) ae:5f:3e:ec:22:52 -41 [WPA2-PSK+AES] 6 SSID TASH>>wifi join SSID password ***************************************************************** * Samsung System LSI wifi application for t20 * ***************************************************************** Link call back handles registered - per default! Joining network SSID Security: wpa2_aes Passphrase: password 1262304057.918116: wl1: Authentication with ae:5f:3e:ec:22:52 timed out. slsi_mlme_wait_for_cfm: E: No cfm(0x210E) for req(0x200E) senderid=0xc006 slsi_mlme_wait_for_cfm: WARNING: at wireless/scsc/mlme.c:106 slsi_mlme_wait_for_cfm() Timeout - confirm 0x210e not received from chip slsi_sm_service_failed: scsc_wifibt: FATAL ERROR: Timed out while waiting for the cfm(0x210e) for req(0x200e) slsi_hip_block_bh: W: HIP state set to #SLSI_HIP_STATE_BLOCKED# mxmgmt_transport_set_error: mxmgmt_transport_set_error: I/O thread processing is suspended slsi_hip_block_bh: W: HIP state set to #SLSI_HIP_STATE_BLOCKED# slsi_mlme_disconnect: E: mlme_disconnect_cfm() ERROR slsi_disconnect: E: Disconnection returned with failure 1262304068.096696: wl1: CTRL-EVENT-DISCONNECTED bssid=ae:5f:3e:ec:22:52 reason=3 locally_generated=1 up_assert: Assertion failed at file:pm_update.c line: 372 task: Idle Task up_dumpstate: Current sp: 0207f110 up_dumpstate: User stack: up_dumpstate: base: 0207f164 up_dumpstate: size: 00000400 up_dumpstate: used: 00000000 up_dumpstate: User Stack up_stackdump: 0207f100: 00000000 040ca5a4 00000006 020841e0 00000000 040ca5a4 00000006 020841e0 up_stackdump: 0207f120: 800000d3 041431a4 00005a40 02025424 020254f8 02027140 02027154 040d4f78 up_stackdump: 0207f140: 02025424 02025424 020254f8 040cc470 0207f168 00068e98 00000002 00000000 up_stackdump: 0207f160: 020480ec 020a7554 00000000 00000000 00000010 80000000 0000dead 00000000 up_registerdump: current_regs is Null, up_assert(panic) was called directly. up_registerdump: SPSR_SVC: 60000153 CPSR : 600001d3 up_registerdump: SP_IRQ: 02023800 LR_IRQ: 600001d3 SPSR_IRQ : 60000153 up_registerdump: SP_ABT: 08201d81 LR_ABT: f2088f23 SPSR_ABT : 5000a128 up_registerdump: SP_UND: a656889a LR_UND: d04b681a SPSR_UND : 02041971 up_registerdump: R0: 0202701c 00000000 0001000a 0202701c 00000000 0202701c 00005418 02027154 up_registerdump: R8: 020270f4 02044ef0 00000000 00000000 200001d3 0207f0f0 040c9c68 040c9928 up_registerdump: CPSR: 60000153 up_taskdump: Idle Task: PID=0 Stack Used=0 of 0 up_taskdump: hpwork: PID=1 Stack Used=520 of 2028 up_taskdump: lpwork: PID=2 Stack Used=484 of 2028 up_taskdump: logm: PID=3 Stack Used=308 of 2028 up_taskdump: LWIP_TCP/IP: PID=4 Stack Used=288 of 4068 up_taskdump: tash: PID=6 Stack Used=1644 of 4076 up_taskdump: WPA Supplicant: PID=8 Stack Used=1760 of 4028 up_taskdump: WLAN Driver mxmgmt: PID=9 Stack Used=304 of 2044 up_taskdump: WPA Ctrl Iface FIFO: PID=10 Stack Used=436 of 2044 up_taskdump: Wi-Fi API monitor: PID=11 Stack Used=1028 of 2044
Move to TizenRT repository:
https://github.com/tadziopazur/TizenRT/issues/6
I tried to start IoT.js test with WiFi. WiFi task during start of WiFi network very often causes crash of idle task. The backtrace is always the same.
The test was executed at pmarcinkiew/integration: https://github.com/pmarcinkiew/iotjs/commit/e22c8bc40ddc3fb1f7528d0542ab7c2fa40ad3d5
WiFi start causes crash of idle task: