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 366996 - crash in Time and Date: Right-clicked the clock ...
crash in Time and Date: Right-clicked the clock ...
Status: VERIFIED FIXED
Product: gnome-system-tools
Classification: Deprecated
Component: time-admin
2.15.x
Other All
: Urgent critical
: ---
Assigned To: Carlos Garnacho
Carlos Garnacho
: 373334 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2006-10-29 16:44 UTC by Albert Vernon
Modified: 2006-11-17 00:03 UTC
See Also:
GNOME target: ---
GNOME version: 2.15/2.16



Description Albert Vernon 2006-10-29 16:44:38 UTC
Version: 2.15.5

What were you doing when the application crashed?
Right-clicked the clock applet and selected "Adjust Date & Time".


Distribution: Ubuntu 6.10 (edgy)
Gnome Release: 2.16.1 2006-10-02 (Ubuntu)
BugBuddy Version: 2.16.0

Memory status: size: 32481280 vsize: 0 resident: 32481280 share: 0 rss: 10838016 rss_rlim: 0
CPU usage: start_time: 1162140194 rtime: 0 utime: 13 stime: 0 cutime:11 cstime: 0 timeout: 2 it_real_value: 0 frequency: 0

Backtrace was generated from '/usr/bin/time-admin'

(no debugging symbols found)
Using host libthread_db library "/lib/tls/i686/cmov/libthread_db.so.1".
(no debugging symbols found)
[Thread debugging using libthread_db enabled]
[New Thread -1225766640 (LWP 6519)]
0xffffe410 in __kernel_vsyscall ()

Thread 1 (Thread -1225766640 (LWP 6519))

  • #0 __kernel_vsyscall
  • #1 __waitpid_nocancel
    from /lib/tls/i686/cmov/libpthread.so.0
  • #2 gnome_gtk_module_info_get
    from /usr/lib/libgnomeui-2.so.0
  • #3 <signal handler called>
  • #4 ??
  • #5 ??
  • #6 ??
  • #0 __kernel_vsyscall

Comment 1 Albert Vernon 2006-10-29 16:58:26 UTC
Distribution: Ubuntu 6.10 (edgy)
Gnome Release: 2.16.1 2006-10-02 (Ubuntu)
BugBuddy Version: 2.16.0

Memory status: size: 18935808 vsize: 0 resident: 18935808 share: 0 rss: 7380992 rss_rlim: 0
CPU usage: start_time: 1162140981 rtime: 0 utime: 7 stime: 0 cutime:7 cstime: 0 timeout: 0 it_real_value: 0 frequency: 0

Backtrace was generated from '/usr/bin/time-admin'

Using host libthread_db library "/lib/tls/i686/cmov/libthread_db.so.1".
[Thread debugging using libthread_db enabled]
[New Thread -1226004288 (LWP 30269)]
0xffffe410 in __kernel_vsyscall ()

Thread 1 (Thread -1226004288 (LWP 30269))

  • #0 __kernel_vsyscall
  • #1 __waitpid_nocancel
    from /lib/tls/i686/cmov/libpthread.so.0
  • #2 gnome_gtk_module_info_get
    from /usr/lib/libgnomeui-2.so.0
  • #3 <signal handler called>
  • #4 __kernel_vsyscall
  • #5 raise
    from /lib/tls/i686/cmov/libc.so.6
  • #6 abort
    from /lib/tls/i686/cmov/libc.so.6
  • #7 IA__g_logv
    at gmessages.c line 497
  • #8 IA__g_log
    at gmessages.c line 517
  • #9 gst_tool_load_glade_common
    at gst-tool.c line 397
  • #10 gst_tool_init
    at gst-tool.c line 152
  • #11 IA__g_type_create_instance
    at gtype.c line 1559
  • #12 g_object_constructor
    at gobject.c line 1041
  • #13 gst_tool_constructor
    at gst-tool.c line 198
  • #14 gst_time_tool_constructor
    at time-tool.c line 415
  • #15 IA__g_object_newv
    at gobject.c line 937
  • #16 IA__g_object_new_valist
    at gobject.c line 1022
  • #17 IA__g_object_new
    at gobject.c line 795
  • #18 gst_time_tool_new
    at time-tool.c line 526
  • #19 main
    at main.c line 272
  • #0 __kernel_vsyscall

Comment 2 Karsten Bräckelmann 2006-10-29 17:06:55 UTC
Confirming, nice trace, unique.  Thanks, Albert!

Note: Carlos, please note that the original stacktrace looks like the dreaded
      general "crash on starting" bug. Possibly some of those duplicates with
      low info actually may be this issue, too.
Comment 3 Albert Vernon 2006-10-29 17:22:16 UTC
I got a better stack trace for Thread 1 by installing the libgnomeui-0-dbg package in Ubuntu.
--

Distribution: Ubuntu 6.10 (edgy)
Gnome Release: 2.16.1 2006-10-02 (Ubuntu)
BugBuddy Version: 2.16.0

Memory status: size: 18931712 vsize: 0 resident: 18931712 share: 0 rss: 7372800 rss_rlim: 0
CPU usage: start_time: 1162142312 rtime: 0 utime: 7 stime: 0 cutime:7 cstime: 0 timeout: 0 it_real_value: 0 frequency: 0

Backtrace was generated from '/usr/bin/time-admin'

Using host libthread_db library "/lib/tls/i686/cmov/libthread_db.so.1".
[Thread debugging using libthread_db enabled]
[New Thread -1225271104 (LWP 15623)]
0xffffe410 in __kernel_vsyscall ()

Thread 1 (Thread -1225271104 (LWP 15623))

  • #0 __kernel_vsyscall
  • #1 __waitpid_nocancel
    from /lib/tls/i686/cmov/libpthread.so.0
  • #2 libgnomeui_segv_handle
    at gnome-ui-init.c line 874
  • #3 <signal handler called>
  • #4 __kernel_vsyscall
  • #5 raise
    from /lib/tls/i686/cmov/libc.so.6
  • #6 abort
    from /lib/tls/i686/cmov/libc.so.6
  • #7 IA__g_logv
    at gmessages.c line 497
  • #8 IA__g_log
    at gmessages.c line 517
  • #9 gst_tool_load_glade_common
    at gst-tool.c line 397
  • #10 gst_tool_init
    at gst-tool.c line 152
  • #11 IA__g_type_create_instance
    at gtype.c line 1559
  • #12 g_object_constructor
    at gobject.c line 1041
  • #13 gst_tool_constructor
    at gst-tool.c line 198
  • #14 gst_time_tool_constructor
    at time-tool.c line 415
  • #15 IA__g_object_newv
    at gobject.c line 937
  • #16 IA__g_object_new_valist
    at gobject.c line 1022
  • #17 IA__g_object_new
    at gobject.c line 795
  • #18 gst_time_tool_new
    at time-tool.c line 526
  • #19 main
    at main.c line 272
  • #0 __kernel_vsyscall

Comment 4 André Klapper 2006-10-29 19:02:38 UTC
nice stacktrace, good to see this - seems like some of the bugs marked as duplicates of bug 351603 might be duplicates of this one here - even more important to fix this issue here.
Comment 5 Carlos Garnacho 2006-10-30 12:55:14 UTC
Seems to me 100% a installation issue... it isn't finding a .glade file in the path it's told. Could you check in your "dpkg -L gnome-system-tools" output which .glade files are being installed and that they exist in your filesystem? also pasting here the stderr output of the tool would be helpful, it should tell you where is it searching for the file.
Comment 6 Albert Vernon 2006-10-31 01:34:24 UTC
~$ dpkg -L gnome-system-tools|fgrep glade
/usr/share/gnome-system-tools/interfaces/boot.glade
/usr/share/gnome-system-tools/interfaces/common.glade
/usr/share/gnome-system-tools/interfaces/disks.glade
/usr/share/gnome-system-tools/interfaces/network.glade
/usr/share/gnome-system-tools/interfaces/services.glade
/usr/share/gnome-system-tools/interfaces/shares.glade
/usr/share/gnome-system-tools/interfaces/time.glade
/usr/share/gnome-system-tools/interfaces/users.glade

~$ /usr/bin/time-admin

