Subject: LFS i386 somewhat current panic (1.6B)
To: None <current-users@netbsd.org>
From: Chris Tribo <t1345@hopi.dtcc.edu>
List: current-users
Date: 08/12/2002 19:56:53
	My machine was in the process of building a current release and
bombed. I copied almost everything down by hand thankfully before trying
to get a dump. This is a freshly newfs'd file system (made with newfs_lfs
with auto segment size). Kenel messages at the bottom. When I rebooted and
did an fsck, fsck_lfs said

** Phase 1 - Check Blocks and Sizes
INODE 3 NOT FOUND free? [yn] y
INODE 4 NOT FOUND free? [yn] y
INODE 3 NOT FOUND free? [yn] y
INODE 4 NOT FOUND free? [yn] y
** Phase 2 - Check Pathnames
UNALLOCATED I=3 INODE 3 NOT FOUND free? [yn] y
INODE 3 NOT FOUND free? [yn] y
INO is NULL REMOVE? [yn] y
UNALLOCATED I=4 INODE 4 NOT FOUND free? [yn] y
INODE 4 NOT FOUND free? [yn] y
INO is NULL REMOVE? [yn] y
...
** Phase 5 - Check Segment Block Accounting
segment 0 claims 289024 bytes but has 286976 (high by 2048) fix? [yn] y
segment 1364 claims -998041996 bytes but has 0 (high by -998041996)

	Then hundreds more bogus segments with bogus sizes until I killed
the process.

...
searched 8 entries
offset is 0x9d77f (seg 1247)
block is 0x11 (seg 0)
lfs_vget: dinode 3 not found, retrying...
searched 8 entries
offset is 0x9d77f (seg 1247)
block is 0x11 (seg 0)
panic: lfs_vget: dinode not found
Stopped in pid 27076 (find) at  cpu_Debugger+0x4:	leave
db> trace
cpu_Debugger(...) at cpu_Debugger+0x4
panic(...) at panic+0xad
lfs_vget(...) at lfs_vget+0x3b7
ufs_lookup(...) at ufs_lookup+0xb7d
lookup(d3bc8e98,d3845400,400,d3bc8eb0,d3bc8f80) at lookup+02d7
namei(d3bc8e98,8054848,60,c018d89e,d3bc8f80) at namei+0x315
sys___lstat13(d3850ae4,d3bc8f80,d3bc8f78,c01dca37) at sys___lstat13+0x4f
syscall_plain(1f,1f,1f,1f,8054900) at syscall_plain+0xa7
db> sync
syncing disks... (wedge)