System Monitor crashes when lowering nice value of process

Bug #206583 reported by Josh Smith
272
This bug affects 34 people
Affects Status Importance Assigned to Milestone
Gnome System Monitor
Fix Released
Critical
libGKsu
Fix Released
Undecided
Unassigned
gnome-system-monitor (Ubuntu)
Invalid
Medium
Ubuntu Desktop Bugs
Hardy
Invalid
Undecided
Unassigned
libgksu (Ubuntu)
Fix Released
Medium
Unassigned
Hardy
Won't Fix
Medium
Unassigned

Bug Description

Binary package hint: gnome-system-monitor

I tried to change the priority of a process by right clicking > Change Priority
After changing the slider value and clicking the Change Priority value, System Monitor closes.

The crash only occurs when increasing the priority (lowering the nice value). Decreasing priority works as intended.

WORKAROUND:
With gconf-editor, set /apps/gksu/disable-grab to True

ProblemType: Bug
Architecture: i386
Date: Tue Mar 25 15:15:46 2008
DistroRelease: Ubuntu 8.04
ExecutablePath: /usr/bin/gnome-system-monitor
NonfreeKernelModules: fglrx
Package: gnome-system-monitor 2.22.0-1ubuntu1
PackageArchitecture: i386
ProcEnviron:
 LANG=en_GB.UTF-8
 PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
 SHELL=/bin/bash
SourcePackage: gnome-system-monitor
Uname: Linux 2.6.24-12-generic i686

Revision history for this message
Josh Smith (saxsux) wrote :
Revision history for this message
Marcelo Atie (marceloatie) wrote :

I can confirm it

Changed in gnome-system-monitor:
status: New → Confirmed
assignee: nobody → desktop-bugs
Revision history for this message
Pedro Villavicencio (pedro) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. However, your crash report is either missing or challenging to deal with as a ".crash" file. Please follow these instuctions to have apport report a new bug about your crash that can be dealt with by the automatic retracer.

If you are using Ubuntu with the Gnome desktop environment - launch nautilus and navigate to your /var/crash directory and double click on the crash report you wish to submit.

I'm closing this bug report since the process outlined above will automatically open a new bug report which can then dealt with more efficiently. Thanks in advance for your cooperation and understanding.

Changed in gnome-system-monitor:
status: Confirmed → Invalid
Revision history for this message
Josh Smith (saxsux) wrote :

Hi Pedro,
The crash doesn't generated a .crash file - System Monitor just closes.

Here's my terminal output:
The program 'gnome-system-monitor' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadWindow (invalid Window parameter)'.
  (Details: serial 72926 error_code 3 request_code 18 minor_code 0)
  (Note to programmers: normally, X errors are reported asynchronously;
   that is, you will receive the error a while after causing it.
   To debug your program, run it with the --sync command line
   option to change this behavior. You can then get a meaningful
   backtrace from your debugger if you break on the gdk_x_error() function.)

If I run "gnome-system-monitor --sync", I get the following:
The program 'gnome-system-monitor' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadMatch (invalid parameter attributes)'.
  (Details: serial 66834 error_code 8 request_code 1 minor_code 0)
  (Note to programmers: normally, X errors are reported asynchronously;
   that is, you will receive the error a while after causing it.
   To debug your program, run it with the --sync command line
   option to change this behavior. You can then get a meaningful
   backtrace from your debugger if you break on the gdk_x_error() function.)

Changed in gnome-system-monitor:
status: Invalid → Confirmed
Revision history for this message
Marcelo Atie (marceloatie) wrote : Re: [Bug 206583] Re: System Monitor crashes when changing nice value of process

I think that it's happen because users don't have permission to use
"renice", so, it's crash

Revision history for this message
Josh Smith (saxsux) wrote : Re: System Monitor crashes when changing nice value of process

I seem to recollect System Monitor using gksu when changing process priority in Gutsy. Why doesn't that work in Hardy?

