Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 482534 - <=app-i18n/enca-1.14 fails tests
Summary: <=app-i18n/enca-1.14 fails tests
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Coacher
URL:
Whiteboard:
Keywords: InVCS, TESTFAILURE
: 511908 (view as bug list)
Depends on: 594442
Blocks:
  Show dependency tree
 
Reported: 2013-08-26 11:33 UTC by Patrick Lauer
Modified: 2017-02-03 21:05 UTC (History)
7 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Patrick Lauer gentoo-dev 2013-08-26 11:33:39 UTC
make[3]: Entering directory `/var/tmp/portage/app-i18n/enca-1.14/work/enca-1.14_build/test'
PASS: ./test-long-texts.sh
PASS: ./test-convlist.sh
PASS: ./test-lists.sh
PASS: ./test-guess-short.sh
PASS: ./test-guess-utf8.sh
PASS: ./test-aliases.sh
PASS: ./test-empty.sh
PASS: ./test-pP.sh
PASS: ./test-guess-stdin.sh
PASS: ./test-errors.sh
PASS: ./test-ENCAOPT.sh
PASS: ./test-default-cs.sh
PASS: ./test-external.sh
PASS: ./test-iconv.sh
PASS: ./test-recode.sh
FAIL: ./test-convert-filter.sh
FAIL: ./test-convert-64.sh
make[4]: Entering directory `/var/tmp/portage/app-i18n/enca-1.14/work/enca-1.14_build/test'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/var/tmp/portage/app-i18n/enca-1.14/work/enca-1.14_build/test'
============================================================================
Testsuite summary for Enca 1.14
============================================================================
# TOTAL: 17
# PASS:  15
# SKIP:  0
# XFAIL: 0
# FAIL:  2
# XPASS: 0
# ERROR: 0
============================================================================
See test/test-suite.log
Please report to https://bugs.cihar.com/
============================================================================
make[3]: *** [test-suite.log] Error 1
make[3]: Leaving directory `/var/tmp/portage/app-i18n/enca-1.14/work/enca-1.14_build/test'
make[2]: *** [check-TESTS] Error 2
make[2]: Leaving directory `/var/tmp/portage/app-i18n/enca-1.14/work/enca-1.14_build/test'
make[1]: *** [check-am] Error 2
make[1]: Leaving directory `/var/tmp/portage/app-i18n/enca-1.14/work/enca-1.14_build/test'
make: *** [check-recursive] Error 1
 * ERROR: app-i18n/enca-1.14::gentoo failed (test phase):
 *   emake failed

====================================
   Enca 1.14: test/test-suite.log
====================================

# TOTAL: 17
# PASS:  15
# SKIP:  0
# XFAIL: 0
# FAIL:  2
# XPASS: 0
# ERROR: 0

.. contents:: :depth: 2

FAIL: ./test-convert-64.sh
==========================

mv: cannot move ‘test.tmp’ to ‘be-big.cp1251’: No such file or directory
Conversion be: koi8uni -> cp1251 failed.
Conversion bg: ibm855 -> cp1251 failed.
mv: cannot stat ‘test.tmp’: No such file or directory
mv: cannot move ‘test.tmp’ to ‘cs-big.keybcs2’: No such file or directory
mv: cannot move ‘test.tmp’ to ‘cs-big.keybcs2’: No such file or directory
mv: cannot move ‘test.tmp’ to ‘cs-big.keybcs2’: No such file or directory
Conversion cs: keybcs2 -> ibm852 failed.
mv: cannot stat ‘test.tmp’: No such file or directory
Conversion et: iso885913 -> baltic failed.
mv: cannot stat ‘test.tmp’: No such file or directory
cat: hr-big.ibm852: No such file or directory
cat: hr-big.ibm852: No such file or directory
cat: hr-big.ibm852: No such file or directory
cat: hr-big.ibm852: No such file or directory
Conversion hr: ibm852 -> cp1250 failed.

FAIL: ./test-convert-filter.sh
==============================

mv: cannot stat ‘test.tmp’: No such file or directory
mv: cannot stat ‘test.tmp’: No such file or directory
Conversion be: koi8uni -> cp1251 failed.
mv: cannot stat ‘test.tmp’: No such file or directory
mv: cannot move ‘test.tmp’ to ‘bg-big.cp1251’: No such file or directory
Conversion bg: ibm855 -> cp1251 failed.
mv: cannot stat ‘test.tmp’: No such file or directory
mv: cannot stat ‘test.tmp’: No such file or directory
Conversion cs: keybcs2 -> ibm852 failed.

Portage 2.2.0 (default/linux/amd64/13.0/desktop/kde, gcc-4.7.3, glibc-2.17, 3.10.7-gentoo x86_64)
=================================================================
System uname: Linux-3.10.7-gentoo-x86_64-AMD_FX-tm-8350_Eight-Core_Processor-with-gentoo-2.2
KiB Mem:    32922288 total,   2228072 free
KiB Swap:    8388604 total,   8388476 free
Timestamp of tree: Unknown
ld GNU ld (GNU Binutils) 2.23.2
app-shells/bash:          4.2_p45
dev-lang/python:          2.7.5-r1, 3.2.5-r1, 3.3.2-r1
dev-util/cmake:           2.8.11.1
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.12.6, 1.13.4, 1.14
sys-devel/binutils:       2.23.2
sys-devel/gcc:            4.7.3
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.10 (virtual/os-headers)
sys-libs/glibc:           2.17
Repositories: gentoo x-sunrise
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/polkit-1/actions"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs buildpkg config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict test unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/sunrise"
USE="X a52 aac acl acpi alisp alsa amd64 aria assistant berkdb bluetooth branding bzip2 cairo cdda cdr cgi cli compat consolekit corefonts cracklib crypt cups cxx dbus declarative dri dts dvd dvdr emacs emboss encode examples exif fam firefox flac fontconfig fortran gcj gd gdbm geos gif gpm gtk iconv icu ipv6 ithreads jpeg kde kdrive kipi lcms ldap libnotify mad minizip mmx mng modules mp3 mp4 mpeg mssql mudflap multilib mysql ncurses nls nptl objc ocaml ogg opengl openmp pam pango pcre pdf perl plasma png policykit ppds pyqt4 python qt3support qt4 readline script sdl semantic-desktop session soundex spell sqlite sse sse2 ssl startup-notification svg tcpd threads tiff tk truetype udev udisks unicode upower usb vorbis wxwidgets x264 xa xattr xcb xcomposite xinerama xml xscreensaver xv xvid zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="dummy fbdev glint intel mach64 nouveau nv r128 radeon savage sis tdfx trident v4l vesa via" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, SYNC, USE_PYTHON
Comment 1 Nikoli 2013-11-02 15:22:36 UTC
Same problem with app-i18n/enca-1.13-r3
Comment 2 Paolo Pedroni 2014-03-18 10:08:35 UTC
Same problem with app-i18n/enca-1.14-r1
Comment 3 Tom Wijsman (TomWij) (RETIRED) gentoo-dev 2014-06-01 17:33:54 UTC
*** Bug 511908 has been marked as a duplicate of this bug. ***
Comment 4 Marien Zwart (RETIRED) gentoo-dev 2014-07-26 03:28:11 UTC
I might be running into this. Could someone affected by this try with MAKEOPTS=-j1? I haven't been able to reproduce this with MAKEOPTS=-j1 set yet, and it looks like test-convert-filter.sh and test-convert-64.sh might stomp on each other's temporary files if automake runs them in parallel.

I can't reproduce this by running the tests by hand yet (just extracting enca and running ./configure && make -j8 && make -j8 check), but the ebuild reruns the autotools and it looks like newer automake runs those tests in parallel while the version enca was built with does not.
Comment 5 Paolo Pedroni 2014-07-26 08:30:27 UTC
(In reply to Marien Zwart from comment #4)
> I might be running into this. Could someone affected by this try with
> MAKEOPTS=-j1? I haven't been able to reproduce this with MAKEOPTS=-j1 set
> yet, and it looks like test-convert-filter.sh and test-convert-64.sh might
> stomp on each other's temporary files if automake runs them in parallel.
> 
> I can't reproduce this by running the tests by hand yet (just extracting
> enca and running ./configure && make -j8 && make -j8 check), but the ebuild
> reruns the autotools and it looks like newer automake runs those tests in
> parallel while the version enca was built with does not.

I confirm this is the case. With FEATURES=-distcc MAKEOPTS=-j1 it works fine. Is there a way to force it for tests only.
Comment 6 Fabio Scaccabarozzi 2014-08-18 16:09:45 UTC
I can confirm that the issue does NOT show with -j1, but DOES show consistently with any number of jobs greater than 1.
Marien, I think you are correct about the tests stomping on each other (in fact, test-convert-64.sh and test-convert-filter.sh use the very same temporary file, test.tmp).
In the worst case I've seen (while package testing for clang 3.4.2) an infinite feed-read-feed loop gets spawned, where the tests clobber each other and make the underlying utils (namely, cat) effectively generate a memleak. I'm talking about +8Gb allocated memory, while the machine is doing nothing else.
I tried renaming the temp file for one of the two tests, but then the test fails because the "finish.sh" step doesn't have its properly-named file.
I am still trying to figure out how to properly patch the test system.
Comment 7 Coacher 2016-09-16 07:27:40 UTC
This was fixed upstream some time ago: https://github.com/nijel/enca/commit/cafd2d802c50faa3bbaec3bccd69fc5182ceab8f
The fix is available in versions >= 1.17.
Comment 8 Coacher 2017-02-03 21:05:28 UTC
enca-1.19-r1, which doesn't have this problem, is stabilized everywhere. Please update to enca-1.19-r1. Previous versions will be removed shortly.