Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 21 May 2002 10:21:11 +0300
From:      "Vladislav V. Zhuk" <admin@dru.dn.ua>
To:        David Malone <dwmalone@maths.tcd.ie>
Cc:        freebsd-bugs@FreeBSD.ORG
Subject:   Re: trafstat -> fatal trap 12 on FreeBSD 4.6-RC
Message-ID:  <20020521072111.GA1880@dru.dn.ua>
In-Reply-To: <20020520200313.GA61458@walton.maths.tcd.ie>
References:  <20020520112454.GA725@dru.dn.ua> <20020520200313.GA61458@walton.maths.tcd.ie>

next in thread | previous in thread | raw e-mail | index | archive | help
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




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