Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 139414 - poppler-bindings-0.5.3 fails tests
Summary: poppler-bindings-0.5.3 fails tests
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Printing Team
URL: https://bugs.freedesktop.org/show_bug...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-07-06 05:30 UTC by Jon Hood (RETIRED)
Modified: 2007-04-07 21:05 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
ebuild which uses the targz'ed tests file (poppler-bindings-0.5.3-r1.ebuild,1.73 KB, text/plain)
2006-08-30 16:03 UTC, Abraham Marin Perez
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jon Hood (RETIRED) gentoo-dev 2006-07-06 05:30:25 UTC
make[3]: Entering directory `/var/tmp/portage/poppler-bindings-0.5.3/work/poppler-0.5.3/qt4/tests'
********* Start testing of TestAttachments *********
Config: Using QTest library 4.1.4, Qt 4.1.4
PASS   : TestAttachments::initTestCase()
Error: Couldn't open file '../../../test/unittestcases/truetype.pdf'
/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't open file '../../../test/tests/image.pdf'
FAIL!  : TestFontsData::checkNoFonts() 'doc' returned FALSE. ()
   Loc: [check_fonts.cpp(20)]
Error: Couldn't open file '../../../test/tests/text.pdf'
FAIL!  : TestFontsData::checkType1() 'doc' returned FALSE. ()
   Loc: [check_fonts.cpp(32)]
Error: Couldn't open file '../../../test/tests/type3.pdf'
/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't open file '../../../test/unittestcases/doublepage.pdf'
FAIL!  : TestMetaData::checkStrings(Author) 'doc' returned FALSE. ()
   Loc: [check_metadata.cpp(44)]
Error: Couldn't open file '../../../test/unittestcases/doublepage.pdf'
/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't open file '../../../test/unittestcases/orientation.pdf'
FAIL!  : TestPermissions::permissions1() 'doc' 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't open file '../../../test/unittestcases/UseNone.pdf'
FAIL!  : TestPageMode::checkNone() 'doc' returned FALSE. ()
   Loc: [check_pagemode.cpp(21)]
Error: Couldn't open file '../../../test/unittestcases/FullScreen.pdf'
/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't open file '../../../test/unittestcases/UseNone.pdf'
FAIL!  : TestPageLayout::checkNone() 'doc' returned FALSE. ()
   Loc: [check_pagelayout.cpp(19)]
Error: Couldn't open file '../../../test/unittestcases/FullScreen.pdf'
/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="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O3 -pipe -fomit-frame-pointer -funroll-loops"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/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"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/eselect/compiler /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-march=athlon64 -O3 -pipe -fomit-frame-pointer -funroll-loops"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks metadata-transfer multilib-strict sandbox sfperms strict test"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="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"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Stuart Shelton 2006-07-13 08:22:47 UTC
... 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'
********* Start testing of TestAttachments *********
Config: Using QTest library 4.1.1, Qt 4.1.2
PASS   : TestAttachments::initTestCase()
Error: Couldn't open file '../../../test/unittestcases/truetype.pdf'
FAIL!  : TestAttachments::checkNoAttachments() 'doc' returned FALSE. ()
   Loc: [check_attachments.cpp(23)]
Error: Couldn't open file '../../../test/unittestcases/WithAttachments.pdf'
FAIL!  : TestAttachments::checkAttach1() 'doc' returned FALSE. ()
   Loc: [check_attachments.cpp(35)]
Error: Couldn't open file '../../../test/unittestcases/A6EmbeddedFiles.pdf'
FAIL!  : TestAttachments::checkAttach2() 'doc' returned FALSE. ()
   Loc: [check_attachments.cpp(76)]
Error: Couldn't open file '../../../test/unittestcases/shapes+attachments.pdf'
FAIL!  : TestAttachments::checkAttach3() 'doc' returned FALSE. ()
   Loc: [check_attachments.cpp(110)]
Error: Couldn't open file '../../../test/unittestcases/imageretrieve+attachment.pdf'
FAIL!  : TestAttachments::checkAttach4() 'doc' 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't open file '../../../test/tests/image.pdf'
*** 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't open file '../../../test/unittestcases/doublepage.pdf'
*** 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't open file '../../../test/unittestcases/orientation.pdf'
*** 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't open file '../../../test/unittestcases/UseNone.pdf'
/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't open file '../../../test/unittestcases/UseNone.pdf'
*** 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 :(
Comment 2 Kevin F. Quinn (RETIRED) gentoo-dev 2006-08-04 02:16:46 UTC
This is because the test files are not distributed with the poppler package.

I'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'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.
Comment 3 Abraham Marin Perez 2006-08-30 15:59:29 UTC
That did the trick for me. In order to help people until upstream release the new package with tests included, I'll attach a couple of files that will make life happier :-).
Comment 4 Abraham Marin Perez 2006-08-30 16:03:41 UTC
Created attachment 95517 [details]
ebuild which uses the targz'ed tests file

Put this in your portage overlay under app-text/poppler-bindings
Comment 5 Abraham Marin Perez 2006-08-30 16:06:18 UTC
I couldn't attach poppler-test-0.5.3.tar.gz due to it being too large; still it'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.
Comment 6 Ravi Pinjala 2006-09-26 13:14:01 UTC
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. 
Comment 7 Abraham Marin Perez 2006-09-27 00:51:13 UTC
(In reply to comment #6)
> 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. 
> 

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's opinion about that?
Comment 8 Stefan Schweizer (RETIRED) gentoo-dev 2007-04-07 21:05:10 UTC
thank you very much everyone I just committed this.