Skip Menu |

This queue is for tickets about the Archive-Zip CPAN distribution.

Report information
The Basics
Id: 111541
Status: open
Priority: 0/
Queue: Archive-Zip

People
Owner: Nobody in particular
Requestors: bernd.lentes [...] helmholtz-muenchen.de
Cc:
AdminCc:

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



Subject: trouble installing PHRED/Archive-Zip-1.56.tar.gz
Date: Fri, 29 Jan 2016 14:30:06 +0100 (CET)
To: bug-Archive-Zip [...] rt.cpan.org
From: "Lentes, Bernd" <bernd.lentes [...] helmholtz-muenchen.de>
Hi, i have trouble installing PHRED/Archive-Zip-1.56.tar.gz. This is the first time i report a bug so please excuse if not everything is done correctly. Please inform me about it. I have perl 5.10.0, my host is a SLES 11 SP4 64bit, kernel 3.0.101-63-default. I try to install the module via CPAN. This is the error i get: t/20_bug_github11.t ........... ok t/21_zip64.t .................. ok t/22_deflated_dir.t ........... 1/4 # Failed test 'output zip isn't corrupted' # at t/22_deflated_dir.t line 24. # got: '512' # expected: '0' # Looks like you failed 1 test of 4. t/22_deflated_dir.t ........... Dubious, test returned 1 (wstat 256, 0x100) Failed 1/4 subtests t/23_closed_handle.t .......... ok Test Summary Report ------------------- t/22_deflated_dir.t (Wstat: 256 Tests: 4 Failed: 1) Failed test: 4 Non-zero exit status: 1 Files=23, Tests=293, 5 wallclock secs ( 0.16 usr 0.05 sys + 4.24 cusr 0.70 csys = 5.15 CPU) Result: FAIL Failed 1/23 test programs. 1/293 subtests failed. make: *** [test_dynamic] Error 255 PHRED/Archive-Zip-1.56.tar.gz /usr/bin/make test -- NOT OK //hint// to see the cpan-testers results for installing this module, try: reports PHRED/Archive-Zip-1.56.tar.gz Failed during this command: PHRED/Archive-Zip-1.56.tar.gz : make_test NO I had a look at 22_deflated_dir.t: my ($status, $zipout) = testZip(); STDERR->print("status= $status, out=$zipout\n"); SKIP: { skip( "test zip doesn't work", 1 ) if $testZipDoesntWork; is( $status, 0, "output zip isn't corrupted" ); <===== line 24 As you see i commented the line STDERR->print("status= $status, out=$zipout\n"); out and tried it again: t/20_bug_github11.t ........... ok t/21_zip64.t .................. ok t/22_deflated_dir.t ........... 1/4 status= 512, out=Archive: /tmp/testout-4IJbD.zip testing: META-INF/ bad extra-field entry: EF block length (0 bytes) invalid (< 4) testing: META-INF/MANIFEST.MF OK testing: file OK At least one error was detected in /tmp/testout-4IJbD.zip. # Failed test 'output zip isn't corrupted' # at t/22_deflated_dir.t line 24. # got: '512' # expected: '0' # Looks like you failed 1 test of 4. t/22_deflated_dir.t ........... Dubious, test returned 1 (wstat 256, 0x100) Failed 1/4 subtests t/23_closed_handle.t .......... ok Maybe this is more helpful. I tried to inspect /tmp/testout-4IJbD.zip but i didn't find it. Bernd -- Bernd Lentes Systemadministration institute of developmental genetics Gebäude 35.34 - Raum 208 HelmholtzZentrum München bernd.lentes@helmholtz-muenchen.de phone: +49 (0)89 3187 1241 fax: +49 (0)89 3187 2294 Wer Visionen hat soll zum Hausarzt gehen Helmut Schmidt Helmholtz Zentrum Muenchen Deutsches Forschungszentrum fuer Gesundheit und Umwelt (GmbH) Ingolstaedter Landstr. 1 85764 Neuherberg www.helmholtz-muenchen.de Aufsichtsratsvorsitzende: MinDir'in Baerbel Brumme-Bothe Geschaeftsfuehrer: Prof. Dr. Guenther Wess, Dr. Alfons Enhsen, Renate Schlusen (komm.) Registergericht: Amtsgericht Muenchen HRB 6466 USt-IdNr: DE 129521671
On 2016-01-29 08:30:31, bernd.lentes@helmholtz-muenchen.de wrote: Show quoted text
> Hi, > > i have trouble installing PHRED/Archive-Zip-1.56.tar.gz. This is the > first time i report a bug so please excuse if not everything is done > correctly. Please inform me about it. > I have perl 5.10.0, my host is a SLES 11 SP4 64bit, kernel 3.0.101-63- > default. > I try to install the module via CPAN. > This is the error i get: > > t/20_bug_github11.t ........... ok > t/21_zip64.t .................. ok > t/22_deflated_dir.t ........... 1/4 > # Failed test 'output zip isn't corrupted' > # at t/22_deflated_dir.t line 24. > # got: '512' > # expected: '0' > # Looks like you failed 1 test of 4. > t/22_deflated_dir.t ........... Dubious, test returned 1 (wstat 256, > 0x100) > Failed 1/4 subtests > t/23_closed_handle.t .......... ok > > Test Summary Report > ------------------- > t/22_deflated_dir.t (Wstat: 256 Tests: 4 Failed: 1) > Failed test: 4 > Non-zero exit status: 1 > Files=23, Tests=293, 5 wallclock secs ( 0.16 usr 0.05 sys + 4.24 cusr > 0.70 csys = 5.15 CPU) > Result: FAIL > Failed 1/23 test programs. 1/293 subtests failed. > make: *** [test_dynamic] Error 255 > PHRED/Archive-Zip-1.56.tar.gz > /usr/bin/make test -- NOT OK > //hint// to see the cpan-testers results for installing this module, > try: > reports PHRED/Archive-Zip-1.56.tar.gz > Failed during this command: > PHRED/Archive-Zip-1.56.tar.gz : make_test NO > > I had a look at 22_deflated_dir.t: > > my ($status, $zipout) = testZip(); > STDERR->print("status= $status, out=$zipout\n"); > SKIP: { > skip( "test zip doesn't work", 1 ) if $testZipDoesntWork; > is( $status, 0, "output zip isn't corrupted" ); <===== line 24 > > As you see i commented the line STDERR->print("status= $status, > out=$zipout\n"); out and tried it again: > > t/20_bug_github11.t ........... ok > t/21_zip64.t .................. ok > t/22_deflated_dir.t ........... 1/4 status= 512, out=Archive: > /tmp/testout-4IJbD.zip > testing: META-INF/ bad extra-field entry: > EF block length (0 bytes) invalid (< 4) > testing: META-INF/MANIFEST.MF OK > testing: file OK > At least one error was detected in /tmp/testout-4IJbD.zip. > > > # Failed test 'output zip isn't corrupted' > # at t/22_deflated_dir.t line 24. > # got: '512' > # expected: '0' > # Looks like you failed 1 test of 4. > t/22_deflated_dir.t ........... Dubious, test returned 1 (wstat 256, > 0x100) > Failed 1/4 subtests > t/23_closed_handle.t .......... ok > > > Maybe this is more helpful. > > I tried to inspect /tmp/testout-4IJbD.zip but i didn't find it. > > Bernd
This looks like the same problem as reported in https://rt.cpan.org/Ticket/Display.html?id=106089 and https://rt.cpan.org/Ticket/Display.html?id=106548
From: ozcoder [...] gmail.com
On Fri Jan 29 14:46:48 2016, SREZIC wrote: Show quoted text
> On 2016-01-29 08:30:31, bernd.lentes@helmholtz-muenchen.de wrote:
> > Hi, > > > > i have trouble installing PHRED/Archive-Zip-1.56.tar.gz. This is the > > first time i report a bug so please excuse if not everything is done > > correctly. Please inform me about it. > > I have perl 5.10.0, my host is a SLES 11 SP4 64bit, kernel 3.0.101-63- > > default. > > I try to install the module via CPAN. > > This is the error i get: > > > > t/20_bug_github11.t ........... ok > > t/21_zip64.t .................. ok > > t/22_deflated_dir.t ........... 1/4 > > # Failed test 'output zip isn't corrupted' > > # at t/22_deflated_dir.t line 24. > > # got: '512' > > # expected: '0' > > # Looks like you failed 1 test of 4. > > t/22_deflated_dir.t ........... Dubious, test returned 1 (wstat 256, > > 0x100) > > Failed 1/4 subtests > > t/23_closed_handle.t .......... ok > > > > Test Summary Report > > ------------------- > > t/22_deflated_dir.t (Wstat: 256 Tests: 4 Failed: 1) > > Failed test: 4 > > Non-zero exit status: 1 > > Files=23, Tests=293, 5 wallclock secs ( 0.16 usr 0.05 sys + 4.24 cusr > > 0.70 csys = 5.15 CPU) > > Result: FAIL > > Failed 1/23 test programs. 1/293 subtests failed. > > make: *** [test_dynamic] Error 255 > > PHRED/Archive-Zip-1.56.tar.gz > > /usr/bin/make test -- NOT OK > > //hint// to see the cpan-testers results for installing this module, > > try: > > reports PHRED/Archive-Zip-1.56.tar.gz > > Failed during this command: > > PHRED/Archive-Zip-1.56.tar.gz : make_test NO > > > > I had a look at 22_deflated_dir.t: > > > > my ($status, $zipout) = testZip(); > > STDERR->print("status= $status, out=$zipout\n"); > > SKIP: { > > skip( "test zip doesn't work", 1 ) if $testZipDoesntWork; > > is( $status, 0, "output zip isn't corrupted" ); <===== line 24 > > > > As you see i commented the line STDERR->print("status= $status, > > out=$zipout\n"); out and tried it again: > > > > t/20_bug_github11.t ........... ok > > t/21_zip64.t .................. ok > > t/22_deflated_dir.t ........... 1/4 status= 512, out=Archive: > > /tmp/testout-4IJbD.zip > > testing: META-INF/ bad extra-field entry: > > EF block length (0 bytes) invalid (< 4) > > testing: META-INF/MANIFEST.MF OK > > testing: file OK > > At least one error was detected in /tmp/testout-4IJbD.zip. > > > > > > # Failed test 'output zip isn't corrupted' > > # at t/22_deflated_dir.t line 24. > > # got: '512' > > # expected: '0' > > # Looks like you failed 1 test of 4. > > t/22_deflated_dir.t ........... Dubious, test returned 1 (wstat 256, > > 0x100) > > Failed 1/4 subtests > > t/23_closed_handle.t .......... ok > > > > > > Maybe this is more helpful. > > > > I tried to inspect /tmp/testout-4IJbD.zip but i didn't find it. > > > > Bernd
> > This looks like the same problem as reported in > https://rt.cpan.org/Ticket/Display.html?id=106089 and > https://rt.cpan.org/Ticket/Display.html?id=106548
Yes. Ok, I have finally worked out what is going on. It's actually a bug in that particular version of unzip. There was security bug https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2014-8139 that was sort of fixed in this version, but not quite right. It doesn't allow 0 length field, but the check was wrong. A later version has it fixed correctly. See my non-container Travis run https://travis-ci.org/ozcoder/perl-Archive-Zip/builds/109792014 Gordon