Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 16 Jul 1998 00:06:43 -0500 (CDT)
From:      Chris Dillon <cdillon@wolves.k12.mo.us>
To:        current@FreeBSD.ORG
Subject:   Softupdates crash: Got it!
Message-ID:  <Pine.BSF.3.96.980715203302.28436A-100000@duey.hs.wolves.k12.mo.us>

next in thread | raw e-mail | index | archive | help
The elusive "newdirrem: inum %d should be %d" reared its head again,
and I finally caught it in the act.

root@cheetah [/var/crash] # gdb -k
GDB is free software and you are welcome to 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.
GDB 4.16 (i386-unknown-freebsd), Copyright 1996 Free Software
Foundation, Inc.
(kgdb) symbol-file /kernel.debug
Reading symbols from /kernel.debug...done.
(kgdb) exec-file /var/crash/kernel.0
(kgdb) core-file /var/crash/vmcore.0
IdlePTD 2146304
initial pcb at 1e7880
panicstr: newdirrem: inum %d should be %d
panic messages:
---
panic: newdirrem: inum 151732 should be 151731

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

dumping to dev 20401, offset 245760
dump 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:286
286                                     dumppcb.pcb_cr3 = rcr3();
(kgdb) where
#0  boot (howto=260) at ../../kern/kern_shutdown.c:286
#1  0xf01166b6 in panic (
    fmt=0xf017f543 "softdep_disk_write_complete: lock is held")
    at ../../kern/kern_shutdown.c:427
#2  0xf017f603 in softdep_disk_write_complete (bp=0xf222d8c8)
    at ../../ufs/ffs/ffs_softdep.c:2896
#3  0xf013302e in biodone (bp=0xf222d8c8) at ../../kern/vfs_bio.c:1918
#4  0xf016ef44 in scsi_done (xs=0xf080cf00) at
../../scsi/scsi_base.c:448
#5  0xf0165ade in ncr_complete (np=0xf0809000, cp=0xf080a800)
    at ../../pci/ncr.c:4836
#6  0xf0165b29 in ncr_wakeup (np=0xf0809000, code=0) at
../../pci/ncr.c:4878
#7  0xf0166920 in ncr_exception (np=0xf0809000) at
../../pci/ncr.c:5657
#8  0xf0164cea in ncr_intr (vnp=0xf0809000) at ../../pci/ncr.c:4033
#9  0xf019da32 in vec15 ()
#10 0xf0132e0f in biowait (bp=0xf2273368) at ../../kern/vfs_bio.c:1860
#11 0xf0130e22 in bread (vp=0xf4ab6b20, blkno=7798960, size=8192,
cred=0x0, 
    bpp=0xf4b47d10) at ../../kern/vfs_bio.c:299
#12 0xf017aa70 in ffs_update (vp=0xf4ae7880, access=0xf4b47d78, 
    modify=0xf4b47d78, waitfor=0) at ../../ufs/ffs/ffs_inode.c:100
#13 0xf0184be9 in ffs_fsync (ap=0xf4b47db4) at
../../ufs/ffs/ffs_vnops.c:255
#14 0xf0182fb7 in ffs_sync (mp=0xf0843c00, waitfor=2, cred=0xf080cb80, 
    p=0xf0200d30) at vnode_if.h:499
#15 0xf0139f07 in sync (p=0xf0200d30, uap=0x0) at
../../kern/vfs_syscalls.c:515
#16 0xf011629b in boot (howto=256) at ../../kern/kern_shutdown.c:203
#17 0xf01166b6 in panic (fmt=0xf017e87e "newdirrem: inum %d should be
%d")
    at ../../kern/kern_shutdown.c:427
#18 0xf017e9d1 in newdirrem (bp=0xf22211e8, dp=0xf0c94c00,
ip=0xf0e97c00, 
    isrmdir=0) at ../../ufs/ffs/ffs_softdep.c:2382
#19 0xf017e7fc in softdep_setup_remove (bp=0xf22211e8, dp=0xf0c94c00, 
    ip=0xf0e97c00, isrmdir=0) at ../../ufs/ffs/ffs_softdep.c:2311
#20 0xf0186ce7 in ufs_dirremove (dvp=0xf4e3aee0, ip=0xf0e97c00,
flags=32776, 
    isrmdir=0) at ../../ufs/ufs/ufs_lookup.c:895
#21 0xf0188c6b in ufs_remove (ap=0xf4b47f08) at
../../ufs/ufs/ufs_vnops.c:703
#22 0xf018ae4d in ufs_vnoperate (ap=0xf4b47f08)
    at ../../ufs/ufs/ufs_vnops.c:2287
#23 0xf013b277 in unlink (p=0xf4abc340, uap=0xf4b47f94) at
vnode_if.h:523
#24 0xf01a65cf in syscall (frame={tf_es = 39, tf_ds = 39, tf_edi =
8938, 
      tf_esi = 0, tf_ebp = -272639348, tf_isp = -189497372, tf_ebx =
444264, 
      tf_edx = -272639376, tf_ecx = 15, tf_eax = 10, tf_trapno = 12, 
      tf_err = 7, tf_eip = 55349, tf_cs = 31, tf_eflags = 582, 
      tf_esp = -272639372, tf_ss = 39}) at ../../i386/i386/trap.c:1031
#25 0xd835 in ?? ()
#26 0x289d in ?? ()
#27 0x1fb9 in ?? ()
#28 0x107e in ?? ()


I _think_ Julian told me to upload the kernel+corefiles to
ftp://ftp.whistle.com/incoming.  I'll just tar cvf -
/var/crash/kernel.0 /var/crash/vmcore.0 /kernel.debug | gzip -9 >
cdillon_softupdates_crash_19980715.tar.gz and stick them in incoming.


-- Chris Dillon - cdillon@wolves.k12.mo.us - cdillon@inter-linc.net
/* FreeBSD: The fastest and most stable server OS on the planet.
   For Intel x86 and compatibles (SPARC and Alpha under development)
   (http://www.freebsd.org)                                         */





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.3.96.980715203302.28436A-100000>