Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 600576 - app-arch/libarchive-3.2.2 fails tests on alpha and amd64 (possible Portage bug)
Summary: app-arch/libarchive-3.2.2 fails tests on alpha and amd64 (possible Portage bug)
Status: RESOLVED DUPLICATE of bug 598806
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo/BSD Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-11-23 13:10 UTC by Tobias Klausmann
Modified: 2016-12-26 14:30 UTC (History)
5 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 Tobias Klausmann gentoo-dev 2016-11-23 13:10:07 UTC
3.2.1-r5 passes tests just fine, 3.2.2 fails as detailed below.

I am not sure this is libarchive's fault, really; hence, the Portage people are on CC. It looks like whatever is cleaning up the temp dir is constructing paths that are too long for Python's unlink() to handle, but that is mostly conjecture on my part.

===========================================================================
Testsuite summary for libarchive 3.2.2
============================================================================
# TOTAL: 4
# PASS:  4
# SKIP:  0
# XFAIL: 0
# FAIL:  0
# XPASS: 0
# ERROR: 0
============================================================================
make[3]: Leaving directory '/var/tmp/portage/app-arch/libarchive-3.2.2/work/libarchive-3.2.2-.alpha'
make[2]: Leaving directory '/var/tmp/portage/app-arch/libarchive-3.2.2/work/libarchive-3.2.2-.alpha'
make[1]: Leaving directory '/var/tmp/portage/app-arch/libarchive-3.2.2/work/libarchive-3.2.2-.alpha'
>>> Completed testing app-arch/libarchive-3.2.2
Traceback (most recent call last):
  File "/usr/lib/python-exec/python3.4/emerge", line 50, in <module>
    retval = emerge_main()
  File "/usr/lib/python3.4/site-packages/_emerge/main.py", line 1185, in emerge_main
    return run_action(emerge_config)
  File "/usr/lib/python3.4/site-packages/_emerge/actions.py", line 3236, in run_action
    emerge_config.args, spinner)
  File "/usr/lib/python3.4/site-packages/_emerge/actions.py", line 505, in action_build
    retval = mergetask.merge()
  File "/usr/lib/python3.4/site-packages/_emerge/Scheduler.py", line 1029, in merge
    rval = self._merge()
  File "/usr/lib/python3.4/site-packages/_emerge/Scheduler.py", line 1431, in _merge
    self._main_loop()
  File "/usr/lib/python3.4/site-packages/_emerge/Scheduler.py", line 1408, in _main_loop
    self._event_loop.iteration()
  File "/usr/lib/python3.4/site-packages/portage/util/_eventloop/EventLoop.py", line 270, in iteration
    if not x.callback(f, event, *x.args):
  File "/usr/lib/python3.4/site-packages/portage/util/_async/PipeLogger.py", line92, in _output_handler
    self.wait()
  File "/usr/lib/python3.4/site-packages/_emerge/AsynchronousTask.py", line 57, in wait
    self._wait_hook()
  File "/usr/lib/python3.4/site-packages/_emerge/AsynchronousTask.py", line 175, in _wait_hook
    self._exit_listener_stack.pop()(self)
  File "/usr/lib/python3.4/site-packages/_emerge/SpawnProcess.py", line 174, in _pipe_logger_exit
    self.wait()
  File "/usr/lib/python3.4/site-packages/_emerge/AsynchronousTask.py", line 57, in wait
    self._wait_hook()
  File "/usr/lib/python3.4/site-packages/_emerge/AsynchronousTask.py", line 175, in _wait_hook
    self._exit_listener_stack.pop()(self)
  File "/usr/lib/python3.4/site-packages/_emerge/EbuildPhase.py", line 223, in _ebuild_exit
    _post_phase_userpriv_perms(settings)
  File "/usr/lib/python3.4/site-packages/portage/package/ebuild/doebuild.py", line 1721, in _post_phase_userpriv_perms
    filemode=0o600, filemask=0)
  File "/usr/lib/python3.4/site-packages/portage/util/__init__.py", line 1217, inapply_recursive_permissions
    follow_links=follow_links)
  File "/usr/lib/python3.4/site-packages/portage/util/__init__.py", line 1240, inapply_secpass_permissions
    stat_cached = _do_stat(filename, follow_links=follow_links)
  File "/usr/lib/python3.4/site-packages/portage/util/__init__.py", line 1049, in_do_stat
    return os.lstat(filename)
  File "/usr/lib/python3.4/site-packages/portage/__init__.py", line 250, in __call__
    rval = self._func(*wrapped_args, **wrapped_kwargs)
OSError: [Errno 63] File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xxxxxxxxx'

# emerge --info
Portage 2.3.0 (python 3.4.3-final-0, default/linux/alpha/13.0, gcc-4.9.4, glibc-2.22-r4, 4.8.6+ alpha)
=================================================================
System uname: Linux-4.8.6+-alpha-EV68AL-with-gentoo-2.3
KiB Mem:     8303328 total,    273672 free
KiB Swap:     977912 total,    954704 free
Timestamp of repository gentoo: Wed, 23 Nov 2016 00:02:52 +0000
sh bash 4.3_p48
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
app-shells/bash:          4.3_p48::gentoo
dev-lang/perl:            5.22.2::gentoo
dev-lang/python:          2.7.12::gentoo, 3.4.3-r1::gentoo
dev-util/cmake:           3.5.2-r1::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.3::gentoo
sys-apps/openrc:          0.22.3-r1::gentoo
sys-apps/sandbox:         2.10-r1::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69::gentoo
sys-devel/automake:       1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo
sys-devel/gcc:            4.9.3::gentoo, 4.9.4::gentoo
sys-devel/gcc-config:     1.7.3::gentoo
sys-devel/libtool:        2.4.6::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 4.3::gentoo (virtual/os-headers)
sys-libs/glibc:           2.22-r4::gentoo
Repositories:

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

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

ACCEPT_KEYWORDS="alpha"
ACCEPT_LICENSE="* -@EULA"
CBUILD="alpha-unknown-linux-gnu"
CFLAGS="-mieee -pipe -O2 -mcpu=ev67"
CHOST="alpha-unknown-linux-gnu"
CONFIG_PROTECT="/etc /etc/omega.conf /etc/stunnel/stunnel.conf /usr/share/gnupg/qualified.txt /var/bind"
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/apache2-php7.0/ext-active/ /etc/php/cgi-php5.6/ext-active/ /etc/php/cgi-php7.0/ext-active/ /etc/php/cli-php5.6/ext-active/ /etc/php/cli-php7.0/ext-active/ /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="-mieee -pipe -O2 -mcpu=ev67"
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 unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://gentoo.tiscali.nl/ http://ftp.snt.utwente.nl/pub/os/linux/gentoo http://mirror.netcologne.de/gentoo/"
LANG="en_US.utf8"
LC_ALL="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5"
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 --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="acl alpha bash-completion berkdb bzip2 cli cracklib crypt cxx dri fortran ftp gdbm iconv ipv6 mmap modules ncurses nls nptl nptlonly offensive pam pcre python readline recode session sharedmem sockets ssl tcpd unicode vim vim-pager xattr zlib" ALSA_CARDS="ali5451 als4000 bt87x ca0106 cmipci emu10k1 ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 maestro3 trident usb-audio via82xx 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 ublox ubx" INPUT_DEVICES="keyboard mouse" 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-6" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby20 ruby21" USERLAND="GNU" 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, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 Jason Zaman gentoo-dev 2016-11-23 16:35:37 UTC
I have the same on stable amd64. The stacktrace is the same for me so not posting it.

The build.log ends with:
============================================================================
Testsuite summary for libarchive 3.2.2
============================================================================
# TOTAL: 4
# PASS:  4
# SKIP:  0
# XFAIL: 0
# FAIL:  0
# XPASS: 0
# ERROR: 0
============================================================================
make[3]: Leaving directory '/var/tmp/portage/app-arch/libarchive-3.2.2/work/libarchive-3.2.2-abi_x86_64.amd64'
make[2]: Leaving directory '/var/tmp/portage/app-arch/libarchive-3.2.2/work/libarchive-3.2.2-abi_x86_64.amd64'
make[1]: Leaving directory '/var/tmp/portage/app-arch/libarchive-3.2.2/work/libarchive-3.2.2-abi_x86_64.amd64'
>>> Completed testing app-arch/libarchive-3.2.2

