Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 534172 - sys-apps/man-db: man-10 test failure due to sandbox
Summary: sys-apps/man-db: man-10 test failure due to sandbox
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords: TESTFAILURE
: 609424 623720 (view as bug list)
Depends on:
Blocks:
 
Reported: 2015-01-01 07:22 UTC by Patrick Lauer
Modified: 2022-02-07 10:34 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 2015-01-01 07:22:30 UTC
make[3]: Leaving directory '/chroot/tmpdir/portage/sys-apps/man-db-2.7.1/work/man-db-2.7.1/src/tests'
make  check-TESTS
make[3]: Entering directory '/chroot/tmpdir/portage/sys-apps/man-db-2.7.1/work/man-db-2.7.1/src/tests'
make[4]: Entering directory '/chroot/tmpdir/portage/sys-apps/man-db-2.7.1/work/man-db-2.7.1/src/tests'
PASS: lexgrog-1
PASS: man-1
PASS: man-2
PASS: man-3
PASS: man-4
PASS: man-5
PASS: man-6
PASS: man-7
PASS: man-8
PASS: man-9
 * ../../sandbox-2.6/libsandbox/libsandbox.c:check_syscall():879: failure (No such file or directory):
 * ISE:
        abs_path: (null)
        res_path: (null)
FAIL: man-10
PASS: manconv-1
PASS: manconv-2
PASS: manconv-3
PASS: mandb-1
PASS: mandb-2
PASS: mandb-3
PASS: mandb-4
PASS: mandb-5
PASS: mandb-6
PASS: mandb-7
PASS: whatis-1
PASS: zsoelim-1
make[5]: Entering directory '/chroot/tmpdir/portage/sys-apps/man-db-2.7.1/work/man-db-2.7.1/src/tests'
make[5]: Nothing to be done for 'all'.
make[5]: Leaving directory '/chroot/tmpdir/portage/sys-apps/man-db-2.7.1/work/man-db-2.7.1/src/tests'
============================================================================
Testsuite summary for man-db 2.7.1
============================================================================
# TOTAL: 23
# PASS:  22
# SKIP:  0
# XFAIL: 0
# FAIL:  1
# XPASS: 0
# ERROR: 0
============================================================================
See src/tests/test-suite.log
Please report to cjwatson@debian.org
============================================================================
Makefile:1743: recipe for target 'test-suite.log' failed
make[4]: *** [test-suite.log] Error 1
make[4]: Leaving directory '/chroot/tmpdir/portage/sys-apps/man-db-2.7.1/work/man-db-2.7.1/src/tests'
Makefile:1849: recipe for target 'check-TESTS' failed
make[3]: *** [check-TESTS] Error 2
make[3]: Leaving directory '/chroot/tmpdir/portage/sys-apps/man-db-2.7.1/work/man-db-2.7.1/src/tests'
Makefile:2076: recipe for target 'check-am' failed
make[2]: *** [check-am] Error 2
make[2]: Leaving directory '/chroot/tmpdir/portage/sys-apps/man-db-2.7.1/work/man-db-2.7.1/src/tests'
Makefile:1905: recipe for target 'check-recursive' failed
make[1]: *** [check-recursive] Error 1
make[1]: Leaving directory '/chroot/tmpdir/portage/sys-apps/man-db-2.7.1/work/man-db-2.7.1/src'
Makefile:1509: recipe for target 'check-recursive' failed
make: *** [check-recursive] Error 1
 * ERROR: sys-apps/man-db-2.7.1::gentoo failed (test phase):
 *   Make check failed. See above for details.

Portage 2.2.15 (python 2.7.9-final-0, default/linux/amd64/13.0/desktop, gcc-4.9.2, glibc-2.20-r1, 3.18.1-gentoo x86_64)
=================================================================
System uname: Linux-3.18.1-gentoo-x86_64-AMD_A10-7700K_APU_with_Radeon-TM-_R7_Graphics-with-gentoo-2.2
KiB Mem:    15342568 total,  11904952 free
KiB Swap:    8388604 total,   8388604 free
Timestamp of tree: Unknown
sh bash 4.3_p30-r1
ld GNU ld (Gentoo 2.24 p1.4) 2.24
app-shells/bash:          4.3_p30-r1
dev-java/java-config:     2.2.0
dev-lang/perl:            5.20.1-r4
dev-lang/python:          2.7.9-r1, 3.3.5-r1, 3.4.2
dev-util/cmake:           3.0.2
dev-util/pkgconfig:       0.28-r2
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.13.6
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.14.1
sys-devel/binutils:       2.24-r3
sys-devel/gcc:            4.7.4, 4.8.3, 4.9.2
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.4
sys-devel/make:           4.1-r1
sys-kernel/linux-headers: 3.18 (virtual/os-headers)
sys-libs/glibc:           2.20-r1
Repositories: gentoo x11
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
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 -march=native"
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"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://mirrors.stuhome.net/gentoo/ http://gentoo.mirrors.hoobly.com/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j6"
PKGDIR="/home/portage"
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="/chroot/tmpdir"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/x11"
USE="X a52 aac acl acpi alsa amd64 berkdb bluetooth branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cups cxx dri dts dvd dvdr emboss encode exif fam firefox flac fortran gdbm gif glamor gpm gtk iconv introspection ipv6 jpeg lcms libnotify mad mmx mng modules mp3 mp4 mpeg multilib ncurses nls nptl ogg opencl opengl openmp pam pango pcre pdf png policykit ppds python qt3support qt4 r600-llvm-compiler readline sdl session spell sqlite sse sse2 ssl startup-notification svg tcl tcpd tiff tk truetype tty-helpers udev udisks unicode upower usb vorbis wxwidgets x264 xcb xml 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 ublox 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_3" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="radeon" 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 ahudson.news 2015-09-03 12:43:46 UTC
The same failure is still present in the recently stabilized sys-apps/man-db-2.7.2
Comment 2 tiage 2016-11-20 12:30:29 UTC
The same failure is still present in sys-apps/man-db-2.7.5.
Comment 3 tiage 2017-01-11 18:43:02 UTC
The same failure is also present in sys-apps/man-db-2.7.6.1.
Comment 4 Kent Fredric (IRC: kent\n) (RETIRED) gentoo-dev 2017-03-28 08:19:00 UTC
*** Bug 609424 has been marked as a duplicate of this bug. ***
Comment 5 tka 2019-10-14 17:45:42 UTC
The failure is still present in sys-apps/man-db-2.8.7.
Comment 6 Toralf Förster gentoo-dev 2020-01-08 21:29:26 UTC
*** Bug 623720 has been marked as a duplicate of this bug. ***
Comment 7 Sergei Trofimovich (RETIRED) gentoo-dev 2020-05-30 09:02:09 UTC
With patch from https://bugs.gentoo.org/590084 the error message is slightly less confusing:

