Subject: bin/33200: dump_lfs core dumped
To: None <gnats-admin@netbsd.org, netbsd-bugs@netbsd.org>
From: None <ykomatsu@akaumigame.org>
List: netbsd-bugs
Date: 04/05/2006 14:30:00
>Number:         33200
>Category:       bin
>Synopsis:       dump_lfs core dumped
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Apr 05 14:30:00 +0000 2006
>Originator:     Yoshito Komatsu
>Release:        NetBSD 3.99.17
>Organization:
>Environment:
System: NetBSD c10.ln.akaumigame.org 3.99.17 NetBSD 3.99.17 (XENU) #0: Sun Apr 2 21:37:04 JST 2006 root@c10.ln.akaumigame.org:/usr/obj/sys/arch/i386/compile/XENU i386
Architecture: i386
Machine: i386
>Description:
	When I run dump_lfs, memory falut occurs.

	# ./dump_lfs -f /tmp/test.dump /dev/raid3a
	Memory fault (core dumped)
	# gdb ./dump_lfs ./dump_lfs.core
	GNU gdb 5.3nb1
	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--netbsdelf"...
	Core was generated by `dump_lfs'.
	Program terminated with signal 11, Segmentation fault.
	Reading symbols from /usr/lib/libc.so.12...done.
	Loaded symbols for /usr/lib/libc.so.12
	Reading symbols from /usr/libexec/ld.elf_so...done.
	Loaded symbols for /usr/libexec/ld.elf_so
	#0  0x0804d948 in rawread (blkno=-521142272, buf=0xbfbfc320 "", size=8192)
	    at /usr/src/sbin/dump/rcache.c:205
	205             if (blkno + (size >> dev_bshift) > ufsib->ufs_dsize) {
	(gdb) backtrace
	#0  0x0804d948 in rawread (blkno=-521142272, buf=0xbfbfc320 "", size=8192)
	    at /usr/src/sbin/dump/rcache.c:205
	#1  0x08053ed9 in fs_read_sblock (superblock=0x8079060 "b\001\a")
	    at lfs_inode.c:107
	#2  0x0804b197 in main (argc=1, argv=0xbfbfee3c)
	    at /usr/src/sbin/dump/main.c:447
	#3  0x08049ab6 in ___start ()
	(gdb)
>How-To-Repeat:
	Please run dump_lfs.
>Fix: