From owner-freebsd-bugs Sat Sep 7 0:10:11 2002 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6CFED37B401 for ; Sat, 7 Sep 2002 00:10:04 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id AD40943E6E for ; Sat, 7 Sep 2002 00:10:03 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.4/8.12.4) with ESMTP id g877A3JU030710 for ; Sat, 7 Sep 2002 00:10:03 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.4/8.12.4/Submit) id g877A3OJ030709; Sat, 7 Sep 2002 00:10:03 -0700 (PDT) Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 11B4137B400 for ; 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 ; 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 ; 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 To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-1.0 Subject: kern/42498: tcp connections not shown with netstat, tcp channels cease working after some days 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: 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: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Sep 07 00:10:03 PDT 2002 >Closed-Date: >Last-Modified: >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: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message