Date: Thu, 13 Dec 2001 20:49:38 +0300 (MSK) From: Yar Tikhiy <yar@comp.chem.msu.su> To: FreeBSD-gnats-submit@freebsd.org Subject: kern/32809: yet another panic while syncing disks after a panic Message-ID: <200112131749.fBDHncZ87257@bsd.chem.msu.ru>
next in thread | raw e-mail | index | archive | help
>Number: 32809
>Category: kern
>Synopsis: yet another panic while syncing disks after a panic
>Confidential: no
>Severity: serious
>Priority: high
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Thu Dec 13 09:50:01 PST 2001
>Closed-Date:
>Last-Modified:
>Originator: Yar Tikhiy
>Release: FreeBSD 5.0-CURRENT i386
>Organization:
Moscow State University
>Environment:
System: FreeBSD stylish.chem.msu.su 5.0-CURRENT FreeBSD 5.0-CURRENT #2: Thu Dec 13 18:49:28 MSK 2001 yar@stylish.chem.msu.su:/usr/obj/usr/src/sys/STYLISH i386
CVSup'ed on December,11
The kernel configuration is as primitive as possible:
# Based on
# $FreeBSD: src/sys/i386/conf/GENERIC,v 1.330 2001/12/04 11:12:20 des Exp $
machine i386
cpu I586_CPU
cpu I686_CPU
ident STYLISH
maxusers 32
makeoptions DEBUG=-g #Build kernel with gdb(1) debug symbols
options INET #InterNETworking
options FFS #Berkeley Fast Filesystem
options PROCFS #Process filesystem (requires PSEUDOFS)
options PSEUDOFS #Pseudo-filesystem framework
options COMPAT_43 #Compatible with BSD 4.3 [KEEP THIS!]
options KTRACE #ktrace(1) support
# 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 mutex checks to detects deadlocks and cycles
device isa
device pci
# Floppy drives
device fdc
# ATA and ATAPI devices
device ata
device atadisk # ATA disk drives
options ATA_STATIC_ID #Static device numbering
# atkbdc0 controls both the keyboard and the PS/2 mouse
device atkbdc 1 # At keyboard controller
device atkbd # at keyboard
device vga # VGA screen
# syscons is the default console driver, resembling an SCO console
device sc 1
# Floating point support - do not disable.
device npx
# Serial (COM) ports
device sio # 8250, 16[45]50 based serial ports
# Parallel port
device ppc
device ppbus # Parallel port bus (required)
device lpt # Printer
# 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 fxp # Intel EtherExpress PRO/100B (82557, 82558)
# Pseudo devices - the number indicates how many units to allocate.
device random # Entropy device
device loop # Network loopback
device ether # Ethernet support
device pty # Pseudo-ttys (telnet etc)
>Description:
After any panic, the system tries to sync disks,
but gets yet another panic as follows:
stylish# sysctl debug.debugger_on_panic=0
debug.debugger_on_panic: 1 -> 0
stylish# ./666
panic: test panic
syncing disks... panic: bremfree: bp 0xc217a428 not locked
Uptime: 4m43s
pfs_vncache_unload(): 1 entries remaining
dumping to dev ad0s1b, offset 139376
dump ata0: resetting devices ..
[the system hangs dead at this point sometimes]
A stack trace looks like as follows (sorry, the above bp pointer
doesn't match the stack trace):
#0 dumpsys () at /usr/src/sys/kern/kern_shutdown.c:492
#1 0xc0167847 in boot (howto=260) at /usr/src/sys/kern/kern_shutdown.c:335
#2 0xc0167c81 in panic (fmt=0xc0224c01 "bremfree: bp %p not locked")
at /usr/src/sys/kern/kern_shutdown.c:634
#3 0xc01935d1 in bremfree (bp=0xc218debc) at /usr/src/sys/kern/vfs_bio.c:545
#4 0xc0194bcd in vfs_bio_awrite (bp=0xc218debc)
at /usr/src/sys/kern/vfs_bio.c:1535
#5 0xc01cc6d4 in ffs_fsync (ap=0xc68819d4)
at /usr/src/sys/ufs/ffs/ffs_vnops.c:239
#6 0xc01caf12 in ffs_sync (mp=0xc0dcae00, waitfor=2, cred=0xc05a6e00,
td=0xc02a2b24) at vnode_if.h:441
#7 0xc019fb8d in sync (td=0xc02a2b24, uap=0x0)
at /usr/src/sys/kern/vfs_syscalls.c:657
#8 0xc0167490 in boot (howto=256) at /usr/src/sys/kern/kern_shutdown.c:244
#9 0xc0167c81 in panic (fmt=0xc0235c5e "test panic")
at /usr/src/sys/kern/kern_shutdown.c:634
>How-To-Repeat:
Just make a system of a close version panic.
>Fix:
I had better left it to the disk/fs subsystem wizards for now.
>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?200112131749.fBDHncZ87257>
