From owner-freebsd-stable@FreeBSD.ORG Mon Jun 2 22:21:54 2003 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 65C3A37B401 for ; Mon, 2 Jun 2003 22:21:54 -0700 (PDT) Received: from digitalme.com (pop.digitalme.com [193.97.97.75]) by mx1.FreeBSD.org (Postfix) with ESMTP id A2BF043FA3 for ; Mon, 2 Jun 2003 22:21:53 -0700 (PDT) (envelope-from dkt@digitalme.com) Received: from dkt [210.0.207.157] by digitalme.com with NIMS ModWeb Module; Tue, 03 Jun 2003 13:21:50 +0800 From: Dung Patrick To: freebsd-stable@freebsd.org, Date: Tue, 03 Jun 2003 13:21:50 +0800 X-Mailer: NIMS ModWeb Module X-Sender: dkt MIME-Version: 1.0 Message-ID: <1054617710.c6d291a0dkt@digitalme.com> Content-Type: text/plain; charset="BIG5" Content-Transfer-Encoding: quoted-printable Subject: Kernel Panic [with trace] in using netgraph (one2many and fec) X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Jun 2003 05:21:54 -0000 Hi, I am using FreeBSD 4-Stable with cvsup up to 3-June-2003 HKT. I am testing = with the netgraph modules (one2many and fec). While testing them, I have = changed the ipaddress ifconfig and load kernel module (one2many/fec) and = use ngctl command repeatly. I know I should not run the command or load m= odules repeatly but somehow I get kernel panic. Now I get a back trace with the core dump: Script started on Tue Jun 3 10:37:30 2003 fw# gdb -k GNU gdb 4.18 (FreeBSD) Copyright 1998 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you ar= e welcome to change it and/or distribute copies of it under certain condition= s. 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-unknown-freebsd". (kgdb) symbol-file kernel.debug Reading symbols from kernel.debug...Deprecated bfd_read called at /usr/src/= gnu/usr.bin/binutils/gdb/../../../../contrib/gdb/gdb/dbxread.c line 2627 = in elfstab_build_psymtabs Deprecated bfd_read called at /usr/src/gnu/usr.bin/binutils/gdb/../../../..= /contrib/gdb/gdb/dbxread.c line 933 in fill_symbuf done. (kgdb) exec-file /var/crash/kernel.0 (kgdb) core-file /var/crash/vmcore.0 IdlePTD at phsyical address 0x003fe000 initial pcb at physical address 0x0034ee00 panicstr: page fault panic messages: --- Fatal trap 12: page fault while in kernel mode fault virtual address =3D 0x4 fault code =3D supervisor read, page not present instruction pointer =3D 0x8:0xc110b2da stack pointer =3D 0x10:0xc031c158 frame pointer =3D 0x10:0xc031c160 code segment =3D base 0x0, limit 0xfffff, type 0x1b =3D DPL 0, pres 1, def32 1, gran 1 processor eflags =3D interrupt enabled, resume, IOPL =3D 0 current process =3D Idle interrupt mask =3D=20 trap number =3D 12 panic: page fault syncing disks...=20 Fatal trap 12: page fault while in kernel mode fault virtual address =3D 0x30 fault code =3D supervisor read, page not present instruction pointer =3D 0x8:0xc025820c stack pointer =3D 0x10:0xc031bf4c frame pointer =3D 0x10:0xc031bf54 code segment =3D base 0x0, limit 0xfffff, type 0x1b =3D DPL 0, pres 1, def32 1, gran 1 processor eflags =3D interrupt enabled, resume, IOPL =3D 0 current process =3D Idle interrupt mask =3D bio=20 trap number =3D 12 panic: page fault Uptime: 30m0s dumping to dev #ad/0x50001, offset 764963 dump ata0: resetting devices .. done 126 [CTRL-C to abort] [CTRL-C to abort] 125 124 123 122 121 120 119 118 117= 116 115 114 113 112 111 110 109 108 107 106 105 104 103 102 101 100 99 9= 8 97 96 95 94 93 92 91 90 89 88 87 86 85 84 83 82 81 80 79 78 77 76 75 74= 73 72 71 70 69 68 67 66 65 64 63 62 61 60 59 58 57 56 55 54 53 52 51 50 = 49 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 32 31 30 29 28 27 26 2= 5 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0=20 --- #0 dumpsys () at ../../kern/kern_shutdown.c:487 487 if (dumping++) { (kgdb) where #0 dumpsys () at ../../kern/kern_shutdown.c:487 #1 0xc01842b7 in boot (howto=3D260) at ../../kern/kern_shutdown.c:316 #2 0xc01846f5 in panic (fmt=3D0xc0312b0c "%s") at ../../kern/kern_shutdown.= c:595 #3 0xc02bb47f in trap_fatal (frame=3D0xc031bf0c, eva=3D48) at ../../i386/i3= 86/trap.c:974 #4 0xc02bb12d in trap_pfault (frame=3D0xc031bf0c, usermode=3D0, eva=3D48) a= t ../../i386/i386/trap.c:867 #5 0xc02bacd3 in trap (frame=3D{tf_fs =3D -1072037872, tf_es =3D 6422544, t= f_ds =3D -107053054442C tf_edi =3D 0,=20 tf_esi =3D -1056674816, tf_ebp =3D -1070481580, tf_isp =3D -1070481608, tf_= ebx =3D -1070379396, tf_edx =3D 6867008,=20 tf_ecx =3D -885163584, tf_eax =3D 0, tf_trapno =3D 12, tf_err =3D 0, tf_eip= =3D -1071283700, tf_cs =3D 8, tf_eflags =3D 66050,=20 tf_esp =3D -1056674816, tf_ss =3D -1056674816}) at ../../i386/i386/trap.c:4= 66 #6 0xc025820c in acquire_lock (lk=3D0xc0334e7c) at ../../ufs/ffs/ffs_softde= p.c:266 #7 0xc025c30c in softdep_update_inodeblock (ip=3D0xc1046c00, bp=3D0xc38126e= 4, waitfor=3D0) at ../../ufs/ffs/ffs_softdep.c:3813 #8 0xc0257301 in ffs_update (vp=3D0xcb3d79c0, waitfor=3D0) at ../../ufs/ffs= /ffs_inode.c:106 #9 0xc0260ee9 in ffs_fsync (ap=3D0xc031c000) at ../../ufs/ffs/ffs_vnops.c:2= 73 #10 0xc025f787 in ffs_sync (mp=3D0xc0fff400, waitfor=3D2, cred=3D0xc0b2a880= , p=3D0xc036af60) at vnode_if.h:558 #11 0xc01b4b6b in sync (p=3D0xc036af60, uap=3D0x0) at ../../kern/vfs_syscal= ls.c:577 #12 0xc0184052 in boot (howto=3D256) at ../../kern/kern_shutdown.c:235 #13 0xc01846f5 in panic (fmt=3D0xc0312b0c "%s") at ../../kern/kern_shutdown= .c:595 #14 0xc02bb47f in trap_fatal (frame=3D0xc031c118, eva=3D4) at ../../i386/i3= 86/trap.c:974 #15 0xc02bb12d in trap_pfault (frame=3D0xc031c118, usermode=3D0, eva=3D4) a= t ../../i386/i386/trap.c:867 #16 0xc02bacd3 in trap (frame=3D{tf_fs =3D -1061945328, tf_es =3D -10705305= 44, tf_ds =3D -1071382512, tf_edi =3D 0,=20 tf_esi =3D -1055967744, tf_ebp =3D -1070481056, tf_isp =3D -1070481084, tf_= ebx =3D 0, tf_edx =3D -1061942016,=20 tf_ecx =3D -1055893248, tf_eax =3D 0, tf_trapno =3D 12, tf_err =3D 0, tf_ei= p =3D -1055870246, tf_cs =3D 8, tf_eflags =3D 66118,=20 tf_esp =3D -1056978784, tf_ss =3D -1055967744}) at ../../i386/i386/trap.cc6 #17 0xc110b2da in ?? () #18 0xc110b7a7 in ?? () #19 0xc02adaf9 in swi_net_next () (kgdb) up 16 #16 0xc02bacd3 in trap (frame=3D{tf_fs =3D -1061945328, tf_es =3D -10705305= 44, tf_ds =3D -1071382512, tf_edi =3D 0, tf_esi =3D -1055967744, tf_ebp =3D -1070481056, tf_isp =3D -1070481084, tf_= ebx =3D 0, tf_edx =3D -1061942016, tf_ecx =3D -1055893248, tf_eax =3D 0, tf_trapno =3D 12, tf_err =3D 0, tf_ei= p =3D -1055870246, tf_cs =3D 8, tf_eflags =3D 66118, tf_esp =3D -1056978784, tf_ss =3D -1055967744}) at ../../i386/i386/trap.c:4= 66 466 (void) trap_pfault(&frame, FALSE, eva); (kgdb) quit fw# exit exit Script done on Tue Jun 3 10:39:40 2003 Regards, Patrick