From owner-freebsd-bugs Tue May 21 0:22:48 2002 Delivered-To: freebsd-bugs@freebsd.org Received: from relay2.skif.net (ns2.skif.net [195.58.224.33]) by hub.freebsd.org (Postfix) with ESMTP id A476537B409 for ; Tue, 21 May 2002 00:22:42 -0700 (PDT) Received: from dru.dn.ua (dru.skif.net [195.58.224.122]) by relay2.skif.net (8.12.1/8.12.1) with ESMTP id g4L7MbNC022931 for ; Tue, 21 May 2002 10:22:38 +0300 (EEST) Received: (from admin@localhost) by dru.dn.ua (8.12.3/8.12.3) id g4L7LBBa003854; Tue, 21 May 2002 10:21:11 +0300 (EEST) (envelope-from admin) Date: Tue, 21 May 2002 10:21:11 +0300 From: "Vladislav V. Zhuk" To: David Malone Cc: freebsd-bugs@FreeBSD.ORG Subject: Re: trafstat -> fatal trap 12 on FreeBSD 4.6-RC Message-ID: <20020521072111.GA1880@dru.dn.ua> References: <20020520112454.GA725@dru.dn.ua> <20020520200313.GA61458@walton.maths.tcd.ie> Mime-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline In-Reply-To: <20020520200313.GA61458@walton.maths.tcd.ie> User-Agent: Mutt/1.3.27i 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 On Mon, May 20, 2002 at 09:03:13PM +0100, David Malone wrote: > > trafstat from trafd v3.0.1 or 4.0 bring to trap 12 > > > > How I can fix this? > > Several people complained of a problem like this after 4.5 > was released. Recompiling the kernel module from the port > fixed the problem. What kernel module??? I'm using bpft-4.0 and don't found any mention about kernel module from sources. Dmitry Frolov (2:5000/104.11@FidoNet) investigated this trouble and suggest this patch: --- src/sys/kern/uipc_socket2.c.org Mon May 20 12:21:48 2002 +++ src/sys/kern/uipc_socket2.c Mon May 20 13:15:30 2002 @@ -210,7 +210,8 @@ so->so_state |= SS_COMP; head->so_qlen++; } else { - if (head->so_incqlen >= head->so_qlimit) { + if (! TAILQ_EMPTY(&head->so_incomp) + && head->so_incqlen >= head->so_qlimit) { struct socket *sp; sp = TAILQ_FIRST(&head->so_incomp); (void) soabort(sp); -- Vladislav V. Zhuk (06267)3-60-03 admin@dru.dn.ua 2:465/197@FidoNet.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message