masayuki2009 edited a comment on pull request #2899:
URL: https://github.com/apache/incubator-nuttx/pull/2899#issuecomment-790352688
@Donny9 @xiaoxiang781216
Hmmm, it seems that the telnetd does not work after this change.
You can try lm3s6965-ek:discover with qemu.
```
nsh> renew eth0
nsh> ps
PID PRI POLICY TYPE NPX STATE EVENT SIGMASK STACK USED
FILLED COMMAND
0 0 FIFO Kthread N-- Ready 00000000 001024 001024
100.0%! Idle Task
1 224 RR Kthread --- Waiting Signal 00000000 002036 000236
11.5% hpwork
2 60 RR Kthread --- Waiting Signal 00000000 002036 000380
18.6% lpwork
3 100 RR Task --- Running 00000000 002036 001000
49.1% init
4 100 RR Task --- Waiting Semaphore 00000000 002012 000420
20.8% Telnet daemon 0x20006050
nsh> ifconfig
eth0 Link encap:Ethernet HWaddr 00:e0:de:ad:be:ef at UP
inet addr:10.0.2.15 DRaddr:10.0.2.2 Mask:255.255.255.0
IPv4 TCP UDP ICMP
Received 0002 0000 0002 0000
Dropped 0000 0000 0000 0000
IPv4 VHL: 0000 Frg: 0000
Checksum 0000 0000 0000 ----
TCP ACK: 0000 SYN: 0000
RST: 0000 0000
Type 0000 ---- ---- 0000
Sent 0002 0000 0002 0000
Rexmit ---- 0000 ---- ----
nsh> qemu: fatal: Lockup: can't escalate 3 to HardFault (current priority -1)
R00=00000000 R01=00000000 R02=40025000 R03=00000004
R04=00000000 R05=00000003 R06=ffffff6c R07=2000724c
R08=20006178 R09=00000064 R10=00000400 R11=00000001
R12=00000074 R13=ffffff50 R14=00000c7f R15=00000000
XPSR=00000003 ---- A handler
FPSCR: 00000000
Aborted (core dumped)
$ telnet localhost 10023
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
Connection closed by foreign host.
```
esp32-devkitc:wapi_smp has the similar issue.
```
nsh> wapi psk wlan0 wifi-test-24g 1
nsh> wapi essid wlan0 raspi3-g 1
nsh> renew wlan0
nsh> ps
PID CPU PRI POLICY TYPE NPX STATE EVENT SIGMASK STACK USED
FILLED COMMAND
0 0 0 FIFO Kthread N-- Assigned 00000000 002048 000912
44.5% CPU0 IDLE
1 1 0 FIFO Kthread N-- Running 00000000 002048 000608
29.6% CPU1 IDLE
3 --- 100 RR Kthread --- Waiting Signal 00000000 002128 000960
45.1% lpwork
4 1 100 RR Task --- Running 00000000 003152 001712
54.3% init
5 --- 223 RR Kthread --- Waiting Semaphore 00000000 002112 000848
40.1% rt_timer
6 --- 253 RR Kthread --- Waiting MQ empty 00000000 003664 001792
48.9% wifi
7 --- 100 RR Task --- Waiting Semaphore 00000000 002096 000640
30.5% Telnet daemon 0x3ffee6e0
nsh> ifconfig
wlan0 Link encap:Ethernet HWaddr fc:f5:c4:45:a8:9c at UP
inet addr:192.168.10.23 DRaddr:192.168.10.1 Mask:255.255.255.0
IPv4 TCP UDP ICMP
Received 000a 0000 000a 0000
Dropped 0000 0000 0000 0000
IPv4 VHL: 0000 Frg: 0000
Checksum 0000 0000 0000 ----
TCP ACK: 0000 SYN: 0000
RST: 0000 0000
Type 0000 ---- ---- 0000
Sent 0002 0000 0002 0000
Rexmit ---- 0000 ---- ----
nsh> [ 43.300000] up_assert: Assertion failed at file:socket/net_dup2.c
line: 91 task: Telnet daemon
[ 43.300000] xtensa_dumpstate: CPU1:
[ 43.300000] xtensa_registerdump: PC: 400d74e0 PS: 00060a20
[ 43.310000] xtensa_registerdump: A0: 800d7ec1 A1: 3fff3930 A2:
3ffb7d80 A3: 00000001
[ 43.320000] xtensa_registerdump: A4: 3f400e6f A5: 00000001 A6:
00000001 A7: 3ffb0248
[ 43.330000] xtensa_registerdump: A8: 800eddc8 A9: 3fff38b0 A10:
00000000 A11: 3f400b8c
[ 43.330000] xtensa_registerdump: A12: 3fff3920 A13: 3fff3900 A14:
00000008 A15: 3f400a2a
[ 43.340000] xtensa_registerdump: SAR: 0000001f CAUSE: 00000000 VADDR:
00000000
[ 43.350000] xtensa_registerdump: LBEG: 4000c46c LEND: 4000c477 LCNT:
00000000
[ 43.360000] xtensa_registerdump: TMP0: 00000000 TMP1: 00000000
```
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]