Bug 589643 - gtar: This does not look like a tar archive
Summary: gtar: This does not look like a tar archive
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: tar
Version: 6.0
Hardware: All
OS: Linux
Target Milestone: rc
: ---
Assignee: Ondrej Vasik
QA Contact: qe-baseos-daemons
Depends On:
TreeView+ depends on / blocked
Reported: 2010-05-06 15:33 UTC by Lubos Kocman
Modified: 2010-05-11 14:16 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2010-05-11 14:16:21 UTC
Target Upstream Version:

Attachments (Terms of Use)
problematic archive (526.86 KB, application/x-gzip)
2010-05-06 15:33 UTC, Lubos Kocman
no flags Details

Description Lubos Kocman 2010-05-06 15:33:43 UTC
Created attachment 412095 [details]
problematic archive

Description of problem:

I'm trying to un-archive attached archive via Archive Manager or gtar and I'm getting:

Archive Manager:

/bin/gtar: This does not look like a tar archive
/bin/gtar: Skipping to next header
/bin/gtar: Exiting with failure status due to previous errors

gtar (the same output)

[lkocman@dhcp-31-5 test]$ gtar -xzf redhat-logo.tar.gz 
gtar: This does not look like a tar archive
gtar: Skipping to next header
gtar: Exiting with failure status due to previous errors

If I'll use 

[lkocman@dhcp-31-5 test]$ gunzip -dc redhat-logo.tar.gz | tar -xf -
tar: Archive is compressed. Use -z option
tar: Error is not recoverable: exiting now

# This works

[lkocman@dhcp-31-5 test]$ gunzip -dc redhat-logo.tar.gz | tar -xzf -
[lkocman@dhcp-31-5 test]$ 

[lkocman@dhcp-31-5 test]$ gunzip redhat-logo.tar.gz 
[lkocman@dhcp-31-5 test]$ tar -xvf redhat-logo.tar 

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

How reproducible:

Steps to Reproduce:
1. Download mentioned archive
2. Try to use gtar or Archive Manager to uncompress archive.
Actual results:

gtar: This does not look like a tar archive

Expected results:

uncompressed archive

Additional info:

problem was reproduced on i686,x86_64 (others were not tested)


[lkocman@dhcp-31-5 test]$ uname -r

[lkocman@dhcp-31-5 test]$ cat /etc/redhat-release 
Red Hat Enterprise Linux Workstation release 6.0 Beta (Santiago)

Used archive file is in attachments

Comment 2 RHEL Program Management 2010-05-06 17:25:11 UTC
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux major release.  Product Management has requested further
review of this request by Red Hat Engineering, for potential inclusion in a Red
Hat Enterprise Linux Major release.  This request is not yet committed for

Comment 3 Ondrej Vasik 2010-05-11 13:21:31 UTC
Confirmed ... 
I'm able to create such archives with gzip - tar is not able to recognize archive header in those files - if the only one file is present in the .tar.gz archive . The same is for e.g. midnight commander archive viewer. Adding gzip maintainer to cc to check whether the issue is in tar or gzip. 
Easily reproducible by gzip -c <file> | tar tz .

Comment 4 Ondrej Vasik 2010-05-11 13:29:46 UTC
Additionally - by `gzip -c <several files> >archive.tar.gz` I was easily able to create archive which shows:
gzip -lv archive.tar.gz 
method  crc     date  time           compressed        uncompressed  ratio uncompressed_name
defla 73a9f53f May 11 15:16               22210               14256 -55.6% archive.tar
(archive.tar file is probably corrupted as I can't extract it).

Comment 5 Ondrej Vasik 2010-05-11 14:12:47 UTC
Probably notabug in tar, but misuse of gzip/some suffix magic ... sorry for confusing comment#3/#4 - maybe the same or similar confusion like archive creator.
Most probably NOTABUG - as if you gunzip the archive, you have .tar which is still gzip-compressed, so it looks like double gzip compression and only suffix magic. To be sure it would be necessary to know how the archive was created.

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