Subject: bin/33199: newfs_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:25:00
>Number:         33199
>Category:       bin
>Synopsis:       newfs_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:25: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 newfs_lfs with '-A' option,
	floating point exception occurs.

	# ./newfs_lfs -A /dev/rraid3a
	Floating point exception (core dumped)
	# gdb ./newfs_lfs ./newfs_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 `newfs_lfs'.
	Program terminated with signal 8, Arithmetic exception.
	Reading symbols from /usr/lib/libutil.so.7...done.
	Loaded symbols for /usr/lib/libutil.so.7
	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  0x0804bdfc in auto_segsize (fd=7, len=3388899840, version=2) at newfs.c:145
	145             seeks /= (finish - start);
	(gdb) backtrace
	#0  0x0804bdfc in auto_segsize (fd=7, len=3388899840, version=2) at newfs.c:145
	#1  0x0804c734 in main (argc=1, argv=0xbfbfee44) at newfs.c:350
	#2  0x08048d56 in ___start ()
	(gdb)
>How-To-Repeat:
	Please run newfs_lfs with '-A' option.
>Fix: