Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 296411 - >=gnome-base/gnome-panel-2.26.3: Clock applet shows slightly wrong time
Summary: >=gnome-base/gnome-panel-2.26.3: Clock applet shows slightly wrong time
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL: https://bugzilla.gnome.org/show_bug.c...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-12-10 15:26 UTC by Andrey Vihrov
Modified: 2011-04-03 15:45 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrey Vihrov 2009-12-10 15:26:34 UTC
The Clock applet shows somewhat wrong time, usually about 30 seconds behind the correct value.

Reproducible: Always

Steps to Reproduce:
1. Open terminal emulator and run "watch -n1 date".
2. Observe a ~30 second delay between Clock applet's time and correct time.




Portage 2.1.6.13 (default/linux/amd64/10.0/desktop, gcc-4.3.4, glibc-2.9_p20081201-r2, 2.6.31-gentoo-r6 x86_64)
=================================================================
System uname: Linux-2.6.31-gentoo-r6-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T8100_@_2.10GHz-with-gentoo-1.12.13
Timestamp of tree: Thu, 10 Dec 2009 14:30:01 +0000
app-shells/bash:     4.0_p35
dev-java/java-config: 2.1.9-r1
dev-lang/python:     2.6.4
dev-util/cmake:      2.6.4-r3
sys-apps/baselayout: 1.12.13
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=native -msse4.1 -mcx16 -msahf -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -march=native -msse4.1 -mcx16 -msahf -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--ask --jobs=2 --load-average=3"
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.tups.lv/source/"
LANG="ru_RU.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="ru en lv"
MAKEOPTS="-j3 -l3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/layman/armagetron /usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X a52 aac acpi alsa amd64 avahi bash-completion berkdb bluetooth bonjour branding bzip2 cairo cdr cli consolekit cracklib crypt cups cxx dbus djvu dri dts dvd dvdr eds emboss encode evo exif fam ffmpeg firefox flac fortran gdbm gif gnome gnome-keyring gpm gstreamer gtk hal hddtemp iconv id3tag ieee1394 ipod jpeg libnotify lm_sensors mad matroska mikmod mmx mmxext modules mp3 mp4 mpeg mudflap multilib nautilus ncurses networkmanager nls nptl nptlonly nsplugin ogg opengl openmp pam pcre pdf perl png ppds pppd python qt3support quicktime readline reflection rtc samba sdl session smp spell spl sqlite sse sse2 sse3 sse4_1 ssl ssse3 startup-notification svg sysfs tcpd theora threads thunar tiff totem truetype unicode upnp usb v4l2 vim-syntax vorbis x264 xml xorg xulrunner xv xvid xvmc zeroconf zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="ru en lv" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="intel"
Unset:  CPPFLAGS, CTARGET, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Gilles Dartiguelongue (RETIRED) gentoo-dev 2009-12-10 21:59:20 UTC
I'm pretty sure this would be an upstream issue. Maybe related to the fact that there is no need to update the clock every second when second display is off. Could you check if showing seconds makes it go i sync again ?
Comment 2 Andrey Vihrov 2009-12-10 23:01:46 UTC
Your guess was correct - the clock applet was only updating status once a minute if displaying seconds was disabled. Based on this I was able to track down the bug and (hopefully) fix it.

I opened an upstream bug on this issue, with the patch attached: https://bugzilla.gnome.org/604317
Comment 3 Pacho Ramos gentoo-dev 2010-04-26 13:56:57 UTC
(In reply to comment #2)
> Your guess was correct - the clock applet was only updating status once a
> minute if displaying seconds was disabled. Based on this I was able to track
> down the bug and (hopefully) fix it.
> 
> I opened an upstream bug on this issue, with the patch attached:
> https://bugzilla.gnome.org/604317
> 

Can you please change upstream status bug report from NEEDINFO to UNCONFIRMED ? All info seems to be provided and I am not allowed to do so (also, maybe with the change upstream puts an eye on the patch ;-))

Thanks
Comment 4 Pacho Ramos gentoo-dev 2010-10-12 18:53:36 UTC
I cannot reproduce original problem on neither 2.32 and 2.30, please retry on a new created user account
Comment 5 Andrey Vihrov 2010-10-18 12:53:11 UTC
(In reply to comment #4)
> I cannot reproduce original problem on neither 2.32 and 2.30, please retry on a
> new created user account
> 

You can see the effect if you run both gnome-panel and date with environment variable TZ set to "right/<your region>/<your location>", as opposed to the normal "<your region>/<your location>" timezone. The "right" timezone takes leap seconds into account, but isn't POSIX, as discussed in the Gnome bugzilla report. Because of the latter statement it's up to gnome-panel developers whether they consider this a bug or not.
Comment 6 Pacho Ramos gentoo-dev 2010-10-18 17:47:40 UTC
OK, thanks for the explanation, I misunderstood the problem (sorry)
Comment 7 Pacho Ramos gentoo-dev 2011-01-27 18:34:02 UTC
Do other gnome team members agree with including this downstream?
Comment 8 Pacho Ramos gentoo-dev 2011-04-03 15:45:21 UTC
Will wait for upstream opinion before committing this (Vuntz will probably have more time once Gnome3 is released)