<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>139414</bug_id>
          
          <creation_ts>2006-07-06 05:30 0000</creation_ts>
          <short_desc>poppler-bindings-0.5.3 fails tests</short_desc>
          <delta_ts>2007-04-07 21:05:10 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Ebuilds</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          <bug_file_loc>https://bugs.freedesktop.org/show_bug.cgi?id=7765</bug_file_loc>
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>squinky86@gentoo.org</reporter>
          <assigned_to>printing@gentoo.org</assigned_to>
          <cc>abraham@alumni.uv.es</cc>
    
    <cc>coldwind@gentoo.org</cc>
    
    <cc>ravi@p-static.net</cc>
    
    <cc>sascha-gentoo-bugzilla@silbe.org</cc>
    
    <cc>tcunha@gentoo.org</cc>

      

      
          <long_desc isprivate="0">
            <who>squinky86@gentoo.org</who>
            <bug_when>2006-07-06 05:30:25 0000</bug_when>
            <thetext>make[3]: Entering directory `/var/tmp/portage/poppler-bindings-0.5.3/work/poppler-0.5.3/qt4/tests&apos;
********* Start testing of TestAttachments *********
Config: Using QTest library 4.1.4, Qt 4.1.4
PASS   : TestAttachments::initTestCase()
Error: Couldn&apos;t open file &apos;../../../test/unittestcases/truetype.pdf&apos;
/bin/sh: line 4: 29530 Segmentation fault      ${dir}$tst
FAIL: check_attachments
********* Start testing of TestDateConv *********
Config: Using QTest library 4.1.4, Qt 4.1.4
PASS   : TestDateConv::initTestCase()
PASS   : TestDateConv::checkDates()
PASS   : TestDateConv::cleanupTestCase()
Totals: 3 passed, 0 failed, 0 skipped
********* Finished testing of TestDateConv *********
PASS: check_dateConversion
********* Start testing of TestFontsData *********
Config: Using QTest library 4.1.4, Qt 4.1.4
PASS   : TestFontsData::initTestCase()
Error: Couldn&apos;t open file &apos;../../../test/tests/image.pdf&apos;
FAIL!  : TestFontsData::checkNoFonts() &apos;doc&apos; returned FALSE. ()
   Loc: [check_fonts.cpp(20)]
Error: Couldn&apos;t open file &apos;../../../test/tests/text.pdf&apos;
FAIL!  : TestFontsData::checkType1() &apos;doc&apos; returned FALSE. ()
   Loc: [check_fonts.cpp(32)]
Error: Couldn&apos;t open file &apos;../../../test/tests/type3.pdf&apos;
/bin/sh: line 4: 29575 Segmentation fault      ${dir}$tst
FAIL: check_fonts
********* Start testing of TestMetaData *********
Config: Using QTest library 4.1.4, Qt 4.1.4
PASS   : TestMetaData::initTestCase()
Error: Couldn&apos;t open file &apos;../../../test/unittestcases/doublepage.pdf&apos;
FAIL!  : TestMetaData::checkStrings(Author) &apos;doc&apos; returned FALSE. ()
   Loc: [check_metadata.cpp(44)]
Error: Couldn&apos;t open file &apos;../../../test/unittestcases/doublepage.pdf&apos;
/bin/sh: line 4: 29598 Segmentation fault      ${dir}$tst
FAIL: check_metadata
********* Start testing of TestPermissions *********
Config: Using QTest library 4.1.4, Qt 4.1.4
PASS   : TestPermissions::initTestCase()
Error: Couldn&apos;t open file &apos;../../../test/unittestcases/orientation.pdf&apos;
FAIL!  : TestPermissions::permissions1() &apos;doc&apos; returned FALSE. ()
   Loc: [check_permissions.cpp(17)]
PASS   : TestPermissions::cleanupTestCase()
Totals: 2 passed, 1 failed, 0 skipped
********* Finished testing of TestPermissions *********
FAIL: check_permissions
********* Start testing of TestPageMode *********
Config: Using QTest library 4.1.4, Qt 4.1.4
PASS   : TestPageMode::initTestCase()
Error: Couldn&apos;t open file &apos;../../../test/unittestcases/UseNone.pdf&apos;
FAIL!  : TestPageMode::checkNone() &apos;doc&apos; returned FALSE. ()
   Loc: [check_pagemode.cpp(21)]
Error: Couldn&apos;t open file &apos;../../../test/unittestcases/FullScreen.pdf&apos;
/bin/sh: line 4: 29644 Segmentation fault      ${dir}$tst
FAIL: check_pagemode
********* Start testing of TestPageLayout *********
Config: Using QTest library 4.1.4, Qt 4.1.4
PASS   : TestPageLayout::initTestCase()
Error: Couldn&apos;t open file &apos;../../../test/unittestcases/UseNone.pdf&apos;
FAIL!  : TestPageLayout::checkNone() &apos;doc&apos; returned FALSE. ()
   Loc: [check_pagelayout.cpp(19)]
Error: Couldn&apos;t open file &apos;../../../test/unittestcases/FullScreen.pdf&apos;
/bin/sh: line 4: 29667 Segmentation fault      ${dir}$tst
FAIL: check_pagelayout
===================
6 of 7 tests failed
===================

# emerge --info
Portage 2.1.1_pre2-r4 (default-linux/amd64/2005.1, gcc-4.1.1/amd64-vanilla, glibc-2.4-r3, 2.6.15-gentoo-r5 x86_64)
=================================================================
System uname: 2.6.15-gentoo-r5 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 4200+
Gentoo Base System version 1.12.1
dev-lang/python:     2.3.5-r2, 2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.60
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.17
sys-devel/gcc-config: 2.0.0_rc1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.16
ACCEPT_KEYWORDS=&quot;amd64 ~amd64&quot;
AUTOCLEAN=&quot;yes&quot;
CBUILD=&quot;x86_64-pc-linux-gnu&quot;
CFLAGS=&quot;-march=athlon64 -O3 -pipe -fomit-frame-pointer -funroll-loops&quot;
CHOST=&quot;x86_64-pc-linux-gnu&quot;
CONFIG_PROTECT=&quot;/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/lib64/mozilla/defaults/pref /usr/share/X11/xkb /usr/share/config&quot;
CONFIG_PROTECT_MASK=&quot;/etc/env.d /etc/env.d/java/ /etc/eselect/compiler /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c&quot;
CXXFLAGS=&quot;-march=athlon64 -O3 -pipe -fomit-frame-pointer -funroll-loops&quot;
DISTDIR=&quot;/usr/portage/distfiles&quot;
FEATURES=&quot;autoconfig ccache distlocks metadata-transfer multilib-strict sandbox sfperms strict test&quot;
GENTOO_MIRRORS=&quot;http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo&quot;
MAKEOPTS=&quot;-j4&quot;
PKGDIR=&quot;/usr/portage/packages&quot;
PORTAGE_RSYNC_OPTS=&quot;--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=&apos;/distfiles&apos; --exclude=&apos;/local&apos; --exclude=&apos;/packages&apos;&quot;
PORTAGE_TMPDIR=&quot;/var/tmp&quot;
PORTDIR=&quot;/usr/portage&quot;
PORTDIR_OVERLAY=&quot;/usr/local/portage&quot;
SYNC=&quot;rsync://rsync.namerica.gentoo.org/gentoo-portage&quot;
USE=&quot;amd64 X alsa apache2 arts avi berkdb bitmap-fonts browserplugin bzip2 cdinstall cli crypt css cups curl curlwrappers dba dlloader dri dvd dvdr dvdread eds emboss encode ffmpeg firefox flash foomaticdb fortran ftp gd gif glibc-omitfp glitz gnome gpm gstreamer gtk gtk2 imagemagick imlib ipv6 isdnlog java jpeg kde kerberos ldap lucene lzw lzw-tiff mad mjpeg mp3 mpeg mysql ncurses nls nptl nptlonly nsplugin nvidia ogg opengl pam pascal pcntl pcre pdflib perl php png posix postgres ppds pppd python qt qt3 qt4 quicktime readline reflection ruby samba sdl session sox spell spl sql ssl subversion tcpd threads tiff truetype truetype-fonts type1-fonts unicode usb userlocales vcd vorbis wmf xml xml2 xmlrpc xmms xorg xpm xv xvid zip zlib elibc_glibc input_devices_keyboard input_devices_mouse input_devices_evdev kernel_linux userland_GNU video_cards_nvidia video_cards_nv&quot;
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>srcshelton@gmail.com</who>
            <bug_when>2006-07-13 08:22:47 0000</bug_when>
            <thetext>
... even worse, I get:

make  check-TESTS
make[3]: Entering directory `/var/tmp/portage/poppler-bindings-0.5.3/work/poppler-0.5.3/qt4/tests&apos;
********* Start testing of TestAttachments *********
Config: Using QTest library 4.1.1, Qt 4.1.2
PASS   : TestAttachments::initTestCase()
Error: Couldn&apos;t open file &apos;../../../test/unittestcases/truetype.pdf&apos;
FAIL!  : TestAttachments::checkNoAttachments() &apos;doc&apos; returned FALSE. ()
   Loc: [check_attachments.cpp(23)]
Error: Couldn&apos;t open file &apos;../../../test/unittestcases/WithAttachments.pdf&apos;
FAIL!  : TestAttachments::checkAttach1() &apos;doc&apos; returned FALSE. ()
   Loc: [check_attachments.cpp(35)]
Error: Couldn&apos;t open file &apos;../../../test/unittestcases/A6EmbeddedFiles.pdf&apos;
FAIL!  : TestAttachments::checkAttach2() &apos;doc&apos; returned FALSE. ()
   Loc: [check_attachments.cpp(76)]
Error: Couldn&apos;t open file &apos;../../../test/unittestcases/shapes+attachments.pdf&apos;
FAIL!  : TestAttachments::checkAttach3() &apos;doc&apos; returned FALSE. ()
   Loc: [check_attachments.cpp(110)]
Error: Couldn&apos;t open file &apos;../../../test/unittestcases/imageretrieve+attachment.pdf&apos;
FAIL!  : TestAttachments::checkAttach4() &apos;doc&apos; returned FALSE. ()
   Loc: [check_attachments.cpp(132)]
PASS   : TestAttachments::cleanupTestCase()
Totals: 2 passed, 5 failed, 0 skipped
********* Finished testing of TestAttachments *********
FAIL: check_attachments
********* Start testing of TestDateConv *********
Config: Using QTest library 4.1.1, Qt 4.1.2
PASS   : TestDateConv::initTestCase()
PASS   : TestDateConv::checkDates()
PASS   : TestDateConv::cleanupTestCase()
Totals: 3 passed, 0 failed, 0 skipped
********* Finished testing of TestDateConv *********
PASS: check_dateConversion
********* Start testing of TestFontsData *********
Config: Using QTest library 4.1.1, Qt 4.1.2
PASS   : TestFontsData::initTestCase()
Error: Couldn&apos;t open file &apos;../../../test/tests/image.pdf&apos;
*** glibc detected *** free(): invalid pointer: 0x0804e338 ***
/bin/sh: line 1:  5516 Aborted                 ${dir}$tst
FAIL: check_fonts
********* Start testing of TestMetaData *********
Config: Using QTest library 4.1.1, Qt 4.1.2
PASS   : TestMetaData::initTestCase()
Error: Couldn&apos;t open file &apos;../../../test/unittestcases/doublepage.pdf&apos;
*** glibc detected *** double free or corruption (out): 0x080518a0 ***
/bin/sh: line 1:  5539 Aborted                 ${dir}$tst
FAIL: check_metadata
********* Start testing of TestPermissions *********
Config: Using QTest library 4.1.1, Qt 4.1.2
PASS   : TestPermissions::initTestCase()
Error: Couldn&apos;t open file &apos;../../../test/unittestcases/orientation.pdf&apos;
*** glibc detected *** double free or corruption (out): 0x0804ae50 ***
/bin/sh: line 1:  5563 Aborted                 ${dir}$tst
FAIL: check_permissions
********* Start testing of TestPageMode *********
Config: Using QTest library 4.1.1, Qt 4.1.2
PASS   : TestPageMode::initTestCase()
Error: Couldn&apos;t open file &apos;../../../test/unittestcases/UseNone.pdf&apos;
/bin/sh: line 1:  5586 Segmentation fault      ${dir}$tst
FAIL: check_pagemode
********* Start testing of TestPageLayout *********
Config: Using QTest library 4.1.1, Qt 4.1.2
PASS   : TestPageLayout::initTestCase()
Error: Couldn&apos;t open file &apos;../../../test/unittestcases/UseNone.pdf&apos;
*** glibc detected *** free(): invalid pointer: 0x0804b278 ***
/bin/sh: line 1:  5609 Aborted                 ${dir}$tst
FAIL: check_pagelayout
===================
6 of 7 tests failed


