4.9 stable panic (maybe cfsd related)

Chi-Fung Fan chifung at CSUA.Berkeley.EDU
Mon Mar 22 14:15:24 PST 2004


Hi,

I've encountered kernel panics on my P4 machine few times.  These
panics only happened occasionally (like once every month).  I'm not
sure if they are time dependent, but they seem to only happen around
5-7am in the morning.  The only nfs server I'm running is cfsd, so
they may be cfs related.

Thanks,

Chi-Fung




#
# debug trace
#

Script started on Tue Mar 23 05:39:36 2004
You have mail.

koyo# gdb -k /usr/obj/usr/src/sys/KOYO_DEBUG/kernel.debug 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"...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



SMP 2 cpus

IdlePTD at physical address 0x0065b000

initial pcb at physical address 0x0055be40

panicstr: nfs: bioread, not dir

panic messages:

---

panic: nfs: bioread, not dir

mp_lock = 00000001; cpuid = 0; lapic.id = 00000000

boot() called on cpu#0



syncing disks... 2 

done

Uptime: 20d16h21m57s



dumping to dev #ad/0x20001, offset 4195968

dump ata0: resetting devices .. done

511 [CTRL-C to abort] [CTRL-C to abort] 510 509 508 [CTRL-C to abort] 507 506 505 504 [CTRL-C to abort] 503 [CTRL-C to abort] 502 501 500 499 498 [CTRL-C to abort] 497 [CTRL-C to abort] 496 [CTRL-C to abort] 495 [CTRL-C to abort] 494 493 492 491 490 489 488 487 486 485 484 483 482 481 480 479 478 477 476 475 474 473 472 471 470 469 468 467 466 465 464 463 462 461 460 459 458 457 456 455 454 453 452 451 450 449 448 447 446 445 444 443 442 441 440 439 438 437 436 435 434 433 432 431 430 429 428 427 426 425 424 423 422 421 [CTRL-C to abort] [CTRL-C to abort] [CTRL-C to abort] 420 419 [CTRL-C to abort] [CTRL-C to abort] [CTRL-C to abort] 418 417 416 415 414 413 412 411 410 409 408 407 406 405 404 403 402 401 400 399 398 397 396 395 394 393 392 391 390 389 388 387 386 385 384 383 382 381 380 379 378 377 376 375 374 373 372 371 370 369 368 367 366 365 364 363 362 361 360 359 358 357 356 355 354 353 352 351 350 349 348 347 346 345 344 343 342 341 340 339 338 337 336 335 334 333 332 331 330 329 328 327 326 325 324 323 322 321 320 319 318 317 316 315 314 313 312 311 310 309 308 307 306 305 304 303 302 301 300 299 298 297 296 295 294 293 292 291 290 289 288 287 286 285 284 283 282 281 280 279 278 277 276 275 274 273 272 271 270 269 268 267 266 265 264 263 262 261 260 259 258 257 256 255 254 253 252 251 250 249 248 247 246 245 244 243 242 241 240 239 238 237 [CTRL-C to abort] 236 235 234 [CTRL-C to abort] 233 [CTRL-C to abort] 232 231 [CTRL-C to abort] 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++) {

(kgdb) bt

#0  dumpsys () at /usr/src/sys/kern/kern_shutdown.c:487

#1  0xc0248274 in boot (howto=256) at /usr/src/sys/kern/kern_shutdown.c:316

#2  0xc02486f5 in panic (fmt=0xc04a0cac "nfs: bioread, not dir")

    at /usr/src/sys/kern/kern_shutdown.c:595

#3  0xc02f5aed in nfs_bioread (vp=0xdb862680, uio=0xdb7d0f04, ioflag=0, 

    cred=0xc2355200) at /usr/src/sys/nfs/nfs_bio.c:389

#4  0xc031e98f in nfs_readlink (ap=0xdb7d0eac)

    at /usr/src/sys/nfs/nfs_vnops.c:1048

#5  0xc027c5bf in readlink (p=0xdb5008a0, uap=0xdb7d0f80) at vnode_if.h:794

#6  0xc042bd1d in syscall2 (frame={tf_fs = 136708143, tf_es = 47, tf_ds = 47, 

      tf_edi = -1077944032, tf_esi = 100, tf_ebp = -1077944224, 

      tf_isp = -612560940, tf_ebx = -1077944032, tf_edx = 9360, tf_ecx = 7, 

      tf_eax = 58, tf_trapno = 7, tf_err = 2, tf_eip = 675851080, tf_cs = 31, 

      tf_eflags = 663, tf_esp = -1077944300, tf_ss = 47})

    at /usr/src/sys/i386/i386/trap.c:1175

#7  0xc0415eab in Xint0x80_syscall ()

#8  0x80ef1fe in ?? ()

#9  0x80ef350 in ?? ()

#10 0x80fc0e7 in ?? ()

#11 0x8129877 in ?? ()

#12 0x81517e0 in ?? ()

