balena-os / balena-supervisor

Balena Supervisor: balena's agent on devices.
https://balena.io
Other
148 stars 61 forks source link

Core dumps filling the data partition on Compulab IOT-gate-imx8 boards #1916

Closed majorz closed 2 years ago

majorz commented 2 years ago

In d06b8e0 we started using dmidecode to obtain system ID, but it is crashing and creating core dumps on Compulab IOT-gate-imx8 boards. Since the crashes are happening repeatedly, eventually the whole data partition fills up with core dumps and the device becomes dysfunctional.

Running a newer dmidecode on the device does not crash. I tried version 3.3 from Alpine. It does not return a system ID though:

# dmidecode 3.3
# No SMBIOS nor DMI entry point found, sorry.

That device does not have /proc/device-tree/serial-number exposed, which leads to running dmidecode. On that device a /proc/device-tree/product-sn exists though together with some related fields:

/proc/device-tree/product-name 
UCM-iMX8M

/proc/device-tree/product-options 
C1800Q-D2-N16-E

/proc/device-tree/product-revision 
1.11

/proc/device-tree/product-sn 
5a1066895

It looks like we need to upgrade dmidecode and possibly use /proc/device-tree/product-sn as alternative to /proc/device-tree/serial-number.

jellyfish-bot commented 2 years ago

[majorz] This issue has attached support thread https://jel.ly.fish/68f1982d-1c5b-4934-be05-ba5f6cd2ad11