Bug#271137: marked as done (libgtkhtml2-0: crash when click some link in gnochm)

Debian Bug Tracking System owner@bugs.debian.org
Tue, 02 Nov 2004 06:33:11 -0800


Your message dated Tue, 02 Nov 2004 09:17:05 -0500
with message-id <E1COzT7-0002LY-00@newraff.debian.org>
and subject line Bug#271137: fixed in libgtkhtml2 2.6.2-1
has caused the attached Bug report 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 I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 11 Sep 2004 14:17:45 +0000
>From carlos_liu@yahoo.com Sat Sep 11 07:17:45 2004
Return-path: <carlos_liu@yahoo.com>
Received: from smtpout3.compass.net.nz (smtpout1.compass.net.nz) [203.97.97.135] 
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1C68hF-0003PM-00; Sat, 11 Sep 2004 07:17:45 -0700
Received: from cliux.homeunix.net (IP203-97-107-44.compass.net.nz [203.97.107.44])
	by smtpout1.compass.net.nz (8.12.8/8.12.8) with ESMTP id i8BE8ioj017939;
	Sun, 12 Sep 2004 02:08:44 +1200
Received: from cliux.homeunix.net (localhost [127.0.0.1])
	by cliux.homeunix.net (Postfix) with ESMTP id 30DBB14F8F89;
	Sun, 12 Sep 2004 02:17:37 +1200 (NZST)
Content-Type: multipart/mixed; boundary="===============0271174264=="
MIME-Version: 1.0
From: "Carlos Z.F. Liu" <carlos_liu@yahoo.com>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: libgtkhtml2-0: crash when click some link in gnochm
Reply-To: "Carlos Z.F. Liu" <carlos_liu@yahoo.com>
X-Mailer: reportbug 2.64
Date: Sun, 12 Sep 2004 02:17:36 +1200
Message-Id: <20040911141737.30DBB14F8F89@cliux.homeunix.net>
Delivered-To: submit@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2004_03_25 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-4.3 required=4.0 tests=BAYES_00,FORGED_YAHOO_RCVD,
	HAS_PACKAGE autolearn=no version=2.60-bugs.debian.org_2004_03_25
X-Spam-Level: 

This is a multi-part MIME message sent by reportbug.

--===============0271174264==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Package: libgtkhtml2-0
Version: 2.4.1-1
Severity: normal
Tags: patch

Hello,

This is a bug reported to upstream, and it was fixed already. The bug
cause gnochm (a CHM viewer for GNOME) crash frequently.

Upstream Bugreport: http://bugzilla.gnome.org/show_bug.cgi?id=135489


-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.7
Locale: LANG=en_NZ.UTF-8, LC_CTYPE=zh_CN.UTF-8

Versions of packages libgtkhtml2-0 depends on:
ii  libart-2.0-2                2.3.16-6     Library of functions for 2D graphi
ii  libatk1.0-0                 1.6.1-3      The ATK accessibility toolkit
ii  libc6                       2.3.2.ds1-16 GNU C Library: Shared libraries an
ii  libgail-common              1.6.6b-1     GNOME Accessibility Implementation
ii  libgail17                   1.6.6b-1     GNOME Accessibility Implementation
ii  libglib2.0-0                2.4.6-2      The GLib library of C routines
ii  libgnomecanvas2-0           2.6.1.1-2    A powerful object-oriented display
ii  libgtk2.0-0                 2.4.9-1      The GTK+ graphical user interface 
ii  libpango1.0-0               1.4.1-2      Layout and rendering of internatio
ii  libxml2                     2.6.11-3     GNOME XML library
ii  zlib1g                      1:1.2.1.1-7  compression library - runtime

-- no debconf information

--===============0271174264==
Content-Type: text/x-c; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="gnochm.patch"

diff -Naur libgtkhtml2-2.4.1.orig/libgtkhtml/document/htmldocument.c libgtkhtml2-2.4.1/libgtkhtml/document/htmldocument.c
--- libgtkhtml2-2.4.1.orig/libgtkhtml/document/htmldocument.c	2003-08-13 21:46:53.000000000 +1200
+++ libgtkhtml2-2.4.1/libgtkhtml/document/htmldocument.c	2004-09-12 02:04:18.000000000 +1200
@@ -664,6 +664,7 @@
 	g_return_val_if_fail (HTML_IS_DOCUMENT (document), FALSE);
 	g_return_val_if_fail (mime_type != NULL, FALSE);
 
