Bug 1661251 - Fails due to uninitialised value
Summary: Fails due to uninitialised value
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora EPEL
Classification: Fedora
Component: perl-Parse-DMIDecode
Version: epel7
Hardware: Unspecified
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Petr Pisar
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-12-20 15:22 UTC by Stephen Quinney
Modified: 2022-06-22 01:25 UTC (History)
2 users (show)

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:
Clone Of:
Environment:
Last Closed: 2022-06-22 00:46:46 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Initialise structures to zero to avoid potential problem with numeric comparison (598 bytes, patch)
2018-12-20 15:22 UTC, Stephen Quinney
no flags Details | Diff


Links
System ID Private Priority Status Summary Last Updated
CPAN 54956 0 None None None 2020-03-26 10:28:54 UTC

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.


Note You need to log in before you can comment on or make changes to this bug.