From owner-freebsd-pf@FreeBSD.ORG Thu Jan 26 15:35:48 2012 Return-Path: Delivered-To: freebsd-pf@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 18D6E106564A for ; Thu, 26 Jan 2012 15:35:48 +0000 (UTC) (envelope-from ermal.luci@gmail.com) Received: from mail-gx0-f182.google.com (mail-gx0-f182.google.com [209.85.161.182]) by mx1.freebsd.org (Postfix) with ESMTP id C6F908FC0C for ; Thu, 26 Jan 2012 15:35:47 +0000 (UTC) Received: by ggnq2 with SMTP id q2so364991ggn.13 for ; Thu, 26 Jan 2012 07:35:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=aLfqKlG7Naof0TL/63ctdTkvRtPN1BBy/UVZRF2bacM=; b=FZOVuyuVNAsDTJq4wrjmMqx+GL98YnRoXtbN5Qc3n1VPhpRLiiYFKVTqyciI+mQq9N Tkw8JU6vZReqjzAFd5GG6JLFgYs8r4t6c4gmnpz7dKpNimBjBiJBdW4g0/Cs+VJU/tLY OyXtz6UvjCVoQy9o99SY8m+O+Xhf0I3+WqNBs= MIME-Version: 1.0 Received: by 10.50.173.98 with SMTP id bj2mr3021501igc.27.1327592145471; Thu, 26 Jan 2012 07:35:45 -0800 (PST) Sender: ermal.luci@gmail.com Received: by 10.231.134.198 with HTTP; Thu, 26 Jan 2012 07:35:45 -0800 (PST) In-Reply-To: <201201261638.26599.d.sieborger@ru.ac.za> References: <201201261638.26599.d.sieborger@ru.ac.za> Date: Thu, 26 Jan 2012 16:35:45 +0100 X-Google-Sender-Auth: w5NXlFSnpH7aa6NewRLeOVoWlB8 Message-ID: From: =?ISO-8859-1?Q?Ermal_Lu=E7i?= To: =?ISO-8859-1?Q?David_Sieb=F6rger?= Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-pf@freebsd.org Subject: Re: pf crashes in pfr_update_stats() X-BeenThere: freebsd-pf@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Technical discussion and general questions about packet filter \(pf\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Jan 2012 15:35:48 -0000 On Thu, Jan 26, 2012 at 3:38 PM, David Sieb=F6rger w= rote: > Hi, > > I have a pair of FreeBSD 9.0-RELEASE firewalls which are crashing > repeatedly. =A0I've been able to connect to one of them with remote kgdb > after it crashed (see kgdb session attached), but I haven't been able to > get to the bottom of what's wrong. =A0Is anyone able to shed more light o= n > this? > > The first problem that I see is that the kt argument to > pfr_update_stats() is null, so the kernel panics as soon as that's > dereferenced. > > Where pfr_update_stats() is called from pf_test(), kgdb tells me that > "Variable "tr" is not available." =A0(Is that because of a gcc > optimisation?) =A0But, tr ought to equal r in this instance, and r is > available, so I looked at r. =A0r->dst.addr.p.tbl is indeed null. > I have seen this in 8.x versions also. Are you doing frequent updating of tables or loading larde lists of addresses in them? > Does anyone have any theories about why that could be the case, or > anything else that I could do to debug this? =A0I can provide more > configuration information if needed. > > > -- > David Sieb=F6rger > System Administrator, IT Division, Rhodes University > > _______________________________________________ > freebsd-pf@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-pf > To unsubscribe, send any mail to "freebsd-pf-unsubscribe@freebsd.org" > --=20 Ermal