From abc@ai1.anchorage.mtaonline.net  Wed Feb 11 16:39:07 2004
Return-Path: <abc@ai1.anchorage.mtaonline.net>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id B05E316A4CE
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 11 Feb 2004 16:39:07 -0800 (PST)
Received: from ai1.anchorage.mtaonline.net (ai1.anchorage.mtaonline.net [12.21.201.252])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 7AFB443D1D
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 11 Feb 2004 16:39:06 -0800 (PST)
	(envelope-from abc@ai1.anchorage.mtaonline.net)
Received: from en26.ai1.anchorage.mtaonline.net (root@printer [192.168.0.26])
	by ai1.anchorage.mtaonline.net (8.12.9p2/8.12.9) with ESMTP id i1C0d1LR089453
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 11 Feb 2004 15:39:01 -0900 (AKST)
	(envelope-from abc@ai1.anchorage.mtaonline.net)
Received: (from abc@localhost)
	by en26.ai1.anchorage.mtaonline.net (8.12.9p2/8.12.9) id i1C0e8Vn032324;
	Thu, 12 Feb 2004 00:40:08 GMT
	(envelope-from abc@ai1.anchorage.mtaonline.net)
Message-Id: <200402120040.i1C0e8Vn032324@en26.ai1.anchorage.mtaonline.net>
Date: Thu, 12 Feb 2004 00:40:08 GMT
From: abc@ai1.anchorage.mtaonline.net
Reply-To:
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: ATA or similar read bug.

>Number:         62717
>Category:       i386
>Synopsis:       ATA or similar read bug.
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-i386
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Feb 11 16:40:08 PST 2004
>Closed-Date:    Sat Feb 14 04:02:01 PST 2004
>Last-Modified:  Sat Feb 14 04:02:01 PST 2004
>Originator:     Joe Public
>Release:        i386 FreeBSD 4.9-RELEASE
>Organization:
no org
>Environment:
FreeBSD 4.9-RELEASE FreeBSD 4.9-RELEASE #0: Tue Nov 25 19:10:45 AKST 2003     /usr/src/sys/compile/MYKERN  i386

>Description:
when reading a large file (a gigabyte image of a hard drive
                creating with strings(1)) using a simple shell loop such as
                'while [ 1 ]; do read a; echo $a; done < big-file',
                once every few 1000 lines, a directory listing (ls) of
                the current directory is echoed in the midst of the data.
                no pattern is detected - but it seems to occur more often
                after 40,000 lines or so have been read.
                this seems like a potentially very dangerous bug.

                this is an example of the output (with a line number):

                00070805: v+ file1 file2 file3 file4 file5 file6 file7
                          ^^ the listing seems to occur after short reads.
                00078682: jT| file1 file2 file3 file4 file5 file6 file7
                          ^^^
                00078701: file1 file2 file3 file4 file5 file6 file7 ]0
                          the carets denote actual data             ^^
                00079300: >u file4 file5
                          ^^ occasionally a deficient ls listing is output.

>How-To-Repeat:
possibly create a large file as data for the loop given.
                possibly a Promise Ultra100 ATA card is required.

>Fix:
don't know - this would be very time consuming to debug.
>Release-Note:
>Audit-Trail:

From: abc@ai1.anchorage.mtaonline.net
To: freebsd-gnats-submit@FreeBSD.org, abc@ai1.anchorage.mtaonline.net
Cc:  
Subject: Re: i386/62717: ATA or similar read bug.
Date: Thu, 12 Feb 2004 00:47:34 GMT

 this was a stupid report - after submitting,
 it was realized that it is the likely result
 of the shells echo command.  apologies.
State-Changed-From-To: open->closed 
State-Changed-By: simon 
State-Changed-When: Sat Feb 14 04:01:54 PST 2004 
State-Changed-Why:  
Submitter has located the problem. 
Thanks for letting us know. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=62717 
>Unformatted:
