9-CURRENT page fault when loading kernel ipfw nat and if_em

From: da wire <da.wire_at_gmail.com>
Date: Tue, 10 Nov 2009 19:01:38 +0000
Hi,

If i load the following rules for example

${ipfwcmd} nat 123 config ip 192.168.0.254 log ${firewall_nat_flags}
same_ports reset unreg_only
${ipfwcmd} add 11 nat 123 log ip from any to any out xmit em3
${ipfwcmd} add 11 nat 123 log ip from any to any in recv em3
${ipfwcmd} add 14 nat 123 ip4 from any to any via "${oif}"

I get the following


FreeBSD  9.0-CURRENT FreeBSD 9.0-CURRENT #57: Tue Nov 10 15:23:19 GMT 2009

panic: from debugger

GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-marcel-freebsd"...

Unread portion of the kernel message buffer:


Fatal trap 12: page fault while in kernel mode
cpuid = 0; apic id = 00
fault virtual address   = 0xc
fault code              = supervisor write, page not present
instruction pointer     = 0x20:0xc061819a
stack pointer           = 0x28:0xe892d60c
frame pointer           = 0x28:0xe892d8b4
code segment            = base 0x0, limit 0xfffff, type 0x1b
                        = DPL 0, pres 1, def32 1, gran 1
processor eflags        = interrupt enabled, resume, IOPL = 0
current process         = 2914 (fetchmail)
panic: from debugger
cpuid = 0
Uptime: 6m41s
Physical memory: 2022 MB
Dumping 197 MB: 182 166 150 134 118 102 86 70 54 38 22 6

Reading symbols from /boot/kernel/geom_journal.ko...Reading symbols from
/boot/kernel/geom_journal.ko.symbols...done.
done.
Loaded symbols for /boot/kernel/geom_journal.ko
Reading symbols from /boot/modules/nvidia.ko...done.
Loaded symbols for /boot/modules/nvidia.ko
Reading symbols from /boot/kernel/ipfw_nat.ko...Reading symbols from
/boot/kernel/ipfw_nat.ko.symbols...done.
done.
Loaded symbols for /boot/kernel/ipfw_nat.ko
Reading symbols from /boot/kernel/linux.ko...Reading symbols from
/boot/kernel/linux.ko.symbols...done.
done.
Loaded symbols for /boot/kernel/linux.ko
Reading symbols from /usr/local/modules/fuse.ko...done.
Loaded symbols for /usr/local/modules/fuse.ko
Reading symbols from /usr/local/modules/rtc.ko...done.
Loaded symbols for /usr/local/modules/rtc.ko
#0  doadump () at pcpu.h:246
246     pcpu.h: No such file or directory.
        in pcpu.h
(kgdb) #0  doadump () at pcpu.h:246
#1  0xc08c43e7 in boot (howto=260) at ../../../kern/kern_shutdown.c:416
#2  0xc08c46f2 in panic (fmt=Variable "fmt" is not available.
) at ../../../kern/kern_shutdown.c:579
#3  0xc04d2387 in db_panic (addr=Could not find the frame base for
"db_panic".
) at ../../../ddb/db_command.c:478
#4  0xc04d2911 in db_command (last_cmdp=0xc0dee65c, cmd_table=0x0,
dopager=1)
    at ../../../ddb/db_command.c:445
#5  0xc04d2a6a in db_command_loop () at ../../../ddb/db_command.c:498
#6  0xc04d48dd in db_trap (type=12, code=0) at ../../../ddb/db_main.c:229
#7  0xc08f3016 in kdb_trap (type=12, code=0, tf=0xe892d5cc)
    at ../../../kern/subr_kdb.c:535
#8  0xc0bfdf8f in trap_fatal (frame=0xe892d5cc, eva=12)
    at ../../../i386/i386/trap.c:929
#9  0xc0bfe230 in trap_pfault (frame=0xe892d5cc, usermode=0, eva=12)
    at ../../../i386/i386/trap.c:851
#10 0xc0bfec73 in trap (frame=0xe892d5cc) at ../../../i386/i386/trap.c:533
#11 0xc0be11eb in calltrap () at ../../../i386/i386/exception.s:165
#12 0xc061819a in em_xmit (adapter=0xc6451000, m_headp=Variable "m_headp" is
not available.
)
    at ../../../dev/e1000/if_em.c:3791
#13 0xc061b5ff in em_mq_start_locked (ifp=0xc643c000, m=0xc736c300)
    at ../../../dev/e1000/if_em.c:1037
#14 0xc061bc70 in em_mq_start (ifp=0xc643c000, m=0xc736c300)
    at ../../../dev/e1000/if_em.c:1097
#15 0xc096fa80 in ether_output_frame (ifp=0xc643c000, m=0xc736c300)
    at ../../../net/if_ethersubr.c:452
#16 0xc0970443 in ether_output (ifp=0xc643c000, m=0xc736c300,
dst=0xc6844950,
    ro=0xe892da10) at ../../../net/if_ethersubr.c:423
#17 0xc09d6d08 in ip_output (m=0xc69ab300, opt=0x0, ro=0xe892da10,
flags=Variable "flags" is not available.
)
    at ../../../netinet/ip_output.c:620
#18 0xc0a42daf in tcp_output (tp=0xc7087c58)
    at ../../../netinet/tcp_output.c:1187
#19 0xc0a4f84a in tcp_usr_send (so=0xc70f5670, flags=0, m=0xc672b700,
    nam=0x0, control=0x0, td=0xc70e8230) at tcp_offload.h:282
#20 0xc09266f5 in sosend_generic (so=0xc70f5670, addr=0x0, uio=0xe892dc58,
    top=0xc672b700, control=0x0, flags=0, td=0xc70e8230)
    at ../../../kern/uipc_socket.c:1265
#21 0xc092218f in sosend (so=0xc70f5670, addr=0x0, uio=0xe892dc58, top=0x0,
    control=0x0, flags=0, td=0xc70e8230) at ../../../kern/uipc_socket.c:1309
#22 0xc0909c0a in soo_write (fp=0xc6862d20, uio=0xe892dc58,
    active_cred=0xc6803680, flags=0, td=0xc70e8230)
    at ../../../kern/sys_socket.c:102
#23 0xc09037c7 in dofilewrite (td=0xc70e8230, fd=3, fp=0xc6862d20,
    auio=0xe892dc58, offset=-1, flags=0) at file.h:239
#24 0xc0903ab8 in kern_writev (td=0xc70e8230, fd=3, auio=0xe892dc58)
    at ../../../kern/sys_generic.c:446
#25 0xc0903b3f in write (td=0xc70e8230, uap=0xe892dcf8)
    at ../../../kern/sys_generic.c:362
#26 0xc0bfe575 in syscall (frame=0xe892dd38) at
../../../i386/i386/trap.c:1078
#27 0xc0be1250 in Xint0x80_syscall () at ../../../i386/i386/exception.s:261
#28 0x00000033 in ?? ()
Previous frame inner to this frame (corrupt stack?)
(kgdb)



I was wondering if its anything similar to this post

http://www.mail-archive.com/freebsd-net_at_freebsd.org/msg31015.html


Any help would be great.

Simon
Received on Tue Nov 10 2009 - 18:27:32 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:57 UTC