Bug 1661251

Summary: Fails due to uninitialised value
Product: [Fedora] Fedora EPEL Reporter: Stephen Quinney <squinney>
Component: perl-Parse-DMIDecodeAssignee: Petr Pisar <ppisar>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: epel7CC: ddick, perl-devel
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: perl-Parse-DMIDecode-0.03-30.fc36 perl-Parse-DMIDecode-0.03-6.el7 perl-Parse-DMIDecode-0.03-29.fc35 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-06-22 00:46:46 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:
Attachments:
Description Flags
Initialise structures to zero to avoid potential problem with numeric comparison none

Description Stephen Quinney 2018-12-20 15:22:14 UTC
Created attachment 1515903 [details]
Initialise structures to zero to avoid potential problem with numeric comparison

Description of problem:

We use the Parse::DMIDecode perl module on all our EL7 machines as part of our inventory system. Mostly it works fine but on a small number of machines it fails with this error about an uninitialized value:

perl -MParse::DMIDecode -wE 'my $decoder = new Parse::DMIDecode; $decoder->probe'
Use of uninitialized value $data{"structures"} in numeric lt (<) at /usr/share/perl5/vendor_perl/Parse/DMIDecode.pm line 160.

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

0.03-5

How reproducible:

About 1% of our machines, I've not checked but probably all similar hardware.

Additional info:

This seems to be similar to a bug reported in CPAN many years ago:

https://rt.cpan.org/Public/Bug/Display.html?id=54956

except that the supplied patch in that report does NOT work. I have attached a patch which fixes the problem when applied to the 0.03-5 SRPM.

Regards,

Stephen Quinney

Comment 1 Fedora Admin XMLRPC Client 2020-02-10 16:32:28 UTC
This package has changed maintainer in the Fedora.
Reassigning to the new maintainer of this component.

Comment 2 Fedora Admin XMLRPC Client 2020-03-25 16:48:58 UTC
This package has changed maintainer in the Fedora.
Reassigning to the new maintainer of this component.

Comment 3 Petr Pisar 2020-03-26 09:59:54 UTC
Could you provide "dmidecode" command output from the machine where you observe the warning?

Comment 4 Petr Pisar 2022-06-13 15:05:39 UTC
I finally got a new machine where I can reproduce this issue. I will provide a patched package shortly.

Comment 5 Fedora Update System 2022-06-13 15:20:01 UTC
FEDORA-2022-8c042f403a has been submitted as an update to Fedora 36. https://bodhi.fedoraproject.org/updates/FEDORA-2022-8c042f403a

Comment 6 Fedora Update System 2022-06-13 15:20:18 UTC
FEDORA-2022-60c614805e has been submitted as an update to Fedora 35. https://bodhi.fedoraproject.org/updates/FEDORA-2022-60c614805e

Comment 7 Fedora Update System 2022-06-13 15:37:45 UTC
FEDORA-EPEL-2022-c94627008d has been submitted as an update to Fedora EPEL 7. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2022-c94627008d

Comment 8 Fedora Update System 2022-06-14 01:15:38 UTC
FEDORA-2022-8c042f403a has been pushed to the Fedora 36 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2022-8c042f403a`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2022-8c042f403a

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 9 Fedora Update System 2022-06-14 01:18:49 UTC
FEDORA-2022-60c614805e has been pushed to the Fedora 35 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2022-60c614805e`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2022-60c614805e

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 10 Fedora Update System 2022-06-14 01:38:14 UTC
FEDORA-EPEL-2022-c94627008d has been pushed to the Fedora EPEL 7 testing repository.

You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2022-c94627008d

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 11 Fedora Update System 2022-06-22 00:46:46 UTC
FEDORA-2022-8c042f403a has been pushed to the Fedora 36 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 12 Fedora Update System 2022-06-22 01:24:30 UTC
FEDORA-EPEL-2022-c94627008d has been pushed to the Fedora EPEL 7 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 13 Fedora Update System 2022-06-22 01:25:05 UTC
FEDORA-2022-60c614805e has been pushed to the Fedora 35 stable repository.
If problem still persists, please make note of it in this bug report.