Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 27 Aug 2002 16:07:22 +0700 (OMSST)
From:      "Evgueni V.Gavrilov" <admin@rshb.com.ru>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   kern/42064: Repeatable system panics with message "softdep_lock: locking against myself"
Message-ID:  <20020827090722.AB1015362@vampiro.rootshell.ru>

next in thread | raw e-mail | index | archive | help


>Number:         42064
>Category:       kern
>Synopsis:       Repeatable system panics with message "softdep_lock: locking against myself"
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Aug 27 02:10:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Evgueni V. Gavrilov <admin@rshb.com.ru>
>Release:        FreeBSD 4.6-STABLE i386
>Organization:
>Environment:
System: FreeBSD rshb.com.ru 4.6-STABLE FreeBSD 4.6-STABLE #0: Mon Aug 26 21:40:29 OMSST 2002     vampiro@vampiro.rsb.local:/usr/src/sys/compile/MONSTER  i386

machine		i386
cpu		I686_CPU
ident		MONSTER
maxusers	128

options 	INET			#InterNETworking
options 	FFS			#Berkeley Fast Filesystem
options 	FFS_ROOT		#FFS usable as root device [keep this!]
options		NFS
options 	SOFTUPDATES		#Enable FFS soft updates support
options 	PROCFS			#Process filesystem
options 	COMPAT_43		#Compatible with BSD 4.3 [KEEP THIS!]
options 	UCONSOLE		#Allow users to grab the console
options 	USERCONFIG		#boot -c editor
options 	VISUAL_USERCONFIG	#visual boot -c editor
options 	P1003_1B		#Posix P1003_1B real-time extensions
options 	_KPOSIX_PRIORITY_SCHEDULING
options         _KPOSIX_VERSION=199309L
options         KTRACE
options		PERFMON

options 	SYSVSHM			#SYSV-style shared memory
options 	SYSVMSG			#SYSV-style message queues
options 	SYSVSEM			#SYSV-style semaphores

options         SHMSEG=256       # max shared mem id's per process
options         SHMMNI=128       # max shared mem id's per system
options         SHMMAX=33554432 # max shared memory segment size (bytes)
options         SHMALL=8192     # max amount of shared memory (pages)

options         MSGMNB=8192     # max # of bytes in a queue
options         MSGMNI=256       # number of message queue identifiers
options         MSGSEG=256      # number of message segments per queue
options         MSGSSZ=64       # size of a message segment
options         MSGTQL=8192     # max messages in system

options         SEMMNI=256
options         SEMMNS=512
options         SEMMNU=256
options         SEMMAP=256

options		INCLUDE_CONFIG_FILE

options		IPFILTER
options		IPFILTER_LOG

options         IPFIREWALL
options         IPFIREWALL_VERBOSE
options         IPFIREWALL_DEFAULT_TO_ACCEPT
options		IPFW2
options		HZ=1000

options		RANDOM_IP_ID
options		ICMP_BANDLIM
options		ACCEPT_FILTER_HTTP

options         VESA
options         PANIC_REBOOT_WAIT_TIME=20

options         SMBFS
options         LIBMCHAIN
options         LIBICONV
options         NETSMB                  #SMB/CIFS requester
options         NETSMBCRYPTO            #encrypted password support for SMB

options         UFS_DIRHASH
options         SHOW_BUSYBUFS

device		isa
device		pci

device		fdc0	at isa? port IO_FD1 irq 6 drq 2
device		fd0	at fdc0 drive 0
device		fd1	at fdc0 drive 1

device		ata0	at isa? port IO_WD1 irq 14
device		ata1	at isa? port IO_WD2 irq 15
device		ata
device		atadisk			# ATA disk drives
options 	ATA_STATIC_ID		#Static device numbering

device		atkbdc0	at isa? port IO_KBD
device		atkbd0	at atkbdc? irq 1

device		vga0	at isa?

device		sc0	at isa? flags 0x100

device		npx0	at nexus? port IO_NPX irq 13

device		sio0	at isa? port IO_COM1 flags 0x10 irq 4
device		sio1	at isa? port IO_COM2 irq 3

device miibus
device dc

pseudo-device	loop		# Network loopback
pseudo-device	ether		# Ethernet support
pseudo-device	tun		# Packet tunnel.
pseudo-device	pty		# Pseudo-ttys (telnet etc)
pseudo-device	bpf	8	# Berkeley packet filter
pseudo-device	vn	2
pseudo-device   gzip
pseudo-device   splash

device          smbus           # Bus support, required for smb below.
device          intpm
device          alpm
device          ichsmb
device          viapm
device          smb

device          iicbus          # Bus support, required for ic/iic/iicsmb below.
device          iicbb
device          ic
device          iic
device          iicsmb          # smb over i2c bridge
device          pcf0    at isa? port 0x320 irq 5

>Description:
	Repeatable kernel panics per day with message "softdep_lock: locking against myself"

$ gdb -k kernel.debug vmcore.1 
GNU gdb 4.18 (FreeBSD)
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"...
IdlePTD at phsyical address 0x00334000
initial pcb at physical address 0x002a7b40
panicstr: softdep_lock: locking against myself
panic messages:
---
Fatal trap 12: page fault while in kernel mode
fault virtual address   = 0xffff000a
fault code              = supervisor read, page not present
instruction pointer     = 0x8:0xc01f9a9c
stack pointer           = 0x10:0xcd10fd10
frame pointer           = 0x10:0xcd10fd10
code segment            = base 0x0, limit 0xfffff, type 0x1b
                        = DPL 0, pres 1, def32 1, gran 1
processor eflags        = interrupt enabled, resume, IOPL = 0
current process         = 6 (syncer)
interrupt mask          = bio 
trap number             = 12
panic: page fault

syncing disks... panic: softdep_lock: locking against myself
Uptime: 17h51m29s

dumping to dev #ad/0x20001, offset 128
dump ata0: resetting devices .. done
255 254 253 252 251 250 249 248 247 246 245 244 243 242 241 240 239 238 237 236 235 234 233 232 231 230 229 228 227 226 225 224 223 222 221 220 219 218 217 216 215 214 213 212 211 210 209 208 207 206 205 204 203 202 201 200 199 198 197 196 195 194 193 192 191 190 189 188 187 186 185 184 183 182 181 180 179 178 177 176 175 174 173 172 171 170 169 168 167 166 165 164 163 162 161 160 159 158 157 156 155 154 153 152 151 150 149 148 147 146 145 144 143 142 141 140 139 138 137 136 135 134 133 132 131 130 129 128 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 
---
#0  dumpsys () at ../../kern/kern_shutdown.c:487
487             if (dumping++) {
(kgdb) where
#0  dumpsys () at ../../kern/kern_shutdown.c:487
#1  0xc0158ae3 in boot (howto=260) at ../../kern/kern_shutdown.c:316
#2  0xc0158f08 in poweroff_wait (junk=0xc02709e0, howto=0)
    at ../../kern/kern_shutdown.c:595
#3  0xc01f97ce in acquire_lock (lk=0xc029633c)
    at ../../ufs/ffs/ffs_softdep.c:261
#4  0xc01fde0a in softdep_fsync_mountdev (vp=0xcd0ffc00)
    at ../../ufs/ffs/ffs_softdep.c:4024
#5  0xc020203a in ffs_fsync (ap=0xcd10fbb0) at ../../ufs/ffs/ffs_vnops.c:134
#6  0xc0200ccb in ffs_sync (mp=0xc1284c00, waitfor=2, cred=0xc0a3c600, 
    p=0xc02bc600) at vnode_if.h:558
#7  0xc01891a7 in sync (p=0xc02bc600, uap=0x0) at ../../kern/vfs_syscalls.c:576
#8  0xc0158856 in boot (howto=256) at ../../kern/kern_shutdown.c:235
#9  0xc0158f08 in poweroff_wait (junk=0xc027aa4c, howto=-1071143569)
    at ../../kern/kern_shutdown.c:595
#10 0xc0242aa2 in trap_fatal (frame=0xcd10fcd0, eva=4294901770)
    at ../../i386/i386/trap.c:974
#11 0xc0242775 in trap_pfault (frame=0xcd10fcd0, usermode=0, eva=4294901770)
    at ../../i386/i386/trap.c:867
#12 0xc024235f in trap (frame={tf_fs = 16, tf_es = 16, tf_ds = 16, tf_edi = 0, 
      tf_esi = -1053200128, tf_ebp = -854524656, tf_isp = -854524676, 
      tf_ebx = -65536, tf_edx = -1047714432, tf_ecx = -65536, 
      tf_eax = -1047714432, tf_trapno = 12, tf_err = 0, tf_eip = -1071670628, 
      tf_cs = 8, tf_eflags = 66067, tf_esp = -854524624, tf_ss = -1071654498})
    at ../../i386/i386/trap.c:466
#13 0xc01f9a9c in worklist_remove (item=0xffff0000)
    at ../../ufs/ffs/ffs_softdep.c:467
#14 0xc01fd99e in softdep_update_inodeblock (ip=0xc1397100, bp=0xc6580cd4, 
    waitfor=0) at ../../ufs/ffs/ffs_softdep.c:3847
#15 0xc01f891d in ffs_update (vp=0xcdfd8500, waitfor=0)
    at ../../ufs/ffs/ffs_inode.c:106
#16 0xc01f8c01 in ffs_truncate (vp=0xcdfd8500, length=0, flags=0, cred=0x0, 
    p=0xcc02b5e0) at ../../ufs/ffs/ffs_inode.c:201
#17 0xc0203018 in ufs_inactive (ap=0xcd10fed8) at ../../ufs/ufs/ufs_inode.c:89
#18 0xc0208511 in ufs_vnoperate (ap=0xcd10fed8)
    at ../../ufs/ufs/ufs_vnops.c:2422
#19 0xc01872f8 in vput (vp=0xcdfd8500) at vnode_if.h:815
#20 0xc01fc7a4 in handle_workitem_remove (dirrem=0xc18b4f80)
    at ../../ufs/ffs/ffs_softdep.c:2852
#21 0xc01f9e1d in process_worklist_item (matchmnt=0x0, flags=0)
    at ../../ufs/ffs/ffs_softdep.c:716
#22 0xc01f9cc2 in softdep_process_worklist (matchmnt=0x0)
    at ../../ufs/ffs/ffs_softdep.c:622
#23 0xc0186c1f in sched_sync () at ../../kern/vfs_subr.c:1177
(kgdb)

$ nm -n kernel | grep -i c01f9a
c01f9a2c t worklist_insert
c01f9a80 t worklist_remove
c01f9ad8 t workitem_free

I can provide further details upon request.

>How-To-Repeat:
	Don't know - system can panic upon minimal activity
>Fix:
	Wish I knew... This is production server... :-(

>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?20020827090722.AB1015362>