Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 3 Jan 2003 12:16:26 +0100 (CET)
From:      bra@fsn.hu
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   kern/46720: This is the result of Netgraph FEC, tcpdump running and an ICMP ping to the host. 
Message-ID:  <200301031116.h03BGQSv000719@kandojozsef-bkp.iif.hu>

index | next in thread | raw e-mail


>Number:         46720
>Category:       kern
>Synopsis:       This is the result of Netgraph FEC, tcpdump running and an ICMP ping to the host.
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jan 03 04:00:02 PST 2003
>Closed-Date:
>Last-Modified:
>Originator:     Nagy Attila <bra@fsn.hu>
>Release:        FreeBSD 5.0-RC i386
>Organization:
individual 
>Environment:
System: FreeBSD test.fsn.hu 5.0-RC FreeBSD 5.0-RC #9: Thu Jan 2 17:48:21 CET 2003 root@test.fsn.hu:/usr/obj/usr/src/sys/TEST i386


	
>Description:
FreeBSD 5.0 contains the Cisco Fast EtherChannel (FEC) Netgraph node,
originally written by wpaul@freebsd.org. This node does not work on 5.0 and
produces a page fault when trying to test it out by running a tcpdump
on the fec0 interface and while receiving an ICMP echo request (ping).

	
>How-To-Repeat:
kldload ng_fec
ngctl mkpeer fec dummy fec
ngctl msg fec0: add_iface '"fxp0"'
ngctl msg fec0: add_iface '"fxp1"'
ngctl msg fec0: set_mode_inet
ifconfig fec0 a.b.c.d netmask q.w.e.r up
route add default t.y.u.i
tcpdump -i fec0
ping a.b.c.d from another host
	
>Fix:
The kernel crashdump and gdb "where" follows here: 

	

--- uname begins here ---
test# uname -a
FreeBSD test.fsn.hu 5.0-RC FreeBSD 5.0-RC #9: Thu Jan  2 17:48:21 CET 2003     root@test.fsn.hu:/usr/obj/usr/src/sys/TEST  i386

test# gdb -k kernel.debug.20030102 vmcore.0 
GNU gdb 5.2.1 (FreeBSD)
Copyright 2002 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-undermydesk-freebsd"...
panic: bwrite: buffer is not busy???
panic messages:
---
Fatal trap 12: page fault while in kernel mode
fault virtual address	= 0x1
fault code		= supervisor read, page not present
instruction pointer	= 0x8:0xc02ca7ee
stack pointer	        = 0x10:0xd69aeb88
frame pointer	        = 0x10:0xd69aebb0
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		= 24 (irq12: fxp1 sym0)
trap number		= 12
panic: page fault

syncing disks, buffers remaining... panic: bwrite: buffer is not busy???
Uptime: 4m27s
amr0: flushing cache...done
Dumping 511 MB
 16 32 48 64 80 96 112 128 144 160 176 192 208 224 240 256 272 288 304 320 336 352 368 384 400 416 432 448 464 480 496
---
#0  doadump () at /usr/src/sys/kern/kern_shutdown.c:232
232		dumping++;
(kgdb) where
#0  doadump () at /usr/src/sys/kern/kern_shutdown.c:232
#1  0xc01ce342 in boot (howto=260) at /usr/src/sys/kern/kern_shutdown.c:364
#2  0xc01ce583 in panic () at /usr/src/sys/kern/kern_shutdown.c:517
#3  0xc02139a2 in bwrite (bp=0xce603950) at /usr/src/sys/kern/vfs_bio.c:796
#4  0xc0215085 in vfs_bio_awrite (bp=0xce603950)
    at /usr/src/sys/kern/vfs_bio.c:1643
#5  0xc0197c91 in spec_fsync (ap=0xd69ae980)
    at /usr/src/sys/fs/specfs/spec_vnops.c:462
#6  0xc0196ff8 in spec_vnoperate (ap=0x0)
    at /usr/src/sys/fs/specfs/spec_vnops.c:126
#7  0xc0273541 in ffs_sync (mp=0xc4057400, waitfor=2, cred=0xc150ae80, 
    td=0xc031b840) at vnode_if.h:612
#8  0xc0228c1b in sync (td=0xc031b840, uap=0x0)
    at /usr/src/sys/kern/vfs_syscalls.c:138
#9  0xc01cdf2c in boot (howto=256) at /usr/src/sys/kern/kern_shutdown.c:273
#10 0xc01ce583 in panic () at /usr/src/sys/kern/kern_shutdown.c:517
#11 0xc02cc632 in trap_fatal (frame=0xd69aeb48, eva=0)
    at /usr/src/sys/i386/i386/trap.c:844
#12 0xc02cc312 in trap_pfault (frame=0xd69aeb48, usermode=0, eva=1)
    at /usr/src/sys/i386/i386/trap.c:758
#13 0xc02cbe00 in trap (frame=
      {tf_fs = -694550504, tf_es = -1071841264, tf_ds = -1069416432, tf_edi = -1005170670, tf_esi = 1, tf_ebp = -694490192, tf_isp = -694490252, tf_ebx = 14, tf_edx = 18, tf_ecx = 3, tf_eax = -1005170671, tf_trapno = 12, tf_err = 0, tf_eip ---Type <return> to continue, or q <return> to quit---
= -1070815250, tf_cs = 8, tf_eflags = 66071, tf_esp = 74, tf_ss = -694490084})
    at /usr/src/sys/i386/i386/trap.c:445
#14 0xc02bc618 in calltrap () at {standard input}:98
#15 0xc02355f2 in catchpacket (d=0x1, pkt=0x0, pktlen=74, snaplen=0, 
    cpfn=0xc0235250 <bpf_mcopy>) at /usr/src/sys/net/bpf.c:1216
#16 0xc02353cb in bpf_mtap (bp=0xc42c7080, m=0xd69aec1c)
    at /usr/src/sys/net/bpf.c:1141
#17 0xc03d68f4 in ?? ()
#18 0xc023931b in ether_input (ifp=0xc417fc00, m=0xc1542100)
    at /usr/src/sys/net/if_ethersubr.c:601
#19 0xc0170ce9 in fxp_intr_body (sc=0xc4028000, statack=64 '@', count=-1)
    at /usr/src/sys/dev/fxp/if_fxp.c:1357
#20 0xc0170b3a in fxp_intr (xsc=0xc4028000)
    at /usr/src/sys/dev/fxp/if_fxp.c:1228
#21 0xc01b9ef1 in ithread_loop (arg=0xc4020300)
    at /usr/src/sys/kern/kern_intr.c:535
#22 0xc01b8e03 in fork_exit (callout=0xc01b9d20 <ithread_loop>, arg=0x0, 
    frame=0x0) at /usr/src/sys/kern/kern_fork.c:872
(kgdb) quit
--- uname ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message



home | help

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