Skip Menu |
 

This queue is for tickets about the IO-Compress CPAN distribution.

Report information
The Basics
Id: 86234
Status: open
Priority: 0/
Queue: IO-Compress

People
Owner: Nobody in particular
Requestors: fink [...] snaggledworks.com
Cc:
AdminCc:

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



CC: fink-devel <fink-devel [...] lists.sourceforge.net>
Subject: io-compress 2.061 fails bzip2 tests on OS X 10.7
Date: Tue, 18 Jun 2013 10:45:04 -0400
To: bug-IO-Compress [...] rt.cpan.org
From: Hanspeter Niederstrasser <fink [...] snaggledworks.com>
Download (untitled) / with headers
text/plain 4.3k
While building io-compress-2.0.61 on OS X 10.7, all the bzip2 tests fail. I am using Apple's perl 5.12.3. compres-raw-bzip2 is at 2.061, and it passed all of its tests. This is the build log truncated around the first couple failing tests. The full log is at <http://www.snaggledworks.com/fink/logs/fink-build-log_io-compress-pm5123_2.061-1_2013.06.18-10.37.50> + make test PERL_DL_NONLAZY=1 /usr/bin/arch -x86_64 perl5.12 "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/000prereq.t ................... ok t/001bzip2.t .................... ok .... t/100generic-zip.t .............. ok bad bad bad at t/compress/CompTestUtils.pm line 647. # Looks like your test died before it could output anything. t/101truncate-bzip2.t ........... Dubious, test returned 255 (wstat 65280, 0xff00) Failed 4012/4012 subtests t/101truncate-deflate.t ......... ok .... t/103newtied-zip.t .............. ok # Failed test (t/compress/destroy.pl at line 52) # got: '' # expected: 'hello world # this is a test # ' # Failed test (t/compress/destroy.pl at line 74) # Looks like you failed 2 tests of 15. t/104destroy-bzip2.t ............ Dubious, test returned 2 (wstat 512, 0x200) Failed 2/15 subtests t/104destroy-deflate.t .......... ok t/104destroy-gzip.t ............. ok t/104destroy-rawdeflate.t ....... ok t/104destroy-zip.t .............. ok # Failed test (t/compress/oneshot.pl at line 305) # got: '' # expected: 'abcde' # Failed test (t/compress/oneshot.pl at line 319) # got: '' # expected: 'abcde' # Failed test (t/compress/oneshot.pl at line 334) # got: '' # expected: 'abcde' # Failed test (t/compress/oneshot.pl at line 349) # got: '' # expected: 'abcde' # Failed test (t/compress/oneshot.pl at line 367) # got: '' # expected: 'abcde' # Failed test (t/compress/oneshot.pl at line 385) # got: '' # expected: 'abcde' # Failed test (t/compress/oneshot.pl at line 404) # got: '' # expected: 'abcde' # Failed test (t/compress/oneshot.pl at line 420) # got: '' # expected: 'abcde' # Failed test (t/compress/oneshot.pl at line 440) # got: 'abcde' # expected: '' # Failed test (t/compress/oneshot.pl at line 460) # got: 'abcde' # expected: '' # Failed test (t/compress/oneshot.pl at line 477) # got: 'abcde' # expected: '' # Failed test (t/compress/oneshot.pl at line 500) # got: 'abcde' # expected: '' # Failed test (t/compress/oneshot.pl at line 305) # got: '' # expected: 'abcde' # Failed test (t/compress/oneshot.pl at line 319) # got: '' # expected: 'abcde' # Failed test (t/compress/oneshot.pl at line 334) # got: '' # expected: 'abcde' # Failed test (t/compress/oneshot.pl at line 349) # got: '' # expected: 'abcde' # Failed test (t/compress/oneshot.pl at line 367) # got: '' # expected: 'abcde' # Failed test (t/compress/oneshot.pl at line 385) # got: '' # expected: 'abcde' # Failed test (t/compress/oneshot.pl at line 404) # got: '' # expected: 'abcde' # Failed test (t/compress/oneshot.pl at line 420) # got: '' # expected: 'abcde' # Failed test (t/compress/oneshot.pl at line 440) # got: 'abcde' # expected: '' # Failed test (t/compress/oneshot.pl at line 460) # got: 'abcde' # expected: '' # Failed test (t/compress/oneshot.pl at line 477) # got: 'abcde' # expected: '' # Failed test (t/compress/oneshot.pl at line 500) # got: 'abcde' # expected: '' # Failed test (t/compress/oneshot.pl at line 551) # Structures begin differing at: # $got->[1] = '' # $expected->[1] = 'data1' Error uncompressing -- Inflation Error: data error at t/compress/CompTestUtils.pm line 545. main::anyUncompress('ARRAY(0x7fd529a72df8)') called at t/compress/oneshot.pl line 567 main::run() called at t/105oneshot-bzip2.t line 22 # Looks like you planned 989 tests but only ran 475. # Looks like your test died just after 475. t/105oneshot-bzip2.t ............ Dubious, test returned 255 (wstat 65280, 0xff00) Failed 539/989 subtests (less 2 skipped subtests: 448 okay) t/105oneshot-deflate.t .......... ok And it keeps going on like that, failing all bzip2 tests. Hanspeter
Download (untitled) / with headers
text/plain 895b
Hey Hanspeter, very strange. The error that jumps out at me is this one # Failed test (t/compress/multi.pl at line 201) # $gz isn't a 'IO::Uncompress::Bunzip2' it's a 'IO::Uncompress::RawInflate' That's saying that I uncompressed some content, but it wasn't the expected type of bzip2, it was rawinflate. Could you try temporarily moving this block of code from AnyUncompress.pm if (defined $IO::Uncompress::Bunzip2::VERSION and $magic = $self->ckMagic('Bunzip2')) { *$self->{Info} = $self->readHeader($magic) or return undef ; my ($obj, $errstr, $errno) = IO::Uncompress::Adapter::Bunzip2::mkUncompObject(); return $self->saveErrorString(undef, $errstr, $errno) if ! defined $obj; *$self->{Uncomp} = $obj; return 1; } to just before the line # try zlib first Does that help? Paul
Subject: Re: [rt.cpan.org #86234] io-compress 2.061 fails bzip2 tests on OS X 10.7
Date: Tue, 18 Jun 2013 21:12:08 -0400
To: bug-IO-Compress [...] rt.cpan.org
From: Hanspeter Niederstrasser <fink [...] snaggledworks.com>
Download (untitled) / with headers
text/plain 1.1k
On 6/18/2013 3:16 PM, Paul Marquess via RT wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=86234 > > > Hey Hanspeter, > > very strange. The error that jumps out at me is this one > > # Failed test (t/compress/multi.pl at line 201) > # $gz isn't a 'IO::Uncompress::Bunzip2' it's a 'IO::Uncompress::RawInflate' > > That's saying that I uncompressed some content, but it wasn't the expected type of bzip2, it was rawinflate. > > Could you try temporarily moving this block of code from AnyUncompress.pm > > if (defined $IO::Uncompress::Bunzip2::VERSION and > $magic = $self->ckMagic('Bunzip2')) { > *$self->{Info} = $self->readHeader($magic) > or return undef ; > > my ($obj, $errstr, $errno) = IO::Uncompress::Adapter::Bunzip2::mkUncompObject(); > > return $self->saveErrorString(undef, $errstr, $errno) > if ! defined $obj; > > *$self->{Uncomp} = $obj; > > return 1; > } > > to just before the line > > # try zlib first > > > Does that help?
Yes it did. All tests successful. Files=87, Tests=71978, 55 wallclock secs ( 7.04 usr 0.61 sys + 33.27 cusr 2.66 csys = 43.58 CPU) Result: PASS Hanspeter


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.