Comment 4 for bug 11341

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-Id: <email address hidden>
Date: Tue, 14 Dec 2004 18:23:52 -0800
From: David Mosberger-Tang <email address hidden>
To: Debian Bug Tracking System <email address hidden>
Subject: evolution-data-server: libedata-cal5 crashes on 64-bit platforms

Package: evolution-data-server
Version: 1.0.3-1
Severity: normal
Tags: patch

The calendar service in Evolution is truncating pointer-values to 32
bits, thus loosing the top 32-bit on 64-bit platforms and causing
segmentation faults. Without the attached patch, the Calendar portion
of evolution is completely unusable on any 64-bit platform.

Please apply.

Thanks,

 --david

--- evolution-data-server-1.0.3/calendar/libedata-cal/e-data-cal-factory.c 2004-08-02 04:38:08.000000000 -0700
+++ evolution-data-server-1.0.3-davidm/calendar/libedata-cal/e-data-cal-factory.c 2004-12-14 18:12:03.289889145 -0800
@@ -84,7 +84,7 @@
  if (!kinds)
   return 0;

- type = GPOINTER_TO_INT (g_hash_table_lookup (kinds, GINT_TO_POINTER (kind)));
+ type = (GType) (g_hash_table_lookup (kinds, GINT_TO_POINTER (kind)));

  return type;
 }
@@ -452,7 +452,7 @@

  kinds = g_hash_table_lookup (priv->methods, method_str);
  if (kinds) {
- type = GPOINTER_TO_INT (g_hash_table_lookup (kinds, GINT_TO_POINTER (kind)));
+ type = (GType) (g_hash_table_lookup (kinds, GINT_TO_POINTER (kind)));
   if (type) {
    g_warning (G_STRLOC ": method `%s' already registered", method_str);
    g_free (method_str);

-- System Information:
Debian Release: 3.1
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable')
Architecture: ia64
Kernel: Linux 2.6.10-rc2
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages evolution-data-server depends on:
ii libaudiofile0 0.2.6-5 Open-source version of SGI's audio
ii libbonobo2-0 2.8.0-3 Bonobo CORBA interfaces library
ii libc6.1 2.3.2.ds1-18 GNU C Library: Shared libraries an
ii libdb4.1 4.1.25-17 Berkeley v4.1 Database Libraries [
ii libebook8 1.0.3-1 Client library for evolution addre
ii libecal6 1.0.3-1 Client library for evolution calen
ii libedata-book1 1.0.3-1 Backend library for evolution addr
ii libedata-cal5 1.0.3-1 Backend library for evolution cale
ii libedataserver3 1.0.3-1 Utily library for evolution data s
ii libegroupwise6 1.0.3-1 Client library for accessing group
ii libesd-alsa0 [libesd0] 0.2.35-2 Enlightened Sound Daemon (ALSA) -
ii libgconf2-4 2.8.1-4 GNOME configuration database syste
ii libgcrypt11 1.2.0-4 LGPL Crypto library - runtime libr
ii libglib2.0-0 2.4.8-1 The GLib library of C routines
ii libgnome2-0 2.8.0-6 The GNOME 2 library - runtime file
ii libgnomevfs2-0 2.8.3-6 The GNOME virtual file-system libr
ii libgnutls11 1.0.16-9 GNU TLS library - runtime library
ii libgpg-error0 1.0-1 library for common error values an
ii libldap2 2.1.30-3 OpenLDAP libraries
ii liborbit2 1:2.10.2-1.1 libraries for ORBit2 - a CORBA ORB
ii libpopt0 1.7-5 lib for parsing cmdline parameters
ii libsoup2.2-7 2.2.1-1 an HTTP library implementation in
ii libtasn1-2 0.2.10-3 Manage ASN.1 structures (runtime)
ii libxml2 2.6.11-5 GNOME XML library
ii zlib1g 1:1.2.2-3 compression library - runtime

-- no debconf information