Bug 310370 - KGZipFilter fails at decompressing some gzipped archives
Summary: KGZipFilter fails at decompressing some gzipped archives
Status: RESOLVED FIXED
Alias: None
Product: kdelibs
Classification: Unmaintained
Component: kdecore (show other bugs)
Version: unspecified
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: kdelibs bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-11-19 19:58 UTC by Toralf Förster
Modified: 2024-06-20 19:09 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster 2012-11-19 19:58:18 UTC
probably related to gzip'ed compressions algorithm

Reproducible: Always

Steps to Reproduce:
1.ark /var/log/portage/app-emulation:libvirt-1.0.0:20121110-231620.log.gz
2.clicked onto the file name app-emulation:libvirt-1.0.0:20121110-231620.log
3.
Actual Results:  
only first 4 lines are displayed 

Expected Results:  
all lines should be shown

$ zcat /var/log/portage/app-emulation:libvirt-1.0.0:20121110-231620.log.gz | wc
   3142   12968  157737


re-gezipping works :

https://bugs.gentoo.org/show_bug.cgi?id=443948
Comment 1 Toralf Förster 2012-11-19 21:07:42 UTC
A Gentoo dev's opinion is :
> "Wouldn't it be app-arch/libarchive that is at fault here?"
Comment 2 Raphael Kubo da Costa 2012-11-19 23:02:42 UTC
(In reply to comment #1)
> A Gentoo dev's opinion is :
> > "Wouldn't it be app-arch/libarchive that is at fault here?"

Nope, libarchive would have been used if this was a tar.gz file; for .gz archives KDE's KGZipFilter is used instead.

This reminds me a lot of bug 232843, related to multi-member gzip files. However, contrary to the attachment from bug 241153, both archives attached to the Gentoo bug report seem to be gzipped files inside gzipped files. GNU gunzip on ArchLinux happily extracted them into plain-text files, however both my FreeBSD gunzip and 7zip have extracted them into the original .gz file which can then be extracted into the plain-text file.

The fact KGZipFilter behaves even more differently than the other tools is also surprising.

Do you know how this file is generated (whether it is generated by GNU gzip, or by some Python tool etc)?
Comment 3 Christoph Cullmann 2024-06-20 19:09:04 UTC
Can not reproduce issues with .gz files, use that often with Kate.