Your message dated Mon, 06 Feb 2006 19:17:08 -0800
with message-id <[EMAIL PROTECTED]>
and subject line Bug#351569: fixed in htmldoc 1.8.25-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)

--- Begin Message ---
>From [EMAIL PROTECTED] Sun Feb 05 11:24:50 2006
Received: (at submit) by bugs.debian.org; 5 Feb 2006 19:24:50 +0000
Return-path: <[EMAIL PROTECTED]>
Received: from luv.spinnaker.de ([194.8.203.54])
        by spohr.debian.org with esmtp (Exim 4.50)
        id 1F5pVC-0002y0-BA
        for [EMAIL PROTECTED]; Sun, 05 Feb 2006 11:24:50 -0800
Received: from dinghy.sail.spinnaker.de (dinghy.sail.spinnaker.de 
[192.168.42.17])
        by luv.spinnaker.de (Postfix) with ESMTP id 35B1B893F8;
        Sun,  5 Feb 2006 20:24:48 +0100 (CET)
Received: by dinghy.sail.spinnaker.de (Postfix, from userid 1000)
        id 0F39A263001; Sun,  5 Feb 2006 20:24:48 +0100 (CET)
Date: Sun, 5 Feb 2006 20:24:47 +0100
From: Roland Rosenfeld <[EMAIL PROTECTED]>
To: Debian Bug Tracking System <[EMAIL PROTECTED]>
Subject: htmldoc: segfault on creating pdf (on amd64)
Message-ID: <[EMAIL PROTECTED]>
Mime-Version: 1.0
Content-Type: multipart/mixed; boundary="sm4nu43k4a2Rpi4c"
Content-Disposition: inline
X-Reportbug-Version: 3.18
User-Agent: Mutt/1.5.11
Delivered-To: [EMAIL PROTECTED]
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
        (1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Level: 
X-Spam-Status: No, hits=-6.5 required=4.0 tests=BAYES_00,HAS_PACKAGE,
        HTML_MESSAGE autolearn=no version=2.60-bugs.debian.org_2005_01_02


--sm4nu43k4a2Rpi4c
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

Package: htmldoc
Version: 1.8.24-2
Severity: important
Tags: patch

I tried to compile the documentation of privoxy using htmldoc and had
to notice, that it runs into segmentation faults.  I reduced the html
file to a minimal one:

$ htmldoc -t pdf -f test.pdf test.html
PAGES: 3
Segmentation fault

$ cat test.html 
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2//EN">

<html>
<head>
  <title>baz</title>
</head>

<body>
  <h1>bar</h1>

  <ul>
    <li>foo</li>
  </ul>
</body>
</html>

When this happens I see the following message in the kernel log
(dmesg):
htmldoc[31826]: segfault at 000000fa00623260 rip 00002aaaabf59961 rsp 
00007fffff84efd0 error 4
htmldoc[32421]: segfault at 000000fa00622370 rip 00002aaaabf59961 rsp 
00007fffffdfbd80 error 4
htmldoc[32425]: segfault at 000000fa00622370 rip 00002aaaabf59961 rsp 
00007ffffff66440 error 4
(one line per htmldoc run).

The problem does not exist on a i386 sid system, but as you can see,
it happens on nearly every html file on amd64.

I just got the new upstream version 1.8.25 (compiles out of the box
with the debian 1.8.24-2 diff) and with this version all problems seem
to have gone away.

In the strace output I see, that the problem occurs while/after
reading Symbol.afm and in the changelog of 1.8.25 I found the
following entry:
      - HTMLDOC could crash when loading the Symbol.afm file
        (STR #93)
So I had a look at this bug report (http://www.htmldoc.org/str.php?L93)
and found a point to SVN version 1428, which solves this problem.

I extracted the patch from SVN 1428 and this one-line patch solves the
problem for me.

This is quite important to me, because htmldoc is a build dependency
of privoxy and if htmldoc runs into segmentation faults when compiling
the privoxy documentation, the privoxy packages are broken (at least
on amd64, but I fear that the same happens on other 64 bit
architectures as well).

If you aren't able to create a new package soon, please tell me, so I
can upload an NMU.

-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (500, 'testing'), (500, 'stable'), (50, 'unstable')
Architecture: amd64 (x86_64)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.14.3ro2
Locale: LANG=de_DE, LC_CTYPE=de_DE (charmap=ISO-8859-1)

Versions of packages htmldoc depends on:
ii  htmldoc-common           1.8.24-2        Common arch-independent files for 
ii  libc6                    2.3.5-8.1       GNU C Library: Shared libraries an
ii  libfltk1.1               1.1.6-10        Fast Light Toolkit shared librarie
ii  libjpeg62                6b-11           The Independent JPEG Group's JPEG 
ii  libpng12-0               1.2.8rel-5      PNG library - runtime
ii  libssl0.9.7              0.9.7g-5        SSL shared libraries
ii  libstdc++6               4.0.2-5         The GNU Standard C++ Library v3
ii  libx11-6                 6.8.2.dfsg.1-11 X Window System protocol client li
ii  libxext6                 6.8.2.dfsg.1-11 X Window System miscellaneous exte
ii  libxft2                  2.1.7-1         FreeType-based font drawing librar
ii  xlibs                    6.8.2.dfsg.1-11 X Window System client libraries m
ii  zlib1g                   1:1.2.3-9       compression library - runtime

htmldoc recommends no packages.

-- no debconf information

Tschoeeee

        Roland

-- 
 * [EMAIL PROTECTED] * http://www.spinnaker.de/ *

--sm4nu43k4a2Rpi4c
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="svn-v1428.diff"

Index: htmldoc/ps-pdf.cxx
===================================================================
--- htmldoc/ps-pdf.cxx  (Revision 1427)
+++ htmldoc/ps-pdf.cxx  (Revision 1428)
@@ -12387,7 +12387,7 @@
          if (sscanf(line, "%*s%d%*s%*s%d", &ch, &width) != 2)
            continue;
 
-         if (ch < 256)
+         if (ch >= 0 && ch < 256)
            widths[ch] = width;
        }
       }

--sm4nu43k4a2Rpi4c--


--- End Message ---
--- Begin Message ---
>From [EMAIL PROTECTED] Mon Feb 06 19:20:16 2006
Received: (at 351569-close) by bugs.debian.org; 7 Feb 2006 03:20:16 +0000
Return-path: <[EMAIL PROTECTED]>
Received: from katie by spohr.debian.org with local (Exim 4.50)
        id 1F6JLo-0007fO-Ei; Mon, 06 Feb 2006 19:17:08 -0800
From: Jeff Licquia <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
X-Katie: $Revision: 1.65 $
Subject: Bug#351569: fixed in htmldoc 1.8.25-1
Message-Id: <[EMAIL PROTECTED]>
Sender: Archive Administrator <[EMAIL PROTECTED]>
Date: Mon, 06 Feb 2006 19:17:08 -0800
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
        (1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Level: 
X-Spam-Status: No, hits=-6.0 required=4.0 tests=BAYES_00,HAS_BUG_NUMBER 
        autolearn=no version=2.60-bugs.debian.org_2005_01_02

Source: htmldoc
Source-Version: 1.8.25-1

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

htmldoc-common_1.8.25-1_all.deb
  to pool/main/h/htmldoc/htmldoc-common_1.8.25-1_all.deb
htmldoc_1.8.25-1.diff.gz
  to pool/main/h/htmldoc/htmldoc_1.8.25-1.diff.gz
htmldoc_1.8.25-1.dsc
  to pool/main/h/htmldoc/htmldoc_1.8.25-1.dsc
htmldoc_1.8.25-1_i386.deb
  to pool/main/h/htmldoc/htmldoc_1.8.25-1_i386.deb
htmldoc_1.8.25.orig.tar.gz
  to pool/main/h/htmldoc/htmldoc_1.8.25.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 [EMAIL PROTECTED],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Jeff Licquia <[EMAIL PROTECTED]> (supplier of updated htmldoc 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 [EMAIL PROTECTED])


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

Format: 1.7
Date: Mon,  6 Feb 2006 20:01:09 -0500
Source: htmldoc
Binary: htmldoc htmldoc-common
Architecture: source i386 all
Version: 1.8.25-1
Distribution: unstable
Urgency: low
Maintainer: Jeff Licquia <[EMAIL PROTECTED]>
Changed-By: Jeff Licquia <[EMAIL PROTECTED]>
Description: 
 htmldoc    - HTML processor that generates indexed HTML, PS, and PDF
 htmldoc-common - Common arch-independent files for htmldoc
Closes: 230980 346067 351569
Changes: 
 htmldoc (1.8.25-1) unstable; urgency=low
 .
   * New upstream version.  Closes: #346067.
   * Upstream fix for headers/footers.  Closes: #230980.
   * Upstream fix for 64-bit segfaults.  Closes: #351569.
Files: 
 3702ce8d425b4526c2deb47c98b04a71 642 web extra htmldoc_1.8.25-1.dsc
 0bc5dfc02dda8f778b488ae6abeee0d7 4454643 web extra htmldoc_1.8.25.orig.tar.gz
 e7edfee3fa7f26ec6ea20514279cb26f 4861 web extra htmldoc_1.8.25-1.diff.gz
 8d00e77ce8895cf9accb2619740f5e6a 4629706 web extra 
htmldoc-common_1.8.25-1_all.deb
 234558c62fbc3f076396c85480027d67 203270 web extra htmldoc_1.8.25-1_i386.deb

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

iD8DBQFD6AztYApVP/ZmyR0RAvUgAJ9IRyisvoP1UxBD2Bi40xNlzMdvwgCeKsRJ
lK2Bjqego1KKZbYy1Uh40WY=
=AQM8
-----END PGP SIGNATURE-----


--- End Message ---

Reply via email to