From owner-freebsd-current Mon Feb 11 19: 8:56 2002 Delivered-To: freebsd-current@freebsd.org Received: from newman2.bestweb.net (newman2.bestweb.net [209.94.102.67]) by hub.freebsd.org (Postfix) with ESMTP id 8183637B49E for ; Mon, 11 Feb 2002 18:17:15 -0800 (PST) Received: from okeeffe.bestweb.net (okeefe.bestweb.net [209.94.100.110]) by newman2.bestweb.net (Postfix) with ESMTP id 952872323E for ; Mon, 11 Feb 2002 21:16:52 -0500 (EST) Received: by okeeffe.bestweb.net (Postfix, from userid 0) id D0C679F110; Mon, 11 Feb 2002 21:11:57 -0500 (EST) Date: Fri, 8 Feb 2002 06:06:25 +0200 From: Giorgos Keramidas To: current@freebsd.org Subject: bremfree related panic Message-Id: <20020212021157.D0C679F110@okeeffe.bestweb.net> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I rebuilt my -CURRENT workstation last night. There still seems to be a minor problem though. While I was running XFree 3.x (a rather old build, compiled from ports): $ pkg_info | grep XFree XFree86-3.3.6_9 X11R6.3/XFree86 core distribution there was the following panic. At the same time the disk was heavily spinning, as I was updating my local NetBSD mirror with CVSup, and periodic was running it's daily stuff. Does this look like a problem with X to you all, or should I look for other causes? I am thinking of X giving me these troubles, only because of frame #13 which is in an address that cannot be printed by gdb. Any ideas? (The bremfree panic is the second panic in the row, so it's probably a whole different problem in itself.) Script started on Fri Feb 8 05:55:22 2002 [toor@hades /var/crash]# gdb -k /usr/obj/usr/src/sys/CHARON/kernel.debug vmcore.1 GNU gdb 4.18 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.291/gdb/dbxread.c line 2629 in elfstab_build_psymtabs Deprecated bfd_read called at /usr/src/gnu/usr.bin/binutils/gdb/../../../../contrib/gdb.291/gdb/dbxread.c line 935 in fill_symbuf IdlePTD at phsyical address 0x003d1000 initial pcb at physical address 0x00329bc0 panicstr: bremfree: bp 0xc2161734 not locked panic messages: --- panic: msleep syncing disks... panic: bremfree: bp 0xc2166e4c not locked Uptime: 2d15h0m41s dumping to dev ad0s3b, offset 1966080 dump ata0: resetting devices .. done 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 dumpsys () at /usr/src/sys/kern/kern_shutdown.c:504 504 if (!dodump) (kgdb) bt #0 dumpsys () at /usr/src/sys/kern/kern_shutdown.c:504 #1 0xc01b8ec4 in boot (howto=260) at /usr/src/sys/kern/kern_shutdown.c:336 #2 0xc01b9361 in panic (fmt=0xc02b5da2 "bremfree: bp %p not locked") at /usr/src/sys/kern/kern_shutdown.c:646 #3 0xc01e7ecf in bremfree (bp=0xc2161734) at /usr/src/sys/kern/vfs_bio.c:545 #4 0xc0196359 in spec_fsync (ap=0xc03d5e98) at /usr/src/sys/fs/specfs/spec_vnops.c:407 #5 0xc0195e51 in spec_vnoperate (ap=0xc03d5e98) at /usr/src/sys/fs/specfs/spec_vnops.c:119 #6 0xc024d449 in ffs_sync (mp=0xc0e00200, waitfor=2, cred=0xc05bee00, td=0xc02f9604) at vnode_if.h:441 #7 0xc01f4c42 in sync (td=0xc02f9604, uap=0x0) at /usr/src/sys/kern/vfs_syscalls.c:669 #8 0xc01b8b46 in boot (howto=256) at /usr/src/sys/kern/kern_shutdown.c:245 #9 0xc01b9361 in panic (fmt=0xc02cb2fe "%s") at /usr/src/sys/kern/kern_shutdown.c:646 #10 0xc0289d78 in trap_fatal (frame=0xc03d5fa8, eva=791205) at /usr/src/sys/i386/i386/trap.c:842 #11 0xc0289aad in trap_pfault (frame=0xc03d5fa8, usermode=0, eva=791205) at /usr/src/sys/i386/i386/trap.c:756 #12 0xc02895ef in trap (frame={tf_fs = 0, tf_es = 0, tf_ds = 0, tf_edi = 51676, tf_esi = 1816, tf_ebp = 264, tf_isp = -1069719596, tf_ebx = 264, tf_edx = 980, tf_ecx = 6930, tf_eax = 0, tf_trapno = 12, tf_err = 4, tf_eip = 4773, tf_cs = 49152, tf_eflags = 721478, tf_esp = 4000, tf_ss = 0}) at /usr/src/sys/i386/i386/trap.c:426 #13 0x12a5 in ?? () Cannot access memory at address 0x108. (kgdb) list /usr/src/sys/kern/vfs_bio.c:545 540 int old_qindex = bp->b_qindex; 541 542 GIANT_REQUIRED; 543 544 if (bp->b_qindex != QUEUE_NONE) { 545 KASSERT(BUF_REFCNT(bp) == 1, ("bremfree: bp %p not locked",bp)); 546 TAILQ_REMOVE(&bufqueues[bp->b_qindex], bp, b_freelist); 547 bp->b_qindex = QUEUE_NONE; 548 } else { 549 if (BUF_REFCNT(bp) <= 1) (kgdb) list /usr/src/sys/i386/i386/trap.c:426 421 422 KASSERT(cold || td->td_ucred != NULL, 423 ("kernel trap doesn't have ucred")); 424 switch (type) { 425 case T_PAGEFLT: /* page fault */ 426 (void) trap_pfault(&frame, FALSE, eva); 427 goto out; 428 429 case T_DNA: 430 #ifdef DEV_NPX (kgdb) q [toor@hades /var/crash]# exit Script done on Fri Feb 8 05:56:52 2002 Here's the dmesg output too: Copyright (c) 1992-2002 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 5.0-CURRENT #0: Thu Feb 7 22:51:16 EET 2002 sysop@hades.hell.gr:/usr/obj/usr/src/sys/CHARON Preloaded elf kernel "/boot/kernel/kernel" at 0xc03b2000. Preloaded userconfig_script "/boot/kernel.conf" at 0xc03b20a8. Timecounter "i8254" frequency 1193182 Hz Timecounter "TSC" frequency 132632338 Hz CPU: Pentium/P54C (132.63-MHz 586-class CPU) Origin = "GenuineIntel" Id = 0x52c Stepping = 12 Features=0x1bf real memory = 67108864 (65536K bytes) avail memory = 61460480 (60020K bytes) Intel Pentium detected, installing workaround for F00F bug VESA: v1.2, 2048k memory, flags:0x0, mode table:0xc00c1bfa (c0001bfa) VESA: S3 Incorporated. 86C325 npx0: on motherboard npx0: INT 16 interface pcib0: at pcibus 0 on motherboard pci0: on pcib0 isab0: at device 7.0 on pci0 isa0: on isab0 atapci0: port 0xf000-0xf00f at device 7.1 on pci0 ata0: at 0x1f0 irq 14 on atapci0 ata1: at 0x170 irq 15 on atapci0 pci0: at device 11.0 (no driver attached) ata: ata0 already exists; skipping it ata: ata1 already exists; skipping it sc: sc0 already exists; skipping it vga: vga0 already exists; skipping it orm0: