From owner-freebsd-bugs Mon Mar 10 10: 0:46 2003 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7F9DE37B408 for ; Mon, 10 Mar 2003 10:00:32 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 811314400F for ; Mon, 10 Mar 2003 10:00:25 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.6/8.12.6) with ESMTP id h2AI0PNS085247 for ; Mon, 10 Mar 2003 10:00:25 -0800 (PST) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id h2AI0PSB085246; Mon, 10 Mar 2003 10:00:25 -0800 (PST) Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8DCF737B401 for ; Mon, 10 Mar 2003 09:51:49 -0800 (PST) Received: from firewater.f5.com (mulder.f5.com [205.229.151.150]) by mx1.FreeBSD.org (Postfix) with ESMTP id A0B7243FCB for ; Mon, 10 Mar 2003 09:51:47 -0800 (PST) (envelope-from mm@f5.com) Received: from f5-exchange.f5net.com (f5-exchange.win.net [192.168.11.140]) by firewater.f5.com (8.12.8/8.12.8) with ESMTP id h2AHGlQ2001836 for ; Mon, 10 Mar 2003 09:16:47 -0800 Received: by f5-exchange.olympus.f5net.com with Internet Mail Service (5.5.2655.55) id ; Mon, 10 Mar 2003 09:51:47 -0800 Received: from pivo.mm.lab (machacek12.f5net.com [192.168.33.125]) by f5-exchange.f5net.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2655.55) id GNWADDHJ; Mon, 10 Mar 2003 09:51:42 -0800 Received: by pivo.mm.lab (Postfix, from userid 1001) id B2BAB431A; Mon, 10 Mar 2003 09:51:42 -0800 (PST) Message-Id: <20030310175142.B2BAB431A@pivo.mm.lab> Date: Mon, 10 Mar 2003 09:51:42 -0800 (PST) From: Martin Machacek Reply-To: Martin Machacek To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: kern/49079: panic: bwrite: buffer is not busy Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 49079 >Category: kern >Synopsis: panic: bwrite: buffer is not busy >Confidential: no >Severity: critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Mar 10 10:00:24 PST 2003 >Closed-Date: >Last-Modified: >Originator: Martin Machacek >Release: FreeBSD 5.0-RELEASE i386 >Organization: >Environment: System: FreeBSD pivo.mm.lab 5.0-RELEASE FreeBSD 5.0-RELEASE #0: Fri Mar 7 09:15:41 PST 2003 root@pivo.mm.lab:/usr/src/sys/i386/compile/PIVO i386 >Description: The system panics with "panic: bwrite: buffer is not busy" after random time after boot if X server is running (although this is not verified to be necessary) and there is lot of disk activity. It has repeatedly happend during daily periodic check (I'm using xdm, so X server is running all the time). Note: I had to use "DISABLE_PSE" and "DISABLE_PG_G" to prevent applications being killed by SIGILL on this machine. Stack backtrace taken from latest crashdump follows: mm@pivo:/var/crash# gdb -k -c vmcore.1 /sys/i386/compile/PIVO/kernel.debug GNU gdb 5.2.1 (FreeBSD) Copyright 2002 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-undermydesk-freebsd"... panic: bwrite: buffer is not busy??? panic messages: --- panic: ufs_dirbad: bad dir syncing disks, buffers remaining... panic: bwrite: buffer is not busy??? Uptime: 2d23h32m45s Dumping 511 MB ata0: resetting devices .. done 16 32 48 64 80 96 112 128 144 160 176 192 208 224 240 256 272 288 304 320 336 352 368 384 400 416 432 448 464 480 496 --- #0 doadump () at ../../../kern/kern_shutdown.c:232 232 dumping++; (kgdb) bt #0 doadump () at ../../../kern/kern_shutdown.c:232 #1 0xc0237e60 in boot (howto=260) at ../../../kern/kern_shutdown.c:364 #2 0xc023806d in poweroff_wait (junk=0xc03d27e3, howto=-834382628) at ../../../kern/kern_shutdown.c:517 #3 0xc0273237 in bwrite (bp=0x104) at ../../../kern/vfs_bio.c:796 #4 0xc027470c in vfs_bio_awrite (bp=0xce445430) at ../../../kern/vfs_bio.c:1643 #5 0xc0343872 in ffs_fsync (ap=0xe0b45860) at ../../../ufs/ffs/ffs_vnops.c:258 #6 0xc0342aff in ffs_sync (mp=0xc3dff800, waitfor=2, cred=0xc1293e80, td=0xc0424200) at vnode_if.h:612 #7 0xc0285669 in sync (td=0xc0424200, uap=0x0) at ../../../kern/vfs_syscalls.c:138 #8 0xc0237acc in boot (howto=256) at ../../../kern/kern_shutdown.c:273 #9 0xc023806d in poweroff_wait (junk=0xc03df15d, howto=-1007009616) at ../../../kern/kern_shutdown.c:517 #10 0xc034a499 in ufs_dirbad (ip=0x0, offset=0, how=0x0) at ../../../ufs/ufs/ufs_lookup.c:631 #11 0xc03499eb in ufs_lookup (ap=0xe0b45ac0) at ../../../ufs/ufs/ufs_lookup.c:294 #12 0xc0350cba in ufs_vnoperate (ap=0x0) at ../../../ufs/ufs/ufs_vnops.c:2796 #13 0xc0277e23 in vfs_cache_lookup (ap=0x0) at vnode_if.h:82 #14 0xc0350cba in ufs_vnoperate (ap=0x0) at ../../../ufs/ufs/ufs_vnops.c:2796 #15 0xc027bebe in lookup (ndp=0xe0b45c28) at vnode_if.h:52 #16 0xc027b8d7 in namei (ndp=0xe0b45c28) at ../../../kern/vfs_lookup.c:181 #17 0xc02880ba in lstat (td=0xc40b38c0, uap=0xe0b45d14) at ../../../kern/vfs_syscalls.c:1699 #18 0xc0393807 in syscall (frame= {tf_fs = 134938671, tf_es = 134873135, tf_ds = 136052783, tf_edi = 135978656, tf_esi = 134876304, tf_ebp = 135977844, tf_isp = -525050508, tf_ebx = 136346664, tf_edx = 0, tf_ecx = 0, tf_eax = 190, tf_trapno = 22, tf_err = 2, tf_eip = 672664659, tf_cs = 31, tf_eflags = 582, tf_esp = 135977708, tf_ss = 47}) at ../../../i386/i386/trap.c:1033 #19 0xc03849fd in Xint0x80_syscall () at {standard input}:140 ---Can't read userspace from dump, or kernel process--- dmesg: mm@pivo:/var/crash# cat /var/run/dmesg.boot Copyright (c) 1992-2003 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-RELEASE #0: Fri Mar 7 09:15:41 PST 2003 root@pivo.mm.lab:/usr/src/sys/i386/compile/PIVO Preloaded elf kernel "/boot/kernel/kernel" at 0xc0565000. Preloaded elf module "/boot/kernel/acpi.ko" at 0xc05650a8. Timecounter "i8254" frequency 1193182 Hz Timecounter "TSC" frequency 1793363468 Hz CPU: Pentium 4 (1793.36-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0xf24 Stepping = 4 Features=0x3febfbff real memory = 536285184 (511 MB) avail memory = 515149824 (491 MB) Initializing GEOMetry subsystem Pentium Pro MTRR support enabled npx0: on motherboard npx0: INT 16 interface acpi0: on motherboard ACPI-0625: *** Info: GPE Block0 defined as GPE0 to GPE31 Using $PIR table, 9 entries at 0xc00feae0 acpi0: power button is handled as a fixed feature programming model. Timecounter "ACPI-fast" frequency 3579545 Hz acpi_timer0: <24-bit timer at 3.579545MHz> port 0x808-0x80b on acpi0 acpi_cpu0: on acpi0 acpi_button0: on acpi0 pcib0: port 0xcf8-0xcff on acpi0 pci0: on pcib0 agp0: mem 0xe8000000-0xefffffff at device 0.0 on pci0 pcib1: at device 1.0 on pci0 pci1: on pcib1 drm0: port 0xec00-0xecff mem 0xff8f0000-0xff8fffff,0xf0000000-0xf7ffffff irq 11 at device 0.0 on pci1 info: [drm] AGP at 0xe8000000 128MB info: [drm] Initialized radeon 1.1.1 20010405 on minor 0 uhci0: port 0xff80-0xff9f irq 11 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 ums0: Logitech USB Optical Mouse, rev 1.10/21.10, addr 2, iclass 3/1 ums0: 3 buttons and Z dir. uhci1: port 0xff60-0xff7f irq 10 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 0xff40-0xff5f irq 9 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 pci0: at device 29.7 (no driver attached) pcib2: at device 30.0 on pci0 pci2: on pcib2 xl0: <3Com 3c905C-TX Fast Etherlink XL> port 0xdc80-0xdcff mem 0xff6ffc00-0xff6ffc7f irq 9 at device 9.0 on pci2 xl0: Ethernet address: 00:01:02:2e:46:78 miibus0: on xl0 xlphy0: <3c905C 10/100 internal PHY> on miibus0 xlphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto em0: port 0xdc40-0xdc7f mem 0xff6c0000-0xff6dffff irq 9 at device 12.0 on pci2 em0: Speed:100 Mbps Duplex:Full isab0: at device 31.0 on pci0 isa0: on isab0 atapci0: port 0xffa0-0xffaf,0-0x3,0-0x7,0-0x3,0-0x7 at device 31.1 on pci0 ata0: at 0x1f0 irq 14 on atapci0 ata1: at 0x170 irq 15 on atapci0 pci0: at device 31.3 (no driver attached) pcm0: port 0xcc40-0xcc7f,0xc800-0xc8ff mem 0xffa20000-0xffa200ff,0xffa20400-0xffa205ff irq 11 at device 31.5 on pci0 speaker0 port 0x61 on acpi0 fdc0: port 0x3f7,0x3f0-0x3f5 irq 6 drq 2 on acpi0 fdc0: FIFO enabled, 8 bytes threshold fd0: <1440-KB 3.5" drive> on fdc0 drive 0 atkbdc0: port 0x64,0x60 irq 1 on acpi0 atkbd0: flags 0x1 irq 1 on atkbdc0 kbd0 at atkbd0 sio0 port 0x3f8-0x3ff irq 4 on acpi0 sio0: type 16550A orm0: