Subject: bin/28492: more(1) doesn't handle NUL data blocks well
To: None <gnats-admin@netbsd.org, netbsd-bugs@netbsd.org>
From: None <bsd@allegory.demon.co.uk>
List: netbsd-bugs
Date: 12/01/2004 02:21:00
>Number:         28492
>Category:       bin
>Synopsis:       more(1) doesn't handle NUL data blocks well
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Dec 01 02:21:00 +0000 2004
>Originator:     Bob Kemp
>Release:        NetBSD 2.99.10
>Organization:
	
>Environment:
	
	
System: NetBSD tenebres.loc 2.99.10 NetBSD 2.99.10 (TENEBRES) #0: Sun Nov 28 01:08:29 GMT 2004 rob@tenebres.loc:/usr/src/sys/arch/i386/compile/TENEBRES i386
Architecture: i386
Machine: i386
>Description:

    more(1) consumes a lot of memory while displaying files containing large blocks of zeroes,
    eg fairly fresh vnode filesystems.  Presumably it is looking for an end of line or similar.

    For me this is NOT an important bug.  I'm just reporting it so that you're aware of the problem.

    Should you need to contact me, please retain the subject line and/or reply from a netbsd.org address
    to avoid being entangled in my spam filter.

>How-To-Repeat:

	Paste the following commands into a shell.  On my PC it causes enough paging to
	make the machine difficult to use, hence the pkill line.

	( sleep 20 ; pkill more ) &
	more /dev/zero

>Fix:

>Unformatted: