From owner-freebsd-bugs Tue May 16 1:40:10 2000 Delivered-To: freebsd-bugs@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id B920E37B946 for ; Tue, 16 May 2000 01:40:03 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id BAA81636; Tue, 16 May 2000 01:40:03 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: by hub.freebsd.org (Postfix, from userid 32767) id 3E0C437BDD6; Tue, 16 May 2000 01:38:55 -0700 (PDT) Message-Id: <20000516083855.3E0C437BDD6@hub.freebsd.org> Date: Tue, 16 May 2000 01:38:55 -0700 (PDT) From: phk@FreeBSD.org To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-1.0 Subject: bin/18589: cmp(1) chokes on large files Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 18589 >Category: bin >Synopsis: cmp(1) chokes on large files >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue May 16 01:40:03 PDT 2000 >Closed-Date: >Last-Modified: >Originator: Poul-Henning Kamp >Release: -CURRENT >Organization: Fregatten Jylland som Barn >Environment: FreeBSD critter.freebsd.dk 5.0-CURRENT FreeBSD 5.0-CURRENT #7: Sat May 13 22:04:02 CEST 2000 root@critter.freebsd.dk:/usr/src/sys/compile/CRITTER i386 >Description: The cmp(1) program mmaps the files to be compared. This fails for large files. >How-To-Repeat: cmp -l file.1 file.2 where the two files are 3242115072 bytes long >Fix: Add a loop around the mmap/compare operation which operates on some moderate amount of data each iteration. >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message