Wind River Support Network

HomeDefectsLIN1021-2450
Fixed

LIN1021-2450 : pigz 2.6 crash issue

Created: Jan 16, 2022    Updated: Mar 27, 2022
Resolved Date: Mar 14, 2022
Previous ID: LINCCM-12139
Found In Version: 10.21.20.7
Fix Version: 10.21.20.11
Severity: Standard
Applicable for: Wind River Linux CD
Component/s: Userspace

Description

Build pigz-native, version 2.6.

Somehow use the resulting binary named "gunzip" (or copy pigz to such) and do "gunzip -l" against a large .gz file,   it failed with the error varies slightly but failure every time.

Build>recipe-sysroot-native/usr/bin/gunzip -l xcs-algol-1.0/algol.rbf.gz 
compressed original reduced name
 8452327 43911564 80.8% algol.rbf
gunzip: can't destroy locked resource (pigz.c:2622:mutex_destroy)
gunzip: abort: internal threads error

Build> recipe-sysroot-native/usr/bin/gunzip -l xcs-algol-1.0/algol.rbf.gz 
gunzip: skipping: xcs-algol-1.0/algol.rbf.gz unrecognized format
gunzip: can't destroy locked resource (pigz.c:2622:mutex_destroy)
gunzip: abort: internal threads error

Build> recipe-sysroot-native/usr/bin/gunzip --version
pigz 2.6

Workaround

Patch was made to pigz to handle listing prior to half-starting the decode step, please see the attached patch.

Steps to Reproduce

Build pigz-native.

Somehow use the resulting binary named "gunzip" (or copy pigz to such) and do "gunzip -l" against a large .gz file

Frequency of reproduction is 100% on the build environment, the error varies slightly but failure every time
Live chat
Online