Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 26 Sep 1998 01:50:28 -0400 (EDT)
From:      Kevin Street <street@iname.com>
To:        freebsd-current@FreeBSD.ORG
Subject:   Softupdates panics
Message-ID:  <Pine.BSF.4.02A.9809260144460.9118-100000@kstreet.interlog.com>

next in thread | raw e-mail | index | archive | help
Here for your enjoyment are two softupdates panics.  These are the first
I've seen after months of softupdates use.  They came shortly after I 
added `noatime' to two of my heavily used softupdates slices in 
/etc/fstab, but I have been in the habit of dynamically updating the 
mounts with noatime before make worlds with no problems.  These happened
in the middle of large port compiles.  I've taken the noatime out of 
fstab and have survived a couple of passes through the same port build.

The system is ELF built Sept 24.  I do have the Sept 24 ffs_softdep.c.
The softupdates drives are all IDE.  I do have SCSI drives using CAM, 
but do not have softupdates enabled on them. 


IdlePTD 2326528
initial pcb at 212948
panicstr: softdep_disk_write_complete: lock is held
panic messages:
 ---
panic: newdirrem: inum 494166 should be 494160

syncing disks... panic: softdep_disk_write_complete: lock is held
 ---
#0  boot (howto=260) at ../../kern/kern_shutdown.c:268
268                     dumppcb.pcb_cr3 = rcr3();
(kgdb) where
#0  boot (howto=260) at ../../kern/kern_shutdown.c:268
#1  0xf0131fcb in panic (
    fmt=0xf018e7cb "softdep_disk_write_complete: lock is held")
    at ../../kern/kern_shutdown.c:430
#2  0xf018e88b in softdep_disk_write_complete (bp=0xf32c4ea0)
    at ../../ufs/ffs/ffs_softdep.c:2922
#3  0xf014e4ef in biodone (bp=0xf32c4ea0) at ../../kern/vfs_bio.c:1915
#4  0xf01e4e8f in wdintr (unit=1) at ../../i386/isa/wd.c:1270
#5  0xf01ad2ee in vec15 ()
#6  0xf014e2cb in biowait (bp=0xf33182a0) at ../../kern/vfs_bio.c:1851
#7  0xf014c2e6 in bread (vp=0xf5b6bf60, blkno=64, size=8192, cred=0x0,
    bpp=0xf5c92b40) at ../../kern/vfs_bio.c:299
#8  0xf0189d50 in ffs_update (vp=0xf5b6bec0, access=0xf5c92ba8,
    modify=0xf5c92ba8, waitfor=0) at ../../ufs/ffs/ffs_inode.c:102
#9  0xf0193e49 in ffs_fsync (ap=0xf5c92be4) at ../../ufs/ffs/ffs_vnops.c:252
#10 0xf0192247 in ffs_sync (mp=0xf0914a00, waitfor=2, cred=0xf08fa800,
    p=0xf022d5dc) at vnode_if.h:499
#11 0xf0155127 in sync (p=0xf022d5dc, uap=0x0) at ../../kern/vfs_syscalls.c:527
#12 0xf0131ba2 in boot (howto=256) at ../../kern/kern_shutdown.c:201
#13 0xf0131fcb in panic (fmt=0xf018daf6 "newdirrem: inum %d should be %d")
    at ../../kern/kern_shutdown.c:430
#14 0xf018dc49 in newdirrem (bp=0xf32c9778, dp=0xf0b9ae00, ip=0xf0b89800,
    isrmdir=0) at ../../ufs/ffs/ffs_softdep.c:2384
#15 0xf018da74 in softdep_setup_remove (bp=0xf32c9778, dp=0xf0b9ae00,
    ip=0xf0b89800, isrmdir=0) at ../../ufs/ffs/ffs_softdep.c:2313
#16 0xf01967e7 in ufs_dirremove (dvp=0xf5c64c80, ip=0xf0b89800, flags=37900,
    isrmdir=0) at ../../ufs/ufs/ufs_lookup.c:895
#17 0xf01997dd in ufs_rename (ap=0xf5c92ea4) at ../../ufs/ufs/ufs_vnops.c:1230
#18 0xf019a989 in ufs_vnoperate (ap=0xf5c92ea4)
    at ../../ufs/ufs/ufs_vnops.c:2285
#19 0xf0157ce6 in rename (p=0xf5c89c40, uap=0xf5c92f84) at vnode_if.h:583
#20 0xf01b5a9f in syscall (frame={tf_es = 39, tf_ds = 39, tf_edi = -272643708,
      tf_esi = -272641052, tf_ebp = -272643760, tf_isp = -171364396,
      tf_ebx = -272643701, tf_edx = -1, tf_ecx = 2, tf_eax = 128,
      tf_trapno = 12, tf_err = 2, tf_eip = 134528056, tf_cs = 31,
      tf_eflags = 662, tf_esp = -272645176, tf_ss = 39})
    at ../../i386/i386/trap.c:1031
#21 0xf01abdbc in Xint0x80_syscall ()
#22 0x8048305 in ?? ()
#23 0x80480c9 in ?? ()
(kgdb)       


**********************************************************************

IdlePTD 2326528
initial pcb at 212948
panicstr: softdep_lock: locking against myself
panic messages:
 ---
panic: newdirrem: inum 494335 should be 494334

syncing disks... panic: softdep_lock: locking against myself
 
 ---
#0  boot (howto=260) at ../../kern/kern_shutdown.c:268
268                     dumppcb.pcb_cr3 = rcr3();
(kgdb) where
#0  boot (howto=260) at ../../kern/kern_shutdown.c:268
#1  0xf0131fcb in panic (fmt=0xf018add1 "softdep_lock: locking against myself")
    at ../../kern/kern_shutdown.c:430
#2  0xf018ae39 in acquire_lock (lk=0xf0200660)
    at ../../ufs/ffs/ffs_softdep.c:264
#3  0xf018e5df in initiate_write_inodeblock (inodedep=0xf0d7fa80,
    bp=0xf33406a8) at ../../ufs/ffs/ffs_softdep.c:2812
#4  0xf018e1cf in softdep_disk_io_initiation (bp=0xf33406a8)
    at ../../ufs/ffs/ffs_softdep.c:2671
#5  0xf015f3e6 in spec_strategy (ap=0xf5c46ae0)
    at ../../miscfs/specfs/spec_vnops.c:540
#6  0xf015eb29 in spec_vnoperate (ap=0xf5c46ae0)
    at ../../miscfs/specfs/spec_vnops.c:129
#7  0xf019a9b9 in ufs_vnoperatespec (ap=0xf5c46ae0)
    at ../../ufs/ufs/ufs_vnops.c:2303
#8  0xf014c54f in bwrite (bp=0xf33406a8) at vnode_if.h:891
#9  0xf0150ae6 in vop_stdbwrite (ap=0xf5c46b48) at ../../kern/vfs_default.c:284
#10 0xf0150921 in vop_defaultop (ap=0xf5c46b48) at ../../kern/vfs_default.c:130
#11 0xf015eb29 in spec_vnoperate (ap=0xf5c46b48)
    at ../../miscfs/specfs/spec_vnops.c:129
#12 0xf019a9b9 in ufs_vnoperatespec (ap=0xf5c46b48)
    at ../../ufs/ufs/ufs_vnops.c:2303
#13 0xf014cfcf in vfs_bio_awrite (bp=0xf33406a8) at vnode_if.h:1145
#14 0xf0193d6b in ffs_fsync (ap=0xf5c46be4) at ../../ufs/ffs/ffs_vnops.c:201
#15 0xf0192247 in ffs_sync (mp=0xf0914a00, waitfor=2, cred=0xf08fa800,
    p=0xf022d5dc) at vnode_if.h:499
#16 0xf0155127 in sync (p=0xf022d5dc, uap=0x0) at ../../kern/vfs_syscalls.c:527
#17 0xf0131ba2 in boot (howto=256) at ../../kern/kern_shutdown.c:201
#18 0xf0131fcb in panic (fmt=0xf018daf6 "newdirrem: inum %d should be %d")
    at ../../kern/kern_shutdown.c:430
#19 0xf018dc49 in newdirrem (bp=0xf333c960, dp=0xf0b8ce00, ip=0xf0f41800,
    isrmdir=0) at ../../ufs/ffs/ffs_softdep.c:2384
#20 0xf018da74 in softdep_setup_remove (bp=0xf333c960, dp=0xf0b8ce00,
    ip=0xf0f41800, isrmdir=0) at ../../ufs/ffs/ffs_softdep.c:2313
#21 0xf01967e7 in ufs_dirremove (dvp=0xf5e63e60, ip=0xf0f41800, flags=37900,
    isrmdir=0) at ../../ufs/ufs/ufs_lookup.c:895
#22 0xf01997dd in ufs_rename (ap=0xf5c46ea4) at ../../ufs/ufs/ufs_vnops.c:1230
#23 0xf019a989 in ufs_vnoperate (ap=0xf5c46ea4)
    at ../../ufs/ufs/ufs_vnops.c:2285
#24 0xf0157ce6 in rename (p=0xf5b6d900, uap=0xf5c46f84) at vnode_if.h:583
#25 0xf01b5a9f in syscall (frame={tf_es = 39, tf_ds = 39, tf_edi = -272643708,
      tf_esi = -272641052, tf_ebp = -272643760, tf_isp = -171675692,
      tf_ebx = -272643701, tf_edx = -1, tf_ecx = 2, tf_eax = 128,
      tf_trapno = 12, tf_err = 2, tf_eip = 134528056, tf_cs = 31,
      tf_eflags = 662, tf_esp = -272645176, tf_ss = 39})
    at ../../i386/i386/trap.c:1031
#26 0xf01abdbc in Xint0x80_syscall ()
#27 0x8048305 in ?? ()
#28 0x80480c9 in ?? ()
(kgdb) 

--
Kevin Street
street@iName.com


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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.02A.9809260144460.9118-100000>