Debian Bug report logs - #726069
libhpdf-2.2.1: fails to support large fonts

version graph

Package: libhpdf-2.2.1; Maintainer for libhpdf-2.2.1 is Johan Van de Wauw <johan.vandewauw@gmail.com>; Source for libhpdf-2.2.1 is src:libharu.

Reported by: "Alan W. Irwin" <irwin@beluga.phys.uvic.ca>

Date: Fri, 11 Oct 2013 23:21:02 UTC

Severity: normal

Tags: patch

Found in version libharu/2.2.1-1

Reply or subscribe to this bug.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Johan Van de Wauw <johan.vandewauw@gmail.com>:
Bug#726069; Package libhpdf-2.2.1. (Fri, 11 Oct 2013 23:21:06 GMT) Full text and rfc822 format available.

Acknowledgement sent to "Alan W. Irwin" <irwin@beluga.phys.uvic.ca>:
New Bug report received and forwarded. Copy sent to Johan Van de Wauw <johan.vandewauw@gmail.com>. (Fri, 11 Oct 2013 23:21:06 GMT) Full text and rfc822 format available.

Message #5 received at submit@bugs.debian.org (full text, mbox):

From: "Alan W. Irwin" <irwin@beluga.phys.uvic.ca>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: libhpdf-2.2.1: fails to support large fonts
Date: Fri, 11 Oct 2013 16:16:27 -0700
[Message part 1 (text/plain, inline)]
Package: libhpdf-2.2.1
Version: 2.2.1-1
Severity: normal
Tags: patch

PLplot implements a plot device for creating pdf plots that depends on
libhpdf, and when that pdf plot device is linked to the Debian wheezy
version of libhpdf, all our standard examples work fine except for one
with large fonts (our standard example 24) which segfaults.  

This problem also occurred for a private build of an older version
(2.1.0) of libhpdf.  In that case the attached 2-line patch solved the
issue.

I did try the obvious step of building the Debian packages for libhpdf
using "apt-src build libhpdf".  All seemed well with that build, but
when I installed the corresponding debs, none of the critical symbols
for the library as revealed by 

objdump --dynamic-syms /usr/lib/libhpdf.so

were available, and as a result all PLplot tests with the
corresponding plot device failed.  Is there something special
I have to do to get "apt-src build" to work for this package?

For this reason, I was unable to test the attached patch for the
Debian source of version 2.2.1 of this library, but I am virtually
positive this patch will work because it is only a two-line patch that
does apply cleanly to 2.2.1.

-- System Information:
Debian Release: 7.1
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.2.0-4-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_CA.UTF-8, LC_CTYPE=en_CA.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages libhpdf-2.2.1 depends on:
ii  libc6       2.13-38
ii  libgcc1     1:4.7.2-5
ii  libpng12-0  1.2.49-1
ii  zlib1g      1:1.2.7.dfsg-13

libhpdf-2.2.1 recommends no packages.

libhpdf-2.2.1 suggests no packages.

-- no debconf information
[libhpdf.patch (text/x-diff, attachment)]

Information forwarded to debian-bugs-dist@lists.debian.org, Johan Van de Wauw <johan.vandewauw@gmail.com>:
Bug#726069; Package libhpdf-2.2.1. (Thu, 17 Oct 2013 05:33:05 GMT) Full text and rfc822 format available.

Acknowledgement sent to "Alan W. Irwin" <irwin@beluga.phys.uvic.ca>:
Extra info received and forwarded to list. Copy sent to Johan Van de Wauw <johan.vandewauw@gmail.com>. (Thu, 17 Oct 2013 05:33:05 GMT) Full text and rfc822 format available.

Message #10 received at 726069@bugs.debian.org (full text, mbox):

From: "Alan W. Irwin" <irwin@beluga.phys.uvic.ca>
To: 726069@bugs.debian.org
Subject: Re: libhpdf-2.2.1: fails to support large fonts
Date: Wed, 16 Oct 2013 22:31:25 -0700 (PDT)
On 2013-10-11 16:16-0700 Alan W. Irwin wrote:

> I did try the obvious step of building the Debian packages for libhpdf
> using "apt-src build libhpdf".  All seemed well with that build, but
> when I installed the corresponding debs, none of the critical symbols
> for the library as revealed by
>
> objdump --dynamic-syms /usr/lib/libhpdf.so
>
> were available, and as a result all PLplot tests with the
> corresponding plot device failed.  Is there something special
> I have to do to get "apt-src build" to work for this package?
>
> For this reason, I was unable to test the attached patch for the
> Debian source of version 2.2.1 of this library, but I am virtually
> positive this patch will work because it is only a two-line patch that
> does apply cleanly to 2.2.1.

I have now figured out the source of these unexpected objdump results.
Those were an artifact of having

CFLAGS=-O3 -fvisibility=hidden

defined as an environment variable for the PLplot build I was
doing at the same time.  Sorry this issue obscured the simple
issue which I now repeat for clarity.

The patch I attached to the original report applies cleanly to the
Debian version of the libharu (a.k.a., libhpdf) source code, the
apt-src build of that patched result proceeds cleanly, and when the
resulting debs are installed, they produce