#13 0x8129dbf in ?? ()

#14 0x8129904 in ?? ()

#15 0x81517e0 in ?? ()

---Type <return> to continue, or q <return> to quit---q

Quit

(kgdb) f 3

#3  0xc02f5aed in nfs_bioread (vp=0xdb862680, uio=0xdb7d0f04, ioflag=0, 

    cred=0xc2355200) at /usr/src/sys/nfs/nfs_bio.c:389

389                     panic("nfs: bioread, not dir");

(kgdb) list

384      */

385     if ((nmp->nm_flag & NFSMNT_NQNFS) == 0) {

386         if (np->n_flag & NMODIFIED) {

387             if (vp->v_type != VREG) {

388                 if (vp->v_type != VDIR)

389                     panic("nfs: bioread, not dir");

390                 nfs_invaldir(vp);

391                 error = nfs_vinvalbuf(vp, V_SAVE, cred, p, 1);

392                 if (error)

393                     return (error);

(kgdb) p *vp

$1 = {v_flag = 8192, v_usecount = 1, v_writecount = 0, v_holdcnt = 0, 

  v_id = 23927133, v_mount = 0xc2314e00, v_op = 0xc20a8300, v_freelist = {

    tqe_next = 0x0, tqe_prev = 0xdba9ad5c}, v_nmntvnodes = {

    tqe_next = 0xdbe06080, tqe_prev = 0xdba5f524}, v_cleanblkhd = {

    tqh_first = 0x0, tqh_last = 0xdb8626ac}, v_dirtyblkhd = {tqh_first = 0x0, 

    tqh_last = 0xdb8626b4}, v_synclist = {le_next = 0x0, 

    le_prev = 0xdbf5977c}, v_numoutput = 0, v_type = VLNK, v_un = {

    vu_mountedhere = 0x0, vu_socket = 0x0, vu_spec = {vu_specinfo = 0x0, 

      vu_specnext = {sle_next = 0x0}}, vu_fifoinfo = 0x0}, v_lease = 0x0, 

  v_lastw = 0, v_cstart = 0, v_lasta = 0, v_clen = 0, v_object = 0xdb66d9b4, 

  v_interlock = {lock_data = 0}, v_vnlock = 0x0, v_tag = VT_NFS, 

  v_data = 0xdc385c60, v_cache_src = {lh_first = 0x0}, v_cache_dst = {

    tqh_first = 0xc2b0b200, tqh_last = 0xc2b0b210}, v_dd = 0xdb862680, 

  v_ddid = 0, v_pollinfo = {vpi_lock = {lock_data = 0}, vpi_selinfo = {

      si_pid = 0, si_note = {slh_first = 0x0}, si_flags = 0}, vpi_events = 0, 

    vpi_revents = 0}, v_vxproc = 0x0}

(kgdb) quit

koyo# uname -a


FreeBSD xxx 4.9-STABLE FreeBSD 4.9-STABLE #0: Thu Jan 29 06:46:04 HKT 2004     chifung at xxx:/usr/obj/usr/src/sys/KOYO_DEBUG  i386

koyo# exit


exit


Script done on Tue Mar 23 05:40:04 2004








#
# dmesg
#
FreeBSD 4.9-STABLE #0: Thu Jan 29 06:46:04 HKT 2004
    chifung at xxx:/usr/obj/usr/src/sys/KOYO_DEBUG
Timecounter "i8254"  frequency 1193182 Hz
CPU: Intel(R) Pentium(R) 4 CPU 2.60GHz (2605.92-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0xf29  Stepping = 9
  Features=0xbfebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE>
  Hyperthreading: 2 logical CPUs
real memory  = 536018944 (523456K bytes)
config> di bt0
config> di aic0
config> di aha0
config> di adv0
config> q
avail memory = 515112960 (503040K bytes)
Programming 24 pins in IOAPIC #0
IOAPIC #0 intpin 2 -> irq 0
FreeBSD/SMP: Multiprocessor motherboard: 2 CPUs
 cpu0 (BSP): apic id:  0, version: 0x00050014, at 0xfee00000
 cpu1 (AP):  apic id:  1, version: 0x00050014, at 0xfee00000
 io0 (APIC): apic id:  2, version: 0x00178020, at 0xfec00000
Preloaded elf kernel "kernel" at 0xc063c000.
Preloaded userconfig_script "/boot/kernel.conf" at 0xc063c09c.
Warning: Pentium 4 CPU: PSE disabled
Pentium Pro MTRR support enabled
md0: Malloc disk
Using $PIR table, 14 entries at 0xc00f5230
npx0: <math processor> on motherboard
npx0: INT 16 interface
pcib0: <Host to PCI bridge> on motherboard
IOAPIC #0 intpin 16 -> irq 2
IOAPIC #0 intpin 19 -> irq 5
IOAPIC #0 intpin 18 -> irq 10
IOAPIC #0 intpin 23 -> irq 11
IOAPIC #0 intpin 17 -> irq 16
pci0: <PCI bus> on pcib0
agp0: <Intel 82865 host to AGP bridge> mem 0xf8000000-0xfbffffff at device 0.0 on pci0
pcib1: <PCI to PCI bridge (vendor=8086 device=2571)> at device 1.0 on pci0
pci1: <PCI bus> on pcib1
pci1: <NVidia Riva Ultra Vanta TNT2 graphics accelerator> at 0.0 irq 2
uhci0: <Intel 82801EB (ICH5) USB controller USB-A> port 0xef00-0xef1f irq 2 at device 29.0 on pci0
usb0: <Intel 82801EB (ICH5) USB controller USB-A> on uhci0
usb0: USB revision 1.0
uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhci1: <Intel 82801EB (ICH5) USB controller USB-B> port 0xef20-0xef3f irq 5 at device 29.1 on pci0
usb1: <Intel 82801EB (ICH5) USB controller USB-B> on uhci1
usb1: USB revision 1.0
uhub1: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
uhci2: <Intel 82801EB (ICH5) USB controller USB-C> port 0xef40-0xef5f irq 10 at device 29.2 on pci0
usb2: <Intel 82801EB (ICH5) USB controller USB-C> on uhci2
usb2: USB revision 1.0
uhub2: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub2: 2 ports with 2 removable, self powered
uhci3: <Intel 82801EB (ICH5) USB controller USB-D> port 0xef80-0xef9f irq 2 at device 29.3 on pci0
usb3: <Intel 82801EB (ICH5) USB controller USB-D> on uhci3
usb3: USB revision 1.0
uhub3: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub3: 2 ports with 2 removable, self powered
pci0: <USB controller> at 29.7 irq 11
pcib2: <Intel 82801BA/BAM (ICH2) Hub to PCI bridge> at device 30.0 on pci0
IOAPIC #0 intpin 22 -> irq 17
pci2: <PCI bus> on pcib2
skc0: <3Com 3C940 Gigabit Ethernet> port 0xd800-0xd8ff mem 0xfeafc000-0xfeafffff irq 17 at device 5.0 on pci2
skc0: 3Com Gigabit LOM (3C940)
sk0: <Marvell Semiconductor, Inc. Yukon> on skc0
sk0: Ethernet address: 00:0b:6a:f3:f4:a5
miibus0: <MII bus> on sk0
e1000phy0: <Marvell Semiconductor 88E1000* gigabit PHY> on miibus0
e1000phy0:  1000baseTX-FDX, 100baseTX-FDX, 100baseTX, 10baseTX-FDX, 10baseTX, auto
isab0: <PCI to ISA bridge (vendor=8086 device=24d0)> at device 31.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <Intel ICH5 ATA100 controller> port 0xfc00-0xfc0f,0-0x3,0-0x7,0-0x3,0-0x7 irq 10 at device 31.1 on pci0
ata0: at 0x1f0 irq 14 on atapci0
ata1: at 0x170 irq 15 on atapci0
pci0: <unknown card> (vendor=0x8086, dev=0x24d3) at 31.3 irq 16
pcm0: <Intel ICH5 (82801EB)> port 0xee80-0xeebf,0xe800-0xe8ff mem 0xfebff400-0xfebff4ff,0xfebff800-0xfebff9ff irq 16 at device 31.5 on pci0
pcm0: <Analog Devices AD1985 AC97 Codec>
orm0: <Option ROM> at iomem 0xc0000-0xcffff on isa0
pmtimer0 on isa0
fdc0: <NEC 72065B or clone> at port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on isa0
fdc0: FIFO enabled, 8 bytes threshold
fd0: <1440-KB 3.5" drive> on fdc0 drive 0
atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0
atkbd0: <AT Keyboard> flags 0x1 irq 1 on atkbdc0
kbd0 at atkbd0
psm0: failed to get data.
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: model IntelliMouse, device ID 3
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
sio0: type 16550A
sio1 at port 0x2f8-0x2ff irq 3 on isa0
sio1: type 16550A
ppc0: <Parallel port> at port 0x378-0x37f irq 7 on isa0
ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode
ppc0: FIFO with 16/16/9 bytes threshold
plip0: <PLIP network interface> on ppbus0
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
ppi0: <Parallel I/O> on ppbus0
APIC_IO: Testing 8254 interrupt delivery
APIC_IO: routing 8254 via IOAPIC #0 intpin 2
IP packet filtering initialized, divert enabled, rule-based forwarding enabled, default to deny, logging limited to 100 packets/entry by default
IPsec: Initialized Security Association Processing.
ncp_load: [210-213]
SMP: AP CPU #1 Launched!
ad0: 76319MB <ST380011A> [155061/16/63] at ata0-master UDMA100
acd0: CD-RW <SAMSUNG CD-R/RW SW-252B> at ata1-master PIO4
Mounting root from ufs:/dev/ad0s1a
WARNING: / was not properly dismounted









More information about the freebsd-stable mailing list