Skip Menu |

This queue is for tickets about the PerlIO-gzip CPAN distribution.

Report information
The Basics
Id: 6798
Status: resolved
Priority: 0/
Queue: PerlIO-gzip

People
Owner: Nobody in particular
Requestors: olivier.thauvin [...] aerov.jussieu.fr
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 0.16
Fixed in: (no value)



Subject: test failed against local gzip command
I am trying to use 0.15 to read a compressed file but it failed, so I choose to update to 0.16 but test failed. I took a look to test code, and It is unable to reread data compressed with the gzip installed. I can't really help about code but ask if you need more. [nanardon@n3 PerlIO-gzip-0.16]$ rpm -q gzip gzip-1.2.4a-12mdk Another things, it is maybe corrected now, in 0.15, the gzip is unable to reread compressed file by PerlIO::Gzip: [nanardon@virgo(Cooker 10.1) ~/mandrakecvs/soft/perl-Hdlist]$ zcat hdlist.cz > /dev/null zcat: hdlist.cz: invalid compressed data--format violated [nanardon@virgo(Cooker 10.1) ~/mandrakecvs/soft/perl-Hdlist]$ file hdlist.cz hdlist.cz: gzip compressed data
Date: Sat, 3 Jul 2004 11:21:03 +0100
From: Nicholas Clark <nick [...] ccl4.org>
To: Guest via RT <bug-PerlIO-gzip [...] rt.cpan.org>
Subject: Re: [cpan #6798] test failed against local gzip command
RT-Send-Cc:
On Tue, Jun 29, 2004 at 07:55:15PM -0400, Guest via RT wrote: Show quoted text
> > This message about PerlIO-gzip was sent to you by guest <> via rt.cpan.org > > Full context and any attached attachments can be found at: > <URL: https://rt.cpan.org/Ticket/Display.html?id=6798 > > > I am trying to use 0.15 to read a compressed file but it failed, so I choose to update to 0.16 but test failed. > > I took a look to test code, and It is unable to reread data compressed with the gzip installed.
I tracked down the cause of the problem - it's an interaction between a core perlio bug, and how newer glibc stdio works. (Core perlio can't push a new layer onto a stream with unread() data - the unread() data is discarded, and I believe that glibc stdio now mmap()s some files for reading) I found a way to work round the problem - version 0.17 now on CPAN should solve the test failure, and hopefully the other problems. Nicholas Clark