Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 16 Dec 1999 18:12:25 -0500
From:      Keith Stevenson <k.stevenson@louisville.edu>
To:        freebsd-stable@freebsd.org
Subject:   Softupdates panic in 3.3-STABLE
Message-ID:  <19991216181225.B10015@osaka.louisville.edu>

next in thread | raw e-mail | index | archive | help
This is from an older STABLE, but I haven't seen any softupdates commits in a
while. 

# uname -a
FreeBSD erouter0.it-datacntr.louisville.edu 3.3-STABLE FreeBSD 3.3-STABLE #1: Mon Sep 27 14:32:45 EDT 1999     syskts@erouter0.it-datacntr.louisville.edu:/usr/src/sys/compile/EROUTER  i386

# gdb -k
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".
(kgdb) symbol file /kernel.debug
Reading symbols from file...(no debugging symbols found)...done.
Reading symbols from /kernel.debug...done.
(kgdb) exec-file /var/crash/kernel.0
(kgdb) core-file /var/crash/vmcore.0
IdlePTD 2617344
initial pcb at 219920
panicstr: softdep_disk_write_complete: lock is held
panic messages:
---
panic: softdep_fsync: pending ops

syncing disks... panic: softdep_disk_write_complete: lock is held

dumping to dev 20001, offset 4096
dump 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  boot (howto=260) at ../../kern/kern_shutdown.c:285
285                     dumppcb.pcb_cr3 = rcr3();
(kgdb) where
#0  boot (howto=260) at ../../kern/kern_shutdown.c:285
#1  0xc0145e0c in at_shutdown (
    function=0xc01f91b2 <__set_sysctl__debug_sym_sysctl___debug_rush_requests+2002>, arg=0xc3418270, queue=-1062528000) at ../../kern/kern_shutdown.c:446
#2  0xc01a1ef8 in softdep_disk_write_complete (bp=0xc3418270)
    at ../../ufs/ffs/ffs_softdep.c:2898
#3  0xc0165a36 in biodone (bp=0xc3418270) at ../../kern/vfs_bio.c:1925
#4  0xc01e3fde in wdintr (unitnum=0x0) at ../../i386/isa/wd.c:1275
#5  0xc01cb39a in vec14 ()
#6  0xc0165047 in getblk (vp=0xc61d3540, blkno=1245280, size=8192, slpflag=0, 
    slptimeo=0) at ../../kern/vfs_bio.c:1437
#7  0xc01639c5 in bread (vp=0xc61d3540, blkno=1245280, size=8192, cred=0x0, 
    bpp=0xc64d9de0) at ../../kern/vfs_bio.c:282
#8  0xc019dfac in ffs_update (vp=0xc642b1c0, waitfor=0)
    at ../../ufs/ffs/ffs_inode.c:98
#9  0xc01a7436 in ffs_fsync (ap=0xc64d9e68) at ../../ufs/ffs/ffs_vnops.c:258
#10 0xc01a580f in ffs_sync (mp=0xc0b06a00, waitfor=2, cred=0xc0752300, 
    p=0xc022d468) at vnode_if.h:499
#11 0xc016cb8b in sync (p=0xc022d468, uap=0x0) at ../../kern/vfs_syscalls.c:549
#12 0xc01459cd in boot (howto=256) at ../../kern/kern_shutdown.c:203
#13 0xc0145e0c in at_shutdown (
    function=0xc01f9522 <__set_sysctl__debug_sym_sysctl___debug_rush_requests+2882>, arg=0xc6324600, queue=0) at ../../kern/kern_shutdown.c:446
#14 0xc01a2baa in softdep_fsync (vp=0xc6324600)
    at ../../ufs/ffs/ffs_softdep.c:3567
#15 0xc016f462 in fsync (p=0xc6484c80, uap=0xc64d9f94)
    at ../../kern/vfs_syscalls.c:2449
#16 0xc01d3a73 in syscall (frame={tf_es = 39, tf_ds = -1078001625, 
      tf_edi = -1077946040, tf_esi = 0, tf_ebp = -1077946280, 
      tf_isp = -967991324, tf_ebx = 134684296, tf_edx = 36, tf_ecx = 36, 
      tf_eax = 95, tf_trapno = 7, tf_err = 2, tf_eip = 671813520, tf_cs = 31, 
      tf_eflags = 598, tf_esp = -1077946296, tf_ss = 39})
    at ../../i386/i386/trap.c:1100
