Your message dated Mon, 04 Oct 2010 19:17:07 +0000
with message-id <e1p2qx5-0006ul...@franck.debian.org>
and subject line Bug#597153: fixed in libgcal 0.9.4-2
has caused the Debian Bug report #597153,
regarding libgcal0: Segfault due to early global cleanup of libxml
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
597153: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=597153
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Subject: libgcal0: Segfault due to early global cleanup of libxml
Package: libgcal0
Version: 0.9.4-1
Justification: breaks unrelated software
Severity: critical
Tags: upstream patch

*** Please type your report below this line ***

libxml2 has a global cleanup function that is meant to be called
at the end of an application called xmlCleanupParser().  This
ends up freeing a number of global tables inside libxml2.

If an application uses both libgcal and libxml2, and get_the_url()
is called in libgcal, libxml2 stops working for the app, and
often causes a segfault when it tries to access the global tables
that are now freed.

This patch below fixes the issue, and has been included in
upstream.  The latest upstream sources can be found here:

Tarballs: http://code.google.com/p/libgcal/
Git repo: http://gitorious.org/libgcal

Note that some software is already checking for >= 0.9.6 in
configure scripts, to avoid this bug, and the latest 0.9.6
release fixes an API bug that the binary package has a
special patch for.  If at all possible, upgrading Squeeze
to upstream 0.9.6 would be much preferred.  But if not,
this patch at least.

Thanks,
- Chris


Patch:


diff --git a/src/gcal_parser.c b/src/gcal_parser.c
index 437d6ac..f1aa13c 100644
--- a/src/gcal_parser.c
+++ b/src/gcal_parser.c
@@ -103,7 +103,6 @@ int get_the_url(char *data, int length, char **url)
                result = 0;
 
        xmlFreeDoc(doc);
-       xmlCleanupParser();
 
 exit:
        return result;
@@ -160,7 +159,6 @@ int get_edit_url(char *data, int length, char **url)
                result = 0;
 
        xmlFreeDoc(doc);
-       xmlCleanupParser();
 
 exit:
        return result;
@@ -183,7 +181,6 @@ int get_edit_etag(char *data, int length, char **url)
                result = 0;
 
        xmlFreeDoc(doc);
-       xmlCleanupParser();
 
 exit:
        return result;


-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 2.6.35.4 (PREEMPT)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/dash

Versions of packages libgcal0 depends on:
ii  libc6                       2.11.2-5     Embedded GNU C Library: Shared lib
ii  libcurl3-gnutls             7.21.0-1     Multi-protocol file transfer libra
ii  libxml2                     2.7.7.dfsg-4 GNOME XML library

libgcal0 recommends no packages.

libgcal0 suggests no packages.

-- no debconf information




--- End Message ---
--- Begin Message ---
Source: libgcal
Source-Version: 0.9.4-2

We believe that the bug you reported is fixed in the latest version of
libgcal, which is due to be installed in the Debian FTP archive:

libgcal-dev_0.9.4-2_i386.deb
  to main/libg/libgcal/libgcal-dev_0.9.4-2_i386.deb
libgcal0_0.9.4-2_i386.deb
  to main/libg/libgcal/libgcal0_0.9.4-2_i386.deb
libgcal_0.9.4-2.debian.tar.gz
  to main/libg/libgcal/libgcal_0.9.4-2.debian.tar.gz
libgcal_0.9.4-2.dsc
  to main/libg/libgcal/libgcal_0.9.4-2.dsc



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 597...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Michael Banck <mba...@debian.org> (supplier of updated libgcal package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmas...@debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: RIPEMD160

Format: 1.8
Date: Mon, 04 Oct 2010 21:02:34 +0200
Source: libgcal
Binary: libgcal0 libgcal-dev
Architecture: source i386
Version: 0.9.4-2
Distribution: unstable
Urgency: high
Maintainer: Michael Banck <mba...@debian.org>
Changed-By: Michael Banck <mba...@debian.org>
Description: 
 libgcal-dev - Google calendar and contacts (development files)
 libgcal0   - Google calendar and contacts library
Closes: 597153
Changes: 
 libgcal (0.9.4-2) unstable; urgency=high
 .
   * debian/patches/02_libxml_segfault.diff: New patch, fixing a segfault when
     using both libgcal and libxml in the same program. (Closes: #597153)
Checksums-Sha1: 
 2b24de166d206b4c6c9f0aea4394dd45dfe65bb0 1260 libgcal_0.9.4-2.dsc
 78f47d767c0cf16d39bddef5d817d05b5ea48be6 6082 libgcal_0.9.4-2.debian.tar.gz
 d3a7711abd9189d57d7aabfe652351d1e583a86d 50156 libgcal0_0.9.4-2_i386.deb
 9d3fb4cab2b812b3f2dde8d2ce47a8ffb53f0529 25926 libgcal-dev_0.9.4-2_i386.deb
Checksums-Sha256: 
 c98c84a3d2166d736afb348992a1cedc1ca96ad86b99d025bd49cbc3ce307fa5 1260 
libgcal_0.9.4-2.dsc
 626e092b51e0c26451adca91d9c56af4f34f5c3276c29e1649305c0ce30ed205 6082 
libgcal_0.9.4-2.debian.tar.gz
 357cd1e46696bc7f78b1f35f6de3a9d4d25aec43807b656a297e4378013570f0 50156 
libgcal0_0.9.4-2_i386.deb
 a851e7e61140cc8d10bea5c267f53e7b510cee5f954d94cbf429c046f28c0ac4 25926 
libgcal-dev_0.9.4-2_i386.deb
Files: 
 60e79af10f5bd6f3e9eae2c6f3864a00 1260 libs optional libgcal_0.9.4-2.dsc
 b223d73de7ac958f51ef15143661f299 6082 libs optional 
libgcal_0.9.4-2.debian.tar.gz
 b96fbd6793e93fff0077900ab3876ee9 50156 libs optional libgcal0_0.9.4-2_i386.deb
 4d1ec3e8c60debda513fcbd86f13f0be 25926 libdevel optional 
libgcal-dev_0.9.4-2_i386.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iD8DBQFMqiY5mHaJYZ7RAb8RA3PIAJ9/vaUNhyEqlWRuqsmlYKmNO3qYEwCfb7Y9
/Ar5KrcWclT6axDoeeVCjOc=
=l/pT
-----END PGP SIGNATURE-----



--- End Message ---

Reply via email to