So the actual tests do pass, the problem is somewhere in portage after the tests and before the next phase. rm -rf /var/tmp/portage/* worked fine somehow.

When following the 0072_xxx... down far enough, i got back to where i started:
lrwxrwxrwx. 1 portage portage 113 Nov 24 00:16 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx -> /var/tmp/portage/app-arch/libarchive-3.2.2/temp/libarchive_test.2016-11-24T00.15.02-000/test_write_disk_secure744/

The full path is:
/var/tmp/portage/app-arch/libarchive-3.2.2/temp/libarchive_test.2016-11-24T00.15.02-000/test_write_disk_secure744/0072_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx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xxxxxxxxxxxxxxxxxxxxxx/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx


0072_xxx is the one portage chokes on, but the other numbered dirs also have a ton of xxxxxxxxxx dirs in them.
Comment 2 Zac Medico gentoo-dev 2016-11-23 21:25:14 UTC
It seems that portage can be fixed to handle this by making the apply_recursive_permissions function use os.fwalk and similar functions that use file descriptors instead of paths. I've tested with python-3.5.2, and os.fwalk successfully traversed all of /var/tmp/portage/app-arch/libarchive-3.2.2/temp. It worked with a string argument, but failed with a bytes argument as reported in http://bugs.python.org/issue28682:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib64/python3.5/os.py", line 519, in fwalk
    yield from _fwalk(topfd, top, topdown, onerror, follow_symlinks)
  File "/usr/lib64/python3.5/os.py", line 562, in _fwalk
    dirpath = path.join(toppath, name)
  File "/usr/lib64/python3.5/posixpath.py", line 89, in join
    genericpath._check_arg_types('join', a, *p)
  File "/usr/lib64/python3.5/genericpath.py", line 145, in _check_arg_types
    raise TypeError("Can't mix strings and bytes in path components") from None
TypeError: Can't mix strings and bytes in path components

If we can't use a byte's argument, then we're screwed if any of the paths aren't encoded with UTF-8.
Comment 3 Zac Medico gentoo-dev 2016-11-23 21:35:59 UTC
I've filed bug 600626 to track the portage issue.
Comment 4 Zac Medico gentoo-dev 2016-11-23 21:54:37 UTC
As a workaround, the ebuild could do something like this near the end of src_test:

    rm -rf "${T}"/libarchive_test*
Comment 5 Zac Medico gentoo-dev 2016-11-23 22:48:53 UTC
(In reply to Zac Medico from comment #4)
> As a workaround, the ebuild could do something like this near the end of
> src_test:
> 
>     rm -rf "${T}"/libarchive_test*

It doesn't work for me. It fails with a number of "Directory not empty" errors, but it succeeds if I re-run the command afterwards.
Comment 6 Zac Medico gentoo-dev 2016-11-23 22:53:09 UTC
(In reply to Zac Medico from comment #5)
> (In reply to Zac Medico from comment #4)
> > As a workaround, the ebuild could do something like this near the end of
> > src_test:
> > 
> >     rm -rf "${T}"/libarchive_test*
> 
> It doesn't work for me. It fails with a number of "Directory not empty"
> errors, but it succeeds if I re-run the command afterwards.

It works if use FEATURES="-sandbox -usersandbox", so apparently there's interference from sandbox.
Comment 7 Zac Medico gentoo-dev 2016-11-23 23:19:46 UTC
The tests actually cleanup "${T}"/libarchive_test* themselves when sandbox is disabled. So we can consider the root cause to be interference from sandbox (neglecting the fact that it's totally insane to create paths this long).
Comment 8 SpanKY gentoo-dev 2016-11-25 05:25:22 UTC
most likely would be covered by bug 553092
Comment 9 Mike Gilbert gentoo-dev 2016-12-26 14:30:21 UTC

*** This bug has been marked as a duplicate of bug 598806 ***