Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 24 Dec 1998 19:28:57 -0600 (CST)
From:      toasty@dragondata.com
To:        FreeBSD-gnats-submit@FreeBSD.ORG
Subject:   bin/9188: telnet gets stuck in ttydrain()
Message-ID:  <199812250128.TAA20397@shell1.dragondata.com>

next in thread | raw e-mail | index | archive | help

>Number:         9188
>Category:       bin
>Synopsis:       telnet gets stuck in ttydrain()
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Dec 24 17:30:00 PST 1998
>Last-Modified:
>Originator:     Kevin Day
>Organization:
DragonData Internet Services, Inc.
>Release:        FreeBSD 3.0-RELEASE i386
>Environment:

3.0-RELEASE system

>Description:

I found a telnet process sucking 100% cpu, after a user reported it.

ktracing it showed:


 11573 telnet   CALL  write(0x1,0x8058c20,0x174)
 11573 telnet   RET   write -1 errno 5 Input/output error
 11573 telnet   CALL  ioctl(0,TIOCSETAW,0xefbfd8c8)
 11573 telnet   RET   ioctl -1 errno 9 Bad file descriptor
 11573 telnet   CALL  write(0x1,0x8058c20,0x174)
 11573 telnet   RET   write -1 errno 5 Input/output error
 11573 telnet   CALL  ioctl(0,TIOCSETAW,0xefbfd8c8)
 11573 telnet   RET   ioctl -1 errno 9 Bad file descriptor
 11573 telnet   CALL  write(0x1,0x8058c20,0x174)
 11573 telnet   RET   write -1 errno 5 Input/output error
 11573 telnet   CALL  ioctl(0,TIOCSETAW,0xefbfd8c8)
 11573 telnet   RET   ioctl -1 errno 9 Bad file descriptor

Which appears to be in sys_bsd.c:ttydrain

Perhaps that while loop should check for fatal errors rather than retrying
everything? Or is this a case that it should never have gotten this far with
the FD being closed?

The user, without waiting for me, killed the process, so I wasn't able
to get any more debugging.

>How-To-Repeat:

>Fix:
	

>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199812250128.TAA20397>