From owner-freebsd-questions Mon Mar 17 9:57:37 2003 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F404A37B404 for ; Mon, 17 Mar 2003 09:57:35 -0800 (PST) Received: from diana.northnetworks.ca (att-ws20.switchview.com [216.13.70.20]) by mx1.FreeBSD.org (Postfix) with ESMTP id 774B743FAF for ; Mon, 17 Mar 2003 09:57:34 -0800 (PST) (envelope-from iaccounts@northnetworks.ca) Received: from diana.northnetworks.ca (localhost.northnetworks.ca [127.0.0.1]) by diana.northnetworks.ca (8.12.8/8.11.6) with ESMTP id h2HHvVhN028717; Mon, 17 Mar 2003 12:57:31 -0500 (EST) (envelope-from iaccounts@northnetworks.ca) Received: from localhost (iaccounts@localhost) by diana.northnetworks.ca (8.12.8/8.12.8/Submit) with ESMTP id h2HHvVKU028714; Mon, 17 Mar 2003 12:57:31 -0500 (EST) X-Authentication-Warning: diana.northnetworks.ca: iaccounts owned process doing -bs Date: Mon, 17 Mar 2003 12:57:31 -0500 (EST) From: IAccounts To: Andrea Venturoli Cc: freebsd-questions@FreeBSD.ORG Subject: Re: bpf -> kernel panic In-Reply-To: <200303171750.h2HHo6Ku001382@soth.ventu> Message-ID: <20030317125600.G27870-100000@diana.northnetworks.ca> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > I have a FreeBSD machine that tended to hang in the recent past. After a few tests I managed to clearly isolate one > condition that causes this kernel panics. > > If I do a "tcpdump -l -i fxp0" I'm sure the machine will lock in less than 3 second. > The same happens (in a more or less short time) if I run ntop, snort or any other thing that opens a bpf. > There is a dhcp server running, which is isc version 3.0.1.r11_1 and, on startup, says: > > >Listening on BPF/fxp0/00:07:e9:0b:78:d9/192.168.101.0/24 > >Sending on BPF/fxp0/00:07:e9:0b:78:d9/192.168.101.0/24 > > So, basically one bpf seems to work. A second one is, however, almost sure death: I didn't have the chance to write > down the full exact message yet, but basically it's like "page fault while in kernel mode". > > uname -a gives: > > >FreeBSD xxx 4.7-RELEASE-p6 FreeBSD 4.7-RELEASE-p6 #1: Thu Feb 27 1 > >2:40:24 CET 2003 root@xxx:/usr/src/sys/compile/XXX i386 > > As it looks like you have compiled yourself a custom kernel, you didn't accidently set 'device bpf 1' did you? I think by default in 4.7 it's 4. Don't know if this will help, but it may be worth a look. Steve > Any hint on what I might try to solve this? > Has anyone had this problem before? > Any way to better debug this? > > bye & Thanks > av. > > P.S. In case it matters, the machine has two fxp interfaces. > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message