"""
PASS: man-9
 * ACCESS DENIED:  opendir:      '.' (from deleted directory, see https://bugs.gentoo.org/590084)
 * ACCESS DENIED:  opendir:      '.' (from deleted directory, see https://bugs.gentoo.org/590084)
 * ACCESS DENIED:  opendir:      '.' (from deleted directory, see https://bugs.gentoo.org/590084)
 * ACCESS DENIED:  opendir:      '.' (from deleted directory, see https://bugs.gentoo.org/590084)
"""
Comment 8 Sergei Trofimovich (RETIRED) gentoo-dev 2020-05-30 09:10:01 UTC
Test performs exactly that scenario:
"""
$ cat man-10
#! /bin/sh

# Test that man can run from a deleted directory.
#   https://bugs.debian.org/764384
...
"""

Sandbox can't verify what files are accessed relative to a deleted directory. In theory you can escape sandbox that way. The patch from #590084 should turn it into a non-fatal error.

Up to you how you want to handle it: wait for sandbox fix or just disable the test.
Comment 9 Larry the Git Cow gentoo-dev 2020-06-05 13:35:50 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e5a6bfb643858febc9ff8509363099b67465e220

commit e5a6bfb643858febc9ff8509363099b67465e220
Author:     Tobias Klausmann <klausman@gentoo.org>
AuthorDate: 2020-06-05 13:35:31 +0000
Commit:     Tobias Klausmann <klausman@gentoo.org>
CommitDate: 2020-06-05 13:35:31 +0000

    dev-libs/zlog: Remove .a files from build and install
    
    Closes: https://bugs.gentoo.org/534172
    Package-Manager: Portage-2.3.100, Repoman-2.3.22
    Signed-off-by: Tobias Klausmann <klausman@gentoo.org>

 dev-libs/zlog/files/zlog_no_static_lib.patch       | 59 ++++++++++++++++++++++
 .../{zlog-1.2.14.ebuild => zlog-1.2.14-r1.ebuild}  |  3 +-
 2 files changed, 61 insertions(+), 1 deletion(-)
Comment 10 Tobias Klausmann (RETIRED) gentoo-dev 2020-06-05 13:36:55 UTC
(In reply to Larry the Git Cow from comment #9)
> The bug has been closed via the following commit(s):
> 
> https://gitweb.gentoo.org/repo/gentoo.git/commit/
> ?id=e5a6bfb643858febc9ff8509363099b67465e220
> 
> commit e5a6bfb643858febc9ff8509363099b67465e220
> Author:     Tobias Klausmann <klausman@gentoo.org>
> AuthorDate: 2020-06-05 13:35:31 +0000
> Commit:     Tobias Klausmann <klausman@gentoo.org>
> CommitDate: 2020-06-05 13:35:31 +0000
> 
>     dev-libs/zlog: Remove .a files from build and install
>     
>     Closes: https://bugs.gentoo.org/534172
>     Package-Manager: Portage-2.3.100, Repoman-2.3.22
>     Signed-off-by: Tobias Klausmann <klausman@gentoo.org>
> 
>  dev-libs/zlog/files/zlog_no_static_lib.patch       | 59
> ++++++++++++++++++++++
>  .../{zlog-1.2.14.ebuild => zlog-1.2.14-r1.ebuild}  |  3 +-
>  2 files changed, 61 insertions(+), 1 deletion(-)

C&p error. sorry.
Comment 11 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-02-07 02:39:46 UTC
Is this still an issue?

I think at least the latter issue slyfox was referring to was fixed in bug 699466.
Comment 12 ahudson.news 2022-02-07 10:34:08 UTC
(In reply to Sam James from comment #11)
> Is this still an issue?

I haven't had to mask tests in any sys-apps/man-db-2.9.* , so it looks like it's all good.