From owner-freebsd-bugs Sat May 4 22:40:14 2002 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 11FC837B41D for ; Sat, 4 May 2002 22:40:03 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g455e2P64075; Sat, 4 May 2002 22:40:02 -0700 (PDT) (envelope-from gnats) Received: from loops.nilpotent.org (loops.nilpotent.org [12.17.163.70]) by hub.freebsd.org (Postfix) with SMTP id CF46A37B41C for ; Sat, 4 May 2002 22:39:19 -0700 (PDT) Received: (qmail 74244 invoked from network); 5 May 2002 05:39:12 -0000 Received: from unknown (203.135.52.38) by loops.nilpotent.org with QMTP; 5 May 2002 05:39:12 -0000 Received: (qmail 435 invoked by uid 500); 5 May 2002 05:38:27 -0000 Message-Id: <20020505053827.434.qmail@homeworld.nilpotent.org> Date: 5 May 2002 05:38:27 -0000 From: Faried Nawaz Reply-To: Faried Nawaz To: FreeBSD-gnats-submit@FreeBSD.org Cc: glen@hungry.com X-Send-Pr-Version: 3.113 Subject: kern/37761: process exits but socket is still ESTABLISHED 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: 37761 >Category: kern >Synopsis: process exits but socket is still ESTABLISHED >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat May 04 22:40:02 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Faried Nawaz >Release: FreeBSD 4.5-RC i386 >Organization: Integral Domains >Environment: System: FreeBSD homeworld.nilpotent.org 4.5-RC FreeBSD 4.5-RC #1: Sun Jan 13 18:03:22 PKT 2002 fn@homeworld.nilpotent.org:/data-three/freebsd_src/sys/compile/homeworld i386 emacs 20.7 zenicb from http://web.nilpotent.org/software/elisp/ >Description: Running ZenICB in Emacs 20.x on FreeBSD 4.x somehow triggers a kernel bug whereby you can /quit out of ZenICB, exit your Emacs process, and the connection still shows up as "ESTABLISHED" in netstat's output. This doesn't happen with ZenICB on XEmacs, on FreeBSD. This doesn't happen with older Emacsen on FreeBSD 4.x, nor does it happen to Emacs 20.x on older FreeBSDs (2.2.x, 3.x, etc). I can't write this off as an Emacs bug because exiting Emacs still leaves a socket lying around in the "ESTABLISHED" state. This started with FreeBSD 4.2. >How-To-Repeat: download and unpack zenicb start emacs type M-x load-f RET /path/to/zenicb.el RET type M-x zenicb-select connect to evolve.icb.net, port 7326. no password required. type /quit to quit the session. exit emacs. type "sockstat | grep 7326" and you won't see the emacs process. type "ps auxww" and you won't see emacs. type "netstat -na|grep 7326" and you'll see the socket in the ESTABLISHED state. go back to the icb server, and you'll see your nick still idling there. >Fix: I wish I knew. >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message