Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 31 Aug 2002 12:17:47 -0700 (PDT)
From:      Pawel Malachowski <pawmal@unia.3lo.lublin.pl>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   kern/42260: 4.6-STABLE kernel panic, fxp related
Message-ID:  <200208311917.g7VJHlwn091193@www.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         42260
>Category:       kern
>Synopsis:       4.6-STABLE kernel panic, fxp related
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Aug 31 12:20:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Pawel Malachowski
>Release:        4.6-STABLE
>Organization:
ZiN
>Environment:
FreeBSD pantagruel.zin.git 4.6-STABLE FreeBSD 4.6-STABLE #0: Sat Aug 31 16:59:39 CEST 2002     root@pantagruel.zin.git:/usr/obj/usr/src/sys/GENERICDBG  i386
>Description:
      After few minutes of heavy networking, kernel or double kernel panic happens.

Hardware:
Soltek DRV5 VIA KT333 motherboard, AMD Athlon XP 1600+ CPU, 256MB DDR RAM, RealTek 8139C and Compaq NC3121 (Intel SB82558B) NICs. Only one NIC (fxp1) is used.

Machine works *without* problems under 4.6.1- (I've noted this problem some time ago and downgraded machine to RELEASE) and 4.6.2-RELEASE. Kernel panic occurs only when I switch to 4.6-STABLE.

I've compiled a GENERIC kernel with debugging option and with make defaults. Here are results:


1st crash:
----------
gdbmods using kernel: /usr/obj/usr/src/sys/GENERICDBG/kernel.debug
gdbmods using core:   vmcore.0
GNU gdb 4.18 (FreeBSD)
Copyright 1998 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-unknown-freebsd"...
IdlePTD at phsyical address 0x00528000
initial pcb at physical address 0x00461a60
panicstr: page fault
panic messages:
---
Fatal trap 12: page fault while in kernel mode
fault virtual address   = 0xc0ffe782
fault code              = supervisor write, page not present
instruction pointer     = 0x8:0xc0224a77
stack pointer           = 0x10:0xc03fa72c
frame pointer           = 0x10:0xc03fa740
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         = Idle
interrupt mask          = net tty
trap number             = 12
panic: page fault

syncing disks...

Fatal trap 12: page fault while in kernel mode
fault virtual address   = 0x30
fault code              = supervisor read, page not present
instruction pointer     = 0x8:0xc030c048
stack pointer           = 0x10:0xc03fa54c
frame pointer           = 0x10:0xc03fa554
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         = Idle
interrupt mask          = net tty bio cam
trap number             = 12
panic: page fault
Uptime: 3m8s

dumping to dev #ad/0x30001, offset 1572992
dump ata0: resetting devices .. done
255 254 253 252 251 250 249 248 247 246 245 244 243 242 241 240 239 238 237 236 235 234 233 232 231 230 229 228 227 226 225 224 223 222 221 220 219 218 217 216 215 214 213 212 211 210 209 208 207 206 205 204 203 202 201 200 199 198 197 196 195 194 193 192 191 190 189 188 187 186 185 184 183 182 181 180 179 178 177 176 175 174 173 172 171 170 169 168 167 166 165 164 163 162 161 160 159 158 157 156 155 154 153 152 151 150 149 148 147 146 145 144 143 142 141 140 139 138 137 136 135 134 133 132 131 130 129 128 127 126 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 98 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 25 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
---
#0  dumpsys () at /usr/src/sys/kern/kern_shutdown.c:487
487             if (dumping++) {
#0  dumpsys () at /usr/src/sys/kern/kern_shutdown.c:487
#1  0xc020901f in boot (howto=260) at /usr/src/sys/kern/kern_shutdown.c:316
#2  0xc0209444 in poweroff_wait (junk=0xc03f12ec, howto=-1069609457)
    at /usr/src/sys/kern/kern_shutdown.c:595
#3  0xc0378d0e in trap_fatal (frame=0xc03fa50c, eva=48)
    at /usr/src/sys/i386/i386/trap.c:974
#4  0xc03789e1 in trap_pfault (frame=0xc03fa50c, usermode=0, eva=48)
    at /usr/src/sys/i386/i386/trap.c:867
#5  0xc037859f in trap (frame={tf_fs = 16, tf_es = 16, tf_ds = 16, tf_edi = 0,
      tf_esi = -1049870592, tf_ebp = -1069570732, tf_isp = -1069570760,
      tf_ebx = -1069354116, tf_edx = 6864960, tf_ecx = -841606208, tf_eax = 0,
      tf_trapno = 12, tf_err = 0, tf_eip = -1070546872, tf_cs = 8,
      tf_eflags = 66054, tf_esp = -1049870592, tf_ss = -1049870592})
    at /usr/src/sys/i386/i386/trap.c:466
