Bug 37761

Summary: process exits but socket is still ESTABLISHED
Product: Base System Reporter: fn <fn>
Component: kernAssignee: Andre Oppermann <andre>
Status: Closed FIXED    
Severity: Affects Only Me CC: glen
Priority: Normal    
Version: Unspecified   
Hardware: Any   
OS: Any   

Description fn 2002-05-05 06:40:02 UTC
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.

Fix: 

I wish I knew.
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.
Comment 1 Kris Kennaway freebsd_committer freebsd_triage 2003-07-14 12:20:52 UTC
Responsible Changed
From-To: freebsd-bugs->freebsd-net

Assign to net mailing list for evaluation
Comment 2 Andre Oppermann freebsd_committer freebsd_triage 2003-12-22 21:10:42 UTC
State Changed
From-To: open->feedback

Asking whether this is still a problem. 


Comment 3 Andre Oppermann freebsd_committer freebsd_triage 2003-12-22 21:10:42 UTC
Responsible Changed
From-To: freebsd-net->andre

Asking whether this is still a problem.
Comment 4 Andre Oppermann freebsd_committer freebsd_triage 2003-12-22 21:11:25 UTC
Faried,

do you still have this problem with FreeBSD 4.9 or 5.2?

Thanks
-- 
Andre
Comment 5 Faried Nawaz 2003-12-27 11:52:41 UTC
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.
Comment 6 Andre Oppermann freebsd_committer freebsd_triage 2003-12-27 14:08:51 UTC
State Changed
From-To: feedback->closed

Originator reports Problem doesn't exist in newer FreeBSD Versions.