From owner-freebsd-amd64@FreeBSD.ORG Thu May 19 18:50:03 2005 Return-Path: Delivered-To: freebsd-amd64@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4993A16A4CF for ; Thu, 19 May 2005 18:50:03 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id CD4E543DAE for ; Thu, 19 May 2005 18:50:02 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j4JIo2jH057367 for ; Thu, 19 May 2005 18:50:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j4JIo2xW057366; Thu, 19 May 2005 18:50:02 GMT (envelope-from gnats) Resent-Date: Thu, 19 May 2005 18:50:02 GMT Resent-Message-Id: <200505191850.j4JIo2xW057366@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-amd64@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Vivek Khera Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id ADE7616A4CE for ; Thu, 19 May 2005 18:42:11 +0000 (GMT) Received: from yertle.kcilink.com (yertle.kcilink.com [65.205.34.180]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3D5EB43DCC for ; Thu, 19 May 2005 18:42:11 +0000 (GMT) (envelope-from khera@kcilink.com) Received: by yertle.kcilink.com (Postfix, from userid 1002) id 34A5EB864; Thu, 19 May 2005 14:42:10 -0400 (EDT) Message-Id: <20050519184210.34A5EB864@yertle.kcilink.com> Date: Thu, 19 May 2005 14:42:10 -0400 (EDT) From: Vivek Khera To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: amd64/81279: /usr/games/random returns every line X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Vivek Khera List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 May 2005 18:50:03 -0000 >Number: 81279 >Category: amd64 >Synopsis: /usr/games/random returns every line >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-amd64 >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu May 19 18:50:01 GMT 2005 >Closed-Date: >Last-Modified: >Originator: Vivek Khera >Release: FreeBSD 5.3-STABLE amd64 >Organization: >Environment: System: FreeBSD d01 5.4-RELEASE-p1 FreeBSD 5.4-RELEASE-p1 #1: Wed May 18 12:29:27 EDT 2005 vivek@d01:/var/usr.obj/n/lorax1/usr5/src/sys/D03 amd64 >Description: Running /usr/games/random to select lines from a file fails to eliminate any lines -- ie, it functions just like "cat". >How-To-Repeat: make a file with 10000 lines for easy viewing: perl -e 'print "$_\n" for (1..10000)' > list now run /usr/games/random 6 < list > out On an amd64 system, list == out. On an i386 system the file out has approximately 1600 lines. >Fix: no idea. must be some 64-bit over/under flow issue... >Release-Note: >Audit-Trail: >Unformatted: