After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 668317 - Crash if default colors list is shorter than the number of CPUs
Crash if default colors list is shorter than the number of CPUs
Status: RESOLVED FIXED
Product: system-monitor
Classification: Core
Component: resources
git master
Other Linux
: Normal critical
: ---
Assigned To: System-monitor maintainers
: 670535 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2012-01-20 05:52 UTC by Robert Roth
Modified: 2012-02-21 14:28 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Robert Roth 2012-01-20 05:52:06 UTC
Forwarded from Ubuntu:
https://bugs.launchpad.net/ubuntu/+source/gnome-system-monitor/+bug/919014

When starting the system monitor for the first time after installing precise, it produced this crash. Subsequent attempts at starting it wails with no warning.

I have investigated the issue, and it seems that if the default colors list (4 colors) is shorter than the number of CPUs in the computer (e.g. 8), it crashes system monitor. I have managed to reproduce this by setting the dconf-value to a 2 elements list (and I have 4 cores).
Comment 2 Robert Roth 2012-01-20 19:19:13 UTC
Attached a patch fixing this issue to bug #632188.
Comment 3 Chris Kühl 2012-01-28 01:32:32 UTC
Thanks. See commit 6e966d0cfca266d5f1ea02995b7debc198ff636d for the fix.
Comment 4 Chris Kühl 2012-02-21 14:28:10 UTC
*** Bug 670535 has been marked as a duplicate of this bug. ***