ffs_blkfree panic w/ sources from late last night (est)

From: Robin P. Blanchard <robin.blanchard_at_gactr.uga.edu>
Date: Wed, 24 Dec 2003 15:27:45 -0500
# gdb -k /usr/obj/usr/src/sys/vpn.debug/kernel.debug ./vmcore.3 
GNU gdb 5.2.1 (FreeBSD)
Copyright 2002 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-undermydesk-freebsd"...
panic: ffs_blkfree: freeing free block
panic messages:
---
panic: ffs_blkfree: freeing free block
cpuid = 0; 
Stack backtrace:
syncing disks, buffers remaining... panic: bremfree: removing a buffer not on
a queue
cpuid = 0; 
Uptime: 2m16s
Dumping 127 MB
 16 32 48 64 80 96 112
---
(kgdb) exec-file /boot/kernel/kernel
(kgdb) where
#0  doadump () at /usr/src/sys/kern/kern_shutdown.c:240
#1  0xc051ee3c in boot (howto=260) at /usr/src/sys/kern/kern_shutdown.c:372
#2  0xc051f1dd in panic () at /usr/src/sys/kern/kern_shutdown.c:550
#3  0xc05661e1 in bremfreel (bp=0xc431eda0) at
/usr/src/sys/kern/vfs_bio.c:647
#4  0xc0566115 in bremfree (bp=0x0) at /usr/src/sys/kern/vfs_bio.c:629
#5  0xc0570301 in vop_stdfsync (ap=0xc8cfb984) at
/usr/src/sys/kern/vfs_default.c:741
#6  0xc04ec140 in spec_fsync (ap=0xc8cfb984) at
/usr/src/sys/fs/specfs/spec_vnops.c:422
#7  0xc04eb488 in spec_vnoperate (ap=0x0) at
/usr/src/sys/fs/specfs/spec_vnops.c:122
#8  0xc05ed86b in ffs_sync (mp=0xc1bf9800, waitfor=2, cred=0xc0eae180,
td=0xc06ed6c0)
    at vnode_if.h:627
#9  0xc057b92e in sync (td=0xc06ed6c0, uap=0x0) at
/usr/src/sys/kern/vfs_syscalls.c:141
#10 0xc051e9ae in boot (howto=256) at /usr/src/sys/kern/kern_shutdown.c:281
#11 0xc051f1dd in panic () at /usr/src/sys/kern/kern_shutdown.c:550
#12 0xc05d4ea4 in ffs_blkfree (fs=0xc1c3f000, devvp=0xc1c3dd34, bno=2261488,
size=16384, 
    inum=23553) at /usr/src/sys/ufs/ffs/ffs_alloc.c:1770
#13 0xc05e5474 in indir_trunc (freeblks=0xc1cfb000, dbn=752768, level=0,
lbn=2060, 
    countp=0xc8cfbc28) at /usr/src/sys/ufs/ffs/ffs_softdep.c:2624
#14 0xc05e5426 in indir_trunc (freeblks=0xc1cfb000, dbn=10174144, level=1,
lbn=2060, 
    countp=0xc8cfbc28) at /usr/src/sys/ufs/ffs/ffs_softdep.c:2620
#15 0xc05e4eee in handle_workitem_freeblocks (freeblks=0xc1cfb000, flags=0)
    at /usr/src/sys/ufs/ffs/ffs_softdep.c:2480
#16 0xc05e1fad in process_worklist_item (matchmnt=0x0, flags=0)
    at /usr/src/sys/ufs/ffs/ffs_softdep.c:756
#17 0xc05e1cd0 in softdep_process_worklist (matchmnt=0x0)
    at /usr/src/sys/ufs/ffs/ffs_softdep.c:622
#18 0xc0578194 in sched_sync () at /usr/src/sys/kern/vfs_subr.c:1766
#19 0xc050b65e in fork_exit (callout=0xc0577e10 <sched_sync>, arg=0x0,
frame=0x0)
    at /usr/src/sys/kern/kern_fork.c:793
(kgdb) bt full
#0  doadump () at /usr/src/sys/kern/kern_shutdown.c:240
No locals.
#1  0xc051ee3c in boot (howto=260) at /usr/src/sys/kern/kern_shutdown.c:372
No locals.
#2  0xc051f1dd in panic () at /usr/src/sys/kern/kern_shutdown.c:550
        td = (struct thread *) 0xc0ec0a00
        bootopt = 260
        newpanic = 0
        ap = 0xc8cfb8e4 " í1Ä4ÝÃÁ\004¹ÏÈ\025aVÀ í1Ä"
        buf = "ffs_blkfree: freeing free block", '\0' <repeats 224 times>
#3  0xc05661e1 in bremfreel (bp=0xc431eda0) at
/usr/src/sys/kern/vfs_bio.c:647
        old_qindex = 0
#4  0xc0566115 in bremfree (bp=0x0) at /usr/src/sys/kern/vfs_bio.c:629
No locals.
#5  0xc0570301 in vop_stdfsync (ap=0xc8cfb984) at
/usr/src/sys/kern/vfs_default.c:741
        vp = (struct vnode *) 0x0
        bp = (struct buf *) 0xc431eda0
        nbp = (struct buf *) 0xc431e6c0
        error = 0
        maxretry = 100
