panic: softdep_lock: locking against myself

From: Christian Brueffer <chris_at_unixpages.org>
Date: Tue, 02 Sep 2003 03:01:49 +0200
Hi,

got a panic with a kernel from sources around September 1st, 8pm.

Dump and debugging kernel available for further debugging.
cg_at_ got the same panic on his machine.


Fatal trap 12: page fault while in kernel mode
cpuid = 0; lapic.id = 00000000
fault virtual address   = 0xdeadc1e6
fault code              = supervisor read, page not present
instruction pointer     = 0x8:0xc0306f82
stack pointer           = 0x10:0xdb832528
frame pointer           = 0x10:0xdb832558
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         = 42532 (as)
trap number             = 12
panic: page fault
cpuid = 0; lapic.id = 00000000
boot() called on cpu#0

syncing disks, buffers remaining... panic: softdep_lock: locking against myself
cpuid = 0; lapic.id = 00000000
boot() called on cpu#0
Uptime: 5h39m29s
Dumping 511 MB
 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 4
 64 480 496
 ---
#0  doadump () at /usr/src/sys/kern/kern_shutdown.c:240
	240             dumping++;
(kgdb) bt
#0  doadump () at /usr/src/sys/kern/kern_shutdown.c:240
#1  0xc0212d70 in boot (howto=260) at /usr/src/sys/kern/kern_shutdown.c:372
#2  0xc0213176 in panic (fmt=0xc03bf620 "softdep_lock: locking against myself")
	     at /usr/src/sys/kern/kern_shutdown.c:550
#3  0xc02fde43 in acquire_lock (lk=0x0) at /usr/src/sys/ufs/ffs/ffs_softdep.c:258
#4  0xc0303152 in initiate_write_filepage (pagedep=0xc4f9d8c0, bp=0xce661980)
	         at /usr/src/sys/ufs/ffs/ffs_softdep.c:3535
#5  0xc0302fac in softdep_disk_io_initiation (bp=0xce661980) at /usr/src/sys/ufs/ffs/ffs_softdep.c:3452
#6  0xc01c0b14 in spec_xstrategy (vp=0xc420adb0, bp=0xce661980) at /usr/src/sys/sys/buf.h:416
#7  0xc01c0cf2 in spec_specstrategy (ap=0xdb832258) at /usr/src/sys/fs/specfs/spec_vnops.c:529
#8  0xc01bfc88 in spec_vnoperate (ap=0x0) at /usr/src/sys/fs/specfs/spec_vnops.c:122
#9  0xc0318380 in ufs_strategy (ap=0x0) at vnode_if.h:1141
#10 0xc0319138 in ufs_vnoperate (ap=0x0) at /usr/src/sys/ufs/ufs/ufs_vnops.c:2792
#11 0xc025a497 in bwrite (bp=0xce661980) at vnode_if.h:1116
#12 0xc025acfc in bawrite (bp=0x0) at /usr/src/sys/kern/vfs_bio.c:1139
#13 0xc030ab59 in ffs_fsync (ap=0xdb832350) at /usr/src/sys/ufs/ffs/ffs_vnops.c:247
#14 0xc0309d03 in ffs_sync (mp=0xc41c3e00, waitfor=2, cred=0xc150de80, td=0xc040eb20) at vnode_if.h:627
#15 0xc027024b in sync (td=0xc040eb20, uap=0x0) at /usr/src/sys/kern/vfs_syscalls.c:142
#16 0xc02128bf in boot (howto=256) at /usr/src/sys/kern/kern_shutdown.c:281
#17 0xc0213176 in panic (fmt=0xc039f254 "%s") at /usr/src/sys/kern/kern_shutdown.c:550
#18 0xc0373446 in trap_fatal (frame=0xdb8324e8, eva=0) at /usr/src/sys/i386/i386/trap.c:818
#19 0xc03730b2 in trap_pfault (frame=0xdb8324e8, usermode=0, eva=3735929318)
    at /usr/src/sys/i386/i386/trap.c:732
