Skip site navigation (1)Skip section navigation (2)
Date:      5 May 2002 05:38:27 -0000
From:      Faried Nawaz <fn@hungry.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        glen@hungry.com
Subject:   kern/37761: process exits but socket is still ESTABLISHED
Message-ID:  <20020505053827.434.qmail@homeworld.nilpotent.org>

next in thread | raw e-mail | index | archive | help

>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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020505053827.434.qmail>