Revision history for this message
Marcelo Atie (marceloatie) wrote : Re: [Bug 206583] Re: System Monitor crashes when changing nice value of process
  • unnamed Edit (657 bytes, text/html; charset=ISO-8859-1)

using gksu gnome-system-monitor it's works, because root have privileges to
change any priority, but gksu gnome-system-monitor shows only processes from
from the user that started gnome-system-monitor, so it shows only processes
from root, and not processes from my user, like firefox.
I think that will be good if when trying to change a priority of a process
when user haven't a permission to do it, ask to this user the su password
and change the priority, and when users can't use sudo, show a alert saying
that the user can't do ir because he don't have privileges.

- Sorry For The Bad English -

I Hope Help

Revision history for this message
Gadget Boy (gadgetboy99) wrote : Re: System Monitor crashes when changing nice value of process

Hi

What I don't understand is : we have privileges to set a process to a lower priority (for instance 5), but when we want to set this process back to 0, we don't have this privilege. Is this normal ?

Revision history for this message
Lafa (luis-alves) wrote :

I have same problem.

Revision history for this message
Marcelo Atie (marceloatie) wrote : Re: [Bug 206583] Re: System Monitor crashes when changing nice value of process
  • unnamed Edit (50 bytes, text/html; charset=ISO-8859-1)

Gadget Boy,

Confirmed it in my PC too

Revision history for this message
starNIX (ben-pregont) wrote : Re: System Monitor crashes when changing nice value of process

Confirmed.

Revision history for this message
unggnu (unggnu) wrote :

This still happens in final Hardy.

Revision history for this message
Götz Christ (g-christ) wrote :

I have the same problem.

Can this issue be related with the change to Policykit? Because in Gutsy, (in general with Gnome 2.20) when someone has not had permissions to change the priority, a message has appeared.

Changed in gnome-system-monitor:
importance: Undecided → Medium
milestone: none → ubuntu-8.04.1
Revision history for this message
Jerdsy (jerdsy) wrote : Confirmed in Xubuntu Hardy 8.04 final

This is confirmed in Xubuntu Hardy 8.04.

System Monitor quits when the nice value of a process is changed. This functioned properly in Xubuntu and Gnome Gutsy prior to the Hardy upgrade.

Revision history for this message
Skeletonix (tomaskloucek) wrote : Re: System Monitor crashes when changing nice value of process

