Bug#257800: libgtk2.0: GtkCalendar: Dragging 31st of month produces errors

William Ballard William Ballard <40618.nospam@comcast.net>, 257800@bugs.debian.org
Mon, 05 Jul 2004 20:28:53 -0700


Package: libgtk2.0-0
Version: 2.4.3-2
Severity: normal
File: libgtk2.0

This bug has been report as #145485 upstream:
http://bugzilla.gnome.org/show_bug.cgi?id=145485

When you select the 31st of any month and drag it around, a bunch of 
messages print thusly:

(tupaper:2738): GLib-CRITICAL **: file gdate.c: line 57 (g_date_new_dmy):
assertion `g_date_valid_dmy (day, m, y)' failed

(tupaper:2738): GLib-CRITICAL **: file gdate.c: line 1360 
(g_date_strftime):
assertion `d != NULL' failed

I grepped the source of glib and saw that no other code in glib calls
g_date_new_dmy, and I grepped source of gtk and saw that no other code 
besides gtk_calendar_drag_data_get in gtkcalendar.c calls g_date_new_dmy,
and my code doesn't call it, and it happens when you drag the 31st.
So it looks like a bug in gtkcalendar.

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.7
Locale: LANG=en_US, LC_CTYPE=en_US

Versions of packages libgtk2.0-0 depends on:
ii  libatk1.0-0               1.6.1-2        The ATK accessibility toolkit
ii  libc6                     2.3.2.ds1-13   GNU C Library: Shared libraries an
ii  libfontconfig1            2.2.2-2        generic font configuration library
ii  libfreetype6              2.1.7-2.1      FreeType 2 font engine, shared lib
ii  libglib2.0-0              2.4.2-1        The GLib library of C routines
ii  libgtk2.0-0               2.4.3-2        The GTK+ graphical user interface 
ii  libgtk2.0-bin             2.4.3-2        The programs for the GTK+ graphica
ii  libgtk2.0-common          2.4.3-2        Common files for the GTK+ graphica
ii  libjpeg62                 6b-9           The Independent JPEG Group's JPEG 
ii  libpango1.0-0             1.4.0-4        Layout and rendering of internatio
ii  libpng12-0                1.2.5.0-6      PNG library - runtime
ii  libtiff3g                 3.6.1-1        Tag Image File Format library
ii  libx11-6                  4.3.0.dfsg.1-5 X Window System protocol client li
ii  libxcursor1               1.1.3-1        X cursor management library
ii  libxext6                  4.3.0.dfsg.1-5 X Window System miscellaneous exte
ii  libxft2                   2.1.2-6        FreeType-based font drawing librar
ii  libxi6                    4.3.0.dfsg.1-5 X Window System Input extension li
ii  libxrandr2                4.3.0.dfsg.1-5 X Window System Resize, Rotate and
ii  libxrender1               0.8.3-7        X Rendering Extension client libra
ii  xlibs                     4.3.0.dfsg.1-5 X Window System client libraries m
ii  zlib1g                    1:1.2.1.1-3    compression library - runtime

-- no debconf information