From nobody@FreeBSD.org  Sat Sep  7 00:06:26 2002
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 11B4137B400
	for <freebsd-gnats-submit@FreeBSD.org>; Sat,  7 Sep 2002 00:06:26 -0700 (PDT)
Received: from www.freebsd.org (www.FreeBSD.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id ABD0F43E72
	for <freebsd-gnats-submit@FreeBSD.org>; Sat,  7 Sep 2002 00:06:25 -0700 (PDT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.12.4/8.12.4) with ESMTP id g8776OOT053495
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 7 Sep 2002 00:06:24 -0700 (PDT)
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.12.4/8.12.4/Submit) id g8776OOQ053494;
	Sat, 7 Sep 2002 00:06:24 -0700 (PDT)
Message-Id: <200209070706.g8776OOQ053494@www.freebsd.org>
Date: Sat, 7 Sep 2002 00:06:24 -0700 (PDT)
From: Michael Meiszl <michael@meiszl.de>
To: freebsd-gnats-submit@FreeBSD.org
Subject: tcp connections not shown with netstat, tcp channels cease working after some days
X-Send-Pr-Version: www-1.0

>Number:         42498
>Category:       kern
>Synopsis:       tcp connections not shown with netstat, tcp channels cease working after some days
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Sep 07 00:10:03 PDT 2002
>Closed-Date:    Sat Sep 07 09:25:15 PDT 2002
>Last-Modified:  Sat Sep 07 09:25:15 PDT 2002
>Originator:     Michael Meiszl
>Release:        4.6-stable (cvsup 9/7/02)
>Organization:
>Environment:
FreeBSD Proxy.Meiszl.De 4.7-PRERELEASE FreeBSD 4.7-PRERELEASE #0: Sat Sep  7 08:
21:58 CEST 2002     mam@Proxy.Meiszl.De:/usr/src/sys/compile/MAMSMP  i386   
>Description:
Some three or four weeks ago, the phenomen occured.
The box was not able anymore to establish a tcp channel to the outside world. IP and UDP is working fine, but TCP won't go anymore. Rebooting the system seems to cure the problem, but after two or three days it happened again.
There are no errors or warnings, the sessions simply hang (no timeout!).
The only thing I've discovered so far:
netstat does not show up any tcp ports anymore. Look at this:
Proxy:root:/home/mam#netstat
Active Internet connections
Proto Recv-Q Send-Q  Local Address          Foreign Address        (state)
udp4       0      0  proxy.netbios-dgm      *.*
udp4       0      0  proxy.netbios-ns       *.*
udp4       0      0  localhost.ntp          *.*
udp4       0      0  proxy.ntp              *.*
Active UNIX domain sockets
Address  Type   Recv-Q Send-Q    Inode     Conn     Refs  Nextref Addr
cd97ce60 dgram       0      0        0 cd95df00        0 cd97cdc0
cd97cdc0 dgram       0      0        0 cd95df00        0 cd97cf00
cd97cf00 dgram       0      0        0 cd95df00        0        0
cd95df00 dgram       0      0 cd9587c0        0 cd97ce60        0 /var/run/log

This is done from an rlogin session! So, where is that channel???

Today I've tried a new kernel, GENERIC and LINT without SMP. Nothing changed :-(

The system was once installed with 2.24 (I guess, it's running for over three years) and cvsup-s STABLE every week. First notice of the problem was shortly after the first 4.6 fixes.
      
>How-To-Repeat:
Just wait a few days.
I suspect, the kernel runs out of buffers or something. Once reaching a certain limit, it won't create any more sockets for TCP. Applications are blocked and put to sleep.

>Fix:
Reboot (temporary fix)
>Release-Note:
>Audit-Trail:

From: "Michael A. Meiszl" <Michael@Meiszl.De>
To: <freebsd-gnats-submit@FreeBSD.org>
Cc:  
Subject: Re: kern/42498: tcp connections not shown with netstat, tcp channels cease working after some days
Date: Sat, 7 Sep 2002 10:22:21 +0200

 in the mean time i've found the culprit:
 make installworld does not update certain binaries anymore.
 my "netstat" was from Aug 24th, and so are many others :-(
 running "make install" from the /usr/src directory works ok, but "make
 installworld" leaves out some programs.
 So, my system is not in a valid state, cancel the bug-report.
 
 (but I should create a new one titled "why does make installworld work
 anymore" ?)
 
 MAM
 
State-Changed-From-To: open->closed 
State-Changed-By: bmah 
State-Changed-When: Sat Sep 7 09:24:57 PDT 2002 
State-Changed-Why:  
Closed by submitter request. 

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