... note the libc double free/invalid pointer errors :(</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>kevquinn@gentoo.org</who>
            <bug_when>2006-08-04 02:16:46 0000</bug_when>
            <thetext>This is because the test files are not distributed with the poppler package.

I&apos;ve filed a bug upstream (see URL field) to ask them to package the test files as well as the source tarball.


I retrieved the current test module from freedesktop.org CVS (unfortunately the test module isn&apos;t tagged):

cvs -d :pserver:anoncvs@cvs.freedesktop.org:/cvs/poppler login
cvs -d :pserver:anoncvs@cvs.freedesktop.org:/cvs/poppler co test
tar czf poppler-test-0.5.3.tar.gz

then copied that file to distfiles, and added it to SRC_URI in the poppler-bindings ebuild; the tests all passed.
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>abraham@alumni.uv.es</who>
            <bug_when>2006-08-30 15:59:29 0000</bug_when>
            <thetext>That did the trick for me. In order to help people until upstream release the new package with tests included, I&apos;ll attach a couple of files that will make life happier :-).</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>abraham@alumni.uv.es</who>
            <bug_when>2006-08-30 16:03:41 0000</bug_when>
            <thetext>Created an attachment (id=95517)
ebuild which uses the targz&apos;ed tests file

Put this in your portage overlay under app-text/poppler-bindings
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>abraham@alumni.uv.es</who>
            <bug_when>2006-08-30 16:06:18 0000</bug_when>
            <thetext>I couldn&apos;t attach poppler-test-0.5.3.tar.gz due to it being too large; still it&apos;ll be available for some time at:

http://mural.uv.es/abraham/poppler-test-0.5.3.tar.gz

put it in your DISTFILES and enjoy.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>ravi@p-static.net</who>
            <bug_when>2006-09-26 13:14:01 0000</bug_when>
            <thetext>poppler-bindings-0.5.4 fails tests here with the same error, but adding poppler-test-0.5.3.tar.gz to SRC_URI works in this version as well. </thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>abraham@alumni.uv.es</who>
            <bug_when>2006-09-27 00:51:13 0000</bug_when>
            <thetext>(In reply to comment #6)
&gt; poppler-bindings-0.5.4 fails tests here with the same error, but adding
&gt; poppler-test-0.5.3.tar.gz to SRC_URI works in this version as well. 
&gt; 

Maybe poppler-test could be added to Gentoo mirrors and downloaded as part of the package (changing SRC_URI), at least as a workaround until upstream fixes the official release, any dev&apos;s opinion about that?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>genstef@gentoo.org</who>
            <bug_when>2007-04-07 21:05:10 0000</bug_when>
            <thetext>thank you very much everyone I just committed this.</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>95517</attachid>
            <date>2006-08-30 16:03 0000</date>
            <desc>ebuild which uses the targz&apos;ed tests file</desc>
            <filename>poppler-bindings-0.5.3-r1.ebuild</filename>
            <type>text/plain</type>
            <data encoding="base64">IyBDb3B5cmlnaHQgMTk5OS0yMDA2IEdlbnRvbyBGb3VuZGF0aW9uCiMgRGlzdHJpYnV0ZWQgdW5k
ZXIgdGhlIHRlcm1zIG9mIHRoZSBHTlUgR2VuZXJhbCBQdWJsaWMgTGljZW5zZSB2MgojICRIZWFk
ZXI6IC92YXIvY3Zzcm9vdC9nZW50b28teDg2L2FwcC10ZXh0L3BvcHBsZXItYmluZGluZ3MvcG9w
cGxlci1iaW5kaW5ncy0wLjUuMy5lYnVpbGQsdiAxLjEzIDIwMDYvMDgvMTYgMTQ6NTY6MDUgY29y
c2FpciBFeHAgJAoKaW5oZXJpdCBhdXRvdG9vbHMgZXV0aWxzIG11bHRpbGliCgpNWV9QPSR7UC8t
YmluZGluZ3MvfQpERVNDUklQVElPTj0iUG9wcGxlciBiaW5kaW5ncyBhcmUgcmVuZGVyaW5nIGJp
bmRpbmdzIGZvciBHVUkgdG9vbGtpdHMgZm9yIHBvcHBsZXIiCkhPTUVQQUdFPSJodHRwOi8vcG9w
cGxlci5mcmVlZGVza3RvcC5vcmciClNSQ19VUkk9Imh0dHA6Ly9wb3BwbGVyLmZyZWVkZXNrdG9w
Lm9yZy8ke01ZX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