-rw-r--r-- 1 root root 747408 Oct 16 21:23 /usr/lib/libhpdf-2.2.1.so
lrwxrwxrwx 1 root root     16 Oct 16 21:23 /usr/lib/libhpdf.so ->
libhpdf-2.2.1.so

The PLplot build of our pdf device against the above patched library
proceeds without issues as does all our tests of that device (which is
linked with the above device).  In particular the segfault that
appeared for our example 24 in the unpatched case is now gone, and
valgrind shows no memory management errors for that example now.

Therefore, please apply this patch when you create debs for libhpdf
from now on.

Alan
__________________________
Alan W. Irwin

Astronomical research affiliation with Department of Physics and Astronomy,
University of Victoria (astrowww.phys.uvic.ca).

Programming affiliations with the FreeEOS equation-of-state
implementation for stellar interiors (freeeos.sf.net); the Time
Ephemerides project (timeephem.sf.net); PLplot scientific plotting
software package (plplot.sf.net); the libLASi project
(unifont.org/lasi); the Loads of Linux Links project (loll.sf.net);
and the Linux Brochure Project (lbproject.sf.net).
__________________________

Linux-powered Science
__________________________



Information forwarded to debian-bugs-dist@lists.debian.org:
Bug#726069; Package libhpdf-2.2.1. (Thu, 17 Oct 2013 07:51:11 GMT) Full text and rfc822 format available.

Acknowledgement sent to Johan Van de Wauw <johan.vandewauw@gmail.com>:
Extra info received and forwarded to list. (Thu, 17 Oct 2013 07:51:11 GMT) Full text and rfc822 format available.

Message #15 received at 726069@bugs.debian.org (full text, mbox):

From: Johan Van de Wauw <johan.vandewauw@gmail.com>
To: "Alan W. Irwin" <irwin@beluga.phys.uvic.ca>, 726069@bugs.debian.org
Subject: Re: Bug#726069: libhpdf-2.2.1: fails to support large fonts
Date: Thu, 17 Oct 2013 09:29:24 +0200
Alan,

I will add the patch and create a new package.
Note that I sent the patch to libharu upstream and they included it.
So the next version will no longer require the patch.
 https://github.com/libharu/libharu/commit/e6fae213911c28bc00bb788f3d5a42913e37fbbe

Johan

On Thu, Oct 17, 2013 at 7:31 AM, Alan W. Irwin
<irwin@beluga.phys.uvic.ca> wrote:
> On 2013-10-11 16:16-0700 Alan W. Irwin wrote:
>
>> I did try the obvious step of building the Debian packages for libhpdf
>> using "apt-src build libhpdf".  All seemed well with that build, but
>> when I installed the corresponding debs, none of the critical symbols
>> for the library as revealed by
>>
>> objdump --dynamic-syms /usr/lib/libhpdf.so
>>
>> were available, and as a result all PLplot tests with the
>> corresponding plot device failed.  Is there something special
>> I have to do to get "apt-src build" to work for this package?
>>
>> For this reason, I was unable to test the attached patch for the
>> Debian source of version 2.2.1 of this library, but I am virtually
>> positive this patch will work because it is only a two-line patch that
>> does apply cleanly to 2.2.1.
>
>
> I have now figured out the source of these unexpected objdump results.
> Those were an artifact of having
>
> CFLAGS=-O3 -fvisibility=hidden
>
> defined as an environment variable for the PLplot build I was
> doing at the same time.  Sorry this issue obscured the simple
> issue which I now repeat for clarity.
>
> The patch I attached to the original report applies cleanly to the
> Debian version of the libharu (a.k.a., libhpdf) source code, the
> apt-src build of that patched result proceeds cleanly, and when the
> resulting debs are installed, they produce
>
> -rw-r--r-- 1 root root 747408 Oct 16 21:23 /usr/lib/libhpdf-2.2.1.so
> lrwxrwxrwx 1 root root     16 Oct 16 21:23 /usr/lib/libhpdf.so ->
> libhpdf-2.2.1.so
>
> The PLplot build of our pdf device against the above patched library
> proceeds without issues as does all our tests of that device (which is
> linked with the above device).  In particular the segfault that
> appeared for our example 24 in the unpatched case is now gone, and
> valgrind shows no memory management errors for that example now.
>
> Therefore, please apply this patch when you create debs for libhpdf
> from now on.
>
> Alan
> __________________________
> Alan W. Irwin
>
> Astronomical research affiliation with Department of Physics and Astronomy,
> University of Victoria (astrowww.phys.uvic.ca).
>
> Programming affiliations with the FreeEOS equation-of-state
> implementation for stellar interiors (freeeos.sf.net); the Time
> Ephemerides project (timeephem.sf.net); PLplot scientific plotting
> software package (plplot.sf.net); the libLASi project
> (unifont.org/lasi); the Loads of Linux Links project (loll.sf.net);
> and the Linux Brochure Project (lbproject.sf.net).
> __________________________
>
> Linux-powered Science
> __________________________



Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Fri Apr 25 09:22:23 2014; Machine Name: buxtehude.debian.org

Debian Bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.