system hang when running dmidecode on arm64

Asked by Daniel Hung

Running the following commands on NVIDIA Jeston Xavier NX devkit (ARM64 device) can cause system hang.
$ sudo dmidecode --type system

The solution we found to fix this issue is as below.

1. Get Source & Debian files from https://packages.ubuntu.com/impish/dmidecode
        • dmidecode_3.3.orig.tar.xz
        • dmidecode_3.3-3.debian.tar.xz

2. Ignore override_dh_auto_build in debian/rules for aarch64
       # override_dh_auto_build:
       # dh_auto_build -- CC=$(CC) CFLAGS="$(CFLAGS) $(CPPFLAGS) -Os -ansi" LDFLAGS="$(LDFLAGS)"

It looks like the source code is OK, but the way to build dmidecode is set improperly to cause this issue on ARM64 only.

An alternative way to fix it is to build source with single make command.
$ sudo apt-get install make
$ git clone git://git.savannah.gnu.org/dmidecode.git
$ cd dmidecode
$ make
$ sudo make install

This issue can be linked to #702232. https://answers.launchpad.net/ubuntu/+source/dmidecode/+question/702232

Thanks!

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu dmidecode Edit question
Assignee:
No assignee Edit question
Solved by:
Daniel Hung
Solved:
Last query:
Last reply:
Revision history for this message
Manfred Hampl (m-hampl) said :
#1

I assume that this should be reported as bug.
In addition: The package in Ubuntu is copied from Debian. It should be checked whether the same problem happens in Debian, and if this is the case, then a bug report in Debian should also be created.

Revision history for this message
Daniel Hung (danielhung) said :
#2