Ash + telnetd: telnet client hangs after exit
Alexander Kriegisch
Alexander at Kriegisch.name
Fri Oct 12 02:34:05 UTC 2007
BB 1.7.2 and many old versions down to 1.4.x, I don't know exactly.
Platform: mipsel
We have had this problem for months, maybe 1-2 years, with different BB
versions, but now I think it is time to report it:
On my embedded system there is BB running telnetd. The shell is ash. A
client logs in and works until he types "exit". After that the session
is terminated, but the telnet client hanngs waiting for - I don't know
what. I can reproduce it with several telnet clients. It does not happen
with Dropbear sshd, so I strongly assume it is a BB problem.
Interestingly, the session exits cleanly if I call "setconsole -r"
during the telnet session.
I have attached two sets of log files generated like this:
> strace -p 1186 -p 742 -f -ff -s 100 -o /ash-telnet-ok.log
PID 742 is telnetd, 1131/1186 are ash, respectively. The ash protocols
are just there for completeness, they are identical. The telnetd logs
differ, though.
Maybe somebody can find out what is wrong here. It might be a similar
case to "ash endless loop after ssh client is killed" (April 20-29,
2007), I don't know.
Regards
--
Alexander Kriegisch
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: ash-telnet-ok.log.742
Url: http://lists.busybox.net/pipermail/busybox/attachments/20071012/285decf4/attachment-0008.diff
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: ash-telnet-bad.log.742
Url: http://lists.busybox.net/pipermail/busybox/attachments/20071012/285decf4/attachment-0009.diff
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: ash-telnet-ok.log.1186
Url: http://lists.busybox.net/pipermail/busybox/attachments/20071012/285decf4/attachment-0010.diff
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: ash-telnet-bad.log.1131
Url: http://lists.busybox.net/pipermail/busybox/attachments/20071012/285decf4/attachment-0011.diff
More information about the busybox
mailing list