Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 578510 - sys-apps/grep-2.21-r1 fails invalid-multibyte-infloop test
Summary: sys-apps/grep-2.21-r1 fails invalid-multibyte-infloop test
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords: TESTFAILURE
Depends on:
Blocks:
 
Reported: 2016-03-29 12:35 UTC by Paolo Pedroni
Modified: 2018-09-23 10:38 UTC (History)
0 users

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


Attachments
grep-2.21-r1:20160329-100449.log.gz (grep-2.21-r1:20160329-100449.log.gz,21.46 KB, application/gzip)
2016-03-29 12:35 UTC, Paolo Pedroni
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Paolo Pedroni 2016-03-29 12:35:35 UTC
Created attachment 429224 [details]
grep-2.21-r1:20160329-100449.log.gz

FAIL: invalid-multibyte-infloop
===============================

+ initial_cwd_=/var/tmp/portage/sys-apps/grep-2.21-r1/work/grep-2.21/tests
+ fail=0
+ testdir_prefix_
+ printf gt
+ pfx_=gt
+ mktempd_ /var/tmp/portage/sys-apps/grep-2.21-r1/work/grep-2.21/tests gt-invalid-multibyte-infloop.XXXX
+ destdir_=/var/tmp/portage/sys-apps/grep-2.21-r1/work/grep-2.21/tests
+ template_=gt-invalid-multibyte-infloop.XXXX
+ MAX_TRIES_=4
+ unset TMPDIR
+ d=/var/tmp/portage/sys-apps/grep-2.21-r1/work/grep-2.21/tests/gt-invalid-multibyte-infloop.GVBp
+ test -d /var/tmp/portage/sys-apps/grep-2.21-r1/work/grep-2.21/tests/gt-invalid-multibyte-infloop.GVBp
+ tr+  S -
ls -dgo /var/tmp/portage/sys-apps/grep-2.21-r1/work/grep-2.21/tests/gt-invalid-multibyte-infloop.GVBp
+ LC_ALL=C env -- tr S -
+ perms=drwx------ 2 40 Mar 29 12:05 /var/tmp/portage/sys-apps/grep-2.21-r1/work/grep-2.21/tests/gt-invalid-multibyte-infloop.GVBp
+ test 0 = 0
+ echo /var/tmp/portage/sys-apps/grep-2.21-r1/work/grep-2.21/tests/gt-invalid-multibyte-infloop.GVBp
+ return
+ test_dir_=/var/tmp/portage/sys-apps/grep-2.21-r1/work/grep-2.21/tests/gt-invalid-multibyte-infloop.GVBp
+ cd /var/tmp/portage/sys-apps/grep-2.21-r1/work/grep-2.21/tests/gt-invalid-multibyte-infloop.GVBp
+ gl_init_sh_nl_=

+ IFS=  

