Date: Thu, 19 May 2005 14:42:10 -0400 (EDT) From: Vivek Khera <vivek@khera.org> To: FreeBSD-gnats-submit@FreeBSD.org Subject: amd64/81279: /usr/games/random returns every line Message-ID: <20050519184210.34A5EB864@yertle.kcilink.com> Resent-Message-ID: <200505191850.j4JIo2xW057366@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050519184210.34A5EB864>