#6  0xc030c048 in acquire_lock (lk=0xc042f37c)
    at /usr/src/sys/ufs/ffs/ffs_softdep.c:266
#7  0xc0310148 in softdep_update_inodeblock (ip=0xc16c3f00, bp=0xc683bf88,
    waitfor=0) at /usr/src/sys/ufs/ffs/ffs_softdep.c:3813
#8  0xc030b17d in ffs_update (vp=0xcdd61bc0, waitfor=0)
    at /usr/src/sys/ufs/ffs/ffs_inode.c:106
#9  0xc03134ae in ffs_sync (mp=0xc164fc00, waitfor=2, cred=0xc0e3c400,
    p=0xc047ace0) at /usr/src/sys/ufs/ffs/ffs_vfsops.c:1025
#10 0xc0238d9f in sync (p=0xc047ace0, uap=0x0)
    at /usr/src/sys/kern/vfs_syscalls.c:576
#11 0xc0208dba in boot (howto=256) at /usr/src/sys/kern/kern_shutdown.c:235
#12 0xc0209444 in poweroff_wait (junk=0xc03f12ec, howto=-1069609457)
    at /usr/src/sys/kern/kern_shutdown.c:595
#13 0xc0378d0e in trap_fatal (frame=0xc03fa6ec, eva=3237996418)
    at /usr/src/sys/i386/i386/trap.c:974
#14 0xc03789e1 in trap_pfault (frame=0xc03fa6ec, usermode=0, eva=3237996418)
    at /usr/src/sys/i386/i386/trap.c:867
#15 0xc037859f in trap (frame={tf_fs = 16, tf_es = 16, tf_ds = 16,
      tf_edi = 6756538, tf_esi = 1, tf_ebp = -1069570240, tf_isp = -1069570280,
---Type <return> to continue, or q <return> to quit---
      tf_ebx = -1058483712, tf_edx = -1058799616, tf_ecx = -1608507392,
      tf_eax = 1828738, tf_trapno = 12, tf_err = 2, tf_eip = -1071494537,
      tf_cs = 8, tf_eflags = 66070, tf_esp = -1058571520, tf_ss = -1058512894})
    at /usr/src/sys/i386/i386/trap.c:466
#16 0xc0224a77 in m_getcl (how=1, type=1, flags=2)
    at /usr/src/sys/kern/uipc_mbuf.c:589
#17 0xc01ae05f in fxp_add_rfabuf (sc=0xc15bca00, oldm=0xc0e77b00)
    at /usr/src/sys/dev/fxp/if_fxp.c:1863
#18 0xc01acca0 in fxp_intr_body (sc=0xc15bca00, statack=64 '@', count=-1)
    at /usr/src/sys/dev/fxp/if_fxp.c:1323
#19 0xc01acbb5 in fxp_intr (xsc=0xc15bca00) at /usr/src/sys/dev/fxp/if_fxp.c:1224
#20 0xc036fa06 in cpu_idle () at /usr/src/sys/i386/i386/machdep.c:1024
(kgdb) up 6
#6  0xc030c048 in acquire_lock (lk=0xc042f37c)
    at /usr/src/sys/ufs/ffs/ffs_softdep.c:266
266             lk->lkt_held = CURPROC->p_pid;
(kgdb) up 10
#16 0xc0224a77 in m_getcl (how=1, type=1, flags=2)
    at /usr/src/sys/kern/uipc_mbuf.c:589
589                     MCLGET(mp, how);

>How-To-Repeat:
      Install FreeBSD 4.6-STABLE on machine as described above and try to use it harder (transferring big files) over Compaq/Intel NIC.

>Fix:
      Unknown.

Work-around: downgrade to 4.6.2-RELEASE or use other non-fxp NIC.
>Release-Note:
>Audit-Trail:
>Unformatted:
 >netstat -m -M vmcore.0 -N /usr/obj/usr/src/sys/GENERICDBG/kernel.debug
 141/464/10048 mbufs in use (current/peak/max):
         141 mbufs allocated to data
 129/134/2512 mbuf clusters in use (current/peak/max)
 384 Kbytes allocated to network (5% of mb_map in use)
 0 requests for memory denied
 0 requests for memory delayed
 0 calls to protocol drain routines
 
 >vmstat -M vmcore.0 -N /usr/obj/usr/src/sys/GENERICDBG/kernel.debug
  procs      memory      page                    disks     faults      cpu
  r b w     avm    fre  flt  re  pi  po  fr  sr ad0 md0   in   sy  cs us sy id
  0 0 0   32348  37436    4   0   0   0   3   0   0   0   12   25   6  1  1 98
 
 
 2nd crash:
 ----------
 dump same as in 1st
 
 
 3rd crash:
 ----------
 gdbmods using kernel: /usr/obj/usr/src/sys/GENERICDBG/kernel.debug
 gdbmods using core:   vmcore.2
 GNU gdb 4.18 (FreeBSD)
 Copyright 1998 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-unknown-freebsd"...
 IdlePTD at phsyical address 0x00528000
 initial pcb at physical address 0x00461a60
 panicstr: page fault
 panic messages:
 ---
 Fatal trap 12: page fault while in kernel mode
 fault virtual address   = 0xc0ffe798
 fault code              = supervisor write, page not present
 instruction pointer     = 0x8:0xc022794f
 stack pointer           = 0x10:0xcdf07e30
 frame pointer           = 0x10:0xcdf07e54
 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         = 503 (ftpd)
 interrupt mask          = net tty
 trap number             = 12
 panic: page fault
 syncing disks... 7 1
 done
 Uptime: 24m38s
 
 dumping to dev #ad/0x30001, offset 1572992
 dump ata0: resetting devices .. done
 255 254 253 252 251 250 249 248 247 246 245 244 243 242 241 240 239 238 237 236 235 234 233 232 231 230 229 228 227 226 225 224 223 222 221 220 219 218 217 216 215 214 213 212 211 210 209 208 207 206 205 204 203 202 201 200 199 198 197 196 195 194 193 19 2 191 190 189 188 187 186 185 184 183 182 181 180 179 178 177 176 175 174 173 172 171 170 169 168 167 166 165 164 163 162 161 160 159 158 157 156 155 154 153 152 151 150 149 148 147 146 145 144 143 142 141 140 139 138 137 136 135 134 133 132 131 130 129  128 127 126 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 98 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 25 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
 ---
 #0  dumpsys () at /usr/src/sys/kern/kern_shutdown.c:487
 487             if (dumping++) {
 #0  dumpsys () at /usr/src/sys/kern/kern_shutdown.c:487
 #1  0xc020901f in boot (howto=256) at /usr/src/sys/kern/kern_shutdown.c:316
 #2  0xc0209444 in poweroff_wait (junk=0xc03f12ec, howto=-1069609457)
     at /usr/src/sys/kern/kern_shutdown.c:595
 #3  0xc0378d0e in trap_fatal (frame=0xcdf07df0, eva=3237996440)
     at /usr/src/sys/i386/i386/trap.c:974
 #4  0xc03789e1 in trap_pfault (frame=0xcdf07df0, usermode=0, eva=3237996440)
     at /usr/src/sys/i386/i386/trap.c:867
 #5  0xc037859f in trap (frame={tf_fs = 16, tf_es = 16, tf_ds = 16, tf_edi = 0,
       tf_esi = -1058254080, tf_ebp = -839877036, tf_isp = -839877092,
       tf_ebx = -1058254080, tf_edx = -1058799616, tf_ecx = -1608462336,
       tf_eax = 1828760, tf_trapno = 12, tf_err = 2, tf_eip = -1071482545,
       tf_cs = 8, tf_eflags = 66066, tf_esp = -1049444352, tf_ss = -869364064})
     at /usr/src/sys/i386/i386/trap.c:466
 #6  0xc022794f in sosend (so=0xcccde240, addr=0x0, uio=0xcdf07ed4, top=0x0,
     control=0x0, flags=0, p=0xcc2e8ea0) at /usr/src/sys/kern/uipc_socket.c:567
 #7  0xc021b2dc in soo_write (fp=0xc172c000, uio=0xcdf07ed4, cred=0xc1895c80,
     flags=0, p=0xcc2e8ea0) at /usr/src/sys/kern/sys_socket.c:81
 #8  0xc0217f6d in dofilewrite (p=0xcc2e8ea0, fp=0xc172c000, fd=7, buf=0x8080000,
     nbyte=33304, offset=-1, flags=0) at /usr/src/sys/sys/file.h:162
 #9  0xc0217e26 in write (p=0xcc2e8ea0, uap=0xcdf07f80)
     at /usr/src/sys/kern/sys_generic.c:329
 #10 0xc0378fbd in syscall2 (frame={tf_fs = 47, tf_es = 47, tf_ds = 47,
       tf_edi = 134742016, tf_esi = 672552440, tf_ebp = -1077942408,
       tf_isp = -839876652, tf_ebx = 672477060, tf_edx = 672552440, tf_ecx = 16384,
       tf_eax = 4, tf_trapno = 0, tf_err = 2, tf_eip = 672430484, tf_cs = 31,
       tf_eflags = 647, tf_esp = -1077942452, tf_ss = 47})
     at /usr/src/sys/i386/i386/trap.c:1175
 #11 0xc036a0c5 in Xint0x80_syscall ()
 #12 0x2814566e in ?? ()
 #13 0x281455dd in ?? ()
 #14 0x28130aab in ?? ()
 #15 0x804d772 in ?? ()
 ---Type <return> to continue, or q <return> to quit---
 #16 0x804cc0a in ?? ()
 #17 0x80513a2 in ?? ()
 #18 0x804b43d in ?? ()
 #19 0x804a905 in ?? ()
 (kgdb) up 6
 #6  0xc022794f in sosend (so=0xcccde240, addr=0x0, uio=0xcdf07ed4, top=0x0,
     control=0x0, flags=0, p=0xcc2e8ea0) at /usr/src/sys/kern/uipc_socket.c:567
 567                                     MCLGET(m, M_WAIT);
 
 >netstat -m -M vmcore.2 -N /usr/obj/usr/src/sys/GENERICDBG/kernel.debug
 136/544/10048 mbufs in use (current/peak/max):
         136 mbufs allocated to data
 134/290/2512 mbuf clusters in use (current/peak/max)
 716 Kbytes allocated to network (9% of mb_map in use)
 0 requests for memory denied
 0 requests for memory delayed
 0 calls to protocol drain routines
 
 >vmstat -M vmcore.2 -N /usr/obj/usr/src/sys/GENERICDBG/kernel.debug
  procs      memory      page                    disks     faults      cpu
  r b w     avm    fre  flt  re  pi  po  fr  sr ad0 md0   in   sy  cs us sy id
  1 0 0   26332  37196   16   0   0   0  21  10   0   0  121  105  47  1  1 98
 
 I've switched all network traffic from fxp1 to rl0 NIC and transferred ~3GB of data without kernel panic. So the bug seemd to be related with fxp1.
 I suppose it is not a hardware (Compaq/Intel NIC) fault, because there are no problems when I downgrade to 4.6.2-RELEASE.

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




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