View Issue Details

IDProjectCategoryView StatusLast Update
0000045AlmaLinux-8dmidecodepublic2021-09-23 15:35
Reporterimran.mna Assigned Toalukoshko  
PrioritynormalSeverityminorReproducibilityalways
Status confirmedResolutionopen 
PlatformKVMOSLinux 4.18.0-240.15.1.el8_3.x86_OS VersionAlmaLinux 8.3 RC
Summary0000045: Segmentation fault occurs while executing 'dmidecode -u'
DescriptionIn order to dump the contents as hexadecimal the dmidecode executable provides partial output and exits with 'Segmentation fault (core dumped)' error message.
Steps To Reproduce1. dmidecode -u FILENAME

2. dmidecode -u
TagsBug
abrt_hash
URL

Activities

imran.mna

2021-03-27 08:20

reporter  

dmidecode-hexadecimal-bug (937 bytes)   
# dmidecode 3.2
Getting SMBIOS data from sysfs.
SMBIOS 2.4 present.
13 structures occupying 461 bytes.
Table at 0x000F70A0.

Handle 0x0000, DMI type 0, 24 bytes
	Header and Data:
		00 18 00 00 01 02 00 E8 03 00 08 00 00 00 00 00
		00 00 00 04 01 00 FF FF
	Strings:
		53 65 61 62 69 6F 73 00
		Seabios
		30 2E 35 2E 31 00
		0.5.1
		30 31 2F 30 31 2F 32 30 31 31 00
		01/01/2011

Handle 0x0100, DMI type 1, 27 bytes
	Header and Data:
		01 1B 00 01 01 02 03 00 33 2E 20 F9 58 9C 4E 61
		B0 5A 7A 06 1F 21 73 72 06 00 04
	Strings:
		52 65 64 20 48 61 74 00
		Red Hat
		4B 56 4D 00
		KVM
		52 48 45 4C 20 37 2E 30 2E 30 20 50 43 20 28 69
		52 48 45 4C 20 37 2E 30 2E 30 20 50 43 20 28 6934 34 30 46 58 20 2B 20 50 49 49 58 2C 20 31 39
		52 48 45 4C 20 37 2E 30 2E 30 20 50 43 20 28 6934 34 30 46 58 20 2B 20 50 49 49 58 2C 20 31 3939 36 29 00
		RHEL 7.0.0 PC (i440FX + PIIX, 1996)
		Red Hat Enterprise Linux

Segmentation fault (core dumped)
dmidecode-hexadecimal-bug (937 bytes)   

imran.mna

2021-03-27 08:29

reporter   ~0000080

The Severity should be minor, apology for the input.

alukoshko

2021-03-27 13:57

developer   ~0000081

Hello and thanks for report.
It looks like an upstream distro issue: https://bugzilla.redhat.com/show_bug.cgi?id=1885823
We'll have to wait for update.

Fortunately, the previous version of dmidecode doesn't have this issue.
But we don't have it in AlmaLinux as we're new distribution so if you need to mitigate the issue right now you should install the previous version of dmidecode from other distro.

Here is example with CloudLinux 8.2 package I've tested:

# Downgrade to previous version
dnf downgrade https://repo.cloudlinux.com/cloudlinux/8.2/BaseOS/x86_64/os/Packages/dmidecode-3.2-5.el8.x86_64.rpm

# Install dnf versionlock plugin
dnf install 'dnf-command(versionlock)'

# Lock dmidecode to previous version until fixed package will be relesed
dnf versionlock add dmidecode

rschu68

2021-04-08 10:29

reporter   ~0000133

Also: https://github.com/mirror/dmidecode/issues/13
and: https://bugzilla.redhat.com/show_bug.cgi?id=1947352

alukoshko

2021-06-08 16:25

developer   ~0000264

https://bugzilla.redhat.com/show_bug.cgi?id=1885823
looks like issue will be fixed soon in dmidecode-3.2-10.el8

rschu68

2021-09-23 15:33

reporter   ~0000335

Confirm working with version 3.2-10 .. but not in repo's rhel8.4 ?
https://rpmfind.net/linux/rpm2html/search.php?query=dmidecode(x86-64)
http://linuxsoft.cern.ch/cern/centos/s8/BaseOS/x86_64/os/Packages/

alukoshko

2021-09-23 15:35

developer   ~0000336

Yep right now this version is in CentOS Stream 8 only.
Most likely RHEL 8.5 will include it.

Issue History

Date Modified Username Field Change
2021-03-27 08:20 imran.mna New Issue
2021-03-27 08:20 imran.mna Tag Attached: Bug
2021-03-27 08:20 imran.mna File Added: dmidecode-hexadecimal-bug
2021-03-27 08:29 imran.mna Note Added: 0000080
2021-03-27 13:24 alukoshko Assigned To => alukoshko
2021-03-27 13:24 alukoshko Status new => assigned
2021-03-27 13:57 alukoshko Status assigned => confirmed
2021-03-27 13:57 alukoshko Note Added: 0000081
2021-03-27 18:58 alukoshko Severity crash => minor
2021-03-27 18:58 alukoshko Steps to Reproduce Updated
2021-04-08 10:29 rschu68 Note Added: 0000133
2021-06-08 16:25 alukoshko Note Added: 0000264
2021-09-23 15:33 rschu68 Note Added: 0000335
2021-09-23 15:35 alukoshko Note Added: 0000336