group.of.nepali.translators team mailing list archive
-
group.of.nepali.translators team
-
Mailing list archive
-
Message #04816
[Bug 1590994] [NEW] [Regression] crash in scan_dmi_sysfs when running as non-root
Public bug reported:
[Impact]
lshw crashes when run as non-root:
Though it does warn before crashing that it should be run as super-user,
it should fail gracefully - not abort and dump core. A number of users
have been hitting this since the regression has been introduced:
https://errors.ubuntu.com/problem/3ef7206b4102c14c8741b44fde30b21b4a571bbe
[Test Case]
ubuntu@lshw:~$ 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)
[Regression Risk]
The fix I've proposed[*] only comes into play when lshw is about to crash, so regression risk should be minimal.
[*] https://github.com/lyonel/lshw/pull/14
** Affects: lshw (Ubuntu)
Importance: High
Assignee: dann frazier (dannf)
Status: Confirmed
** Affects: lshw (Ubuntu Xenial)
Importance: High
Assignee: dann frazier (dannf)
Status: Confirmed
** Also affects: lshw (Ubuntu Xenial)
Importance: Undecided
Status: New
** Changed in: lshw (Ubuntu Xenial)
Status: New => Confirmed
** Changed in: lshw (Ubuntu Xenial)
Assignee: (unassigned) => dann frazier (dannf)
** Changed in: lshw (Ubuntu Xenial)
Importance: Undecided => High
--
You received this bug notification because you are a member of नेपाली
भाषा समायोजकहरुको समूह, which is subscribed to Xenial.
Matching subscriptions: Ubuntu 16.04 Bugs
https://bugs.launchpad.net/bugs/1590994
Title:
[Regression] crash in scan_dmi_sysfs when running as non-root
Status in lshw package in Ubuntu:
Confirmed
Status in lshw source package in Xenial:
Confirmed
Bug description:
[Impact]
lshw crashes when run as non-root:
Though it does warn before crashing that it should be run as super-
user, it should fail gracefully - not abort and dump core. A number of
users have been hitting this since the regression has been introduced:
https://errors.ubuntu.com/problem/3ef7206b4102c14c8741b44fde30b21b4a571bbe
[Test Case]
ubuntu@lshw:~$ 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)
[Regression Risk]
The fix I've proposed[*] only comes into play when lshw is about to crash, so regression risk should be minimal.
[*] https://github.com/lyonel/lshw/pull/14
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lshw/+bug/1590994/+subscriptions
Follow ups