Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug#1002025: lshw: Generates invalid JSON with -json option

56 views
Skip to first unread message

Dmitry Tantsur

unread,
Dec 20, 2021, 11:40:03 AM12/20/21
to
Package: lshw
Version: 02.18.85-0.7
Severity: important
X-Debbugs-Cc: dtan...@protonmail.com

Dear Maintainer,

Looks like #929206 is striking again. Reproducable with simply:

# lshw -quiet -json | jq .
parse error: Expected separator between values at line 11, column 8

There are several issues in the generated JSON, for example:

"capabilities" : {
"smp" : "Symmetric Multi-Processing",
"vsyscall32" : "32-bit processes"
} { <=== missing comma

"physid" : "0" { <=== missing key?
"id" : "memory",

The version in testing does not have this problem, nor does lshw-B.02.19.2-6.el8.x86_64 in CentOS Stream 8.

-- System Information:
Debian Release: 11.2
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 5.15.6-200.fc35.x86_64 (SMP w/8 CPU threads)
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /bin/dash
Init: unable to detect

Versions of packages lshw depends on:
ii libc6 2.31-13+deb11u2
ii libgcc-s1 10.2.1-6
ii libstdc++6 10.2.1-6

Versions of packages lshw recommends:
ii pci.ids 0.0~2021.02.08-1
ii usb.ids 2021.06.06-1

lshw suggests no packages.

-- no debconf information

Regards,
Dmitry
0 new messages