Bug 168545

Summary: tar error "Read 8704 bytes from -" when extracting from standard input in IDL install
Product: Red Hat Enterprise Linux 4 Reporter: Need Real Name <bill.godfrey>
Component: tarAssignee: Peter Vrabec <pvrabec>
Status: CLOSED ERRATA QA Contact: Ben Levenson <benl>
Severity: medium Docs Contact:
Priority: medium    
Version: 4.0   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard: RHEL4U3NAK
Fixed In Version: RHBA-2006-0336 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-05-03 21:45:31 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 187538    

Description Need Real Name 2005-09-16 23:21:52 UTC
From Bugzilla Helper:
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)

Description of problem:
When extracting files from a tar file on standard input, an error message "tar: Read 8704 bytes from -" is written to standard error. The number is not always 8704. The message causes an error window to open up numerous times when installing IDL 6.1 on RHEL4. If the /bin/tar executable is replaced with one from RHEL3 there is no message and no problem. The problem happens every time for certain tar files, and not at all for certain other tar files. It seems to always happen if the tar file was created with "-b 1". It does not happen on RHEL3.

Version-Release number of selected component (if applicable):
tar-1.14-4

How reproducible:
Always

Steps to Reproduce:
1.echo hello >hello.txt
2.tar -b 1 -cf hello.tar hello.txt
3.cat hello.tar | tar xf -
  

Actual Results:  for step 3 above, this message on standard error:
tar: Read 2048 bytes from -

Expected Results:  no message

Additional info:

There is no error message if "-b 1" is used in the extract, as in:
cat hello.tar | tar -b 1 -xf -
The IDL 6.1 install script uses commands such as:
cat base1.tz | zcat | tar xf -
Since it is on CDROM, changing the script is non-trivial.
GNU tar 1.15.1 fixes a problem with extracting from standard input, but says the problem was introduced with 1.15, not 1.14.
ls -l /bin/tar: -rwxr-xr-x  1 root root 161380 Oct 11  2004 /bin/tar

Comment 1 Need Real Name 2005-09-16 23:45:41 UTC
One workaround: export TAR_OPTIONS=-b1

Comment 2 Peter Vrabec 2005-09-22 09:04:49 UTC
I think this message is not important, it has been already removed by upstream.
see(revision 1.83):
http://savannah.gnu.org/cgi-bin/viewcvs/tar/tar/src/buffer.c
http://savannah.gnu.org/cgi-bin/viewcvs/tar/tar/src/buffer.c.diff?r1=1.82&r2=1.83

Comment 11 Red Hat Bugzilla 2006-05-03 21:45:32 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2006-0336.html