[Bug 892370] Re: The time zone for China should default to Beijing not Shanghai (when offline)

James M. Leddy 892370 at bugs.launchpad.net
Thu May 2 18:43:16 UTC 2013


Some more details on the segfault:


Program received signal SIGSEGV, Segmentation fault.
0x00007fffe48d0c2e in get_loc_for_xy (widget=0x55555589e3c0, x=0, y=0)
    at /home/james/libtimezonemap-0.3.2+clickanywhere1/./src/cc-timezone-map.c:947
947	  r = pixels[(rowstride * y + x * 4)];
(gdb) bt
#0  0x00007fffe48d0c2e in get_loc_for_xy (widget=0x55555589e3c0, x=0, y=0)
    at /home/james/libtimezonemap-0.3.2+clickanywhere1/./src/cc-timezone-map.c:947
#1  0x00007fffe48d17c8 in cc_timezone_map_set_location (map=0x55555589e3c0, lon=-77.366349999999997, 
    lat=35.612659999999998) at /home/james/libtimezonemap-0.3.2+clickanywhere1/./src/cc-timezone-map.c:1177
#2  0x00007fffe4adf670 in ?? () from /usr/lib/control-center-1/panels/libindicator-datetime.so
#3  0x00007ffff64a3f97 in g_simple_async_result_complete (simple=0x555555b7e040)
    at /build/buildd/glib2.0-2.32.3/./gio/gsimpleasyncresult.c:767
#4  0x00007ffff64fc3dd in reply_cb (connection=<optimized out>, res=<optimized out>, user_data=0x555555b7e040)
    at /build/buildd/glib2.0-2.32.3/./gio/gdbusproxy.c:2614
#5  0x00007ffff64a3f97 in g_simple_async_result_complete (simple=0x555555b7e190)
    at /build/buildd/glib2.0-2.32.3/./gio/gsimpleasyncresult.c:767
#6  0x00007ffff64f27ba in g_dbus_connection_call_done (source=<optimized out>, result=<optimized out>, 
    user_data=0x5555575b7cc0) at /build/buildd/glib2.0-2.32.3/./gio/gdbusconnection.c:5289
#7  0x00007ffff64a3f97 in g_simple_async_result_complete (simple=0x555556b6ed10)
    at /build/buildd/glib2.0-2.32.3/./gio/gsimpleasyncresult.c:767
#8  0x00007ffff64a4099 in complete_in_idle_cb (data=<optimized out>)
    at /build/buildd/glib2.0-2.32.3/./gio/gsimpleasyncresult.c:779
#9  0x00007ffff5f3ad53 in g_main_dispatch (context=0x55555577bc70)
    at /build/buildd/glib2.0-2.32.3/./glib/gmain.c:2539
#10 g_main_context_dispatch (context=0x55555577bc70) at /build/buildd/glib2.0-2.32.3/./glib/gmain.c:3075
#11 0x00007ffff5f3b0a0 in g_main_context_iterate (dispatch=1, block=<optimized out>, context=0x55555577bc70, 
    self=<optimized out>) at /build/buildd/glib2.0-2.32.3/./glib/gmain.c:3146
#12 g_main_context_iterate (context=0x55555577bc70, block=<optimized out>, dispatch=1, self=<optimized out>)
    at /build/buildd/glib2.0-2.32.3/./glib/gmain.c:3083
#13 0x00007ffff5f3b164 in g_main_context_iteration (context=0x55555577bc70, may_block=1)
    at /build/buildd/glib2.0-2.32.3/./glib/gmain.c:3207
#14 0x00007ffff64cec94 in g_application_run (application=0x5555558a42b0, argc=<optimized out>, 
    argv=0x7fffffffe1a8) at /build/buildd/glib2.0-2.32.3/./gio/gapplication.c:1507
#15 0x000055555555b7aa in main ()

Seems that if you run "Date and Time" from gnome-control-center you can
get this to happen. It does not happen every time, but if you do it
enough times it'll happen. The reason is "pixels" variable is
uninitialized.

http://paste.ubuntu.com/5626791/

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to libtimezonemap in Ubuntu.
https://bugs.launchpad.net/bugs/892370

Title:
  The time zone for China should default to Beijing not Shanghai (when
  offline)

Status in The Date and Time Indicator:
  New
Status in OEM Priority Project:
  In Progress
Status in OEM Priority Project oneiric series:
  Won't Fix
Status in OEM Priority Project precise series:
  Won't Fix
Status in OEM Priority Project quantal series:
  Won't Fix
Status in OEM Priority Project raring series:
  In Progress
Status in “indicator-datetime” package in Ubuntu:
  In Progress
Status in “libtimezonemap” package in Ubuntu:
  Fix Released
Status in “ubiquity” package in Ubuntu:
  Confirmed
Status in “indicator-datetime” source package in Quantal:
  Won't Fix
Status in “libtimezonemap” source package in Quantal:
  Won't Fix
Status in “ubiquity” source package in Quantal:
  Won't Fix
Status in “indicator-datetime” source package in Raring:
  Won't Fix
Status in “libtimezonemap” source package in Raring:
  Fix Released
Status in “ubiquity” source package in Raring:
  Won't Fix
Status in “indicator-datetime” source package in Saucy:
  Confirmed
Status in “libtimezonemap” source package in Saucy:
  Fix Released
Status in “ubiquity” source package in Saucy:
  Confirmed

Bug description:
  When installing Ubuntu and selecting Simplified Chinese as the default
  language, the default timezone should point to Beijing instead of
  Shanghai.  Everything in China is referenced to Beijing time.  In
  mainland China this standard time is called Beijing Time (北京时间)
  domestically but it is commonly referred to as China Standard Time
  (CST) internationally.

  This seems to have come up a lot in past bugs:

  https://bugs.launchpad.net/ubuntu/+source/tzdata/+bug/228554
  https://bugs.launchpad.net/ubuntu/+source/ubiquity/+bug/517621

  Steps to recreate:

  1) Install Ubuntu and select Simplified Chinese for the language.

  Actual Results:
  At the timezone page, the default city is Shanghai.

  Expected Results:
  Most Chinese users prefer it be set to Beijing.

  It looks as if the upstream tz database needs to be updated for
  Beijing for starters, as Beijing is not listed in there.

  ProblemType: Bug
  DistroRelease: Ubuntu 11.10
  Package: tzdata 2011n-0ubuntu0.11.10
  ProcVersionSignature: Ubuntu 3.0.0-12.20-generic 3.0.4
  Uname: Linux 3.0.0-12-generic x86_64
  ApportVersion: 1.23-0ubuntu4
  Architecture: amd64
  Date: Fri Nov 18 15:26:03 2011
  InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Release amd64 (20111012)
  SourcePackage: tzdata
  UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to:
https://bugs.launchpad.net/indicator-datetime/+bug/892370/+subscriptions




More information about the foundations-bugs mailing list