From owner-freebsd-pf@FreeBSD.ORG Thu Jun 30 20:21:05 2011 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 A73C7106564A for ; Thu, 30 Jun 2011 20:21:05 +0000 (UTC) (envelope-from espartano.mail@gmail.com) Received: from mail-vw0-f54.google.com (mail-vw0-f54.google.com [209.85.212.54]) by mx1.freebsd.org (Postfix) with ESMTP id 6845A8FC0A for ; Thu, 30 Jun 2011 20:21:05 +0000 (UTC) Received: by vws18 with SMTP id 18so2646076vws.13 for ; Thu, 30 Jun 2011 13:21:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=HdpvHz0unyHdMUzqnM9SYFM+TpJGhYohfI9WBnNE3wU=; b=RLIvVC266NllRx5ulVcH+2pv7d3Tvd6v4WDPGcnB3UAtzAZP7IfOKO6gUH+NtI2y1T xAx2HJTmtWP0vN++VD+decvZkYYXww/UZB57RlTGO+fH3xdfHgUFPLvvdKupzKTG9NC4 S6+IxT+jP/Pqo7BUYX4LHr7Hqwo3htSFipJJ8= MIME-Version: 1.0 Received: by 10.52.178.234 with SMTP id db10mr3220070vdc.297.1309465264849; Thu, 30 Jun 2011 13:21:04 -0700 (PDT) Received: by 10.52.183.137 with HTTP; Thu, 30 Jun 2011 13:21:04 -0700 (PDT) In-Reply-To: <4E09F7F9.3080608@my.gd> References: <4E099A36.7000104@my.gd> <4E09F7F9.3080608@my.gd> Date: Thu, 30 Jun 2011 15:21:04 -0500 Message-ID: From: Espartano To: Damien Fleuriot Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-pf@freebsd.org Subject: Re: Reboot after start pf on ALIX board 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, 30 Jun 2011 20:21:05 -0000 > Well, you want to try things in this order: > > > 1/ rebuild a kernel without VIMAGE and try again, while you're at it > enable debug options like the KDTRACE hooks and such. > > makeoptions =A0 =A0 DEBUG=3D-g =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0# Build ker= nel with gdb(1) debug > symbols > options =A0 =A0 =A0 =A0 KDB =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 # Ker= nel debugger related code > options =A0 =A0 =A0 =A0 KDTRACE_FRAME =A0 =A0 =A0 =A0 =A0 # Ensure frames= are compiled in > options =A0 =A0 =A0 =A0 KDTRACE_HOOKS =A0 =A0 =A0 =A0 =A0 # Kernel DTrace= hooks > > Ok I re-builded my NanoBSD image without options VIMAGE and the system now is very stable, when pf is activated the system doesn't reboot. > > 2/ enable kernel crash dumps, reproduce problem, obtain a dump for analys= is. > I have been tried to get kernel file dump since 2 days ago to send it you but when I try to compile the new kernel, with options vimage and the others options that you had been mentioned, KDB KDTRACE_FRAME and KDTRACE_HOOKS, I get this error in the build kernel log file: /usr/src/sys/i386/conf/ZROUTER: unknown option "KDTRACE_FRAME" Searching a little into FreeBSD handbook I found this: ######### HANDBOOK NOTE ######### Note: Users of the AMD64 architecture will want to add the following line to their kernel configuration file: options KDTRACE_FRAME This option provides support for the FBT feature. DTrace will work without this option; however, there will be limited support for function boundary tracing. ######### END HANDBOOK NOTE ######### However the alix board processor is not AMD64 based, it is a x86 processor based, 32 bits, Now my question is: is enough good for you only have the next options enabled: makeoptions DEBUG=3D-g options KDB # Kernel debugger related code options KDB_TRACE # Print a stack trace for a panic options KDTRACE_HOOKS # Kernel DTrace hooks options DDB_CTF Thanks a lot.