Netgraph/mpd5 stability issues
Eugene Grosbein
egrosbein at rdtc.ru
Wed Mar 16 13:31:25 UTC 2011
On 16.03.2011 19:21, Mike Tancsa wrote:
> A new one it seems. On the console,
I have one with full crashdump too.
Crashdump and other files are available on request.
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 "amd64-marcel-freebsd"...
Unread portion of the kernel message buffer:
= DPL 0, pres 1, long 1, def32 0, gran 1
processor eflags = interrupt enabled, resume, IOPL = 0
current process = 12 (irq256: em0:rx 0)
trap number = 9
panic: general protection fault
cpuid = 3
KDB: stack backtrace:
X_db_sym_numargs() at 0xffffffff801a227a = X_db_sym_numargs+0x15a
kdb_backtrace() at 0xffffffff8033f557 = kdb_backtrace+0x37
panic() at 0xffffffff8030d517 = panic+0x187
dblfault_handler() at 0xffffffff804c2ef0 = dblfault_handler+0x330
trap() at 0xffffffff804c34d9 = trap+0x109
calltrap() at 0xffffffff804aafe4 = calltrap+0x8
--- trap 0x9, rip = 0xffffffff802fe3ee, rsp = 0xffffff800010f7a0, rbp = 0xffffff800010f7c0 ---
_mtx_lock_sleep() at 0xffffffff802fe3ee = _mtx_lock_sleep+0x4e
bpf_mtap2() at 0xffffffff803b79fa = bpf_mtap2+0x27a
ng_bypass() at 0xffffffff803dd0aa = ng_bypass+0x1d1a
ng_bypass() at 0xffffffff803dd581 = ng_bypass+0x21f1
ip_fastforward() at 0xffffffff80408566 = ip_fastforward+0x7e6
ether_demux() at 0xffffffff803c39c1 = ether_demux+0x131
ether_vlanencap() at 0xffffffff803c3dad = ether_vlanencap+0x27d
ata_sii_chipinit() at 0xffffffff801e757a = ata_sii_chipinit+0xe50a
ata_sii_chipinit() at 0xffffffff801e78f4 = ata_sii_chipinit+0xe884
intr_event_execute_handlers() at 0xffffffff802e6c24 = intr_event_execute_handlers+0x104
swi_add() at 0xffffffff802e82b5 = swi_add+0x265
fork_exit() at 0xffffffff802e42e8 = fork_exit+0x118
fork_trampoline() at 0xffffffff804ab4ae = fork_trampoline+0xe
--- trap 0, rip = 0, rsp = 0xffffff800010fcf0, rbp = 0 ---
Uptime: 2d15h11m31s
Dumping 2039 MB (2 chunks)
chunk 0: 1MB (155 pages) (CTRL-C to abort) ... ok
chunk 1: 2039MB (521840 pages) 2023 2007 1991 1975 1959 1943 1927 1911 1895 1879 1863 1847 1831 1815 1799 1783 1767
Fatal trap 12: page fault while in kernel mode
cpuid = 3; apic id = 06
fault virtual address = 0x100000000
fault code = supervisor read instruction, page not present
instruction pointer = 0x20:0x100000000
stack pointer = 0x28:0xffffff809299ca90
frame pointer = 0x28:0xffffff809299cac0
code segment = base 0x0, limit 0xfffff, type 0x1b
= DPL 0, pres 1, long 1, def32 0, gran 1
processor eflags = interrupt enabled, resume, IOPL = 0
current process = 12 (irq21: atapci1)
trap number = 12
panic: page fault
cpuid = 3
1751 1735 1719 1703 1687 1671 1655 1639 1623 1607 1591 1575 1559 1543 1527 1511 1495 1479 1463 1447 1431 1415 1399 1383 1367 1351 1335 1319 1303 1287 1271 1255 1239 1223 1207 1191 1175 1159 1143 1127 1111 1095 1079 1063 1047 1031 1015 999 983 967 951 935 919 903 887 871 855 839 823 807 791 775 759 743 727 711 695 679 663 647 631 615 599 583 567 551 535 519 503 487 471 455 439 423 407 391 375 359 343 327 311 295 279 263 247 231 215 199 183 167 151 135 119 103 87 71 55 39 23 7
Reading symbols from /boot/kernel/ipmi.ko...done.
Loaded symbols for /boot/kernel/ipmi.ko
Reading symbols from /boot/kernel/if_lagg.ko...done.
Loaded symbols for /boot/kernel/if_lagg.ko
#0 doadump () at /home/src/sys/kern/kern_shutdown.c:251
251 if (textdump_pending)
(kgdb) bt
#0 doadump () at /home/src/sys/kern/kern_shutdown.c:251
#1 0xffffffff8030d0d0 in boot (howto=260)
at /home/src/sys/kern/kern_shutdown.c:419
#2 0xffffffff8030d501 in panic (fmt=Variable "fmt" is not available.
)
at /home/src/sys/kern/kern_shutdown.c:592
#3 0xffffffff804c2ef0 in trap_fatal (frame=0x9, eva=Variable "eva" is not available.
)
at /home/src/sys/amd64/amd64/trap.c:839
#4 0xffffffff804c34d9 in trap (frame=0xffffff800010f6f0)
at /home/src/sys/amd64/amd64/trap.c:648
#5 0xffffffff804aafe4 in calltrap ()
at /home/src/sys/amd64/amd64/exception.S:228
#6 0xffffffff802fe3ee in _mtx_lock_sleep (m=0xffffff00070c0828,
tid=18446742974221537280, opts=Variable "opts" is not available.
) at /home/src/sys/kern/kern_mutex.c:369
#7 0xffffffff803b79fa in bpf_mtap2 (bp=0xffffff00070c0800, data=Variable "data" is not available.
)
at /home/src/sys/net/bpf.c:1872
#8 0xffffffff803dd0aa in ng_iface_bpftap (ifp=Variable "ifp" is not available.
)
at /home/src/sys/netgraph/ng_iface.c:446
#9 0xffffffff803dd581 in ng_iface_output (ifp=0xffffff0011282000,
m=0xffffff000d196800, dst=0xffffff800010f9d0, ro=Variable "ro" is not available.
)
at /home/src/sys/netgraph/ng_iface.c:396
#10 0xffffffff80408566 in ip_fastforward (m=0xffffff000d196800)
at /home/src/sys/netinet/ip_fastfwd.c:552
#11 0xffffffff803c39c1 in ether_demux (ifp=0xffffff00015a2800,
---Type <return> to continue, or q <return> to quit---
m=0xffffff000d196800) at /home/src/sys/net/if_ethersubr.c:830
#12 0xffffffff803c3dad in ether_input (ifp=0xffffff00015a2800,
m=0xffffff000d196800) at /home/src/sys/net/if_ethersubr.c:753
#13 0xffffffff801e757a in em_rxeof (rxr=0xffffff0001737800, count=4094,
done=0x0) at /home/src/sys/dev/e1000/if_em.c:4330
#14 0xffffffff801e78f4 in em_msix_rx (arg=Variable "arg" is not available.
)
at /home/src/sys/dev/e1000/if_em.c:1564
#15 0xffffffff802e6c24 in intr_event_execute_handlers (p=Variable "p" is not available.
)
at /home/src/sys/kern/kern_intr.c:1216
#16 0xffffffff802e82b5 in ithread_loop (arg=0xffffff00017388e0)
at /home/src/sys/kern/kern_intr.c:1229
#17 0xffffffff802e42e8 in fork_exit (
callout=0xffffffff802e8220 <ithread_loop>, arg=0xffffff00017388e0,
frame=0xffffff800010fc40) at /home/src/sys/kern/kern_fork.c:865
#18 0xffffffff804ab4ae in fork_trampoline ()
at /home/src/sys/amd64/amd64/exception.S:569
#19 0x0000000000000000 in ?? ()
#20 0x0000000000000000 in ?? ()
#21 0x0000000000000001 in ?? ()
#22 0x0000000000000000 in ?? ()
#23 0x0000000000000000 in ?? ()
#24 0x0000000000000000 in ?? ()
#25 0x0000000000000000 in ?? ()
---Type <return> to continue, or q <return> to quit---
#26 0x0000000000000000 in ?? ()
#27 0x0000000000000000 in ?? ()
#28 0x0000000000000000 in ?? ()
#29 0x0000000000000000 in ?? ()
#30 0x0000000000000000 in ?? ()
#31 0x0000000000000000 in ?? ()
#32 0x0000000000000000 in ?? ()
#33 0x0000000000000000 in ?? ()
#34 0x0000000000000000 in ?? ()
#35 0x0000000000000000 in ?? ()
#36 0x0000000000000000 in ?? ()
#37 0x0000000000000000 in ?? ()
#38 0x0000000000000000 in ?? ()
#39 0x0000000000000000 in ?? ()
#40 0x0000000000000000 in ?? ()
#41 0x0000000000000000 in ?? ()
#42 0x0000000000000000 in ?? ()
#43 0xffffff0053c08840 in ?? ()
#44 0xffffff0001685430 in ?? ()
#45 0x0000000000000000 in ?? ()
#46 0xffffff0001685000 in ?? ()
#47 0xffffff800010f060 in ?? ()
#48 0xffffff800010f008 in ?? ()
---Type <return> to continue, or q <return> to quit---
#49 0xffffff00017638c0 in ?? ()
#50 0xffffffff80332829 in sched_switch (td=0xffffffff802e8220,
newtd=0xffffff00017388e0, flags=Variable "flags" is not available.
) at /home/src/sys/kern/sched_ule.c:1859
Previous frame inner to this frame (corrupt stack?)
(kgdb) frame 7
#7 0xffffffff803b79fa in bpf_mtap2 (bp=0xffffff00070c0800, data=Variable "data" is not available.
)
at /home/src/sys/net/bpf.c:1872
1872 BPFIF_LOCK(bp);
(kgdb) l
1867 mb.m_next = m;
1868 mb.m_data = data;
1869 mb.m_len = dlen;
1870 pktlen += dlen;
1871
1872 BPFIF_LOCK(bp);
1873 LIST_FOREACH(d, &bp->bif_dlist, bd_next) {
1874 if (BPF_CHECK_DIRECTION(d, m->m_pkthdr.rcvif, bp->bif_ifp))
1875 continue;
1876 BPFD_LOCK(d);
(kgdb) p *bp
$1 = {bif_next = {le_next = 0x2000000008, le_prev = 0x100000004}, bif_dlist = {
lh_first = 0x3814f60301a316e0}, bif_dlt = 878996835, bif_hdrlen = 0,
bif_ifp = 0x0, bif_mtx = {lock_object = {lo_name = 0x0, lo_flags = 0,
lo_data = 0, lo_witness = 0xec0ba0f000672e2},
mtx_lock = 1054238158465978904}}
(kgdb) p *bp->bif_next.le_next
Cannot access memory at address 0x2000000008
More information about the freebsd-net
mailing list