Description of problem: I've tried to run lshw as ordinary user. After printing a warnign that I should run this as root, it just crashed ... Version-Release number of selected component: lshw-B.02.18-2.fc23 Additional info: reporter: libreport-2.6.4 backtrace_rating: 4 cmdline: lshw crash_function: operator new executable: /usr/sbin/lshw global_pid: 17520 kernel: 4.4.8-300.fc23.x86_64 runlevel: N 5 type: CCpp uid: 1000 Truncated backtrace: Thread no. 1 (10 frames) #6 operator new at ../../../../libstdc++-v3/libsupc++/new_op.cc:54 #7 __gnu_cxx::new_allocator<unsigned char>::allocate at /usr/include/c++/5.3.1/ext/new_allocator.h:104 #8 __gnu_cxx::__alloc_traits<std::allocator<unsigned char> >::allocate at /usr/include/c++/5.3.1/ext/alloc_traits.h:182 #9 std::_Vector_base<unsigned char, std::allocator<unsigned char> >::_M_allocate at /usr/include/c++/5.3.1/bits/stl_vector.h:170 #10 std::_Vector_base<unsigned char, std::allocator<unsigned char> >::_M_create_storage at /usr/include/c++/5.3.1/bits/stl_vector.h:185 #11 std::_Vector_base<unsigned char, std::allocator<unsigned char> >::_Vector_base at /usr/include/c++/5.3.1/bits/stl_vector.h:136 #12 std::vector<unsigned char, std::allocator<unsigned char> >::vector at /usr/include/c++/5.3.1/bits/stl_vector.h:305 #13 scan_dmi_sysfs at dmi.cc:1836 #14 scan_dmi at dmi.cc:1950 #15 scan_system at main.cc:64
Created attachment 1153331 [details] File: backtrace
Created attachment 1153332 [details] File: cgroup
Created attachment 1153333 [details] File: core_backtrace
Created attachment 1153334 [details] File: dso_list
Created attachment 1153335 [details] File: environ
Created attachment 1153336 [details] File: limits
Created attachment 1153337 [details] File: maps
Created attachment 1153338 [details] File: mountinfo
Created attachment 1153339 [details] File: namespaces
Created attachment 1153340 [details] File: open_fds
Created attachment 1153341 [details] File: proc_pid_status
Created attachment 1153342 [details] File: var_log_messages
Similar problem has been detected: Ran `lshw` as a normal user, exited with this error: 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) reporter: libreport-2.6.4 backtrace_rating: 4 cmdline: lshw crash_function: operator new executable: /usr/sbin/lshw global_pid: 23065 kernel: 4.4.9-300.fc23.x86_64 package: lshw-B.02.18-2.fc23 reason: lshw killed by SIGABRT runlevel: N 5 type: CCpp uid: 1001
Seems to be caused by reading sysfs files readable by root only. lshw is for root only these days apparently.
Fix was simple, update coming soon, thanks for reporting!
lshw-B.02.18-3.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2016-0c089ed64c
lshw-B.02.18-3.fc22 has been submitted as an update to Fedora 22. https://bodhi.fedoraproject.org/updates/FEDORA-2016-d8bc98cec2
lshw-B.02.18-3.fc24 has been submitted as an update to Fedora 24. https://bodhi.fedoraproject.org/updates/FEDORA-2016-8f4a76ba0e
lshw-B.02.18-3.fc22 has been pushed to the Fedora 22 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-d8bc98cec2
lshw-B.02.18-3.fc24 has been pushed to the Fedora 24 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-8f4a76ba0e
lshw-B.02.18-3.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-0c089ed64c
lshw-B.02.18-3.fc24 has been pushed to the Fedora 24 stable repository. If problems still persist, please make note of it in this bug report.
lshw-B.02.18-3.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report.
lshw-B.02.18-3.fc22 has been pushed to the Fedora 22 stable repository. If problems still persist, please make note of it in this bug report.
a bit late but anyways - thanks for the fix!