From owner-freebsd-ipfw@FreeBSD.ORG Sun Jun 27 18:30:05 2010 Return-Path: Delivered-To: freebsd-ipfw@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 044DF106564A for ; Sun, 27 Jun 2010 18:30:05 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id E26008FC12 for ; Sun, 27 Jun 2010 18:30:04 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o5RIU40W093840 for ; Sun, 27 Jun 2010 18:30:04 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o5RIU4vC093836; Sun, 27 Jun 2010 18:30:04 GMT (envelope-from gnats) Date: Sun, 27 Jun 2010 18:30:04 GMT Message-Id: <201006271830.o5RIU4vC093836@freefall.freebsd.org> To: freebsd-ipfw@FreeBSD.org From: Shant Kassardjian Cc: Subject: RE: amd64/148157: IPFW in kernel nat BUG found in FreeBSD 8.1-PRERELEASE X-BeenThere: freebsd-ipfw@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Shant Kassardjian List-Id: IPFW Technical Discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Jun 2010 18:30:05 -0000 The following reply was made to PR amd64/148157; it has been noted by GNATS. From: Shant Kassardjian To: Cc: Subject: RE: amd64/148157: IPFW in kernel nat BUG found in FreeBSD 8.1-PRERELEASE Date: Sun, 27 Jun 2010 18:25:25 +0000 --_43033f25-eecb-4513-8fa9-20d8fad19493_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable > Date: Sun=2C 27 Jun 2010 00:04:16 -0700 > Subject: Re: amd64/148157: IPFW in kernel nat BUG found in FreeBSD 8.1-P= RERELEASE > From: yanefbsd@gmail.com > To: pookme@hotmail.com > CC: freebsd-gnats-submit@freebsd.org >=20 > Hi Shant=2C > Please bottom post from here on out. >=20 > On Sat=2C Jun 26=2C 2010 at 11:47 PM=2C Shant Kassardjian wrote: > > Hi Garrett=2C > > > > > > I just tried to perform a kernel dump with dumpdev=3D"YES" and had no l= uck=2C I > > keep getting: >=20 > dumpdev=3D"" always appears to fail to me as well (contrary to > what others have claimed). Try doing the following after booting up: >=20 > dumpon `awk '$3 =3D=3D swap { print $1 }'` >=20 > Then you'll be able to reproduce the problem and grab the resulting > kernel core dump. Hi Garrett=2C I still can't get it to dump. Perhaps it's because my system does not have = any swap space allocated? Here's what I added in my /etc/rc.conf to simulate an swap device: dumpdev=3D"YES" dumpdir=3D"/home/crash/" swapfile=3D"/home/crash/swap0" Then I ran: core# sh /tmp/ipfw_test = ~ 00001 nat 100 ip from any to any via em0 ipfw nat 100 config ip 192.168.1.104 redirect_port tcp 172.25.1.1:22 22 core# dumpon `awk '$3 =3D=3D swap { print $1 }'` = ~ Fatal trap 12: page fault while in kernel mode cpuid =3D 0=3B apic id =3D 00 fault virtual address =3D 0xc fault code =3D supervisor write data=2C page not present instruction pointer =3D 0x20:0xffffffff801d5cd6 stack pointer =3D 0x28:0xffffff8074fbc370 frame pointer =3D 0x28:0xffffff8074fbc620 code segment =3D base 0x0=2C limit 0xfffff=2C type 0x1b =3D DPL 0=2C pres 1=2C long 1=2C def32 0=2C gran 1 processor eflags =3D interrupt enabled=2C resume=2C IOPL =3D 0 current process =3D 1818 (sshd) trap number =3D 12 panic: page fault cpuid =3D 0 Uptime: 2m36s Cannot dump. Device not defined or unavailable. Automatic reboot in 15 seconds - press a key on the console to abort I'm still getting the "Cannot dump" error message=2C any idea what I can do= next? Many thanks. Shant K >=20 > > Cannot dump. Device not defined or unavailable. > > > > my custom kernel is set to disable: > > > > > > #options KTRACE # ktrace(1) support > > > > #options KDTRACE_FRAME # Ensure frames are compiled in > > #options KDTRACE_HOOKS # Kernel DTrace hooks > > > > must recompile kernel to enable tracing? >=20 > No. >=20 > > I'm currently using the intel pro 1000 chipset / em0 driver=2C I've bee= n > > experiencing all sorts of network stability problems for a while now(ev= er > > since I upgrade to stable a month ago). It looks like the em0 driver fo= r > > amd64 needs alot of work however a couple of days ago when I recompiled= my > > box to the latest stable 8.1-prerelease I saw alot of improvments and m= y > > ipfw/dummynet firewall seems to be running stable with no crashes/locku= ps so > > far... > > > > > > It is very easy for me to replicate the in nat kernel problem=2C i just= cant > > get a dump to provide you the additional info. =20 _________________________________________________________________ Learn more ways to connect with your buddies now http://go.microsoft.com/?linkid=3D9734388= --_43033f25-eecb-4513-8fa9-20d8fad19493_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable

