| Summary: | ATA or similar read bug. | ||
|---|---|---|---|
| Product: | Base System | Reporter: | abc <abc> |
| Component: | i386 | Assignee: | freebsd-i386 (Nobody) <i386> |
| Status: | Closed FIXED | ||
| Severity: | Affects Only Me | ||
| Priority: | Normal | ||
| Version: | 4.9-RELEASE | ||
| Hardware: | Any | ||
| OS: | Any | ||
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 Submitter has located the problem. Thanks for letting us know. |
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. Fix: don't know - this would be very time consuming to debug. How-To-Repeat: possibly create a large file as data for the loop given. possibly a Promise Ultra100 ATA card is required.