From owner-freebsd-bugs Thu Jan 30 16:10:12 2003 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 867EF37B401 for ; Thu, 30 Jan 2003 16:10:09 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1B32743F43 for ; Thu, 30 Jan 2003 16:10:08 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.6/8.12.6) with ESMTP id h0V0A7NS025624 for ; Thu, 30 Jan 2003 16:10:07 -0800 (PST) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id h0V0A7fU025623; Thu, 30 Jan 2003 16:10:07 -0800 (PST) Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1C20937B401 for ; Thu, 30 Jan 2003 16:09:40 -0800 (PST) Received: from oecpc18.ucsd.edu (oecpc18.ucsd.edu [132.239.18.178]) by mx1.FreeBSD.org (Postfix) with ESMTP id A4D1643F3F for ; Thu, 30 Jan 2003 16:09:39 -0800 (PST) (envelope-from okumoto@oecpc18.ucsd.edu) Received: from oecpc18.ucsd.edu (localhost [127.0.0.1]) by oecpc18.ucsd.edu (8.12.3/8.12.3) with ESMTP id h0V09dBe031095 for ; Thu, 30 Jan 2003 16:09:39 -0800 (PST) (envelope-from okumoto@oecpc18.ucsd.edu) Received: (from okumoto@localhost) by oecpc18.ucsd.edu (8.12.3/8.12.3/Submit) id h0V09dgj031094; Thu, 30 Jan 2003 16:09:39 -0800 (PST) Message-Id: <200301310009.h0V09dgj031094@oecpc18.ucsd.edu> Date: Thu, 30 Jan 2003 16:09:39 -0800 (PST) From: Max Okumoto Reply-To: Max Okumoto To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: bin/47694: Inetd leaves some sockets open. Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 47694 >Category: bin >Synopsis: Inetd leaves some sockets open. >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Jan 30 16:10:07 PST 2003 >Closed-Date: >Last-Modified: >Originator: Max Okumoto >Release: FreeBSD 4.6.2-RELEASE-p2 i386 >Organization: >Environment: System: FreeBSD oec-server2.ucsd.edu 4.6.2-RELEASE-p2 FreeBSD 4.6.2-RELEASE-p2 #0: Sun Sep 22 19:24:16 PDT 2002 troot@oec-server2.ucsd.edu:/usr/obj/usr/src/sys/OEC_SERVER2 i386 University of Washington IMAP toolkit Version 2002a of IMAP toolkit Copyright 1988-2002 University of Washington >Description: Inetd is leaving file descriptors open when it execs the service binary. When enabling both comsat(biff) and imap on the machine, I found that when I restart inetd, a syslog message is generated that indicates that inetd can't reopen port 512(comsat). Looking at the output of sockstat will show same file descriptor open for all child imapd servers. >How-To-Repeat: Enable comsat and imaps Boot machine Connect to imap server run sockstat and grep for imapd and inetd. USER COMMAND PID FD PROTO LOCAL ADDRESS FOREIGN ADDRESS jlgibson imapd 63720 0 tcp4 132.239.8.82:993 199.106.117.70:64452 jlgibson imapd 63720 1 tcp4 132.239.8.82:993 199.106.117.70:64452 jlgibson imapd 63720 4 udp4 *:901 *:* jlgibson imapd 63720 11 udp4 *:512 *:* jlgibson imapd 63716 0 tcp4 132.239.8.82:993 199.106.117.70:64446 jlgibson imapd 63716 1 tcp4 132.239.8.82:993 199.106.117.70:64446 jlgibson imapd 63716 4 udp4 *:905 *:* jlgibson imapd 63716 11 udp4 *:512 *:* okumoto imapd 63710 0 tcp4 132.239.8.82:993 132.239.18.178:3870 okumoto imapd 63710 1 tcp4 132.239.8.82:993 132.239.18.178:3870 okumoto imapd 63710 4 udp4 *:913 *:* okumoto imapd 63710 11 udp4 *:512 *:* oconnor imapd 63671 0 tcp4 132.239.8.82:993 132.239.18.171:3069 oconnor imapd 63671 1 tcp4 132.239.8.82:993 132.239.18.171:3069 oconnor imapd 63671 4 udp4 *:931 *:* oconnor imapd 63671 11 udp4 *:512 *:* scottand imapd 62520 0 tcp4 132.239.8.82:993 132.239.8.27:4348 scottand imapd 62520 1 tcp4 132.239.8.82:993 132.239.8.27:4348 scottand imapd 62520 4 udp4 *:796 *:* ratcliff imapd 62493 0 tcp4 132.239.8.82:993 132.239.8.7:59425 ratcliff imapd 62493 1 tcp4 132.239.8.82:993 132.239.8.7:59425 ratcliff imapd 62493 4 udp4 *:829 *:* jpr imapd 62492 0 tcp4 132.239.8.82:993 132.239.8.7:59424 jpr imapd 62492 1 tcp4 132.239.8.82:993 132.239.8.7:59424 jpr imapd 62492 4 udp4 *:828 *:* root inetd 54260 4 tcp4 *:143 *:* root inetd 54260 6 tcp4 *:110 *:* root inetd 54260 7 tcp4 *:993 *:* root inetd 54260 8 tcp4 *:995 *:* root inetd 54260 11 udp4 *:512 *:* >Fix: >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message