Re: panic: ffs_blkfree: freeing free frag

From: NAKAJI Hiroyuki <nakaji_at_tutrp.tut.ac.jp>
Date: Mon, 05 May 2003 01:12:22 +0900
>>>>> In <868ytmr9nt.fsf_at_xa12.heimat.gr.jp> 
>>>>>	NAKAJI Hiroyuki <nakaji_at_jp.freebsd.org> wrote:

> > Please let us know -- obviously, it would be very nice if this completely
> > resolved the problem :-).

> I'm not sure the problem was resolved completely but there are two
> good things with the new kernel.

> o Sending and Fcc-ing an email with Emacs and Gnus did not reslut in
>   panic.
> o "Make buildworld" finished with no panic.

> Good news?

Sad news...

Just after I posted this message, I got same panic again and lost some
files in my $HOME. :(

$ sudo gdb -k kernel.debug /home/crash/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: bremfree: removing a buffer not on a queue
panic messages:
---
panic: ffs_blkfree: freeing free block

syncing disks, buffers remaining... panic: bremfree: removing a buffer not on a queue
Uptime: 1h1m42s
stray irq 7
Dumping 96 MB
ata0: resetting devices ..
done
 16 32 48 64 80
---
Reading symbols from /usr/obj/usr/src/sys/NAKAJI/modules/usr/src/sys/modules/linux/linux.ko.debug...done.
Loaded symbols for /usr/obj/usr/src/sys/NAKAJI/modules/usr/src/sys/modules/linux/linux.ko.debug
#0  doadump () at /usr/src/sys/kern/kern_shutdown.c:238
238             dumping++;
(kgdb) bt
#0  doadump () at /usr/src/sys/kern/kern_shutdown.c:238
#1  0xc021b7bd in boot (howto=260) at /usr/src/sys/kern/kern_shutdown.c:370
#2  0xc021bb4d in panic () at /usr/src/sys/kern/kern_shutdown.c:543
#3  0xc025fd72 in bremfreel (bp=0xc3285c38) at /usr/src/sys/kern/vfs_bio.c:648
#4  0xc025fc9b in bremfree (bp=0xc3285c38) at /usr/src/sys/kern/vfs_bio.c:630
#5  0xc02690d1 in vop_stdfsync (ap=0xc74ea9a8)
    at /usr/src/sys/kern/vfs_default.c:762
#6  0xc01df0e0 in spec_fsync (ap=0xc74ea9a8)
    at /usr/src/sys/fs/specfs/spec_vnops.c:418
#7  0xc01de5c8 in spec_vnoperate (ap=0x0)
    at /usr/src/sys/fs/specfs/spec_vnops.c:123
#8  0xc0313c4f in ffs_sync (mp=0xc159a400, waitfor=2, cred=0xc0adbe80, 
    td=0xc040c8a0) at vnode_if.h:612
#9  0xc02768db in sync (td=0xc040c8a0, uap=0x0)
    at /usr/src/sys/kern/vfs_syscalls.c:137
#10 0xc021b2df in boot (howto=256) at /usr/src/sys/kern/kern_shutdown.c:279
#11 0xc021bb4d in panic () at /usr/src/sys/kern/kern_shutdown.c:543
#12 0xc02fb1ea in ffs_blkfree (fs=0xc1652800, devvp=0xc164fdb0, bno=19564088, 
    size=8192, inum=1592) at /usr/src/sys/ufs/ffs/ffs_alloc.c:1768
#13 0xc030b80f in indir_trunc (freeblks=0xc1d74200, dbn=39127504, level=0, 
    lbn=12, countp=0xc74eabf0) at /usr/src/sys/ufs/ffs/ffs_softdep.c:2615
#14 0xc030b2a5 in handle_workitem_freeblocks (freeblks=0xc1d74200, flags=0)
    at /usr/src/sys/ufs/ffs/ffs_softdep.c:2480
#15 0xc03083ba in process_worklist_item (matchmnt=0x0, flags=0)
    at /usr/src/sys/ufs/ffs/ffs_softdep.c:756
#16 0xc03080e0 in softdep_process_worklist (matchmnt=0x0)
    at /usr/src/sys/ufs/ffs/ffs_softdep.c:622
#17 0xc0272330 in sched_sync () at /usr/src/sys/kern/vfs_subr.c:1761
#18 0xc02055f0 in fork_exit (callout=0xc0271f40 <sched_sync>, arg=0x0, 
    frame=0x0) at /usr/src/sys/kern/kern_fork.c:792
(kgdb) 
-- 
NAKAJI Hiroyuki
Received on Sun May 04 2003 - 07:12:26 UTC

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