Bug 1435680

Summary: Update pigz to latest version in epel
Product: [Fedora] Fedora EPEL Reporter: Åsmund Steen Skjæveland <skjaeve>
Component: pigzAssignee: Orion Poplawski <orion>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: el6CC: orion
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: pigz-2.3.4-1.el6 pigz-2.3.4-1.el7 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-04-11 01:48:56 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Åsmund Steen Skjæveland 2017-03-24 14:05:22 UTC
Description of problem:

there is a bug in pigz 2.3.3 which can cause an infinite loop when gzipping directories recursively. This is fixed in 2.3.4.

Version-Release number of selected component (if applicable):
pigz 2.3.3

How reproducible:
Very reproducible. If number of files is large and at least two directory levels down, an infinite loop can occur.

Steps to Reproduce:


    mkdir pigztest pigztest/subdir
    cd pigztest
    for ((i=1;i<1000;i++)); do touch  $i.txt; done
    cd subdir/
    for ((i=1;i<1000;i++)); do touch  $i.txt; done
    cd ../..
    pigz -r -v pigztest


Actual results:

With pigz 2.3.3: pigz enters infinite loop iterating over files it created:

pigz: skipping: pigztest/subdir/978.txt.gz ends with .gz
pigz: skipping: pigztest/subdir/962.txt.gz ends with .gz
pigz: skipping: pigztest/subdir/576.txt.gz ends with .gz
pigz: skipping: pigztest/subdir/985.txt.gz ends with .gz
pigz: skipping: pigztest/subdir/764.txt.gz ends with .gz
pigz: skipping: pigztest/subdir/630.txt.gz ends with .gz
pigz: skipping: pigztest/subdir/613.txt.gz ends with .gz
pigz: skipping: pigztest/subdir/841.txt.gz ends with .gz
pigz: skipping: pigztest/subdir/4.txt.gz ends with .gz
pigz: skipping: pigztest/subdir/379.txt.gz ends with .gz
pigz: skipping: pigztest/subdir/402.txt.gz ends with .gz
pigz: skipping: pigztest/subdir/332.txt.gz ends with .gz
pigz: skipping: pigztest/subdir/646.txt.gz ends with .gz
pigz: skipping: pigztest/subdir/450.txt.gz ends with .gz
pigz: skipping: pigztest/subdir/453.txt.gz ends with .gz
pigz: skipping: pigztest/subdir/710.txt.gz ends with .gz
pigz: skipping: pigztest/subdir/490.txt.gz ends with .gz
pigz: skipping: pigztest/subdir/924.txt.gz ends with .gz
pigz: skipping: pigztest/subdir/915.txt.gz ends with .gz

if the -f (force) option is used, every .gz-file is compressed again and again and again ad infinitum.

Expected results:

With pigz 2.3.4, this behavior does not occur. Files are compressed as expected and pigz terminates normally.


Additional info:

pigz version 2.3.4 is already available in Fedora repositories, but for CentOS 
only version 2.3.3 is available via EPEL.

Bugfix is listed in release notes, in the source comments:
https://github.com/madler/pigz/blob/master/pigz.c

Comment 1 Fedora Update System 2017-03-24 16:52:36 UTC
pigz-2.3.4-1.el6 has been submitted as an update to Fedora EPEL 6. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2017-29fd875b22

Comment 2 Fedora Update System 2017-03-24 16:52:43 UTC
pigz-2.3.4-1.el7 has been submitted as an update to Fedora EPEL 7. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2017-f7d993c9c5

Comment 3 Fedora Update System 2017-03-26 08:46:36 UTC
pigz-2.3.4-1.el6 has been pushed to the Fedora EPEL 6 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2017-29fd875b22

Comment 4 Fedora Update System 2017-03-26 08:47:35 UTC
pigz-2.3.4-1.el7 has been pushed to the Fedora EPEL 7 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2017-f7d993c9c5

Comment 5 Fedora Update System 2017-04-11 01:48:56 UTC
pigz-2.3.4-1.el6 has been pushed to the Fedora EPEL 6 stable repository. If problems still persist, please make note of it in this bug report.

Comment 6 Fedora Update System 2017-04-11 01:50:18 UTC
pigz-2.3.4-1.el7 has been pushed to the Fedora EPEL 7 stable repository. If problems still persist, please make note of it in this bug report.