I can confirm it too :-(

Steve Langasek (vorlon)
Changed in gnome-system-monitor:
milestone: ubuntu-8.04.1 → none
importance: Undecided → Medium
milestone: none → ubuntu-8.04.1
status: New → Confirmed
Revision history for this message
TRiSS (triss) wrote :

I can confirm this as well.... The crash only happens when you give a process a lower nice value (requiring root rights) , not when you renice it to a higher value (which can be done without root rights). It seems like there's a problem asking for the user password for the renice, because my taskbar does show a "administrative task" entry, the admin window that should ask the password never appears though, and the gnome-system-monitor closes.

Martin Pitt (pitti)
Changed in gnome-system-monitor:
milestone: ubuntu-8.04.1 → none
milestone: none → ubuntu-8.04.2
Revision history for this message
ghf (ghf-85) wrote :

confirmed

Revision history for this message
Thomas Ohms (tohms) wrote :

This can be confirmed.
As I tried to check this I have noticed a strange workaround:

- Go to a directory of your choice (I prefer /usr/src) and run: apt-get source gnome-system-monitor
- Next run: sudo apt-get build-dep gnome-system-monitor
- Go into the created directory usually called "gnome-system-monitor-2.22.0" (if you got an older version you are not up to date!)
- Run the following commands: ./configure --prefix=/usr && make && make install

This should do the trick! Now you can run gnome-system-monitor and if you try to change a forbidden process you'll be informed about it and gsm keeps running.

Actually I have done this to fix the bug, but in a compiled version it doesn't seem to happen. Maybe anyone got an idea of what is going on here - I don't.

Cheers,
Thomas

Revision history for this message
Bordiga Giacomo (gbordiga) wrote :

Rebuilding the package with debuild (instead of ./configure && make && make install) makes the bug disappear too.

Revision history for this message
s3a (gamingtechnology) wrote :

I use 64 bit and noticed, System Monitor only crashes when you want to make the process have a higher priority. Lower priority works fine.

Hew (hew)
description: updated
Changed in gnome-system-monitor:
status: Confirmed → Triaged
status: Confirmed → Triaged
Revision history for this message
Diabolo (diabol0) wrote :

It seems it has problems with raising permissions. Any operation that would require superuser's permission crashes System Monitor. I find it particularly annoying when trying to kill some other user's process.

ATM the only way I know of to get around this bug is to launch SM explicitly with superuser's permissions:

sudo gnome-system-monitor

I have also recompiled the package as mentioned earlier and it seemed to work for a while, but recently the bug has reappeared. This last part is particularly confusing.

Revision history for this message
TRiSS (triss) wrote :

at this moment, this bug seems solved, but can't tell since when it started working....

this is on a 64bit hardy...

Revision history for this message
Hew (hew) wrote :

I tried to reproduce this on Intrepid yesterday but encountered an apport-crash (bug #250578) which may or may not be related to this issue. Today after some updates (not including g-s-m), I can adjust the nice value just fine. Can someone else confirm their experience on Hardy, and on Intrepid? Thanks in advance.

gnome-system-monitor/intrepid uptodate 2.23.3-0ubuntu1

Changed in gnome-system-monitor:
status: Triaged → Incomplete
Revision history for this message
Diabolo (diabol0) wrote :

I've checked today on a 32-bit Hardy Heron (g-s-m 2.23.3) and the bug is still there. It still crashes while trying to end other user's task.

Revision history for this message
Hew (hew) wrote :

Diabolo: Are you sure you're running g-s-m 2.23.3 on Hardy? That is a version only for Intrepid. Make sure you're only using software from the Hardy repositories.

It would be great if someone could still test this on an up-to-date Intrepid system, or the Intrepid Alpha 3 Live CD once it comes out. Thanks again.

Revision history for this message
Diabolo (diabol0) wrote :

Hew: You're obviously right - I've misread the version number. So it's actually g-s-m 2.22.3 (still on 32-bit Hardy Heron), the newest one I got from the official repositories.

Revision history for this message
Josh Ancill (mempf) wrote :

Problem appears to be resolved in an up to date Intrepid system.

Revision history for this message
Diabolo (diabol0) wrote :

I'm glad to hear that. Is there any chance of backporting the fix to Hardy?

Revision history for this message
Hew (hew) wrote :

To get a SRU, we need to find the specific fix that was made. After testing with g-s-m 2.22.3-0ubuntu2 (aka: the Hardy version) on Intrepid, I can report that this issue still does not occur! The fix is therefore in another package.. I'll try some more selective downgrading to Hardy versions, but I don't know how successful this will be. There is a lot of ground to cover.

Marking this is Fix Released, but removing g-s-m as the package affected.

Changed in gnome-system-monitor:
assignee: desktop-bugs → nobody
status: Incomplete → Fix Released
Revision history for this message
Makoto (makotothedragon) wrote :

I can confirm this bug, but the weirdest part is as follows:

If I type "gksu gnome-system-monitor", I get the root processes. No surprise there.

If I go back into g-s-m, I can renice things! That's surprising.

If it's fixed in Intrepid, I'd like to see it backported. Seems like something an LTS can't do without.

Revision history for this message
Gergely Janossy (marcabru) wrote :

edited@edited:~$ gnome-system-monitor --sync

** (gnome-system-monitor:657): WARNING **: SELinux was found but is not enabled.

The program 'gnome-system-monitor' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadMatch (invalid parameter attributes)'.
  (Details: serial 55621 error_code 8 request_code 1 minor_code 0)
  (Note to programmers: normally, X errors are reported asynchronously;
   that is, you will receive the error a while after causing it.
   To debug your program, run it with the --sync command line
   option to change this behavior. You can then get a meaningful
   backtrace from your debugger if you break on the gdk_x_error() function.)

It's really weird, because I cannot always reproduce this error. Sometimes I get the error, sometimes not.

Revision history for this message
Jordan Erickson (lns) wrote :

This bug affects me and my clients as well, as they normally use G-S-M in a Hardy LTSP environment to end misbehaving processes of other users (see duplicate bug #255567). Running G-S-M with gksudo works fine - it would be nice to see PolicyKit integrated into G-S-M and backported to our current LTS version..

---
$ gnome-system-monitor

** (gnome-system-monitor:25877): WARNING **: SELinux was found but is not enabled.

The program 'gnome-system-monitor' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadMatch (invalid parameter attributes)'.
  (Details: serial 36043 error_code 8 request_code 1 minor_code 0)
  (Note to programmers: normally, X errors are reported asynchronously;
   that is, you will receive the error a while after causing it.
   To debug your program, run it with the --sync command line
   option to change this behavior. You can then get a meaningful
   backtrace from your debugger if you break on the gdk_x_error() function.)

Revision history for this message
Pedro Villavicencio (pedro) wrote :

bug 260931 has a backtrace of the issue, will take it upstream. thanks.

Revision history for this message
Pedro Villavicencio (pedro) wrote :

I've sent this upstream at http://bugzilla.gnome.org/show_bug.cgi?id=549760 ; to grab some opinions from the projects authors, thanks.

Changed in gnome-system-monitor:
assignee: nobody → desktop-bugs
importance: Undecided → Medium
status: New → Triaged
Changed in gnome-system-monitor:
status: Unknown → New
Revision history for this message
Pedro Villavicencio (pedro) wrote :

May someone submit the ~/.xsession-errors file after reproducing the crash? thanks.

Revision history for this message
Jesper Larsen (knorr) wrote :

Doesn't seem to be more info. The file is quite long, but the last entry is provoked by the crash.

Revision history for this message
Stumpy (wow-stumpy) wrote :

This is a work round set '/apps/gksu/disable-grab' to true in gconf-editor.

Please note the warning from gconf-editor.
"Whether the keyboard and mouse grabbing should be turned off. This will make it possible for other X applications to listen to keyboard input events, thus making it not possible to shield from malicious applications which may be running."

In reply to https://bugs.launchpad.net/ubuntu/hardy/+source/gnome-system-monitor/+bug/206583/comments/30

Nothing weird about that, your password is kept for some time before it gets deleted.
E.G. Do 'sudo gedit' asks for your password give the right password and run 'sudo gedit' again and it will not ask you for your password.

Sorry for my bad English.

Revision history for this message
zajca (zajcaa) wrote :

I have the same problem in intrepid ibex, when i try to change nice of process gnome-system-monitor close.

Ubuntu 8.10
AMD seprom procesor
Gnome-system-monitor 2.24.0
Linux 2.6.27-4-generic i686

Revision history for this message
zajca (zajcaa) wrote :

sry i forget data from terminal

gnome-system-monitor

** (gnome-system-monitor:4874): WARNING **: SELinux was found but is not enabled.

The program 'gnome-system-monitor' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadMatch (invalid parameter attributes)'.
  (Details: serial 99246 error_code 8 request_code 1 minor_code 0)
  (Note to programmers: normally, X errors are reported asynchronously;
   that is, you will receive the error a while after causing it.
   To debug your program, run it with the --sync command line
   option to change this behavior. You can then get a meaningful
   backtrace from your debugger if you break on the gdk_x_error() function.)

Revision history for this message
Hew (hew) wrote :

You're right. This bug had disappeared with Intrepid, but now it's back again. Crashing only occurs when lowering the nice value still, so only when gksu is triggered.

The upstream bug report suggested to change the gconf key /apps/gksu/disable-grab key to True, which correctly stops the crash from occuring (although gksu now has window decoration, another issue). Due to this, I am marking as also affecting gksu.

description: updated
Revision history for this message
Nicola Jelmorini (jelmorini) wrote :

I use Ubuntu Intrepid 8.10 32 bit and I have the same problem when trying to kill a process that don't belong to my user.
For example if I try to kill a root process the system monitor exit and this is the message in a terminal:

nicola@nicola-laptop:~$ gnome-system-monitor

** (gnome-system-monitor:22558): WARNING **: SELinux was found but is not enabled.

The program 'gnome-system-monitor' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadMatch (invalid parameter attributes)'.
  (Details: serial 1274769 error_code 8 request_code 1 minor_code 0)
  (Note to programmers: normally, X errors are reported asynchronously;
   that is, you will receive the error a while after causing it.
   To debug your program, run it with the --sync command line
   option to change this behavior. You can then get a meaningful
   backtrace from your debugger if you break on the gdk_x_error() function.)
nicola@nicola-laptop:~$

Revision history for this message
Psy[H[] (vovik-wfa) wrote :

Confirming.

Revision history for this message
Psy[H[] (vovik-wfa) wrote :

another workaround is to start gnome-system-monitor with sudo.

Revision history for this message
Øyvind Stegard (oyvindstegard) wrote :

Confirming on fully updated Ubuntu Intrepid x86-64.

Steve Langasek (vorlon)
Changed in gksu:
milestone: ubuntu-8.04.2 → none
Revision history for this message
Jordan Erickson (lns) wrote :

Please see http://bugzilla.gnome.org/show_bug.cgi?id=549760#c6 for another workaround using gconf:

"Setting /apps/gksu/disable-grab to True makes the problem disappear."

Hopefully this sheds some light on the core issue so we can get it fixed for real :)

Revision history for this message
Fifoxtasy (philipp-foerster) wrote :

+1 confirming

sudo workaround works

Revision history for this message
Hans L (thehans) wrote :

This bug still exists for me on Intrepid 64bit.

Also, something not mentioned in other comments is that when gnome-system-monitor closes, I see a new item in my taskbar that says "Starting Administrative Application", but it goes away after a few seconds, and no window ever shows for it.

Revision history for this message
Hew (hew) wrote :

Upstream libgksu as of 2.0.8 contains a fix for the issue. I have filed a merge request at bug 339428.

Changed in gnome-system-monitor:
status: Triaged → Invalid
status: New → Invalid
Changed in gksu:
milestone: none → ubuntu-8.04.3
Changed in libgksu:
status: New → Fix Released
Revision history for this message
A.Kromic (akromic) wrote :

Can confirm it happens on my x86-64 system with Intrepid.

Revision history for this message
Hew (hew) wrote :

Tested with libgksu2-0 2.0.9-1ubuntu2 in Jaunty and confirmed the problem has been fixed.

Changed in libgksu (Ubuntu):
status: Triaged → Fix Released
Revision history for this message
Leon Kaiser (literalka) wrote :

`With gconf-editor, set /apps/gksu/disable-grab to True' worked for me, though it's a shame I had to do that.

Revision history for this message
Psy[H[] (vovik-wfa) wrote :

Bug Still appears in Jaunty.

Revision history for this message
Hew (hew) wrote :

Thanks for your comment Psy[H[]. I can confirm the issue you're experiencing in the latest Jaunty, but it appears to be different in several ways, and did not occur previously in Jaunty. I have opened a new bug for this issue at bug #363558.

Revision history for this message
Paul Crawford (psc-sat) wrote :

Just found all of you have the same problem as I have just seen on my 8.10 system (32-bit OS, but 64-bit AMD CPU). No crash report, but /var/log/auth.log has this:

paul-ubuntu sudo: pam_unix(sudo:auth): authentication failure; logname= uid=0 euid=0 tty= ruser= rhost= user=paul

So clearly lacking in privileges to reduce the 'nice' level. Strikes me as something that should be fixed, even if its just done by a prompt for sudo password to confirm your actions.

Revision history for this message
A.Kromic (akromic) wrote :

Stil doesn't work for me in Jaunty.

Changed in gnome-system-monitor (Ubuntu):
status: Invalid → Confirmed
Revision history for this message
Hew (hew) wrote :

Please do not reopen this bug. If you are experiencing a similar problem with g-s-m renice in Jaunty, please see bug 363558.

Changed in gnome-system-monitor (Ubuntu):
status: Confirmed → Invalid
Revision history for this message
SerP (serp2002) wrote :

problem exist on hardy with last updates....

Revision history for this message
Steve Langasek (vorlon) wrote :

dropping milestone for hardy, since there doesn't appear to be any committment to fix this on a particular timetable.

Changed in libgksu (Ubuntu Hardy):
milestone: ubuntu-8.04.3 → none
Revision history for this message
A.Kromic (akromic) wrote :

Still not solved in Karmic...

Revision history for this message
bugreport (reportbug1) wrote :

This bug is in Ubuntu 9.10 with libgksu 2.0.12

Is there a fix for it?

Revision history for this message
Paul Crawford (psc-sat) wrote :

Appears fixed in 10.04 release, now you get prompted for your (sudo) password.

Revision history for this message
Jens (jens.timmerman) wrote :

tried this in ubuntu 10.10 and 10.04,
it was fixed in both.

Changed in gnome-system-monitor:
importance: Unknown → Critical
Revision history for this message
seatsea (seatsea) wrote : Re: [Bug 206583] Re: System Monitor crashes when lowering nice value of process

I'm not using Ubuntu for now

On Thu, Sep 16, 2010 at 04:20, Bug Watch Updater
<email address hidden>wrote:

> ** Changed in: gnome-system-monitor
> Importance: Unknown => Critical
>
> --
> System Monitor crashes when lowering nice value of process
> https://bugs.launchpad.net/bugs/206583
> You received this bug notification because you are a direct subscriber
> of a duplicate bug (363558).
>
> Status in The GNOME System Monitor: New
> Status in The "gksu" Library: Fix Released
> Status in “gnome-system-monitor” package in Ubuntu: Invalid
> Status in “libgksu” package in Ubuntu: Fix Released
> Status in “gnome-system-monitor” source package in Hardy: Invalid
> Status in “libgksu” source package in Hardy: Triaged
>
> Bug description:
> Binary package hint: gnome-system-monitor
>
> I tried to change the priority of a process by right clicking > Change
> Priority
> After changing the slider value and clicking the Change Priority value,
> System Monitor closes.
>
> The crash only occurs when increasing the priority (lowering the nice
> value). Decreasing priority works as intended.
>
> WORKAROUND:
> With gconf-editor, set /apps/gksu/disable-grab to True
>
> ProblemType: Bug
> Architecture: i386
> Date: Tue Mar 25 15:15:46 2008
> DistroRelease: Ubuntu 8.04
> ExecutablePath: /usr/bin/gnome-system-monitor
> NonfreeKernelModules: fglrx
> Package: gnome-system-monitor 2.22.0-1ubuntu1
> PackageArchitecture: i386
> ProcEnviron:
> LANG=en_GB.UTF-8
>
> PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
> SHELL=/bin/bash
> SourcePackage: gnome-system-monitor
> Uname: Linux 2.6.24-12-generic i686
>
> To unsubscribe from this bug, go to:
> https://bugs.launchpad.net/gnome-system-monitor/+bug/206583/+subscribe
>

Changed in gnome-system-monitor:
status: New → Fix Released
Revision history for this message
Jamie Strandboge (jdstrand) wrote :

Thank you for reporting this bug to Ubuntu. hardy has reached EOL
(End of Life) for this package and is no longer supported. As
a result, this bug against hardy is being marked "Won't Fix".
Please see https://wiki.ubuntu.com/Releases for currently
supported Ubuntu releases.

Please feel free to report any other bugs you may find.

tags: added: hardy
Changed in libgksu (Ubuntu Hardy):
status: Triaged → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.