Bug 1332486 - [abrt] lshw: operator new(): lshw killed by SIGABRT
Summary: [abrt] lshw: operator new(): lshw killed by SIGABRT
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: lshw
Version: 23
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Terje Røsten
QA Contact: Fedora Extras Quality Assurance
URL: https://retrace.fedoraproject.org/faf...
Whiteboard: abrt_hash:cc8a2abfeda321cb439bf76b90d...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-05-03 10:24 UTC by Karel Volný
Modified: 2016-12-13 11:56 UTC (History)
3 users (show)

Fixed In Version: lshw-B.02.18-3.fc24 lshw-B.02.18-3.fc23 lshw-B.02.18-3.fc22
Clone Of:
Environment:
Last Closed: 2016-05-24 18:06:41 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: backtrace (15.44 KB, text/plain)
2016-05-03 10:24 UTC, Karel Volný
no flags Details
File: cgroup (200 bytes, text/plain)
2016-05-03 10:24 UTC, Karel Volný
no flags Details
File: core_backtrace (3.15 KB, text/plain)
2016-05-03 10:24 UTC, Karel Volný
no flags Details
File: dso_list (661 bytes, text/plain)
2016-05-03 10:25 UTC, Karel Volný
no flags Details
File: environ (3.60 KB, text/plain)
2016-05-03 10:25 UTC, Karel Volný
no flags Details
File: limits (1.29 KB, text/plain)
2016-05-03 10:25 UTC, Karel Volný
no flags Details
File: maps (3.46 KB, text/plain)
2016-05-03 10:25 UTC, Karel Volný
no flags Details
File: mountinfo (3.29 KB, text/plain)
2016-05-03 10:25 UTC, Karel Volný
no flags Details
File: namespaces (85 bytes, text/plain)
2016-05-03 10:25 UTC, Karel Volný
no flags Details
File: open_fds (139 bytes, text/plain)
2016-05-03 10:25 UTC, Karel Volný
no flags Details
File: proc_pid_status (1.04 KB, text/plain)
2016-05-03 10:25 UTC, Karel Volný
no flags Details
File: var_log_messages (302 bytes, text/plain)
2016-05-03 10:25 UTC, Karel Volný
no flags Details

Description Karel Volný 2016-05-03 10:24:52 UTC
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

Comment 1 Karel Volný 2016-05-03 10:24:57 UTC
Created attachment 1153331 [details]
File: backtrace

Comment 2 Karel Volný 2016-05-03 10:24:58 UTC
Created attachment 1153332 [details]
File: cgroup

Comment 3 Karel Volný 2016-05-03 10:24:59 UTC
Created attachment 1153333 [details]
File: core_backtrace

Comment 4 Karel Volný 2016-05-03 10:25:01 UTC
Created attachment 1153334 [details]
File: dso_list

Comment 5 Karel Volný 2016-05-03 10:25:02 UTC
Created attachment 1153335 [details]
File: environ

Comment 6 Karel Volný 2016-05-03 10:25:03 UTC
Created attachment 1153336 [details]
File: limits

Comment 7 Karel Volný 2016-05-03 10:25:05 UTC
Created attachment 1153337 [details]
File: maps

Comment 8 Karel Volný 2016-05-03 10:25:06 UTC
Created attachment 1153338 [details]
File: mountinfo

Comment 9 Karel Volný 2016-05-03 10:25:07 UTC
Created attachment 1153339 [details]
File: namespaces

Comment 10 Karel Volný 2016-05-03 10:25:09 UTC
Created attachment 1153340 [details]
File: open_fds

Comment 11 Karel Volný 2016-05-03 10:25:10 UTC
Created attachment 1153341 [details]
File: proc_pid_status

Comment 12 Karel Volný 2016-05-03 10:25:11 UTC
Created attachment 1153342 [details]
File: var_log_messages

Comment 13 Wilf 2016-05-14 12:30:20 UTC
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

Comment 14 Terje Røsten 2016-05-17 14:09:53 UTC
Seems to be caused by reading sysfs files readable by root only. 

lshw is for root only these days apparently.

Comment 15 Terje Røsten 2016-05-18 16:24:59 UTC
Fix was simple, update coming soon, thanks for reporting!

Comment 16 Fedora Update System 2016-05-18 16:53:05 UTC
lshw-B.02.18-3.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2016-0c089ed64c

Comment 17 Fedora Update System 2016-05-18 16:53:10 UTC
lshw-B.02.18-3.fc22 has been submitted as an update to Fedora 22. https://bodhi.fedoraproject.org/updates/FEDORA-2016-d8bc98cec2

Comment 18 Fedora Update System 2016-05-18 16:53:15 UTC
lshw-B.02.18-3.fc24 has been submitted as an update to Fedora 24. https://bodhi.fedoraproject.org/updates/FEDORA-2016-8f4a76ba0e

Comment 19 Fedora Update System 2016-05-21 01:23:20 UTC
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

Comment 20 Fedora Update System 2016-05-21 01:34:07 UTC
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

Comment 21 Fedora Update System 2016-05-21 02:28:03 UTC
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

Comment 22 Fedora Update System 2016-05-24 18:06:37 UTC
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.

Comment 23 Fedora Update System 2016-05-28 02:23:50 UTC
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.

Comment 24 Fedora Update System 2016-05-28 23:21:15 UTC
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.

Comment 25 Karel Volný 2016-12-13 11:56:38 UTC
a bit late but anyways - thanks for the fix!


Note You need to log in before you can comment on or make changes to this bug.