(time-admin:10287): libglade-WARNING **: could not find glade file '/usr/local/share/gnome-system-tools/interfaces/common.glade'

** ERROR **: Could not load /usr/local/share/gnome-system-tools/interfaces/common.glade
Comment 7 Albert Vernon 2006-10-31 01:38:05 UTC
If I symlink /usr/share/gnome-system-tools to /usr/local/share/gnome-system-tools, I no longer get the error messages on stderr, but time-admin fails within a different function.


Distribution: Ubuntu 6.10 (edgy)
Gnome Release: 2.16.1 2006-10-02 (Ubuntu)
BugBuddy Version: 2.16.0

Memory status: size: 32477184 vsize: 0 resident: 32477184 share: 0 rss: 10838016 rss_rlim: 0
CPU usage: start_time: 1162258542 rtime: 0 utime: 14 stime: 0 cutime:14 cstime: 0 timeout: 0 it_real_value: 0 frequency: 0

Backtrace was generated from '/usr/bin/time-admin'

Using host libthread_db library "/lib/tls/i686/cmov/libthread_db.so.1".
[Thread debugging using libthread_db enabled]
[New Thread -1225856832 (LWP 10464)]
0xffffe410 in __kernel_vsyscall ()

Thread 1 (Thread -1225856832 (LWP 10464))

  • #0 __kernel_vsyscall
  • #1 __waitpid_nocancel
    from /lib/tls/i686/cmov/libpthread.so.0
  • #2 libgnomeui_segv_handle
    at gnome-ui-init.c line 874
  • #3 <signal handler called>
  • #4 e_tz_map_new
    at tz-map.c line 82
  • #5 init_timezone
    at time-tool.c line 329
  • #6 gst_time_tool_constructor
    at time-tool.c line 433
  • #7 IA__g_object_newv
    at gobject.c line 937
  • #8 IA__g_object_new_valist
    at gobject.c line 1022
  • #9 IA__g_object_new
    at gobject.c line 795
  • #10 gst_time_tool_new
    at time-tool.c line 526
  • #11 main
    at main.c line 272
  • #0 __kernel_vsyscall

Comment 8 Albert Vernon 2006-10-31 02:55:26 UTC
When I step through the code, g_new0() returns NULL at tz-map.c:64 but the code never tests for that condition.

    tzmap = g_new0 (ETzMap, 1);

The description of g_new0 says, "If any call to allocate memory fails, the application is terminated. This also means that there is no need to check if the call succeeded."

http://developer.gnome.org/doc/API/2.0/glib/glib-Memory-Allocation.html

However, the application does not terminate at line 64 where g_new0 fails.  It instead crashes further down at line 82.

Another strange thing is that line 65 does not cause a segfault, which I would expect since it is dereferencing the NULL pointer.

    tzmap->tool = GST_TOOL (tool);

I can't get gdb to step into g_new0(), even though I have the libglib2.0-dev Ubuntu package installed.  Nevertheless, the stack shows

    IA__g_malloc0(n_bytes=24) at gmem.c:144

Finally, if I patch tz-map.c to report an error when tzmap is NULL, that line is never called.  What am I missing here?

--- tz-map.c.orig       2006-10-30 21:51:42.000000000 -0500
+++ tz-map.c    2006-10-30 21:51:46.000000000 -0500
@@ -62,6 +62,9 @@
        int i;
 
        tzmap = g_new0 (ETzMap, 1);
+       if (!tzmap)
+               g_error ("Unable to allocate timezone map.");
+
        tzmap->tool = GST_TOOL (tool);
        tzmap->tzdb = tz_load_db ();
        if (!tzmap->tzdb)
Comment 9 André Klapper 2006-11-12 22:09:44 UTC
*** Bug 373334 has been marked as a duplicate of this bug. ***
Comment 10 Carlos Garnacho 2006-11-16 13:34:12 UTC
The second issue was fixed in g-s-t 2.15.6, the first one is totally either a packaging error or a mixed package/compiled installation. I'll close as FIXED, thanks!
Comment 11 Albert Vernon 2006-11-17 00:02:56 UTC
time-admin 2.16.1 from g-s-t 2.15.6 works correctly for me.  Marking as VERIFIED.