From owner-freebsd-bugs Thu Dec 24 17:30:15 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id RAA17234 for freebsd-bugs-outgoing; Thu, 24 Dec 1998 17:30:15 -0800 (PST) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id RAA17222 for ; Thu, 24 Dec 1998 17:30:11 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id RAA18342; Thu, 24 Dec 1998 17:30:01 -0800 (PST) Received: from shell1.dragondata.com (shell1.dragondata.com [204.137.237.8]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id RAA17108 for ; Thu, 24 Dec 1998 17:29:13 -0800 (PST) (envelope-from toasty@shell1.dragondata.com) Received: (from root@localhost) by shell1.dragondata.com (8.8.8/8.8.8) id TAA20397; Thu, 24 Dec 1998 19:28:57 -0600 (CST) (envelope-from toasty) Message-Id: <199812250128.TAA20397@shell1.dragondata.com> Date: Thu, 24 Dec 1998 19:28:57 -0600 (CST) From: toasty@dragondata.com Reply-To: toasty@dragondata.com To: FreeBSD-gnats-submit@FreeBSD.ORG X-Send-Pr-Version: 3.2 Subject: bin/9188: telnet gets stuck in ttydrain() Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >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