+	html_document_clear (document);
 	if (strcasecmp (mime_type, "text/html") == 0) {
 		if (document->parser)
 			g_object_unref (document->parser);
diff -Naur libgtkhtml2-2.4.1.orig/libgtkhtml/document/htmlparser.c libgtkhtml2-2.4.1/libgtkhtml/document/htmlparser.c
--- libgtkhtml2-2.4.1.orig/libgtkhtml/document/htmlparser.c	2003-10-03 01:26:02.000000000 +1200
+++ libgtkhtml2-2.4.1/libgtkhtml/document/htmlparser.c	2004-09-12 02:04:15.000000000 +1200
@@ -96,6 +96,9 @@
 	
 	startDocument (parser->xmlctxt);
 
+	if (parser->document->dom_document) {
+		g_warning ("DomDocument leaked in html_startDocument");
+	}
 	parser->document->dom_document = DOM_DOCUMENT (dom_Node_mkref ((xmlNode *)parser->xmlctxt->myDoc));
 
 	/* Emit document node parsed signal */
diff -Naur libgtkhtml2-2.4.1.orig/libgtkhtml/view/htmlview.c libgtkhtml2-2.4.1/libgtkhtml/view/htmlview.c
--- libgtkhtml2-2.4.1.orig/libgtkhtml/view/htmlview.c	2003-10-03 01:26:02.000000000 +1200
+++ libgtkhtml2-2.4.1/libgtkhtml/view/htmlview.c	2004-09-12 02:04:28.000000000 +1200
@@ -369,8 +369,10 @@
 		}
 		if (parent_box == NULL) {
 			html_view_layout_tree_free (view, view->root);
-			if (view->document && view->document->focus_element)
-				html_document_update_focus_element (view->document, NULL);
+			if (view->document && view->document->focus_element) {
+				g_warning ("Focus element set when inserting toplevel node");
+				view->document->focus_element = NULL;
+			}
 			view->root = new_box;
 		 } else {
 			html_box_append_child (parent_box, new_box);

--===============0271174264==--

---------------------------------------
Received: (at 271137-close) by bugs.debian.org; 2 Nov 2004 14:23:06 +0000
>From katie@ftp-master.debian.org Tue Nov 02 06:23:06 2004
Return-path: <katie@ftp-master.debian.org>
Received: from newraff.debian.org [208.185.25.31] (mail)
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1COzYw-0004mI-00; Tue, 02 Nov 2004 06:23:06 -0800
Received: from katie by newraff.debian.org with local (Exim 3.35 1 (Debian))
	id 1COzT7-0002LY-00; Tue, 02 Nov 2004 09:17:05 -0500
From: Sebastien Bacher <seb128@debian.org>
To: 271137-close@bugs.debian.org
X-Katie: $Revision: 1.51 $
Subject: Bug#271137: fixed in libgtkhtml2 2.6.2-1
Message-Id: <E1COzT7-0002LY-00@newraff.debian.org>
Sender: Archive Administrator <katie@ftp-master.debian.org>
Date: Tue, 02 Nov 2004 09:17:05 -0500
Delivered-To: 271137-close@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2004_03_25 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-4.8 required=4.0 tests=BAYES_00,FROM_ENDS_IN_NUMS,
	HAS_BUG_NUMBER autolearn=no version=2.60-bugs.debian.org_2004_03_25
X-Spam-Level: 
X-CrossAssassin-Score: 3

Source: libgtkhtml2
Source-Version: 2.6.2-1

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

libgtkhtml2-0_2.6.2-1_i386.deb
  to pool/main/libg/libgtkhtml2/libgtkhtml2-0_2.6.2-1_i386.deb
libgtkhtml2-dev_2.6.2-1_i386.deb
  to pool/main/libg/libgtkhtml2/libgtkhtml2-dev_2.6.2-1_i386.deb
libgtkhtml2_2.6.2-1.diff.gz
  to pool/main/libg/libgtkhtml2/libgtkhtml2_2.6.2-1.diff.gz
libgtkhtml2_2.6.2-1.dsc
  to pool/main/libg/libgtkhtml2/libgtkhtml2_2.6.2-1.dsc
libgtkhtml2_2.6.2.orig.tar.gz
  to pool/main/libg/libgtkhtml2/libgtkhtml2_2.6.2.orig.tar.gz



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 271137@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Sebastien Bacher <seb128@debian.org> (supplier of updated libgtkhtml2 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 ftpmaster@debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Tue,  2 Nov 2004 14:30:46 +0100
Source: libgtkhtml2
Binary: libgtkhtml2-dev libgtkhtml2-0
Architecture: source i386
Version: 2.6.2-1
Distribution: unstable
Urgency: low
Maintainer: Takuo KITAME <kitame@debian.org>
Changed-By: Sebastien Bacher <seb128@debian.org>
Description: 
 libgtkhtml2-0 - HTML rendering/editing library - runtime files. (for GNOME2)
 libgtkhtml2-dev - HTML rendering/editing library - development files. for (GNOME2)
Closes: 266884 267901 271137
Changes: 
 libgtkhtml2 (2.6.2-1) unstable; urgency=low
 .
   * New upstream release:
     - fix the crashes with gnochm (Closes: #271137).
     - add the support for "id" attribute in anchors.
   * debian/control.in:
     - updated the Build-Depends.
   * debian/docs:
     - don't install the useless README (Closes: #266884).
   * Runned libtool (Closes: #267901).
   * GNOME Team Upload.
Files: 
 da90df7011b43e27f2c6f7e4193252f3 1250 libs optional libgtkhtml2_2.6.2-1.dsc
 051a0450b4cea457f7c652c1d6edbdef 602885 libs optional libgtkhtml2_2.6.2.orig.tar.gz
 ad59374ce101539643c206ee3809d2e3 79047 libs optional libgtkhtml2_2.6.2-1.diff.gz
 44d890eed305daf097fb7eaca1ec77cc 231074 libs optional libgtkhtml2-0_2.6.2-1_i386.deb
 2c937544625c8a5481e08637d60ffdcf 260042 devel optional libgtkhtml2-dev_2.6.2-1_i386.deb

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

iD8DBQFBh5J3Qxo87aLX0pIRAvwGAJsHnbgybvQkWDUfOGXwrpipid/0dACg4W3N
YSVWLOPxH3wjcAlJSsRdDZ8=
=8rSZ
-----END PGP SIGNATURE-----