>=3B Date: Sun=2C 27 Jun 2010 00:04:16 -0700
>=3B Subject: R= e: amd64/148157: IPFW in kernel nat BUG found in FreeBSD 8.1-PRERELEASE>=3B From: yanefbsd@gmail.com
>=3B To: pookme@hotmail.com
>=3B= CC: freebsd-gnats-submit@freebsd.org
>=3B
>=3B Hi Shant=2C
&= gt=3B Please bottom post from here on out.
>=3B
>=3B On Sat= =2C Jun 26=2C 2010 at 11:47 PM=2C Shant Kassardjian <=3Bpookme@hotmail.co= m>=3B wrote:
>=3B >=3B Hi Garrett=2C
>=3B >=3B
>=3B &g= t=3B
>=3B >=3B I just tried to perform a kernel dump with dumpdev=3D= "YES" and had no luck=2C I
>=3B >=3B keep getting:
>=3B
>= =3B dumpdev=3D"<=3Bblah>=3B" always appears to fail to me as well (cont= rary to
>=3B what others have claimed). Try doing the following after = booting up:
>=3B
>=3B dumpon `awk '$3 =3D=3D swap { print $1 }'`=
>=3B
>=3B Then you'll be able to reproduce the problem and grab= the resulting
>=3B kernel core dump.


Hi Garrett=2C

=
I still can't get it to dump. Perhaps it's because my system does not h= ave any swap space allocated?


Here's what I added in my /etc/rc.= conf to simulate an swap device:


dumpdev=3D"YES"
dumpdir=3D"/= home/crash/"
swapfile=3D"/home/crash/swap0"

Then I ran:

co= re# sh /tmp/ipfw_test = ~
00001 nat 100 ip from any to any via em0
ipfw nat 100 config ip 19= 2.168.1.104 redirect_port tcp 172.25.1.1:22 22
core# dumpon `awk '$3 =3D= =3D swap { print $1 }'` ~


Fatal= trap 12: page fault while in kernel mode
cpuid =3D 0=3B apic id =3D 00<= BR>fault virtual address =3D 0xc
fault code =3D superviso= r write data=2C page not present
instruction pointer =3D 0x20:0xffff= ffff801d5cd6
stack pointer =3D 0x28:0xffffff8074fbc370
fram= e pointer =3D 0x28:0xffffff8074fbc620
code segment = =3D base 0x0=2C limit 0xfffff=2C type 0x1b
=3D D= PL 0=2C pres 1=2C long 1=2C def32 0=2C gran 1
processor eflags = =3D interrupt enabled=2C resume=2C IOPL =3D 0
current process = =3D 1818 (sshd)
trap number =3D 12
panic: page fault
c= puid =3D 0
Uptime: 2m36s
Cannot dump. Device not defined or unavailab= le.
Automatic reboot in 15 seconds - press a key on the console to abort=


I'm still getting the "Cannot dump" error message=2C any idea w= hat I can do next?


Many thanks.
Shant K

>=3B
>= =3B >=3B Cannot dump. Device not defined or unavailable.
>=3B >=3B=
>=3B >=3B my custom kernel is set to disable:
>=3B >=3B
&= gt=3B >=3B
>=3B >=3B #options KTRACE # ktrace(1) support
>=3B= >=3B
>=3B >=3B #options KDTRACE_FRAME # Ensure frames are compile= d in
>=3B >=3B #options KDTRACE_HOOKS # Kernel DTrace hooks
>= =3B >=3B
>=3B >=3B must recompile kernel to enable tracing?
>= =3B
>=3B No.
>=3B
>=3B >=3B I'm currently using the inte= l pro 1000 chipset / em0 driver=2C I've been
>=3B >=3B experiencing = all sorts of network stability problems for a while now(ever
>=3B >= =3B since I upgrade to stable a month ago). It looks like the em0 driver fo= r
>=3B >=3B amd64 needs alot of work however a couple of days ago wh= en I recompiled my
>=3B >=3B box to the latest stable 8.1-prerelease= I saw alot of improvments and my
>=3B >=3B ipfw/dummynet firewall s= eems to be running stable with no crashes/lockups so
>=3B >=3B far..= .
>=3B >=3B
>=3B >=3B
>=3B >=3B It is very easy for me= to replicate the in nat kernel problem=2C i just cant
>=3B >=3B get= a dump to provide you the additional info.


Ente= r for a chance to get your town photo on Bing.ca! Submit a Photo Now! = --_43033f25-eecb-4513-8fa9-20d8fad19493_--