Bug 31715 - Erroneous "file truncated" messages
Summary: Erroneous "file truncated" messages
Alias: None
Product: Red Hat Raw Hide
Classification: Retired
Component: textutils
Version: 1.0
Hardware: i386
OS: Linux
Target Milestone: ---
Assignee: Karsten Hopp
QA Contact: Aaron Brown
Depends On:
TreeView+ depends on / blocked
Reported: 2001-03-13 21:28 UTC by Bill Crawford
Modified: 2007-04-18 16:32 UTC (History)
0 users

Clone Of:
Last Closed: 2001-03-20 15:19:39 UTC

Attachments (Terms of Use)
Output of "tail -f" on a wget log file (1.14 KB, text/plain)
2001-03-13 21:52 UTC, Bill Crawford
no flags Details
output of "tail -f update.log" on wget output. (1.57 KB, text/plain)
2001-03-20 14:21 UTC, Bill Crawford
no flags Details

Description Bill Crawford 2001-03-13 21:28:58 UTC
Quite frequently, when I "tail -f" a file which is the output of wget, I
see (immediately) a message that says the file has been truncated.  I added
a bit of debugging code and rebuilt, and discover that it's always claiming
the file has been truncated by one or two bytes.

I'll attach a sample of the output in a tick ...

Comment 1 Bill Crawford 2001-03-13 21:52:28 UTC
Created attachment 12630 [details]
Output of "tail -f" on a wget log file

Comment 2 Bill Crawford 2001-03-14 18:46:01 UTC
Oops.  Yes, component should indeed be "textutils" ...

If it's relevant, I suspect it could also be related to the partition being on
ReiserFS, but I don't seem to have any problem other than this one case, and
it's *always* just after I start the process, and doesn't repeat if I leave it
running for any length of time.

I can try to test later whether that's related, i.e. I'll run it on an ext2
partition to be sure.

Comment 3 Bill Crawford 2001-03-20 14:20:18 UTC
Yes, this manifests itself on ext2 as well, so is not an artifact of using

Comment 4 Bill Crawford 2001-03-20 14:21:31 UTC
Created attachment 13123 [details]
output of "tail -f update.log" on wget output.

Comment 5 Karsten Hopp 2001-03-20 14:49:23 UTC
I failed to reproduce this here. What is the exact command sequence ?
Is it like this:

ls LOG   ->  LOG   (File exists, but wget doesn't run yet)
tail -f LOG
wget -o LOG ftp://ftp.kernel.org/pub/linux/kernel/v2.4/linux-2.4.2.tar.bz2

or is there no LOG and you start tail -f after the wget command ?

Comment 6 Bill Crawford 2001-03-20 15:19:34 UTC
No, it only happens if I start the tail after the wget command is already
running.  It happens about 1 time in 5 or 6 here, while running:

wget --mirror -nH --cut-dirs=2 ftp://ftp.redhat.com//pub/rawhide/i386/ >
update.log 2>&1 &
tail -f update.log
(repeat until problem appears, in this case the fifth time).

I suspect the "read as much as you can" code in tail.c is incorrectly setting
the file size, or it could at a pinch be a VFS bug in the kernel.  I've only
noticed this recently, though.

Note You need to log in before you can comment on or make changes to this bug.