From fn@hungry.com  Sat May  4 22:39:20 2002
Return-Path: <fn@hungry.com>
Received: from loops.nilpotent.org (loops.nilpotent.org [12.17.163.70])
	by hub.freebsd.org (Postfix) with SMTP id CF46A37B41C
	for <FreeBSD-gnats-submit@freebsd.org>; 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 <fn@hungry.com>
Reply-To: Faried Nawaz <fn@hungry.com>
To: FreeBSD-gnats-submit@freebsd.org
Cc: glen@hungry.com
Subject: process exits but socket is still ESTABLISHED
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         37761
>Category:       kern
>Synopsis:       process exits but socket is still ESTABLISHED
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    andre
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat May 04 22:40:02 PDT 2002
>Closed-Date:    Sat Dec 27 06:09:45 PST 2003
>Last-Modified:  Sat Dec 27 06:09:45 PST 2003
>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:
Responsible-Changed-From-To: freebsd-bugs->freebsd-net 
Responsible-Changed-By: kris 
Responsible-Changed-When: Mon Jul 14 04:20:52 PDT 2003 
Responsible-Changed-Why:  
Assign to net mailing list for evaluation 

http://www.freebsd.org/cgi/query-pr.cgi?pr=37761 
State-Changed-From-To: open->feedback 
State-Changed-By: andre 
State-Changed-When: Mon Dec 22 13:10:42 PST 2003 
State-Changed-Why:  
Asking whether this is still a problem. 


Responsible-Changed-From-To: freebsd-net->andre 
Responsible-Changed-By: andre 
Responsible-Changed-When: Mon Dec 22 13:10:42 PST 2003 
Responsible-Changed-Why:  
Asking whether this is still a problem. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=37761 

From: Andre Oppermann <andre@freebsd.org>
To: freebsd-gnats-submit@FreeBSD.org, fn@hungry.com
Cc:  
Subject: Re: kern/37761: process exits but socket is still ESTABLISHED
Date: Mon, 22 Dec 2003 22:11:25 +0100

 Faried,
 
 do you still have this problem with FreeBSD 4.9 or 5.2?
 
 Thanks
 -- 
 Andre
 

From: Faried Nawaz <fn@hungry.org>
To: Andre Oppermann <andre@freebsd.org>
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: kern/37761: process exits but socket is still ESTABLISHED
Date: Sat, 27 Dec 2003 16:52:41 +0500

 Andre Oppermann <andre@freebsd.org> writes:
 
   do you still have this problem with FreeBSD 4.9 or 5.2?
 
 Apparently not.  I just tested it on a 4.9-RELEASE system with emacs 20.7.1,
 and on a 4.8-RC system (built in early March 2003) with emacs 21.1.1, and it
 worked fine.  Many of my users stopped using zenicb with emacs when the
 problem first showed up, so I don't have a fix on when it was fixed.
 
 
 Faried.
State-Changed-From-To: feedback->closed 
State-Changed-By: andre 
State-Changed-When: Sat Dec 27 06:08:51 PST 2003 
State-Changed-Why:  
Originator reports Problem doesn't exist in newer FreeBSD Versions. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=37761 
>Unformatted:
