gnome-system-monitor terminates with SEGV

Bug #1037427 reported by Greg Webber
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gnome-system-monitor (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Originally posted as Question #205888.

This is a nice tool but I wanted to see if I could add a few extra features (inc. for question "160421 Would like disk activity"). I have gotten myself a launchpad account and downloaded (bzr branch lp:gnome-system-monitor) and built the binary however get this:

gsw@goat:~/bzr/gnome-system-monitor/src$ ./gnome-system-monitor
(gnome-system-monitor:25849): Gtk-CRITICAL **: gtk_widget_get_screen: assertion `GTK_IS_WIDGET (widget)' failed
(gnome-system-monitor:25849): Gdk-CRITICAL **: gdk_screen_get_rgba_visual: assertion `GDK_IS_SCREEN (screen)' failed
(gnome-system-monitor:25849): Gtk-CRITICAL **: gtk_window_set_default_size: assertion `GTK_IS_WINDOW (window)' failed
(gnome-system-monitor:25849): Gtk-CRITICAL **: gtk_window_move: assertion `GTK_IS_WINDOW (window)' failed
(gnome-system-monitor:25849): Gtk-CRITICAL **: gtk_window_add_accel_group: assertion `GTK_IS_WINDOW (window)' failed
Segmentation fault (core dumped)

I'm a complete Gnome n00b so any assistance would be helpful. Hopefully it's just something silly like the way I've built it or trying to run it.

$ uname -a
Linux goat 3.2.0-29-generic #46-Ubuntu SMP Fri Jul 27 17:03:23 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
AMD64 architecture.

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 12.04.1 LTS
Release: 12.04
Codename: precise

Rebuilt with ./configure CFLAGS=-g; make clean; make

gsw@goat:~/bzr/gnome-system-monitor/src$ gdb ./gnome-system-monitor
GNU gdb (Ubuntu/Linaro 7.4-2012.04-0ubuntu2) 7.4-2012.04
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
For bug reporting instructions, please see:
<http://bugs.launchpad.net/gdb-linaro/>...
Reading symbols from /home/gsw/bzr/gnome-system-monitor/src/gnome-system-monitor...done.
(gdb) run
Starting program: /home/gsw/bzr/gnome-system-monitor/src/gnome-system-monitor
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fffed42a700 (LWP 10324)]
[New Thread 0x7fffecc29700 (LWP 10325)]

(gnome-system-monitor:10321): Gtk-CRITICAL **: gtk_widget_get_screen: assertion `GTK_IS_WIDGET (widget)' failed

(gnome-system-monitor:10321): Gdk-CRITICAL **: gdk_screen_get_rgba_visual: assertion `GDK_IS_SCREEN (screen)' failed

(gnome-system-monitor:10321): Gtk-CRITICAL **: gtk_window_set_default_size: assertion `GTK_IS_WINDOW (window)' failed

(gnome-system-monitor:10321): Gtk-CRITICAL **: gtk_window_move: assertion `GTK_IS_WINDOW (window)' failed

(gnome-system-monitor:10321): Gtk-CRITICAL **: gtk_window_add_accel_group: assertion `GTK_IS_WINDOW (window)' failed
[New Thread 0x7fffdffff700 (LWP 10326)]

Program received signal SIGSEGV, Segmentation fault.
gtk_box_pack (box=0x0, child=0x824010, expand=0, fill=0, padding=0,
    pack_type=GTK_PACK_START) at /build/buildd/gtk+3.0-3.4.2/./gtk/gtkbox.c:975

Revision history for this message
Greg Webber (greg-webber) wrote :

Added output of nm, may include a clue about libraries if this is the issue.

Revision history for this message
Robert Roth (evfool) wrote :

A few questions:
* Could you please check if /usr/share/gnome-system-monitor/ contains 5 .ui files?
* How did you build gnome-system-monitor?
* Did you use make install?
* Did you specify --prefix=/usr when using autogen.sh?

Changed in gnome-system-monitor (Ubuntu):
status: New → Incomplete
Revision history for this message
Greg Webber (greg-webber) wrote :

Firstly, running make install makes the problem go away. I assume the developers do a make install before testing?

Responses to your questions:

* Could you please check if /usr/share/gnome-system-monitor/ contains 5 .ui files?
No, only preferences.ui per the below. It should just be the 12.04 version of gnome-system-monitor.

gsw@goat:~$ ls -al /usr/share/gnome-system-monitor/
total 60
drwxr-xr-x 2 root root 4096 Aug 15 23:24 .
drwxr-xr-x 334 root root 12288 Aug 17 15:10 ..
-rw-r--r-- 1 root root 43638 Apr 17 15:00 preferences.ui

* How did you build gnome-system-monitor?
Built with debugging on to enable trace with gdb per below command.

./configure CFLAGS=-g

* Did you use make install?
No. As shown above attempting to run this directly from the build directory after straight 'make'.

* Did you specify --prefix=/usr when using autogen.sh?
No.

Revision history for this message
Robert Roth (evfool) wrote :

I usually run make install, but also configure with --prefix=/devel (this way make install will install my locally built version into /devel/bin/gnome-system-monitor, thus I will always have a working version, in /usr = the one installed with the OS, and one I have built in /devel)
The reason for this is that the one installed with 12.04 only had preferences.ui, while lp:gnome-system-monitor is not the repository for that version, but is the upstream trunk, so it differs in quite a few things, and is unstable, as trunks always are. If you want to gdb the version from 12.04, you will have to bzr branch lp:ubuntu/precise/gnome-system-monitor, which is the source for the precise version.
If you need any more system-monitor related help, let me know, maybe I can help.

IN the meantime, I am closing this report as Invalid, as this is not a bug in the precise version of Gnome System Monitor.

Changed in gnome-system-monitor (Ubuntu):
status: Incomplete → Invalid
Revision history for this message
Greg Webber (greg-webber) wrote :

Thanks Robert, yes I figured out I could just install it under a separate directory as you suggest above.

I would like some further guidance - how do you prefer to be contacted?

Agreed this needs to be closed as invalid.

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.