Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 27 Jun 2010 18:30:04 GMT
From:      Shant Kassardjian <pookme@hotmail.com>
To:        freebsd-ipfw@FreeBSD.org
Subject:   RE: amd64/148157: IPFW in kernel nat BUG found in FreeBSD 8.1-PRERELEASE
Message-ID:  <201006271830.o5RIU4vC093836@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR amd64/148157; it has been noted by GNATS.

From: Shant Kassardjian <pookme@hotmail.com>
To: <yanefbsd@gmail.com>
Cc: <freebsd-gnats-submit@freebsd.org>
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 <pookme@hotmail=
 .com> 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"<blah>" 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
 
 <html>
 <head>
 <style><!--
 .hmmessage P
 {
 margin:0px=3B
 padding:0px
 }
 body.hmmessage
 {
 font-size: 10pt=3B
 font-family:Verdana
 }
 --></style>
 </head>
 <body class=3D'hmmessage'>
 <BR><BR>&gt=3B Date: Sun=2C 27 Jun 2010 00:04:16 -0700<BR>&gt=3B Subject: R=
 e: amd64/148157: IPFW in kernel nat BUG found in FreeBSD 	8.1-PRERELEASE<BR=
 >&gt=3B From: yanefbsd@gmail.com<BR>&gt=3B To: pookme@hotmail.com<BR>&gt=3B=
  CC: freebsd-gnats-submit@freebsd.org<BR>&gt=3B <BR>&gt=3B Hi Shant=2C<BR>&=
 gt=3B     Please bottom post from here on out.<BR>&gt=3B <BR>&gt=3B On Sat=
 =2C Jun 26=2C 2010 at 11:47 PM=2C Shant Kassardjian &lt=3Bpookme@hotmail.co=
 m&gt=3B wrote:<BR>&gt=3B &gt=3B Hi Garrett=2C<BR>&gt=3B &gt=3B<BR>&gt=3B &g=
 t=3B<BR>&gt=3B &gt=3B I just tried to perform a kernel dump with dumpdev=3D=
 "YES" and had no luck=2C I<BR>&gt=3B &gt=3B keep getting:<BR>&gt=3B <BR>&gt=
 =3B dumpdev=3D"&lt=3Bblah&gt=3B" always appears to fail to me as well (cont=
 rary to<BR>&gt=3B what others have claimed). Try doing the following after =
 booting up:<BR>&gt=3B <BR>&gt=3B dumpon `awk '$3 =3D=3D swap { print $1 }'`=
 <BR>&gt=3B <BR>&gt=3B Then you'll be able to reproduce the problem and grab=
  the resulting<BR>&gt=3B kernel core dump.<BR><BR><BR>Hi Garrett=2C<BR><BR>=
 <BR>I still can't get it to dump. Perhaps it's because my system does not h=
 ave any swap space allocated?<BR><BR><BR>Here's what I added in my /etc/rc.=
 conf to simulate an swap device:<BR><BR><BR>dumpdev=3D"YES"<BR>dumpdir=3D"/=
 home/crash/"<BR>swapfile=3D"/home/crash/swap0"<BR><BR>Then I ran:<BR><BR>co=
 re# sh /tmp/ipfw_test                                                      =
  ~<BR>00001 nat 100 ip from any to any via em0<BR>ipfw nat 100 config ip 19=
 2.168.1.104 redirect_port tcp 172.25.1.1:22 22<BR>core# dumpon `awk '$3 =3D=
 =3D swap { print $1 }'`                                  ~<BR><BR><BR>Fatal=
  trap 12: page fault while in kernel mode<BR>cpuid =3D 0=3B apic id =3D 00<=
 BR>fault virtual address   =3D 0xc<BR>fault code              =3D superviso=
 r write data=2C page not present<BR>instruction pointer     =3D 0x20:0xffff=
 ffff801d5cd6<BR>stack pointer           =3D 0x28:0xffffff8074fbc370<BR>fram=
 e pointer           =3D 0x28:0xffffff8074fbc620<BR>code segment            =
 =3D base 0x0=2C limit 0xfffff=2C type 0x1b<BR>                        =3D D=
 PL 0=2C pres 1=2C long 1=2C def32 0=2C gran 1<BR>processor eflags        =
 =3D interrupt enabled=2C resume=2C IOPL =3D 0<BR>current process         =
 =3D 1818 (sshd)<BR>trap number             =3D 12<BR>panic: page fault<BR>c=
 puid =3D 0<BR>Uptime: 2m36s<BR>Cannot dump. Device not defined or unavailab=
 le.<BR>Automatic reboot in 15 seconds - press a key on the console to abort=
 <BR><BR><BR>I'm still getting the "Cannot dump" error message=2C any idea w=
 hat I can do next?<BR><BR><BR>Many thanks.<BR>Shant K<BR><BR>&gt=3B <BR>&gt=
 =3B &gt=3B Cannot dump. Device not defined or unavailable.<BR>&gt=3B &gt=3B=
 <BR>&gt=3B &gt=3B my custom kernel is set to disable:<BR>&gt=3B &gt=3B<BR>&=
 gt=3B &gt=3B<BR>&gt=3B &gt=3B #options KTRACE # ktrace(1) support<BR>&gt=3B=
  &gt=3B<BR>&gt=3B &gt=3B #options KDTRACE_FRAME # Ensure frames are compile=
 d in<BR>&gt=3B &gt=3B #options KDTRACE_HOOKS # Kernel DTrace hooks<BR>&gt=
 =3B &gt=3B<BR>&gt=3B &gt=3B must recompile kernel to enable tracing?<BR>&gt=
 =3B <BR>&gt=3B No.<BR>&gt=3B <BR>&gt=3B &gt=3B I'm currently using the inte=
 l pro 1000 chipset / em0 driver=2C I've been<BR>&gt=3B &gt=3B experiencing =
 all sorts of network stability problems for a while now(ever<BR>&gt=3B &gt=
 =3B since I upgrade to stable a month ago). It looks like the em0 driver fo=
 r<BR>&gt=3B &gt=3B amd64 needs alot of work however a couple of days ago wh=
 en I recompiled my<BR>&gt=3B &gt=3B box to the latest stable 8.1-prerelease=
  I saw alot of improvments and my<BR>&gt=3B &gt=3B ipfw/dummynet firewall s=
 eems to be running stable with no crashes/lockups so<BR>&gt=3B &gt=3B far..=
 .<BR>&gt=3B &gt=3B<BR>&gt=3B &gt=3B<BR>&gt=3B &gt=3B It is very easy for me=
  to replicate the in nat kernel problem=2C i just cant<BR>&gt=3B &gt=3B get=
  a dump to provide you the additional info.<BR> 		 	   		  <br /><hr />Ente=
 r for a chance to get your town photo on Bing.ca! <a href=3D'http://go.micr=
 osoft.com/?linkid=3D9734383' target=3D'_new'>Submit a Photo Now! </a></body=
 >
 </html>=
 
 --_43033f25-eecb-4513-8fa9-20d8fad19493_--



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