Strange Launchpad data appears on empty memory banks

Bug #1597886 reported by Byte Commander
20
This bug affects 3 people
Affects Status Importance Assigned to Milestone
lshw (Ubuntu)
Triaged
Low
Unassigned

Bug Description

I ran `lshw -c memory` and got this output (info related to CPU cache and firmware removed):

$ sudo lshw -c memory
  *-memory
       description: System Memory
       physical id: c
       slot: System board or motherboard
       size: 12GiB
     *-bank:0
          description: SODIMM DDR3 Synchronous 1600 MHz (0,6 ns)
          product: ACR16D3LS1KNG/8G
          vendor: Kingston
          physical id: 0
          serial: 16392411
          slot: ChannelA-DIMM0
          size: 8GiB
          width: 64 bits
          clock: 1600MHz (0.6ns)
     *-bank:1
          description: Project-Id-Version: lshwReport-Msgid-Bugs-To: FULL NAME <EMAIL@ADDRESS>POT-Creation-Date: 2009-10-08 14:02+0200PO-Revision-Date: 2012-02-05 00:26+0000Last-Translator: Andi Chandler <Unknown>Language-Team: English (United Kingdom) <email address hidden>MIME-Version: 1.0Content-Type: text/plain; charset=UTF-8Content-Transfer-Encoding: 8bitX-Launchpad-Export-Date: 2016-04-15 05:57+0000X-Generator: Launchpad (build 17995)Project-Id-Version: lshwReport-Msgid-Bugs-To: FULL NAME <EMAIL@ADDRESS>POT-Creation-Date: 2009-10-08 14:02+0200PO-Revision-Date: 2012-02-05 00:26+0000Last-Translator: Andi Chandler <Unknown>Language-Team: English (United Kingdom) <email address hidden>MIME-Version: 1.0Content-Type: text/plain; charset=UTF-8Content-Transfer-Encoding: 8bitX-Launchpad-Export-Date: 2016-04-15 05:57+0000X-Generator: Launchpad (build 17995) [empty]
          physical id: 1
          slot: ChannelA-DIMM1
     *-bank:2
          description: SODIMM DDR3 Synchronous 1600 MHz (0,6 ns)
          product: HMT451S6BFR8A-PB
          vendor: SK Hynix
          physical id: 2
          serial: 37441113
          slot: ChannelB-DIMM0
          size: 4GiB
          width: 64 bits
          clock: 1600MHz (0.6ns)
     *-bank:3
          description: Project-Id-Version: lshwReport-Msgid-Bugs-To: FULL NAME <EMAIL@ADDRESS>POT-Creation-Date: 2009-10-08 14:02+0200PO-Revision-Date: 2012-02-05 00:26+0000Last-Translator: Andi Chandler <Unknown>Language-Team: English (United Kingdom) <email address hidden>MIME-Version: 1.0Content-Type: text/plain; charset=UTF-8Content-Transfer-Encoding: 8bitX-Launchpad-Export-Date: 2016-04-15 05:57+0000X-Generator: Launchpad (build 17995)Project-Id-Version: lshwReport-Msgid-Bugs-To: FULL NAME <EMAIL@ADDRESS>POT-Creation-Date: 2009-10-08 14:02+0200PO-Revision-Date: 2012-02-05 00:26+0000Last-Translator: Andi Chandler <Unknown>Language-Team: English (United Kingdom) <email address hidden>MIME-Version: 1.0Content-Type: text/plain; charset=UTF-8Content-Transfer-Encoding: 8bitX-Launchpad-Export-Date: 2016-04-15 05:57+0000X-Generator: Launchpad (build 17995) [empty]
          physical id: 3
          slot: ChannelB-DIMM1
  *-memory UNCLAIMED
       description: Memory controller
       product: Intel Corporation
       vendor: Intel Corporation
       physical id: 1f.2
       bus info: pci@0000:00:1f.2
       version: 21
       width: 32 bits
       clock: 33MHz (30.3ns)
       capabilities: bus_master
       configuration: latency=0
       resources: memory:a4224000-a4227fff

Please look at the information about bank 1 and bank 3 - these banks should be empty, but instead some weird data about Launchpad is displayed.

This is a bug and should not happen. Please examine this issue and fix it. Thanks.

ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: lshw 02.17-1.1ubuntu3.2
ProcVersionSignature: Ubuntu 4.4.0-28.47-generic 4.4.13
Uname: Linux 4.4.0-28-generic x86_64
NonfreeKernelModules: nvidia_uvm nvidia_modeset nvidia
ApportVersion: 2.20.1-0ubuntu2.1
Architecture: amd64
CurrentDesktop: Unity
Date: Thu Jun 30 20:57:10 2016
InstallationDate: Installed on 2016-05-04 (56 days ago)
InstallationMedia: Ubuntu 16.04 LTS "Xenial Xerus" - Release amd64 (20160420.1)
SourcePackage: lshw
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Byte Commander (bytecommander) wrote :
Revision history for this message
Sebastien Bacher (seb128) wrote :

Thank you for your bug report, gettext usually does that when trying to translate an empty string ... could you start the command under a C locale and copy the output?

Revision history for this message
Byte Commander (bytecommander) wrote :

@Sebastien Bacher of course, thanks for your response.

My default locale is:

$ echo $LANG
en_GB.UTF-8

And here's the output of lshw with C locale:

$ LANG=C sudo lshw -c memory
  [... info about CPU cache and firmware removed ...]
  *-memory
       description: System Memory
       physical id: c
       slot: System board or motherboard
       size: 12GiB
     *-bank:0
          description: SODIMM DDR3 Synchronous 1600 MHz (0,6 ns)
          product: ACR16D3LS1KNG/8G
          vendor: Kingston
          physical id: 0
          serial: 16392411
          slot: ChannelA-DIMM0
          size: 8GiB
          width: 64 bits
          clock: 1600MHz (0.6ns)
     *-bank:1
          description: [empty]
          physical id: 1
          slot: ChannelA-DIMM1
     *-bank:2
          description: SODIMM DDR3 Synchronous 1600 MHz (0,6 ns)
          product: HMT451S6BFR8A-PB
          vendor: SK Hynix
          physical id: 2
          serial: 37441113
          slot: ChannelB-DIMM0
          size: 4GiB
          width: 64 bits
          clock: 1600MHz (0.6ns)
     *-bank:3
          description: [empty]
          physical id: 3
          slot: ChannelB-DIMM1
  *-memory UNCLAIMED
       description: Memory controller
       product: Intel Corporation
       vendor: Intel Corporation
       physical id: 1f.2
       bus info: pci@0000:00:1f.2
       version: 21
       width: 32 bits
       clock: 33MHz (30.3ns)
       capabilities: bus_master
       configuration: latency=0
       resources: memory:a4224000-a4227fff

This time the output is correct. You should add a check and fall back to the untranslated C locale output instead of the generic Launchpad translation string.

Revision history for this message
Sebastien Bacher (seb128) wrote :

thanks, it looks like a code bug then, if the string is empty it shouldn't try to translate it...

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in lshw (Ubuntu):
status: New → Confirmed
Revision history for this message
Benno Schulenberg (bennoschulenberg) wrote :

Confirmed. Attached patch has been sent to the upstream maintainer. It fixes the bug for me. (Tested against lshw from git.)

tags: added: patch-forwarded-upstream
tags: added: patch
tags: added: disco
tags: added: eoan
Revision history for this message
Brian Murray (brian-murray) wrote :

Thanks for digging into the bug and submitting a patch upstream. Please let us know if it gets accepted, thanks!

Changed in lshw (Ubuntu):
importance: Undecided → Low
status: Confirmed → Triaged
Revision history for this message
Lucas Ignacio Quequesana Lagos (l4cus) wrote :

hi, i got a similar problem when run "sudo lshw -c memory"
here the output:

root@l4cus:/home/l4cus# lshw -c memory
  *-memory
       descripción: Memoria de sistema
       id físico: 40
       ranura: Placa de sistema o placa base
       tamaño: 8GiB
     *-bank:0
          descripción: DIMM DDR3 Síncrono 1333 MHz (0,8 ns)
          producto: 99U5471-028.A00LF
          fabricante: Kingston
          id físico: 0
          serie: 8B1C1937
          ranura: ChannelA-DIMM0
          tamaño: 4GiB
          anchura: 64 bits
          reloj: 1333MHz (0.8ns)
     *-bank:1
          descripción: DIMMProject-Id-Version: lshwReport-Msgid-Bugs-To: FULL NAME <EMAIL@ADDRESS>PO-Revision-Date: 2012-03-14 06:38+0000Last-Translator: Paco Molinero <email address hidden>Language-Team: Spanish <email address hidden>MIME-Version: 1.0Content-Type: text/plain; charset=UTF-8Content-Transfer-Encoding: 8bitX-Launchpad-Export-Date: 2020-04-16 17:42+0000X-Generator: Launchpad (build 2e26c9bbd21cdca248baaea29aeffb920afcc32a) [vacío]
          producto: [Empty]
          fabricante: [Empty]
          id físico: 1
          serie: [Empty]
          ranura: ChannelA-DIMM1
     *-bank:2
          descripción: DIMM DDR3 Síncrono 1333 MHz (0,8 ns)
          producto: HMT351U6CFR8C-PB
          fabricante: Hynix/Hyundai
          id físico: 2
          serie: 0080BF95
          ranura: ChannelB-DIMM0
          tamaño: 4GiB
          anchura: 64 bits
          reloj: 1333MHz (0.8ns)
     *-bank:3
          descripción: DIMMProject-Id-Version: lshwReport-Msgid-Bugs-To: FULL NAME <EMAIL@ADDRESS>PO-Revision-Date: 2012-03-14 06:38+0000Last-Translator: Paco Molinero <email address hidden>Language-Team: Spanish <email address hidden>MIME-Version: 1.0Content-Type: text/plain; charset=UTF-8Content-Transfer-Encoding: 8bitX-Launchpad-Export-Date: 2020-04-16 17:42+0000X-Generator: Launchpad (build 2e26c9bbd21cdca248baaea29aeffb920afcc32a) [vacío]
          producto: [Empty]
          fabricante: [Empty]
          id físico: 3
          serie: [Empty]
          ranura: ChannelB-DIMM1

i dont really know if it is the same...

Revision history for this message
Tony Martin Berbel (wingarmac) wrote :

I've simillar issue with sudo lshw -short | grep memory:
https://termbin.com/t11sg

I run on Linux Mint 21.1 Cinnamon 5.6.7 kernel 6.1.10-060110-generic

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.