Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
FS#79320 - [lshw] throws length_error _M_create
Attached to Project:
Arch Linux
Opened by Roko (rokobuljan) - Monday, 07 August 2023, 11:00 GMT
Last edited by Christian Heusel (gromit) - Thursday, 10 August 2023, 08:26 GMT
Opened by Roko (rokobuljan) - Monday, 07 August 2023, 11:00 GMT
Last edited by Christian Heusel (gromit) - Thursday, 10 August 2023, 08:26 GMT
|
DetailsDescription:
Running `sudo lshw` gives: ```sh terminate called after throwing an instance of 'std::length_error' what(): basic_string::_M_create Aborted ``` Also, by running `/usr/bin/lshw -version` there's this strange inconsistency in versions: ```sh B.02.19.2 the latest version is B.02.18 ``` Additional info: lshw version B.02.19.2 Steps to reproduce: `sudo lshw` |
This task depends upon
Closed by Christian Heusel (gromit)
Thursday, 10 August 2023, 08:26 GMT
Reason for closing: Fixed
Additional comments about closing: B.02.19.2-6
Thursday, 10 August 2023, 08:26 GMT
Reason for closing: Fixed
Additional comments about closing: B.02.19.2-6
[1] https://github.com/lyonel/lshw/pull/87
lshw-B.02.19.2-5.1-x86_64.pkg.tar.zst https://drive.google.com/file/d/1n-rVdjaGH26h69m2UWBkQxa386mu-yzX/view?usp=sharing
```sh
sudo lshw
Can`t read the string with size 18446744073709551615
mypc
description: Mini PC
product: mypc (BOXNUC7CJYSAMN)
(...etc)
```
There's finally the desired output! But, there's also this "Can`t read the string with size 18446744073709551615" which *is* the output from the PR's fprintf error message. Not sure why it gives that error though...
https://drive.google.com/file/d/1hZN01DOrkcR-gOucyHEa-TMQbEETSCS9/view?usp=sharing lshw-B.02.19.2-5.2-x86_64.pkg.tar.zst
The error now reads:
Can`t read the string with size 18446744073709551615 from /sys/devices/pci0000:00/0000:00:1c.0/mmc_host/mmc0/mmc0:0001/block/mmcblk0/device
At least with the patch the error is more useful.