Subject: bin/10963: fsck_lfs dumps core for large filesystem
To: None <gnats-bugs@gnats.netbsd.org>
From: None <h-masuda@ics.es.osaka-u.ac.jp>
List: netbsd-bugs
Date: 09/06/2000 04:38:16
>Number:         10963
>Category:       bin
>Synopsis:       fsck_lfs dumps core for large filesystem
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Sep 06 04:39:00 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator:     Charlie Root
>Release:        NetBSD-1.5_ALPHA
>Organization:
	TOKURA Lab., ICS, ES, Osaka Univ. JAPAN
>Environment:
	
System: NetBSD mami.ics.es.osaka-u.ac.jp 1.5_ALPHA2 NetBSD 1.5_ALPHA2 (GENERIC_ECS-$Revision: 1.0$-$NetBSD: 1.354.2.6 $) #0: Tue Aug 29 16:07:13 JST 2000 h-masuda@netbsd.ics.es.osaka-u.ac.jp:/export/rune/syssrc/sys/arch/i386/compile/ECS i386
	userland is getting from /ftp/pub/NetBSD-1.5_ALPHA/i386/ .


>Description:
	fsck_lfs dumps core for large filesystem.
>How-To-Repeat:
	run fsck_lfs for 40GB LFS filesystem.
mami# df /raid
Filesystem  1K-blocks     Used    Avail Capacity  Mounted on
/dev/wd0d    37748736  4302035 33069213    11%    /raid
mami# limit
cputime 	unlimited
filesize 	unlimited
datasize 	131072 kbytes
stacksize 	2048 kbytes
coredumpsize 	unlimited
memoryuse 	122228 kbytes
memorylocked 	40742 kbytes
maxproc 	80 
openfiles 	64 
mami# fsck_lfs -n /dev/rwd0d
** /dev/rwd0d (NO WRITE)
Segmentation fault (core dumped)
mami# limit datasize unlimited
mami# fsck_lfs -n /dev/rwd0d
** /dev/rwd0d (NO WRITE)
** Last Mounted on /raid
** Phase 0 - Check Segment Summaries and Inode Free List
** Phase 1 - Check Blocks and Sizes
** Phase 2 - Check Pathnames
** Phase 3 - Check Connectivity
** Phase 4 - Check Reference Counts
** Phase 5 - Check Segment Block Accounting
225716 files, 3887031 used, 0 free 
mami# limit datasize 131072
mami# ktrace fsck_lfs -n /dev/rwd0d
** /dev/rwd0d (NO WRITE)
Segmentation fault (core dumped)
mami# kdump | tail
   430 fsck_lfs CALL  break(0x80c2000)
   430 fsck_lfs RET   break 0
   430 fsck_lfs CALL  break(0x81a0000)
   430 fsck_lfs RET   break 0
   430 fsck_lfs CALL  break(0x81a0000)
   430 fsck_lfs RET   break 0
   430 fsck_lfs CALL  break(0x1b466000)
   430 fsck_lfs RET   break -1 errno 12 Cannot allocate memory
   430 fsck_lfs PSIG  SIGSEGV SIG_DFL
   430 fsck_lfs NAMI  "fsck_lfs.core"

Script done on Wed Sep  6 20:28:17 2000
>Fix:
	Unknown.
	If set "datasize" is unlimited, fsck_lfs will success.
>Release-Note:
>Audit-Trail:
>Unformatted: