= x86 (OpenStack instance) =
$ lshw
WARNING: you should run this program as super-user.
terminate called after throwing an instance of 'std::bad_alloc'
what(): std::bad_alloc
Aborted (core dumped)
$ sudo lshw > sudo-lshw-02.17-1.1ubuntu3.1
# apt upgrade lshw
$ lshw > lshw-02.17-1.1ubuntu3.2
WARNING: you should run this program as super-user.
WARNING: output may be incomplete or inaccurate, you should run this program as super-user.
# NOTE: didn't segfault
$ sudo lshw > sudo-lshw-02.17-1.1ubuntu3.2
$ diff -u sudo-lshw-02.17-1.1ubuntu3.1 sudo-lshw-02.17-1.1ubuntu3.2
$
I ran the following tests:
= ARM64 (APM Mustang in u-boot mode) = 17-1.1ubuntu3. 1 02.17-1. 1ubuntu3. 1 17-1.1ubuntu3. 2 02.17-1. 1ubuntu3. 2 17-1.1ubuntu3. 1 lshw-02. 17-1.1ubuntu3. 2 02.17-1. 1ubuntu3. 1 sudo-lshw- 02.17-1. 1ubuntu3. 2
$ lshw > lshw-02.
$ sudo lshw > sudo-lshw-
# apt upgrade lshw
$ lshw > lshw-02.
$ sudo lshw > sudo-lshw-
$ diff -u lshw-02.
$ diff -u sudo-lshw-
= x86 (OpenStack instance) = 02.17-1. 1ubuntu3. 1 17-1.1ubuntu3. 2 02.17-1. 1ubuntu3. 2 02.17-1. 1ubuntu3. 1 sudo-lshw- 02.17-1. 1ubuntu3. 2
$ lshw
WARNING: you should run this program as super-user.
terminate called after throwing an instance of 'std::bad_alloc'
what(): std::bad_alloc
Aborted (core dumped)
$ sudo lshw > sudo-lshw-
# apt upgrade lshw
$ lshw > lshw-02.
WARNING: you should run this program as super-user.
WARNING: output may be incomplete or inaccurate, you should run this program as super-user.
# NOTE: didn't segfault
$ sudo lshw > sudo-lshw-
$ diff -u sudo-lshw-
$