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 549760 - crash after changing the nice value
crash after changing the nice value
Status: RESOLVED FIXED
Product: system-monitor
Classification: Core
Component: process list
2.23.x
Other Linux
: Normal critical
: ---
Assigned To: System-monitor maintainers
Depends on:
Blocks:
 
 
Reported: 2008-08-28 21:03 UTC by Pedro Villavicencio
Modified: 2011-11-11 10:03 UTC
See Also:
GNOME target: ---
GNOME version: 2.23/2.24



Description Pedro Villavicencio 2008-08-28 21:03:03 UTC
this report has been filed here:

https://bugs.edge.launchpad.net/ubuntu/+source/gnome-system-monitor/+bug/206583

"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."

".

Thread 2 (process 10331)

  • #0 read
    from /lib/libc.so.6
  • #1 ??
    from /usr/lib/libglib-2.0.so.0
  • #2 ??
    from /usr/lib/libglib-2.0.so.0
  • #3 start_thread
    from /lib/libpthread.so.0
  • #4 clone
    from /lib/libc.so.6
  • #5 ??

Thread 1 (process 10328)

  • #0 g_logv
    from /usr/lib/libglib-2.0.so.0
  • #1 g_log
    from /usr/lib/libglib-2.0.so.0
  • #2 gdk_x_error
    at /build/buildd/gtk+2.0-2.13.6/gdk/x11/gdkmain-x11.c line 623
  • #3 _XError
    at ../../src/XlibInt.c line 2912
  • #4 process_responses
    at ../../src/xcb_io.c line 138
  • #5 _XReply
    at ../../src/xcb_io.c line 370
  • #6 XSync
    at ../../src/Sync.c line 48
  • #7 _gdk_x11_copy_to_image
    at /build/buildd/gtk+2.0-2.13.6/gdk/x11/gdkimage-x11.c line 519
  • #8 IA__gdk_drawable_copy_to_image
    at /build/buildd/gtk+2.0-2.13.6/gdk/gdkdraw.c line 1072
  • #9 gdk_window_copy_to_image
    at /build/buildd/gtk+2.0-2.13.6/gdk/gdkwindow.c line 2472
  • #10 IA__gdk_drawable_copy_to_image
    at /build/buildd/gtk+2.0-2.13.6/gdk/gdkdraw.c line 1072
  • #11 IA__gdk_pixbuf_get_from_drawable
    at /build/buildd/gtk+2.0-2.13.6/gdk/gdkpixbuf-drawable.c line 1300
  • #12 fadeout_screen
    at libgksu.c line 488
  • #13 gsm_foreach_screen
    at libgksu.c line 247
  • #14 grab_keyboard_and_mouse
    at libgksu.c line 661
  • #15 su_ask_password
    at libgksu.c line 1018
  • #16 gksu_sudo_full
    at libgksu.c line 2798
  • #17 gksu_sudo
    at libgksu.c line 2950
  • #18 procman_gksu_create_root_password_dialog
    at procman_gksu.cpp line 33
  • #19 procdialog_create_root_password_dialog
    at procdialogs.cpp line 809
  • #20 renice_single_process
    at procactions.cpp line 64
  • #21 IA__gtk_tree_selection_select_path
    at /build/buildd/gtk+2.0-2.13.6/gtk/gtktreeselection.c line 746
  • #22 ??
  • #23 ??
  • #24 ??
  • #25 ??
  • #26 ??
  • #27 ??

Thanks,
Comment 1 Jordan Erickson 2008-08-28 21:11:50 UTC
This is a particularly concerning bug for me, as we use G-S-M to kill misbehaving processes on LTSP servers with many simultaneous users logged in. 

A (duplicate) bug concerning a crash trying to kill processes is present. What I would enjoy seeing is a gksudo-type escalation so 'admin' users can kill other users' processes. When you try to kill other users' processes it crashes - but running manually w/gksudo allows you to do so without crashing.

Thanks for your help!!
Comment 2 Benoît Dejean 2008-08-28 22:20:30 UTC
Well, if you look at the stacktrace, it actually crashes while running gksu (using its API) but crashes much deeper.

That "BadMatch (invalid parameter attributes)" X error looks bad. Do you have any more messages in your .xsession-erros ? Does running standalone gksu trigger any X error/warnings ?

(gksu is not hosted on GNOME bugzilla)
Comment 3 Pedro Villavicencio 2008-08-29 12:59:15 UTC
from the downstream bug, this is what the ~/.xsession-errors contains:

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

Gtk-Message: (for origin information, set GTK_DEBUG): failed to retrieve property `GtkTreeView::odd-row-color' of type `GdkColor' from rc file value "((GString*) 0x1e01f20)" of type `GString'

Gdk-ERROR **: 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 72926 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.)
aborting...
"
Comment 4 Pedro Villavicencio 2008-08-29 13:00:15 UTC
could the gdk_x_error be related to bug 534995 ?
Comment 5 Gustavo Noronha (kov) 2008-08-29 18:19:00 UTC
Hello, libgksu hasn't changed much in these last months, but it's "fading" effect seems to be the problem. I can actually reproduce this in Debian's gnome-system-monitor by trying anything that would use gksu, such as lowering or raising priority, killing other user processes and stuff.

I cannot reproduce the problem when using the gksu client, though. Can those of you who are experiencing the problem please try to set the /apps/gksu/disable-grab key to True in gconf-editor?

Also, I haven't looked at gnome-system-monitor's code yet, but is it using threads or some other kind of paralelism that could make it draw its graphs while libgksu is doings its effect? It could be related, and I may need to add some gdk_threads_enter/gdk_threads_leave in my code.
Comment 6 Benoît Dejean 2008-09-06 10:22:45 UTC
The problem indeed happens when password is required.
Setting /apps/gksu/disable-grab to True makes the problem disappear.
Comment 7 Jordan Erickson 2009-01-23 18:18:27 UTC
I can confirm the workaround in comment #6, for G-S-M 2.22.3 under Ubuntu 8.04LTS. Sure would be nice to get a fix for the core issue, however. :)
Comment 8 Gustavo Noronha (kov) 2009-02-22 21:12:46 UTC
ok, so I finally took some time to debug this in libgksu proper, and I believe I have a fix; I'm going to be releasing libgksu 2.0.8 today with the fix; I'm attaching the patch to libgksu here, though, since it is pretty simple and people may want to backport it to stable versions.
Comment 9 Jonathan 2009-03-21 21:12:03 UTC
(In reply to comment #8)
> ok, so I finally took some time to debug this in libgksu proper, and I believe
> I have a fix; I'm going to be releasing libgksu 2.0.8 today with the fix; I'm
> attaching the patch to libgksu here, though, since it is pretty simple and
> people may want to backport it to stable versions.
> 

Thank you for fixing this bug.
Can you attach the patch here. I do not think you have done that yet.
By the way this bugs status is still unconfirmed can that be fixed.
I'm looking front to using this patch with Ubuntu 8.04.
Comment 10 jens.timmerman 2010-09-05 20:08:31 UTC
I can confirm that this bug has been fixed.