+ expr 1 + 128
+ eval trap 'Exit 129' 1
+ trap Exit 129 1
+ expr 2 + 128
+ eval trap 'Exit 130' 2
+ trap Exit 130 2
+ expr 3 + 128
+ eval trap 'Exit 131' 3
+ trap Exit 131 3
+ expr 13 + 128
+ eval trap 'Exit 141' 13
+ trap Exit 141 13
+ expr 15 + 128
+ eval trap 'Exit 143' 15
+ trap Exit 143 15
+ trap remove_tmp_ 0
+ path_prepend_ ../src
+ test 1 != 0
+ path_dir_=../src
+ abs_path_dir_=/var/tmp/portage/sys-apps/grep-2.21-r1/work/grep-2.21/tests/../src
+ PATH=/var/tmp/portage/sys-apps/grep-2.21-r1/work/grep-2.21/tests/../src:/var/tmp/portage/sys-apps/grep-2.21-r1/work/grep-2.21/src:/usr/lib64/distcc/bin:/var/tmp/portage/._portage_reinstall_.t_yjPp/bin/ebuild-helpers/xattr:/usr/lib/portage/python2.7/ebuild-helpers/xattr:/var/tmp/portage/._portage_reinstall_.t_yjPp/bin/ebuild-helpers:/usr/lib/portage/python2.7/ebuild-helpers:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/x86_64-pc-linux-gnu/gcc-bin/5.3.0
+ create_exe_shims_ /var/tmp/portage/sys-apps/grep-2.21-r1/work/grep-2.21/tests/../src
+ return 0
+ shift
+ test 0 != 0
+ export PATH
+ require_en_utf8_locale_
+ path_prepend_ .
+ test 1 != 0
+ path_dir_=.
+ abs_path_dir_=/var/tmp/portage/sys-apps/grep-2.21-r1/work/grep-2.21/tests/.
+ PATH=/var/tmp/portage/sys-apps/grep-2.21-r1/work/grep-2.21/tests/.:/var/tmp/portage/sys-apps/grep-2.21-r1/work/grep-2.21/tests/../src:/var/tmp/portage/sys-apps/grep-2.21-r1/work/grep-2.21/src:/usr/lib64/distcc/bin:/var/tmp/portage/._portage_reinstall_.t_yjPp/bin/ebuild-helpers/xattr:/usr/lib/portage/python2.7/ebuild-helpers/xattr:/var/tmp/portage/._portage_reinstall_.t_yjPp/bin/ebuild-helpers:/usr/lib/portage/python2.7/ebuild-helpers:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/x86_64-pc-linux-gnu/gcc-bin/5.3.0
+ create_exe_shims_ /var/tmp/portage/sys-apps/grep-2.21-r1/work/grep-2.21/tests/.
+ return 0
+ shift
+ test 0 != 0
+ export PATH
+ get-mb-cur-max en_US.UTF-8
+ require_compiled_in_MB_support
+ require_en_utf8_locale_
+ path_prepend_ .
+ test 1 != 0
+ path_dir_=.
+ abs_path_dir_=/var/tmp/portage/sys-apps/grep-2.21-r1/work/grep-2.21/tests/.
+ PATH=/var/tmp/portage/sys-apps/grep-2.21-r1/work/grep-2.21/tests/.:/var/tmp/portage/sys-apps/grep-2.21-r1/work/grep-2.21/tests/.:/var/tmp/portage/sys-apps/grep-2.21-r1/work/grep-2.21/tests/../src:/var/tmp/portage/sys-apps/grep-2.21-r1/work/grep-2.21/src:/usr/lib64/distcc/bin:/var/tmp/portage/._portage_reinstall_.t_yjPp/bin/ebuild-helpers/xattr:/usr/lib/portage/python2.7/ebuild-helpers/xattr:/var/tmp/portage/._portage_reinstall_.t_yjPp/bin/ebuild-helpers:/usr/lib/portage/python2.7/ebuild-helpers:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/x86_64-pc-linux-gnu/gcc-bin/5.3.0
+ create_exe_shims_ /var/tmp/portage/sys-apps/grep-2.21-r1/work/grep-2.21/tests/.
+ return 0
+ shift
+ test 0 != 0
+ export PATH
+ get-mb-cur-max en_US.UTF-8
+ printf é
+ LC_ALL=en_US.UTF-8 grep [[:lower:]]
é
+ require_timeout_
+ timeout 10s false
+ test 1 = 1
+ encode AA
+ echo AA
+ tr A \202
+ LC_ALL=C env -- tr A \202
+ fail=0
+ encode A
+ echo A
+ tr A \202
+ LC_ALL=C env -- tr A \202
+ LC_ALL=en_US.UTF-8 timeout 3 grep -aF <82> input
+ status=0
+ test 0 -eq 0
+ compare input out
+ compare_dev_null_ input out
+ test 2 = 2
+ test xinput = x/dev/null
+ test xout = x/dev/null
+ return 2
+ compare_ input out
+ diff -u input out
+ echo Binary file input matches
+ encode A
+ echo A
+ tr A \202
+ LC_ALL=C env -- tr A \202
+ LC_ALL=en_US.UTF-8 timeout 3 grep -F <82> input
+ status=0
+ test 0 -eq 0
+ compare binary-file-matches out
+ compare_dev_null_ binary-file-matches out
+ test 2 = 2
+ test xbinary-file-matches = x/dev/null
+ test xout = x/dev/null
+ return 2
+ compare_ binary-file-matches out
+ diff -u binary-file-matches out
--- binary-file-matches 2016-03-29 12:05:22.917096901 +0200
+++ out 2016-03-29 12:05:22.923763600 +0200
@@ -1 +1 @@
-Binary file input matches
+Il file binario input corrisponde
+ fail=1
+ Exit 1
+ set +e
+ exit 1
+ exit 1
+ remove_tmp_
+ __st=1
+ cleanup_
+ :
+ cd /var/tmp/portage/sys-apps/grep-2.21-r1/work/grep-2.21/tests
+ chmod -R u+rwx /var/tmp/portage/sys-apps/grep-2.21-r1/work/grep-2.21/tests/gt-invalid-multibyte-infloop.GVBp
+ rm -rf /var/tmp/portage/sys-apps/grep-2.21-r1/work/grep-2.21/tests/gt-invalid-multibyte-infloop.GVBp
+ exit 1
FAIL invalid-multibyte-infloop (exit status: 1)

