Subject: | IO-Compress-2.030 hangs on specific files |
Date: | Wed, 06 Oct 2010 00:18:34 +0200 |
To: | bug-IO-Compress [...] rt.cpan.org, pmqs [...] cpan.org |
From: | Evert <Evert.gentoo [...] planet.nl> |
Hello Paul,
I found a bug in IO-Compress which makes it hang on specific files.
My distribution: Gentoo Linux (stable branch and completely up2date)
perl -v: This is perl, v5.8.8 built for i686-linux
kernel: 2.6.35.5 PREEMPT AMD Athlon(tm) XP 2600+ AuthenticAMD GNU/Linux
I first discovered the bug in IO-Compress-2.024 but the bug also exists in version 2.030.
For my bug report and a simple test case, please see http://bugs.gentoo.org/339878
For convenience, I paste the data file and the script here too:
test.log:
80.57.136.2
uncompress-test.pl:
#!/usr/bin/perl
use strict;
use warnings;
use IO::Uncompress::AnyUncompress qw(anyuncompress $AnyUncompressError);
my $log_file = "test.log";
my $log = new IO::Uncompress::AnyUncompress $log_file, Transparent => 1, AutoClose => 1
or die "Cannot open $log_file: $AnyUncompressError\n";
while (<$log>) { print }
I hope I have given enough information for you to be able to reproduce and solve the problem.
Kind regards,
Evert