From owner-freebsd-stable@FreeBSD.ORG Mon Mar 22 14:15:24 2004 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 0F87D16A4CF for ; Mon, 22 Mar 2004 14:15:23 -0800 (PST) Received: from soda.csua.berkeley.edu (soda.CSUA.Berkeley.EDU [128.32.112.233]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6989643D31 for ; Mon, 22 Mar 2004 14:15:21 -0800 (PST) (envelope-from chifung@CSUA.Berkeley.EDU) Received: from soda.csua.berkeley.edu (IDENT:SknOzIHhckK7Jb2VULzxtrvjQe5xwmdF@localhost [127.0.0.1]) i2MMFLLo029684 for ; Mon, 22 Mar 2004 14:15:21 -0800 (PST) (envelope-from chifung@soda.csua.berkeley.edu) Received: (from chifung@localhost) by soda.csua.berkeley.edu (8.12.9/8.12.6/Submit) id i2MMFKvX029680 for freebsd-stable@freebsd.org; Mon, 22 Mar 2004 14:15:20 -0800 (PST) Date: Mon, 22 Mar 2004 14:15:20 -0800 From: Chi-Fung Fan To: freebsd-stable@freebsd.org Message-ID: <20040322221520.GA19081@csua.berkeley.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable X-Floating-Sheep-Port: 0xbaa User-Agent: Mutt/1.5.4i Subject: 4.9 stable panic (maybe cfsd related) 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: Mon, 22 Mar 2004 22:15:24 -0000 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 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"...Deprecated bfd_read cal= led at /usr/src/gnu/usr.bin/binutils/gdb/../../../../contrib/gdb/gdb/dbxrea= d.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 =3D 00000001; cpuid =3D 0; lapic.id =3D 00000000 boot() called on cpu#0 syncing disks... 2=20 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 5= 06 505 504 [CTRL-C to abort] 503 [CTRL-C to abort] 502 501 500 499 498 [CTR= L-C to abort] 497 [CTRL-C to abort] 496 [CTRL-C to abort] 495 [CTRL-C to ab= ort] 494 493 492 491 490 489 488 487 486 485 484 483 482 481 480 479 478 47= 7 476 475 474 473 472 471 470 469 468 467 466 465 464 463 462 461 460 459 4= 58 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 a= bort] [CTRL-C to abort] [CTRL-C to abort] 418 417 416 415 414 413 412 411 4= 10 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 35= 4 353 352 351 350 349 348 347 346 345 344 343 342 341 340 339 338 337 336 3= 35 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 27= 9 278 277 276 275 274 273 272 271 270 269 268 267 266 265 264 263 262 261 2= 60 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 [CT= RL-C to abort] 232 231 [CTRL-C to abort] 230 229 228 227 226 225 224 223 22= 2 221 220 219 218 217 216 215 214 213 212 211 210 209 208 207 206 205 204 2= 03 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 14= 7 146 145 144 143 142 141 140 139 138 137 136 135 134 133 132 131 130 129 1= 28 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=20 --- #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=3D256) at /usr/src/sys/kern/kern_shutdown.c:3= 16 #2 0xc02486f5 in panic (fmt=3D0xc04a0cac "nfs: bioread, not dir") at /usr/src/sys/kern/kern_shutdown.c:595 #3 0xc02f5aed in nfs_bioread (vp=3D0xdb862680, uio=3D0xdb7d0f04, ioflag=3D= 0,=20 cred=3D0xc2355200) at /usr/src/sys/nfs/nfs_bio.c:389 #4 0xc031e98f in nfs_readlink (ap=3D0xdb7d0eac) at /usr/src/sys/nfs/nfs_vnops.c:1048 #5 0xc027c5bf in readlink (p=3D0xdb5008a0, uap=3D0xdb7d0f80) at vnode_if.h= :794 #6 0xc042bd1d in syscall2 (frame=3D{tf_fs =3D 136708143, tf_es =3D 47, tf_= ds =3D 47,=20 tf_edi =3D -1077944032, tf_esi =3D 100, tf_ebp =3D -1077944224,=20 tf_isp =3D -612560940, tf_ebx =3D -1077944032, tf_edx =3D 9360, tf_ec= x =3D 7,=20 tf_eax =3D 58, tf_trapno =3D 7, tf_err =3D 2, tf_eip =3D 675851080, t= f_cs =3D 31,=20 tf_eflags =3D 663, tf_esp =3D -1077944300, tf_ss =3D 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 to continue, or q to quit---q Quit (kgdb) f 3 #3 0xc02f5aed in nfs_bioread (vp=3D0xdb862680, uio=3D0xdb7d0f04, ioflag=3D= 0,=20 cred=3D0xc2355200) 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) =3D=3D 0) { 386 if (np->n_flag & NMODIFIED) { 387 if (vp->v_type !=3D VREG) { 388 if (vp->v_type !=3D VDIR) 389 panic("nfs: bioread, not dir"); 390 nfs_invaldir(vp); 391 error =3D nfs_vinvalbuf(vp, V_SAVE, cred, p, 1); 392 if (error) 393 return (error); (kgdb) p *vp $1 =3D {v_flag =3D 8192, v_usecount =3D 1, v_writecount =3D 0, v_holdcnt = =3D 0,=20 v_id =3D 23927133, v_mount =3D 0xc2314e00, v_op =3D 0xc20a8300, v_freelis= t =3D { tqe_next =3D 0x0, tqe_prev =3D 0xdba9ad5c}, v_nmntvnodes =3D { tqe_next =3D 0xdbe06080, tqe_prev =3D 0xdba5f524}, v_cleanblkhd =3D { tqh_first =3D 0x0, tqh_last =3D 0xdb8626ac}, v_dirtyblkhd =3D {tqh_firs= t =3D 0x0,=20 tqh_last =3D 0xdb8626b4}, v_synclist =3D {le_next =3D 0x0,=20 le_prev =3D 0xdbf5977c}, v_numoutput =3D 0, v_type =3D VLNK, v_un =3D { vu_mountedhere =3D 0x0, vu_socket =3D 0x0, vu_spec =3D {vu_specinfo =3D= 0x0,=20 vu_specnext =3D {sle_next =3D 0x0}}, vu_fifoinfo =3D 0x0}, v_lease = =3D 0x0,=20 v_lastw =3D 0, v_cstart =3D 0, v_lasta =3D 0, v_clen =3D 0, v_object =3D = 0xdb66d9b4,=20 v_interlock =3D {lock_data =3D 0}, v_vnlock =3D 0x0, v_tag =3D VT_NFS,=20 v_data =3D 0xdc385c60, v_cache_src =3D {lh_first =3D 0x0}, v_cache_dst = =3D { tqh_first =3D 0xc2b0b200, tqh_last =3D 0xc2b0b210}, v_dd =3D 0xdb862680= ,=20 v_ddid =3D 0, v_pollinfo =3D {vpi_lock =3D {lock_data =3D 0}, vpi_selinfo= =3D { si_pid =3D 0, si_note =3D {slh_first =3D 0x0}, si_flags =3D 0}, vpi_e= vents =3D 0,=20 vpi_revents =3D 0}, v_vxproc =3D 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@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@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 =3D "GenuineIntel" Id =3D 0xf29 Stepping =3D 9 Features=3D0xbfebfbff Hyperthreading: 2 logical CPUs real memory =3D 536018944 (523456K bytes) config> di bt0 config> di aic0 config> di aha0 config> di adv0 config> q avail memory =3D 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: on motherboard npx0: INT 16 interface pcib0: 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: on pcib0 agp0: mem 0xf8000000-0xfbffffff at device = 0.0 on pci0 pcib1: at device 1.0 on p= ci0 pci1: on pcib1 pci1: at 0.0 irq 2 uhci0: port 0xef00-0xef1f irq 2= at device 29.0 on pci0 usb0: 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: port 0xef20-0xef3f irq 5= at device 29.1 on pci0 usb1: 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: port 0xef40-0xef5f irq 1= 0 at device 29.2 on pci0 usb2: 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: port 0xef80-0xef9f irq 2= at device 29.3 on pci0 usb3: 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: at 29.7 irq 11 pcib2: at device 30.0 on pci0 IOAPIC #0 intpin 22 -> irq 17 pci2: on pcib2 skc0: <3Com 3C940 Gigabit Ethernet> port 0xd800-0xd8ff mem 0xfeafc000-0xfea= fffff irq 17 at device 5.0 on pci2 skc0: 3Com Gigabit LOM (3C940) sk0: on skc0 sk0: Ethernet address: 00:0b:6a:f3:f4:a5 miibus0: on sk0 e1000phy0: on miibus0 e1000phy0: 1000baseTX-FDX, 100baseTX-FDX, 100baseTX, 10baseTX-FDX, 10baseT= X, auto isab0: at device 31.0 on = pci0 isa0: on isab0 atapci0: port 0xfc00-0xfc0f,0-0x3,0-0x7,0-0x= 3,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: (vendor=3D0x8086, dev=3D0x24d3) at 31.3 irq 16 pcm0: port 0xee80-0xeebf,0xe800-0xe8ff mem 0xfebff40= 0-0xfebff4ff,0xfebff800-0xfebff9ff irq 16 at device 31.5 on pci0 pcm0: orm0: