Date: Mon, 10 Mar 2003 09:51:42 -0800 (PST) From: Martin Machacek <m@m3a.net> To: FreeBSD-gnats-submit@FreeBSD.org Subject: kern/49079: panic: bwrite: buffer is not busy Message-ID: <20030310175142.B2BAB431A@pivo.mm.lab>
next in thread | raw e-mail | index | archive | help
>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<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> real memory = 536285184 (511 MB) avail memory = 515149824 (491 MB) Initializing GEOMetry subsystem Pentium Pro MTRR support enabled npx0: <math processor> on motherboard npx0: INT 16 interface acpi0: <DELL GX260 > 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: <CPU> on acpi0 acpi_button0: <Power Button> on acpi0 pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0 pci0: <ACPI PCI bus> on pcib0 agp0: <Intel Generic host to PCI bridge> mem 0xe8000000-0xefffffff at device 0.0 on pci0 pcib1: <PCIBIOS PCI-PCI bridge> at device 1.0 on pci0 pci1: <PCI bus> on pcib1 drm0: <ATI Radeon QY VE (AGP)> 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: <Intel 82801DB (ICH4) USB controller USB-A> port 0xff80-0xff9f irq 11 at device 29.0 on pci0 usb0: <Intel 82801DB (ICH4) 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 ums0: Logitech USB Optical Mouse, rev 1.10/21.10, addr 2, iclass 3/1 ums0: 3 buttons and Z dir. uhci1: <Intel 82801DB (ICH4) USB controller USB-B> port 0xff60-0xff7f irq 10 at device 29.1 on pci0 usb1: <Intel 82801DB (ICH4) 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 82801DB (ICH4) USB controller USB-C> port 0xff40-0xff5f irq 9 at device 29.2 on pci0 usb2: <Intel 82801DB (ICH4) 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 pci0: <serial bus, USB> at device 29.7 (no driver attached) pcib2: <ACPI PCI-PCI bridge> at device 30.0 on pci0 pci2: <ACPI PCI bus> 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: <MII bus> on xl0 xlphy0: <3c905C 10/100 internal PHY> on miibus0 xlphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto em0: <Intel(R) PRO/1000 Network Connection, Version - 1.4.7> port 0xdc40-0xdc7f mem 0xff6c0000-0xff6dffff irq 9 at device 12.0 on pci2 em0: Speed:100 Mbps Duplex:Full isab0: <PCI-ISA bridge> at device 31.0 on pci0 isa0: <ISA bus> on isab0 atapci0: <Intel ICH4 ATA100 controller> 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: <serial bus, SMBus> at device 31.3 (no driver attached) pcm0: <Intel 82801DB (ICH4)> port 0xcc40-0xcc7f,0xc800-0xc8ff mem 0xffa20000-0xffa200ff,0xffa20400-0xffa205ff irq 11 at device 31.5 on pci0 speaker0 port 0x61 on acpi0 fdc0: <Enhanced floppy controller (i82077, NE72065 or clone)> 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: <Keyboard controller (i8042)> port 0x64,0x60 irq 1 on acpi0 atkbd0: <AT Keyboard> flags 0x1 irq 1 on atkbdc0 kbd0 at atkbd0 sio0 port 0x3f8-0x3ff irq 4 on acpi0 sio0: type 16550A orm0: <Option ROMs> at iomem 0xcb800-0xcbfff,0xcb000-0xcb7ff,0xc0000-0xcafff on isa0 pmtimer0 on isa0 sc0: <System console> at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=0x300> sio1: configured irq 3 not in bitmap of probed irqs 0 sio1: port may not be enabled vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 Timecounters tick every 10.000 msec ad0: 19595MB <MAXTOR 6L020J1> [39813/16/63] at ata0-master UDMA100 acd0: CDROM <SAMSUNG CD-ROM SC-148C> at ata1-master PIO4 Mounting root from ufs:/dev/ad0s3a WARNING: / was not properly dismounted WARNING: /usr was not properly dismounted /usr: mount pending error: blocks 12 files 3 /usr: superblock summary recomputed kernel config: machine i386 cpu I686_CPU ident PIVO maxusers 0 makeoptions DEBUG=-g options INET #InterNETworking options INET6 #IPv6 communications protocols options FFS #Berkeley Fast Filesystem options SOFTUPDATES #Enable FFS soft updates support options UFS_ACL #Support for access control lists options UFS_DIRHASH #Improve performance on big directories options MD_ROOT #MD is a potential root device options NFSCLIENT #Network Filesystem Client options NFSSERVER #Network Filesystem Server options NFS_ROOT #NFS usable as root device, requires NFSCLIENT options MSDOSFS #MSDOS Filesystem options CD9660 #ISO 9660 Filesystem options PROCFS #Process filesystem (requires PSEUDOFS) options PSEUDOFS #Pseudo-filesystem framework options COMPAT_43 #Compatible with BSD 4.3 [KEEP THIS!] options COMPAT_FREEBSD4 #Compatible with FreeBSD4 options KTRACE #ktrace(1) support options SYSVSHM #SYSV-style shared memory options SYSVMSG #SYSV-style message queues options SYSVSEM #SYSV-style semaphores options _KPOSIX_PRIORITY_SCHEDULING #Posix P1003_1B real-time extensions options KBD_INSTALL_CDEV # install a CDEV entry in /dev options DISABLE_PSE options DISABLE_PG_G # Debugging for use in -current options DDB #Enable the kernel debugger #options INVARIANTS #Enable calls of extra sanity checking options INVARIANT_SUPPORT #Extra sanity checks of internal structures, required by INVARIANTS #options WITNESS #Enable checks to detect deadlocks and cycles #options WITNESS_SKIPSPIN #Don't run witness on spinlocks for speed device isa device pci # Floppy drives device fdc # ATA and ATAPI devices device ata device atadisk # ATA disk drives device atapicd # ATAPI CDROM drives device atapifd # ATAPI floppy drives device atapist # ATAPI tape drives options ATA_STATIC_ID #Static device numbering # SCSI peripherals device scbus # SCSI bus (required) device ch # SCSI media changers device da # Direct Access (disks) device sa # Sequential Access (tape etc) device cd # CD device pass # Passthrough device (direct SCSI access) device ses # SCSI Environmental Services (and SAF-TE) # atkbdc0 controls both the keyboard and the PS/2 mouse device atkbdc # AT keyboard controller device atkbd # AT keyboard device psm # PS/2 mouse device vga # VGA video card driver device sc device agp # support several AGP chipsets device npx device radeondrm # Power management support (see NOTES for more options) #device apm # Add suspend/resume support for the i8254. device pmtimer # Serial (COM) ports device sio # 8250, 16[45]50 based serial ports device pcm # PCI Ethernet NICs. device de # DEC/Intel DC21x4x (``Tulip'') device em # Intel PRO/1000 adapter Gigabit Ethernet Card device txp # 3Com 3cR990 (``Typhoon'') device vx # 3Com 3c590, 3c595 (``Vortex'') # PCI Ethernet NICs that use the common MII bus controller code. # NOTE: Be sure to keep the 'device miibus' line in order to use these NICs! device miibus # MII bus support device dc # DEC/Intel 21143 and various workalikes device fxp # Intel EtherExpress PRO/100B (82557, 82558) device pcn # AMD Am79C97x PCI 10/100 (precedence over 'lnc') device rl # RealTek 8129/8139 device sf # Adaptec AIC-6915 (``Starfire'') device sis # Silicon Integrated Systems SiS 900/SiS 7016 device ste # Sundance ST201 (D-Link DFE-550TX) device tl # Texas Instruments ThunderLAN device tx # SMC EtherPower II (83c170 ``EPIC'') device vr # VIA Rhine, Rhine II device wb # Winbond W89C840F device xl # 3Com 3c90x (``Boomerang'', ``Cyclone'') device bge # Broadcom BCM570xx Gigabit Ethernet # Pseudo devices - the number indicates how many units to allocate. device random # Entropy device device loop # Network loopback device ether # Ethernet support device tun # Packet tunnel. device pty # Pseudo-ttys (telnet etc) device md # Memory "disks" device gif # IPv6 and IPv4 tunneling device faith # IPv6-to-IPv4 relaying (translation) device bpf # Berkeley packet filter device speaker # USB support device uhci # UHCI PCI->USB interface device ohci # OHCI PCI->USB interface device usb # USB Bus (required) device ugen # Generic device uhid # "Human Interface Devices" device ukbd # Keyboard device ulpt # Printer device umass # Disks/Mass storage - Requires scbus and da device ums # Mouse device urio # Diamond Rio 500 MP3 player device uscanner # Scanners # USB Ethernet, requires mii device aue # ADMtek USB ethernet device cue # CATC USB ethernet device kue # Kawasaki LSI USB ethernet The kernel was compiled with following options in /etc/make.conf: # -- use.perl generated deltas -- # # Created: Wed Feb 12 18:58:20 2003 # Setting to use base perl from ports: CPUTYPE=p4 PERL_VER=5.6.1 PERL_VERSION=5.6.1 PERL_ARCH=mach NOPERL=yo NO_PERL=yo NO_PERL_WRAPPER=yo SUP_UPDATE=yo KERNCONF=PIVO GENERIC NO_BIND=yo NO_SENDMAIL=yo XFree version: XFree86 Version 4.2.1 / X Window System (protocol Version 11, revision 0, vendor release 6600) Release Date: 3 September 2002 If the server is older than 6-12 months, or if your card is newer than the above date, look for a newer version before reporting problems. (See http://www.XFree86.Org/) Build Operating System: FreeBSD 5.0-RC i386 [ELF] Module Loader present XF86Config: Section "ServerLayout" Identifier "XFree86 Configured" Screen 0 "Screen0" 0 0 InputDevice "Mouse0" "CorePointer" InputDevice "Keyboard0" "CoreKeyboard" EndSection Section "Files" RgbPath "/usr/X11R6/lib/X11/rgb" ModulePath "/usr/X11R6/lib/modules" FontPath "/usr/X11R6/lib/X11/fonts/TTF/" FontPath "/usr/X11R6/lib/X11/fonts/misc/" FontPath "/usr/X11R6/lib/X11/fonts/Speedo/" FontPath "/usr/X11R6/lib/X11/fonts/Type1/" FontPath "/usr/X11R6/lib/X11/fonts/75dpi/" FontPath "/usr/X11R6/lib/X11/fonts/100dpi/" EndSection Section "Module" Load "dbe" Load "dri" Load "extmod" Load "glx" Load "pex5" Load "record" Load "xie" Load "xtrap" Load "speedo" Load "type1" Load "freetype" EndSection Section "InputDevice" Identifier "Keyboard0" Driver "keyboard" Option "XkbModel" "pc104" EndSection Section "InputDevice" Identifier "Mouse0" Driver "mouse" Option "Protocol" "auto" Option "Device" "/dev/sysmouse" Option "Buttons" "5" Option "ZAxisMapping" "4 5" EndSection Section "Monitor" #DisplaySize 400 300 # mm Identifier "Monitor0" VendorName "VSC" ModelName "G810-3" HorizSync 30-97 VertRefresh 50-180 Option "DPMS" EndSection Section "Device" Identifier "Card0" Driver "ati" VendorName "ATI" BoardName "Radeon VE QY" BusID "PCI:1:0:0" EndSection Section "Screen" Identifier "Screen0" Device "Card0" Monitor "Monitor0" DefaultDepth 24 SubSection "Display" Depth 16 Modes "1280x1024" EndSubSection SubSection "Display" Depth 24 Modes "1280x1024" EndSubSection EndSection >How-To-Repeat: Run 5.0-RELEASE Kernel and XFree86 Version 4.2.1 X server, induce lot of disk activity (such as deep find, filesystem dump, etc. ..). The problem is not deterministically repeatable but occurs pretty frequently (once an hour - once in 3 days). >Fix: Would love to have one :-). >Release-Note: >Audit-Trail: >Unformatted: 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?20030310175142.B2BAB431A>