#20 0xc0372c6d in trap (frame=
    {tf_fs = 24, tf_es = 16, tf_ds = 16, tf_edi = 0, tf_esi = -831494876, tf_ebp = -612162216, tf_isp = -6
    12162284, tf_ebx = -559038242, tf_edx = 0, tf_ecx = -1069303248, tf_eax = 0, tf_trapno = 12, tf_err = 0, tf_
    eip = -1070567550, tf_cs = 8, tf_eflags = 66182, tf_esp = -1069607688, tf_ss = 1})
    at /usr/src/sys/i386/i386/trap.c:417
#21 0xc0306f82 in getdirtybuf (bpp=0xc546ebbc, mtx=0x0, waitfor=1)
    at /usr/src/sys/ufs/ffs/ffs_softdep.c:5827
#22 0xc030601d in flush_deplist (listhead=0x0, waitfor=1, errorp=0xdb832590)
    at /usr/src/sys/ufs/ffs/ffs_softdep.c:5271
#23 0xc0305f29 in flush_inodedep_deps (fs=0xc41ca000, ino=918604)
    at /usr/src/sys/ufs/ffs/ffs_softdep.c:5235
#24 0xc0305977 in softdep_sync_metadata (ap=0xdb8326d4) at /usr/src/sys/ufs/ffs/ffs_softdep.c:4968
#25 0xc030ac69 in ffs_fsync (ap=0xdb8326d4) at /usr/src/sys/ufs/ffs/ffs_vnops.c:299
#26 0xc02f61cd in ffs_truncate (vp=0xc5b25000, length=26112, flags=2052, cred=0xc44c9e80, td=0xc531a980)
    at vnode_if.h:627
#27 0xc0312b29 in ufs_direnter (dvp=0xc5b25000, tvp=0xc4dde6d8, dirp=0xdb832910, cnp=0xdb832c00, 
    newdirbp=0x0) at /usr/src/sys/ufs/ufs/ufs_lookup.c:966
#28 0xc0318e4d in ufs_makeinode (mode=33188, dvp=0xc5b25000, vpp=0xdb832bec, cnp=0xdb832c00)
    at /usr/src/sys/ufs/ufs/ufs_vnops.c:2541
#29 0xc0314f89 in ufs_create (ap=0xdb832a78) at /usr/src/sys/ufs/ufs/ufs_vnops.c:199
#30 0xc0319138 in ufs_vnoperate (ap=0x0) at /usr/src/sys/ufs/ufs/ufs_vnops.c:2792
#31 0xc0278218 in vn_open_cred (ndp=0xdb832bd8, flagp=0xdb832cd8, cmode=420, cred=0xc44c9e80, fdidx=0)
    at vnode_if.h:118
#32 0xc0278040 in vn_open (ndp=0x0, flagp=0x0, cmode=0, fdidx=0) at /usr/src/sys/kern/vfs_vnops.c:93
#33 0xc0271060 in kern_open (td=0xc531a980, path=0x0, pathseg=UIO_USERSPACE, flags=1539, mode=438)
    at /usr/src/sys/kern/vfs_syscalls.c:688
#34 0xc0270f10 in open (td=0x0, uap=0x0) at /usr/src/sys/kern/vfs_syscalls.c:654
#35 0xc0373763 in syscall (frame=
    {tf_fs = 47, tf_es = 47, tf_ds = 47, tf_edi = -1077938472, tf_esi = 16, tf_ebp = -1077938744, tf_isp =
    -612160140, tf_ebx = 135094816, tf_edx = 176, tf_ecx = 17, tf_eax = 5, tf_trapno = 12, tf_err = 2, tf_eip =
    134911639, tf_cs = 31, tf_eflags = 514, tf_esp = -1077938788, tf_ss = 47})
    at /usr/src/sys/i386/i386/trap.c:1005

    

- Christian
    
-- 
Christian Brueffer	chris_at_unixpages.org	brueffer_at_FreeBSD.org
GPG Key:	 http://people.freebsd.org/~brueffer/brueffer.key.asc
GPG Fingerprint: A5C8 2099 19FF AACA F41B  B29B 6C76 178C A0ED 982D

Received on Mon Sep 01 2003 - 16:07:09 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:21 UTC