#17 0xc01c9fac in Xint0x80_syscall ()
#18 0x804e9d0 in ?? ()
#19 0x8049f65 in ?? ()
#20 0x804be69 in ?? ()
#21 0x804bf7a in ?? ()
#22 0x8052ba9 in ?? ()
#23 0x804c6eb in ?? ()
#24 0x804a276 in ?? ()
#25 0x8049d65 in ?? ()


The system in question is an email hub.  Softupdates are enabled on /usr, /var,
and /var/log.  This has only happened once, but I thought that one of the
filesystem gurus would like to know.

Here's the kernel config for your reference:

#####################
# Basic Configuration
#####################
machine         "i386"
ident           erouter
maxusers        50
options         FAILSAFE                #Be conservative
config          kernel  root on wd0

#############
# CPU Options
#############
cpu             "I686_CPU"
options         "NO_F00F_HACK"

#######################
# Compatibility Options
#######################
options         "COMPAT_43"             #Compatible with BSD 4.3 [KEEP THIS!]
options         SYSVSHM
options         SYSVSEM
options         SYSVMSG
options         "MD5"

##############
# Misc Options
##############
options         UCONSOLE                #Allow users to grab the console
options         USERCONFIG              #boot -c editor
options         VISUAL_USERCONFIG       #visual boot -c editor

####################
# Networking Options
####################
options         INET                    #InterNETworking
pseudo-device   loop                    #Loopback device (mandatory)
pseudo-device   ether                   #Generic ethernet
pseudo-device   bpfilter 2              #Berkeley Packet Filter

####################
# Filesystem Options
####################
options         FFS                     #Berkeley Fast Filesystem
#options         NFS                     #Network Filesystem
options         MSDOSFS                 #MSDOS Filesystem
options         "CD9660"                #ISO 9660 Filesystem
options         PROCFS                  #Process filesystem
options         MFS                     #Memory filesystem (ramdisk)
options         SOFTUPDATES             #Softupdates support

##############
# SCSI Devices
##############
controller      scbus0
device          da0
device          sa0
device          cd0

##############
# Misc Devices
##############
pseudo-device   pty     16
pseudo-device   gzip            # Exec gzipped a.out's (mandatory)
pseudo-device   snp     1       # Snoop device

########################
# Hardware Configuration
########################
controller      isa0
controller      pci0

# Default ANSI console (looks like SCO)
device          sc0     at isa? tty
options         MAXCONS=16              #number of virtual consoles
options         SC_HISTORY_SIZE=200     #history buffer size
options         SC_DISABLE_REBOOT       #Disable <CTRL>-<ALT>-<DELETE>
controller      atkbdc0 at isa? port IO_KBD tty # AT keyboard controller
device          atkbd0  at isa? tty irq1        # AT keyboard
device          vga0    at isa? port ? conflicts        # VGA driver
pseudo-device   splash                  # Required by screen savers

# Mandatory, don't remove
device          npx0    at isa? port "IO_NPX" flags 0x1 irq 13 vector npxintr

# SCSI Controller
controller      ahc0                    #Adaptech 2940UW

# IDE Controllers
options         "CMD640"        # work around CMD640 chip deficiency
controller      wdc0    at isa? port "IO_WD1" bio irq 14 vector wdintr
disk            wd0     at wdc0 drive 0
#disk            wd1     at wdc0 drive 1
controller      wdc1    at isa? port "IO_WD2" bio irq 15 vector wdintr
disk            wd2     at wdc1 drive 0

# Floppy controller
controller      fdc0    at isa? port "IO_FD1" bio irq 6 drq 2 vector fdintr
disk            fd0     at fdc0 drive 0

# Parallel Port
device          ppc0    at isa? port? net irq 7
controller      ppbus0
device          lpt0   at ppbus?

# Serial Ports
device          sio0    at isa? port "IO_COM1" tty irq 4 vector siointr
device          sio1    at isa? port "IO_COM2" tty irq 3 vector siointr

# Network interfaces
device xl0              # 3Com 3C905


Thanks for taking a look!

Regards,
--Keith Stevenson--

-- 
Keith Stevenson
System Programmer - Data Center Services - University of Louisville
k.stevenson@louisville.edu
PGP key fingerprint =  4B 29 A8 95 A8 82 EA A2  29 CE 68 DE FC EE B6 A0


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19991216181225.B10015>