# emerge --info =sys-apps/grep-2.21-r1
Portage 2.2.26 (python 2.7.11-final-0, default/linux/amd64/13.0/desktop/plasma/systemd, gcc-5.3.0, glibc-2.21-r2, 4.4.6-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.4.6-gentoo-x86_64-Intel-R-_Core-TM-_i7-2600_CPU_@_3.40GHz-with-gentoo-2.2
KiB Mem:    16125884 total,   3815608 free
KiB Swap:    8171516 total,   8167840 free
Timestamp of repository gentoo: Fri, 25 Mar 2016 09:15:01 +0000
sh dash 0.5.8.2
ld GNU gold (Gentoo 2.25.1 p1.1 2.25.1) 1.11
distcc 3.2rc1 x86_64-pc-linux-gnu [enabled]
ccache version 3.1.9 [disabled]
app-shells/bash:          4.3_p42-r1::gentoo
dev-java/java-config:     2.2.0::gentoo
dev-lang/perl:            5.22.1::gentoo
dev-lang/python:          2.7.11-r2::gentoo, 3.4.3-r7::gentoo
dev-util/ccache:          3.1.9-r4::gentoo
dev-util/cmake:           3.3.1-r1::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.19.1::gentoo
sys-apps/sandbox:         2.10-r1::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69::gentoo
sys-devel/automake:       1.11.6-r1::gentoo, 1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo
sys-devel/gcc:            5.3.0::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r1::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 4.3::gentoo (virtual/os-headers)
sys-libs/glibc:           2.21-r2::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.europe.gentoo.org/gentoo-portage
    priority: -1000

kde
    location: /var/lib/layman/kde
    sync-type: git
    sync-uri: git://anongit.gentoo.org/proj/kde.git
    masters: gentoo kde
    priority: 0

x-portage
    location: /usr/local/portage
    masters: gentoo
    priority: 1

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=sandybridge -msahf --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=8192 -flto=8 -fuse-linker-plugin -floop-interchange -ftree-loop-distribution -floop-strip-mine -floop-block -fgraphite-identity -ftree-vectorize"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.6/ext-active/ /etc/php/cgi-php5.6/ext-active/ /etc/php/cli-php5.6/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -march=sandybridge -msahf --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=8192 -flto=8 -fuse-linker-plugin -floop-interchange -ftree-loop-distribution -floop-strip-mine -floop-block -fgraphite-identity -ftree-vectorize"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--keep-going y --with-bdeps y"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs cgroup compress-build-logs config-protect-if-modified distcc distlocks ebuild-locks ipc-sandbox merge-sync news parallel-fetch protect-owned sandbox sfperms split-elog split-log strict test unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://tux.rainside.sk/gentoo/ http://mirror.leaseweb.com/gentoo/ http://ftp.uni-erlangen.de/pub/mirrors/gentoo http://ftp.spline.inf.fu-berlin.de/mirrors/gentoo/"
LANG="it_IT.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu -Wl,--sort-common -flto=8 -fuse-linker-plugin -floop-interchange -ftree-loop-distribution -floop-strip-mine -floop-block -fgraphite-identity -ftree-vectorize"
MAKEOPTS="-j11 -l8"
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"
USE="X a52 aac aalib acl acpi adns alsa amd64 ao audiofile bash-completion bluetooth branding bzip2 cairo caps cdda cddb cdparanoia cdr cli cracklib crypt css cups curl cxx dbus declarative dga djvu dri dts dvd dvdr emboss encode exif expat fbcon ffmpeg fftw firefox flac fontconfig foomaticdb fortran ftp gd gdbm geoip gif gimp glamor gmp gnutls gphoto2 gpm graphviz gtk handbook iconv icu idn imagemagick imlib ipv6 java javascript jbig jpeg jpeg2k kde kipi lame lcms libass libcaca libnotify libsamplerate lm_sensors lua lzma lzo mad mmap mmx mmxext mng modules mp3 mp4 mpeg mplayer multilib musicbrainz ncurses nls nptl nsplugin offensive ogg openal openexr opengl openmp pam pango pcre pdf phonon plasma png policykit postscript ppds pulseaudio qml qt3support qt4 qt5 rdesktop readline recode samba sctp sdl seccomp semantic-desktop session sndfile sockets speex spell sqlite sse sse2 ssl startup-notification subversion svg symlink syslog systemd sysvipc taglib theora threads tidy tiff truetype udev udisks unicode upower usb vaapi vcd vim-syntax vnc vorbis wayland widgets win32codecs wmf wxwidgets x264 xattr xcb xcomposite xine xinerama xml xpm xscreensaver xv xvid yahoo zlib" ABI_X86="64" ALSA_CARDS="hda-intel virmidi" 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="kodak ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" 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 ublox ubx" GRUB_PLATFORMS="pc" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="nlpsolver" LINGUAS="it" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4 pypy pypy3" RUBY_TARGETS="ruby21" USERLAND="GNU" VIDEO_CARDS="intel i965" 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:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

=================================================================
                        Package Settings
=================================================================

sys-apps/grep-2.21-r1::gentoo was built with the following:
USE="nls pcre (policykit) test -static" ABI_X86="64"
CFLAGS="-O2 -pipe -march=sandybridge -msahf --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=8192 -flto=8 -fuse-linker-plugin -floop-interchange -floop-strip-mine -floop-block -fgraphite-identity -fno-lto -fno-use-linker-plugin"
CXXFLAGS="-O2 -pipe -march=sandybridge -msahf --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=8192 -flto=8 -fuse-linker-plugin -floop-interchange -floop-strip-mine -floop-block -fgraphite-identity -fno-lto -fno-use-linker-plugin"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu -Wl,--sort-common -flto=8 -fuse-linker-plugin -floop-interchange -floop-strip-mine -floop-block -fgraphite-identity -fno-lto -fno-use-linker-plugin"

# emerge -1pqv =sys-apps/grep-2.21-r1
[ebuild   R   ] sys-apps/grep-2.21-r1  USE="nls pcre -static"
Comment 1 SpanKY gentoo-dev 2016-03-29 15:58:19 UTC
does grep-2.24 fail too ?
Comment 2 Paolo Pedroni 2016-04-14 12:50:45 UTC
(In reply to SpanKY from comment #1)
> does grep-2.24 fail too ?

Sorry for the long wait. Yes it fails, too. It also fails 'encoding error' test:

FAIL: encoding-error
====================

+ initial_cwd_=/var/tmp/portage/sys-apps/grep-2.24/work/grep-2.24/tests
+ fail=0
+ testdir_prefix_
+ printf gt
+ pfx_=gt
+ mktempd_ /var/tmp/portage/sys-apps/grep-2.24/work/grep-2.24/tests gt-encoding-error.XXXX
+ destdir_=/var/tmp/portage/sys-apps/grep-2.24/work/grep-2.24/tests
+ template_=gt-encoding-error.XXXX
+ MAX_TRIES_=4
+ unset TMPDIR
+ d=/var/tmp/portage/sys-apps/grep-2.24/work/grep-2.24/tests/gt-encoding-error.yp17
+ test -d /var/tmp/portage/sys-apps/grep-2.24/work/grep-2.24/tests/gt-encoding-error.yp17
+ tr S -
+ LC_ALL=C env -- tr S -
+ ls -dgo /var/tmp/portage/sys-apps/grep-2.24/work/grep-2.24/tests/gt-encoding-error.yp17
+ perms=drwx------ 2 40 Apr 14 14:46 /var/tmp/portage/sys-apps/grep-2.24/work/grep-2.24/tests/gt-encoding-error.yp17
+ test 0 = 0
+ echo /var/tmp/portage/sys-apps/grep-2.24/work/grep-2.24/tests/gt-encoding-error.yp17
+ return
+ test_dir_=/var/tmp/portage/sys-apps/grep-2.24/work/grep-2.24/tests/gt-encoding-error.yp17
+ cd /var/tmp/portage/sys-apps/grep-2.24/work/grep-2.24/tests/gt-encoding-error.yp17
+ gl_init_sh_nl_=

+ IFS= 

+ expr 1 + 128
+ eval trap 'Exit 129' 1
+ trap Exit 129 1
+ expr 2 + 128
+ eval trap 'Exit 130' 2
+ trap Exit 130 2
+ expr 3 + 128
+ eval trap 'Exit 131' 3
+ trap Exit 131 3
+ expr 13 + 128
+ eval trap 'Exit 141' 13
+ trap Exit 141 13
+ expr 15 + 128
+ eval trap 'Exit 143' 15
+ trap Exit 143 15
+ trap remove_tmp_ 0
+ path_prepend_ ../src
+ test 1 != 0
+ path_dir_=../src
+ abs_path_dir_=/var/tmp/portage/sys-apps/grep-2.24/work/grep-2.24/tests/../src
+ PATH=/var/tmp/portage/sys-apps/grep-2.24/work/grep-2.24/tests/../src:/var/tmp/portage/sys-apps/grep-2.24/work/grep-2.24/src:/usr/lib64/distcc/bin:/usr/lib/portage/python2.7/ebuild-helpers/xattr:/usr/lib/portage/python2.7/ebuild-helpers:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/x86_64-pc-linux-gnu/gcc-bin/5.3.0
+ create_exe_shims_ /var/tmp/portage/sys-apps/grep-2.24/work/grep-2.24/tests/../src
+ return 0
+ shift
+ test 0 != 0
+ export PATH
+ require_en_utf8_locale_
+ path_prepend_ .
+ test 1 != 0
+ path_dir_=.
+ abs_path_dir_=/var/tmp/portage/sys-apps/grep-2.24/work/grep-2.24/tests/.
+ PATH=/var/tmp/portage/sys-apps/grep-2.24/work/grep-2.24/tests/.:/var/tmp/portage/sys-apps/grep-2.24/work/grep-2.24/tests/../src:/var/tmp/portage/sys-apps/grep-2.24/work/grep-2.24/src:/usr/lib64/distcc/bin:/usr/lib/portage/python2.7/ebuild-helpers/xattr:/usr/lib/portage/python2.7/ebuild-helpers:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/x86_64-pc-linux-gnu/gcc-bin/5.3.0
+ create_exe_shims_ /var/tmp/portage/sys-apps/grep-2.24/work/grep-2.24/tests/.
+ return 0
+ shift
+ test 0 != 0
+ export PATH
+ get-mb-cur-max en_US.UTF-8
+ LC_ALL=en_US.UTF-8
+ export LC_ALL
+ printf Alfred Jones\n
+ printf John Smith\n
+ printf Pedro P\351rez\n
+ cat a p j
+ fail=0
+ grep ^A in
+ compare a out
+ compare_dev_null_ a out
+ test 2 = 2
+ test xa = x/dev/null
+ test xout = x/dev/null
+ return 2
+ compare_ a out
+ diff -u a out
+ grep ^P in
+ printf Binary file in matches\n
+ compare exp out
+ compare_dev_null_ exp out
+ test 2 = 2
+ test xexp = x/dev/null
+ test xout = x/dev/null
+ return 2
+ compare_ exp out
+ diff -u exp out
--- exp 2016-04-14 14:46:20.799705330 +0200
+++ out 2016-04-14 14:46:20.799705330 +0200
@@ -1 +1 @@
-Binary file in matches
+Il file binario in corrisponde
+ fail=1
+ grep ^J in
+ compare j out
+ compare_dev_null_ j out
+ test 2 = 2
+ test xj = x/dev/null
+ test xout = x/dev/null
+ return 2
+ compare_ j out
+ diff -u j out
+ grep ^X in
+ test 1 = 1
+ compare /dev/null out
+ compare_dev_null_ /dev/null out
+ test 2 = 2
+ test x/dev/null = x/dev/null
+ test -s out
+ return 0
+ return 0
+ grep -a . in
+ compare in out
+ compare_dev_null_ in out
+ test 2 = 2
+ test xin = x/dev/null
+ test xout = x/dev/null
+ return 2
+ compare_ in out
+ diff -u in out
+ Exit 1
+ set +e
+ exit 1
+ exit 1
+ remove_tmp_
+ __st=1
+ cleanup_
+ :
+ cd /var/tmp/portage/sys-apps/grep-2.24/work/grep-2.24/tests
+ chmod -R u+rwx /var/tmp/portage/sys-apps/grep-2.24/work/grep-2.24/tests/gt-encoding-error.yp17
+ rm -rf /var/tmp/portage/sys-apps/grep-2.24/work/grep-2.24/tests/gt-encoding-error.yp17
+ exit 1
FAIL encoding-error (exit status: 1)

[...]

FAIL: invalid-multibyte-infloop
===============================

+ initial_cwd_=/var/tmp/portage/sys-apps/grep-2.24/work/grep-2.24/tests
+ fail=0
+ testdir_prefix_
+ printf gt
+ pfx_=gt
+ mktempd_ /var/tmp/portage/sys-apps/grep-2.24/work/grep-2.24/tests gt-invalid-multibyte-infloop.XXXX
+ destdir_=/var/tmp/portage/sys-apps/grep-2.24/work/grep-2.24/tests
+ template_=gt-invalid-multibyte-infloop.XXXX
+ MAX_TRIES_=4
+ unset TMPDIR
+ d=/var/tmp/portage/sys-apps/grep-2.24/work/grep-2.24/tests/gt-invalid-multibyte-infloop.GFuC
+ test -d /var/tmp/portage/sys-apps/grep-2.24/work/grep-2.24/tests/gt-invalid-multibyte-infloop.GFuC
+ tr S -
+ LC_ALL=C env -- tr S -
+ ls -dgo /var/tmp/portage/sys-apps/grep-2.24/work/grep-2.24/tests/gt-invalid-multibyte-infloop.GFuC
+ perms=drwx------ 2 40 Apr 14 14:46 /var/tmp/portage/sys-apps/grep-2.24/work/grep-2.24/tests/gt-invalid-multibyte-infloop.GFuC
+ test 0 = 0
+ echo /var/tmp/portage/sys-apps/grep-2.24/work/grep-2.24/tests/gt-invalid-multibyte-infloop.GFuC
+ return
+ test_dir_=/var/tmp/portage/sys-apps/grep-2.24/work/grep-2.24/tests/gt-invalid-multibyte-infloop.GFuC
+ cd /var/tmp/portage/sys-apps/grep-2.24/work/grep-2.24/tests/gt-invalid-multibyte-infloop.GFuC
+ gl_init_sh_nl_=

+ IFS= 

+ expr 1 + 128
+ eval trap 'Exit 129' 1
+ trap Exit 129 1
+ expr 2 + 128
+ eval trap 'Exit 130' 2
+ trap Exit 130 2
+ expr 3 + 128
+ eval trap 'Exit 131' 3
+ trap Exit 131 3
+ expr 13 + 128
+ eval trap 'Exit 141' 13
+ trap Exit 141 13
+ expr 15 + 128
+ eval trap 'Exit 143' 15
+ trap Exit 143 15
+ trap remove_tmp_ 0
+ path_prepend_ ../src
+ test 1 != 0
+ path_dir_=../src
+ abs_path_dir_=/var/tmp/portage/sys-apps/grep-2.24/work/grep-2.24/tests/../src
+ PATH=/var/tmp/portage/sys-apps/grep-2.24/work/grep-2.24/tests/../src:/var/tmp/portage/sys-apps/grep-2.24/work/grep-2.24/src:/usr/lib64/distcc/bin:/usr/lib/portage/python2.7/ebuild-helpers/xattr:/usr/lib/portage/python2.7/ebuild-helpers:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/x86_64-pc-linux-gnu/gcc-bin/5.3.0
+ create_exe_shims_ /var/tmp/portage/sys-apps/grep-2.24/work/grep-2.24/tests/../src
+ return 0
+ shift
+ test 0 != 0
+ export PATH
+ require_en_utf8_locale_
+ path_prepend_ .
+ test 1 != 0
+ path_dir_=.
+ abs_path_dir_=/var/tmp/portage/sys-apps/grep-2.24/work/grep-2.24/tests/.
+ PATH=/var/tmp/portage/sys-apps/grep-2.24/work/grep-2.24/tests/.:/var/tmp/portage/sys-apps/grep-2.24/work/grep-2.24/tests/../src:/var/tmp/portage/sys-apps/grep-2.24/work/grep-2.24/src:/usr/lib64/distcc/bin:/usr/lib/portage/python2.7/ebuild-helpers/xattr:/usr/lib/portage/python2.7/ebuild-helpers:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/x86_64-pc-linux-gnu/gcc-bin/5.3.0
+ create_exe_shims_ /var/tmp/portage/sys-apps/grep-2.24/work/grep-2.24/tests/.
+ return 0
+ shift
+ test 0 != 0
+ export PATH
+ get-mb-cur-max en_US.UTF-8
+ require_compiled_in_MB_support
+ require_en_utf8_locale_
+ path_prepend_ .
+ test 1 != 0
+ path_dir_=.
+ abs_path_dir_=/var/tmp/portage/sys-apps/grep-2.24/work/grep-2.24/tests/.
+ PATH=/var/tmp/portage/sys-apps/grep-2.24/work/grep-2.24/tests/.:/var/tmp/portage/sys-apps/grep-2.24/work/grep-2.24/tests/.:/var/tmp/portage/sys-apps/grep-2.24/work/grep-2.24/tests/../src:/var/tmp/portage/sys-apps/grep-2.24/work/grep-2.24/src:/usr/lib64/distcc/bin:/usr/lib/portage/python2.7/ebuild-helpers/xattr:/usr/lib/portage/python2.7/ebuild-helpers:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/x86_64-pc-linux-gnu/gcc-bin/5.3.0
+ create_exe_shims_ /var/tmp/portage/sys-apps/grep-2.24/work/grep-2.24/tests/.
+ return 0
+ shift
+ test 0 != 0
+ export PATH
+ get-mb-cur-max en_US.UTF-8
+ printf é
+ LC_ALL=en_US.UTF-8 grep [[:lower:]]
é
+ require_timeout_
+ timeout 10s false
+ test 1 = 1
+ encode AA
+ echo AA
+ tr A \202
+ LC_ALL=C env -- tr A \202
+ fail=0
+ encode A
+ echo A
+ tr A \202
+ LC_ALL=C env -- tr A \202
+ LC_ALL=en_US.UTF-8 timeout 3 grep -aF � input
+ status=0
+ test 0 -eq 0
+ compare input out
+ compare_dev_null_ input out
+ test 2 = 2
+ test xinput = x/dev/null
+ test xout = x/dev/null
+ return 2
+ compare_ input out
+ diff -u input out
+ echo Binary file input matches
+ encode A
+ echo A
+ tr A \202
+ LC_ALL=C env -- tr A \202
+ LC_ALL=en_US.UTF-8 timeout 3 grep -F � input
+ status=0
+ test 0 -eq 0
+ compare binary-file-matches out
+ compare_dev_null_ binary-file-matches out
+ test 2 = 2
+ test xbinary-file-matches = x/dev/null
+ test xout = x/dev/null
+ return 2
+ compare_ binary-file-matches out
+ diff -u binary-file-matches out
--- binary-file-matches 2016-04-14 14:46:22.939716545 +0200
+++ out 2016-04-14 14:46:22.963050000 +0200
@@ -1 +1 @@
-Binary file input matches
+Il file binario input corrisponde
+ fail=1
+ Exit 1
+ set +e
+ exit 1
+ exit 1
+ remove_tmp_
+ __st=1
+ cleanup_
+ :
+ cd /var/tmp/portage/sys-apps/grep-2.24/work/grep-2.24/tests
+ chmod -R u+rwx /var/tmp/portage/sys-apps/grep-2.24/work/grep-2.24/tests/gt-invalid-multibyte-infloop.GFuC
+ rm -rf /var/tmp/portage/sys-apps/grep-2.24/work/grep-2.24/tests/gt-invalid-multibyte-infloop.GFuC
+ exit 1
FAIL invalid-multibyte-infloop (exit status: 1)
Comment 3 Paolo Pedroni 2016-04-14 13:05:47 UTC
I just realized it is a localization error: somehow it gets an error message in italian (I have everything set to it_IT.UTF-8) even though it sets LC_ALL=en_US.UTF-8.

On my system:

# locale
LANG=it_IT.UTF-8
LC_CTYPE="it_IT.UTF-8"
LC_NUMERIC="it_IT.UTF-8"
LC_TIME="it_IT.UTF-8"
LC_COLLATE="it_IT.UTF-8"
LC_MONETARY="it_IT.UTF-8"
LC_MESSAGES="it_IT.UTF-8"
LC_PAPER="it_IT.UTF-8"
LC_NAME="it_IT.UTF-8"
LC_ADDRESS="it_IT.UTF-8"
LC_TELEPHONE="it_IT.UTF-8"
LC_MEASUREMENT="it_IT.UTF-8"
LC_IDENTIFICATION="it_IT.UTF-8"
LC_ALL=

# locale -a
C
C.utf8
de_DE.utf8
en_GB.utf8
en_US.utf8
italian
it_IT
it_IT@euro
it_IT.iso88591
it_IT.iso885915@euro
it_IT.utf8
POSIX
POSIX.utf8
ru_RU.utf8
sv_SE.utf8
Comment 4 Mikle Kolyada (RETIRED) archtester Gentoo Infrastructure gentoo-dev Security 2018-09-23 10:38:51 UTC
try newer version