#6  0xc04ec140 in spec_fsync (ap=0xc8cfb984) at
/usr/src/sys/fs/specfs/spec_vnops.c:422
No locals.
#7  0xc04eb488 in spec_vnoperate (ap=0x0) at
/usr/src/sys/fs/specfs/spec_vnops.c:122
No locals.
#8  0xc05ed86b in ffs_sync (mp=0xc1bf9800, waitfor=2, cred=0xc0eae180,
td=0xc06ed6c0)
    at vnode_if.h:627
        nvp = (struct vnode *) 0x0
        vp = (struct vnode *) 0xc8cfb984
        devvp = (struct vnode *) 0xc8cfb984
        ip = (struct inode *) 0x0
        ump = (struct ufsmount *) 0xc1c0d000
        fs = (struct fs *) 0xc1c3f000
        error = -1066477888
        count = 0
        lockreq = 65554
        allerror = 0
#9  0xc057b92e in sync (td=0xc06ed6c0, uap=0x0) at
/usr/src/sys/kern/vfs_syscalls.c:141
        mp = (struct mount *) 0xc1bf9800
        nmp = (struct mount *) 0x0
        asyncflag = 0
#10 0xc051e9ae in boot (howto=256) at /usr/src/sys/kern/kern_shutdown.c:281
        bp = (struct buf *) 0x0
        iter = -1045536500
        nbusy = -1045536512
        pbusy = 582
        subiter = -1045536512
#11 0xc051f1dd in panic () at /usr/src/sys/kern/kern_shutdown.c:550
        td = (struct thread *) 0xc0ec0a00
        bootopt = 256
        newpanic = 1
        ap = 0xc8cfba58 "\220%¿Áð\201\""
        buf = "ffs_blkfree: freeing free block", '\0' <repeats 224 times>
#12 0xc05d4ea4 in ffs_blkfree (fs=0xc1c3f000, devvp=0xc1c3dd34, bno=2261488,
size=16384, 
    inum=23553) at /usr/src/sys/ufs/ffs/ffs_alloc.c:1770
        cgp = (struct cg *) 0xc45ae000
        bp = (struct buf *) 0xc431eda0
        fragno = 422
        cgbno = 422
        cgblkno = 9032640
        i = -1044128460
        cg = 24
        blk = 0
        frags = -1002802064
        bbase = -1044128460
        blksfree = (u_int8_t *) 0xc45aec28 "ÿ"
        dev = 0xc1bf2500
#13 0xc05e5474 in indir_trunc (freeblks=0xc1cfb000, dbn=752768, level=0,
lbn=2060, 
    countp=0xc8cfbc28) at /usr/src/sys/ufs/ffs/ffs_softdep.c:2624
        bp = (struct buf *) 0xc43a7470
        fs = (struct fs *) 0xc1c3f000
        wk = (struct worklist *) 0x0
        indirdep = (struct indirdep *) 0xc1c3f000
        bap1 = (ufs1_daddr_t *) 0x0
        nb = 2261488
        bap2 = (ufs2_daddr_t *) 0xc5986000
        lbnadd = 1
        i = 1983
        nblocks = 0
        ufs1fmt = 0
        error = -1044123648
        allerror = 0
#14 0xc05e5426 in indir_trunc (freeblks=0xc1cfb000, dbn=10174144, level=1,
lbn=2060, 
    countp=0xc8cfbc28) at /usr/src/sys/ufs/ffs/ffs_softdep.c:2620
        bp = (struct buf *) 0xc43324b8
        fs = (struct fs *) 0xc1c3f000
        wk = (struct worklist *) 0x0
        indirdep = (struct indirdep *) 0x0
        bap1 = (ufs1_daddr_t *) 0x0
        nb = 188192
        bap2 = (ufs2_daddr_t *) 0xc4882000
        lbnadd = 2048
        i = 0
        nblocks = 0
        ufs1fmt = 0
        error = 0
        allerror = 0
#15 0xc05e4eee in handle_workitem_freeblocks (freeblks=0xc1cfb000, flags=0)
    at /usr/src/sys/ufs/ffs/ffs_softdep.c:2480
        ip = (struct inode *) 0x0
        vp = (struct vnode *) 0xc06d66e0
        fs = (struct fs *) 0xc1c3f000
        i = 3
        nblocks = 32
        level = 1
        bsize = 0
        bn = -3976757309385289808
        blocksreleased = 8896
        error = 0
        allerror = 0
        baselbns = {12, 2060, 4196364}
        tmpval = 4194304
#16 0xc05e1fad in process_worklist_item (matchmnt=0x0, flags=0)
    at /usr/src/sys/ufs/ffs/ffs_softdep.c:756
        wk = (struct worklist *) 0xc1cfb000
        wkend = (struct worklist *) 0x0
        mp = (struct mount *) 0xc1bf9800
        vp = (struct vnode *) 0x0
        matchcnt = 0
#17 0xc05e1cd0 in softdep_process_worklist (matchmnt=0x0)
    at /usr/src/sys/ufs/ffs/ffs_softdep.c:622
        td = (struct thread *) 0xc0ec0a00
        cnt = 0
        matchcnt = 0
        loopcount = 3
        starttime = 1072297012
#18 0xc0578194 in sched_sync () at /usr/src/sys/kern/vfs_subr.c:1766
        next = (struct synclist *) 0xc1b612ec
        slp = (struct synclist *) 0xc1b612e8
        vp = (struct vnode *) 0x0
        mp = (struct mount *) 0x0
        starttime = 1072297012
        td = (struct thread *) 0xc0ec0a00
#19 0xc050b65e in fork_exit (callout=0xc0577e10 <sched_sync>, arg=0x0,
frame=0x0)
    at /usr/src/sys/kern/kern_fork.c:793
        p = (struct proc *) 0xc1b6d000
        td = (struct thread *) 0x0

Received on Wed Dec 24 2003 - 11:27:48 UTC

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