>>> test ./qa_environment_TEST Test program /var/tmp/portage/sys-apps/paludis-0.8.2/work/paludis-0.8.2/paludis/qa/.libs/lt-qa_environment_TEST: * "paludis_command": ACCESS DENIED open_rd: /etc/spork/is/not/valid/profile.env /bin/bash: /etc/spork/is/not/valid/profile.env: Permission denied ACCESS DENIED open_rd: /etc/spork/is/not/valid/profile.env /bin/bash: /etc/spork/is/not/valid/profile.env: Permission denied ACCESS DENIED execve: /bin/dirname ACCESS DENIED open_rd: /bin/dirname ../../ebuild//ebuild.bash: line 74: /bin/dirname: No such file or directory ACCESS DENIED open_rd: /etc/spork/is/not/valid/profile.env /bin/bash: /etc/spork/is/not/valid/profile.env: Permission denied ACCESS DENIED execve: /bin/uname ACCESS DENIED open_rd: /bin/uname ../../ebuild//utils/canonicalise: line 2: /bin/uname: No such file or directory ACCESS DENIED execve: /bin/readlink ACCESS DENIED open_rd: /bin/readlink ../../ebuild//utils/canonicalise: line 4: /bin/readlink: No such file or directory !!! ERROR in cat-one/pkg-one-1: !!! In ? at line 75 !!! is not a directory !!! Call stack: !!! * main (../../ebuild//ebuild.bash:75) die trap: exiting with error. --------------------------- ACCESS VIOLATION SUMMARY --------------------------- LOG FILE = "/var/log/sandbox/sandbox-sys-apps_-_paludis-0.8.2-29865.log" open_rd: /etc/spork/is/not/valid/profile.env open_rd: /etc/spork/is/not/valid/profile.env execve: /bin/dirname open_rd: /bin/dirname open_rd: /etc/spork/is/not/valid/profile.env execve: /bin/uname open_rd: /bin/uname execve: /bin/readlink open_rd: /bin/readlink -------------------------------------------------------------------------------- .!{ qa_environment_TEST.cc:47: in virtual void test_cases::QAEnvironmentPaludisCommandTest::run(): Check 'r1.empty()' failed [context: r1=(5) Couldn't generate metadata] } NOT OK (repeat): ACCESS DENIED open_rd: /etc/spork/is/not/valid/profile.env /bin/bash: /etc/spork/is/not/valid/profile.env: Permission denied ACCESS DENIED open_rd: /etc/spork/is/not/valid/profile.env /bin/bash: /etc/spork/is/not/valid/profile.env: Permission denied ACCESS DENIED execve: /bin/dirname ACCESS DENIED open_rd: /bin/dirname ../../ebuild//ebuild.bash: line 74: /bin/dirname: No such file or directory ACCESS DENIED open_rd: /etc/spork/is/not/valid/profile.env /bin/bash: /etc/spork/is/not/valid/profile.env: Permission denied ACCESS DENIED execve: /bin/uname ACCESS DENIED open_rd: /bin/uname ../../ebuild//utils/canonicalise: line 2: /bin/uname: No such file or directory ACCESS DENIED execve: /bin/readlink ACCESS DENIED open_rd: /bin/readlink ../../ebuild//utils/canonicalise: line 4: /bin/readlink: No such file or directory !!! ERROR in cat-one/pkg-one-1: !!! In ? at line 75 !!! is not a directory !!! Call stack: !!! * main (../../ebuild//ebuild.bash:75) die trap: exiting with error. --------------------------- ACCESS VIOLATION SUMMARY --------------------------- LOG FILE = "/var/log/sandbox/sandbox-sys-apps_-_paludis-0.8.2-29872.log" open_rd: /etc/spork/is/not/valid/profile.env open_rd: /etc/spork/is/not/valid/profile.env execve: /bin/dirname open_rd: /bin/dirname open_rd: /etc/spork/is/not/valid/profile.env execve: /bin/uname open_rd: /bin/uname execve: /bin/readlink open_rd: /bin/readlink -------------------------------------------------------------------------------- .!{ qa_environment_TEST.cc:47: in virtual void test_cases::QAEnvironmentPaludisCommandTest::run(): Check 'r1.empty()' failed [context: r1=(5) Couldn't generate metadata] } NOT OK >>> cleanup for test ./qa_environment_TEST >>> exiting with error for test ./qa_environment_TEST FAIL: qa_environment_TEST ==================== 1 of 11 tests failed ==================== make[5]: *** [check-TESTS] Error 1 make[5]: Leaving directory `/var/tmp/portage/sys-apps/paludis-0.8.2/work/paludis-0.8.2/paludis/qa' make[4]: *** [check-am] Error 2 make[4]: Leaving directory `/var/tmp/portage/sys-apps/paludis-0.8.2/work/paludis-0.8.2/paludis/qa' make[3]: *** [check] Error 2 make[3]: Leaving directory `/var/tmp/portage/sys-apps/paludis-0.8.2/work/paludis-0.8.2/paludis/qa' make[2]: *** [check-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/sys-apps/paludis-0.8.2/work/paludis-0.8.2/paludis' make[1]: *** [check] Error 2 make[1]: Leaving directory `/var/tmp/portage/sys-apps/paludis-0.8.2/work/paludis-0.8.2/paludis' make: *** [check-recursive] Error 1
Created attachment 101702 [details] sandbox log 1
Created attachment 101703 [details] sandbox log 2
# emerge --info Portage 2.1.2_rc1-r5 (default-linux/amd64/2006.1, gcc-4.1.1, glibc-2.5-r0, 2.6.18-gentoo-r2 x86_64) ================================================================= System uname: 2.6.18-gentoo-r2 x86_64 AMD Athlon(tm) 64 Processor 3500+ Gentoo Base System version 1.12.6 Last Sync: Sat, 11 Nov 2006 18:50:01 +0000 distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.4 [enabled] dev-java/java-config: 1.3.7, 2.0.30 dev-lang/python: 2.4.4 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: 2.4-r6 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, 1.10 sys-devel/binutils: 2.17 sys-devel/gcc-config: 1.3.14 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.17-r1 ACCEPT_KEYWORDS="amd64 ~amd64" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS=" -march=athlon64 -Os -pipe " CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /opt/jetty/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config /var/bind" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c" CXXFLAGS=" -march=athlon64 -Os -pipe " DISTDIR="/home/ftp/distfiles" EMERGE_DEFAULT_OPTS="--with-bdeps y" FEATURES="autoconfig ccache collision-protect cvs distlocks elog java-strict metadata-transfer multilib-strict sandbox sfperms sign strict stricter test userfetch userpriv" GENTOO_MIRRORS="http://mirror.switch.ch/ftp/mirror/gentoo/ ftp://mirror.switch.ch/mirror/gentoo/ " LANG="it_IT.utf8" LINGUAS="it" PKGDIR="/home/ftp/packages" PORTAGE_RSYNC_EXTRA_OPTS=" --timeout=400 --progress " 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/overlays/portage /usr/local/overlays/tinyos" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="amd64 7zip X a52 aac aalib acl acpi alsa amr aoss apache2 arts asf audiofile avahi bash-completion berkdb bitmap-fonts bl bzip2 cairo canvas caps ccache cdb cddb cdparanoia cdr chroot cli cpudetection cracklib crypt css cups curl dba dbus devhelp dga directfb djvu dlloader dmi dri dts dv dvd dvdr dvdread dynagraph elibc_glibc encode erandom esd exif expat extrafilters fame ffmpeg firefox flac fltk foomaticdb gd gdbm ggi gif gimp gimpprint glibc-omitfp glut gmp gnokii gnome gnutls gphoto2 gpm graphviz gtk gtkhtml guile hal howl-compat iconv idn ieee1394 imagemagick imlib input_devices_evdev input_devices_keyboard input_devices_mouse ipv6 isdnlog ithreads java javacomm jbig jikes jpeg jpeg2k justify kde kdeenablefinal kdehiddenvisibility kernel_linux lcms ldap libcaca libg++ libnotify linguas_it linuxthreads-tls lm_sensors logitech-mouse logrotate lzo mad mailwrapper matroska mbox mdb mhash mikmod mjpeg mmap mng motif mozdevelop mozsvg mp3 mpeg mpm-worker msn musepack musicbrainz mysql ncurses nfs nls nptl nptlonly nsplugin numeric nvidia odbc offensive ogg on-the-fly-crypt openexr opengl oss pam pcre pdf perl php png povray ppds pppd pulseaudio python qa qt3 qt4 quicktime rdesktop readline reflection restrict-javascript rtc samba scanner sdl session slang smime smp sndfile snmp speex spell spl ssl startup-notification subversion svg sysfs syslog tcltk tcpd test tetex tga theora threads tidy tiff timidity tk truetype truetype-fonts type1-fonts udev unicode usb userland_GNU userlocales utempter utf8 v4l v4l2 vcd vda video_cards_nv video_cards_nvidia vorbis vorbis-psy wma wmf wmp xcomposite xforms xine xinerama xml xml2 xorg xpm xscreensaver xv xvid xvmc yv12 zeroconf zlib" Unset: CTARGET, INSTALL_MASK, LC_ALL, LDFLAGS, MAKEOPTS
Hrm, what if we export BASH_ENV="/var/empty" in src_test?
Try 0.8.4.
Access violation still present in 0.8.4. >>> test ./qa_environment_TEST Test program /var/tmp/portage/sys-apps/paludis-0.8.4/work/paludis-0.8.4/paludis/qa/.libs/lt-qa_environment_TEST: * "paludis_command": ACCESS DENIED open_rd: /dev/null /bin/bash: /dev/null: Permission denied ACCESS DENIED open_rd: /dev/null /bin/bash: /dev/null: Permission denied ACCESS DENIED execve: /bin/dirname ACCESS DENIED open_rd: /bin/dirname ../../ebuild//ebuild.bash: line 74: /bin/dirname: No such file or directory ACCESS DENIED open_rd: /dev/null /bin/bash: /dev/null: Permission denied ACCESS DENIED execve: /bin/uname ACCESS DENIED open_rd: /bin/uname ../../ebuild//utils/canonicalise: line 2: /bin/uname: No such file or directory ACCESS DENIED execve: /bin/readlink ACCESS DENIED open_rd: /bin/readlink ../../ebuild//utils/canonicalise: line 4: /bin/readlink: No such file or directory !!! ERROR in cat-one/pkg-one-1: !!! In ? at line 75 !!! is not a directory !!! Call stack: !!! * main (../../ebuild//ebuild.bash:75) die trap: exiting with error. --------------------------- ACCESS VIOLATION SUMMARY --------------------------- LOG FILE = "/var/log/sandbox/sandbox-sys-apps_-_paludis-0.8.4-25971.log" open_rd: /dev/null open_rd: /dev/null execve: /bin/dirname open_rd: /bin/dirname open_rd: /dev/null execve: /bin/uname open_rd: /bin/uname execve: /bin/readlink open_rd: /bin/readlink -------------------------------------------------------------------------------- .!{ qa_environment_TEST.cc:47: in virtual void test_cases::QAEnvironmentPaludisCommandTest::run(): Check 'r1.empty()' failed [context: r1=(5) Couldn't generate metadata] } NOT OK (repeat): ACCESS DENIED open_rd: /dev/null /bin/bash: /dev/null: Permission denied ACCESS DENIED open_rd: /dev/null /bin/bash: /dev/null: Permission denied ACCESS DENIED execve: /bin/dirname ACCESS DENIED open_rd: /bin/dirname ../../ebuild//ebuild.bash: line 74: /bin/dirname: No such file or directory ACCESS DENIED open_rd: /dev/null /bin/bash: /dev/null: Permission denied ACCESS DENIED execve: /bin/uname ACCESS DENIED open_rd: /bin/uname ../../ebuild//utils/canonicalise: line 2: /bin/uname: No such file or directory ACCESS DENIED execve: /bin/readlink ACCESS DENIED open_rd: /bin/readlink ../../ebuild//utils/canonicalise: line 4: /bin/readlink: No such file or directory !!! ERROR in cat-one/pkg-one-1: !!! In ? at line 75 !!! is not a directory !!! Call stack: !!! * main (../../ebuild//ebuild.bash:75) die trap: exiting with error. --------------------------- ACCESS VIOLATION SUMMARY --------------------------- LOG FILE = "/var/log/sandbox/sandbox-sys-apps_-_paludis-0.8.4-25979.log" open_rd: /dev/null open_rd: /dev/null execve: /bin/dirname open_rd: /bin/dirname open_rd: /dev/null execve: /bin/uname open_rd: /bin/uname execve: /bin/readlink open_rd: /bin/readlink -------------------------------------------------------------------------------- .!{ qa_environment_TEST.cc:47: in virtual void test_cases::QAEnvironmentPaludisCommandTest::run(): Check 'r1.empty()' failed [context: r1=(5) Couldn't generate metadata] } NOT OK >>> cleanup for test ./qa_environment_TEST >>> exiting with error for test ./qa_environment_TEST FAIL: qa_environment_TEST ==================== 1 of 11 tests failed ==================== make[5]: *** [check-TESTS] Error 1 make[5]: Leaving directory `/var/tmp/portage/sys-apps/paludis-0.8.4/work/paludis-0.8.4/paludis/qa' make[4]: *** [check-am] Error 2 make[4]: Leaving directory `/var/tmp/portage/sys-apps/paludis-0.8.4/work/paludis-0.8.4/paludis/qa' make[3]: *** [check] Error 2 make[3]: Leaving directory `/var/tmp/portage/sys-apps/paludis-0.8.4/work/paludis-0.8.4/paludis/qa' make[2]: *** [check-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/sys-apps/paludis-0.8.4/work/paludis-0.8.4/paludis' make[1]: *** [check] Error 2 make[1]: Leaving directory `/var/tmp/portage/sys-apps/paludis-0.8.4/work/paludis-0.8.4/paludis' make: *** [check-recursive] Error 1
Hrm. Now why does your sandbox deny read access to /dev/null?
(In reply to comment #7) > Hrm. Now why does your sandbox deny read access to /dev/null? > All I can tell is that revdep-rebuild doesn't find broken libs and # ls -l /dev/null crwxrwxrwx 1 root root 1, 3 22 ott 2000 /dev/null # qlist -ICv sandbox sys-apps/sandbox-1.2.18.1 # qlist -ICv sys-apps/portage sys-apps/portage-2.1.2_rc2-r1 FEATURES="metadata-transfer userfetch userpriv distlocks ccache ollision-protect test elog cvs multilib-strict strict stricter -parallel-fetch sign java-strict" if you need some other info feel free to ask.
Ok, 0.10.0 switches off sandbox spawning by Paludis entirely during src_test. If it still breaks, I'm blaming your system.
(In reply to comment #9) > Ok, 0.10.0 switches off sandbox spawning by Paludis entirely during src_test. > If it still breaks, I'm blaming your system. > I don't know if the problem is solved because paludis 0.10.0 fails test phase. In the successful part of the test the issue seems to be solved. The test fails here: >>> test ./uninstall_list_TEST Test program /var/tmp/portage/sys-apps/paludis-0.10.1/work/paludis-0.10.1/paludis/dep_list/.libs/lt-uninstall_list_TEST: * "uninstall list simple": ..[0]..[1]. OK (repeat): ..[0]..[1]. OK * "uninstall list repeat": ..[0]..[1]. OK (repeat): ..[0]..[1]. OK * "uninstall list with unused deps": . Test aborted due to segmentation fault! Stack dump: * /var/tmp/portage/sys-apps/paludis-0.10.1/work/paludis-0.10.1/paludis/dep_list/.libs/lt-uninstall_list_TEST [0x415788] * /var/tmp/portage/sys-apps/paludis-0.10.1/work/paludis-0.10.1/paludis/dep_list/.libs/lt-uninstall_list_TEST [0x415834] * /lib/libc.so.6 [0x3c6c8305a0] * /var/tmp/portage/sys-apps/paludis-0.10.1/work/paludis-0.10.1/paludis/dep_list/.libs/libpaludisdeplist.so.10(_ZN7paludis20UninstallListOptionsC1ERKbS2_+0) [0x2ab77714c53e] * /var/tmp/portage/sys-apps/paludis-0.10.1/work/paludis-0.10.1/paludis/dep_list/.libs/lt-uninstall_list_TEST [0x410693] * /var/tmp/portage/sys-apps/paludis-0.10.1/work/paludis-0.10.1/paludis/dep_list/.libs/lt-uninstall_list_TEST [0x41097e] * /var/tmp/portage/sys-apps/paludis-0.10.1/work/paludis-0.10.1/paludis/dep_list/.libs/lt-uninstall_list_TEST [0x413060] * /var/tmp/portage/sys-apps/paludis-0.10.1/work/paludis-0.10.1/paludis/dep_list/.libs/lt-uninstall_list_TEST [0x41479b] * /var/tmp/portage/sys-apps/paludis-0.10.1/work/paludis-0.10.1/paludis/dep_list/.libs/lt-uninstall_list_TEST [0x4149f9] * /var/tmp/portage/sys-apps/paludis-0.10.1/work/paludis-0.10.1/paludis/dep_list/.libs/lt-uninstall_list_TEST [0x4154ce] * /var/tmp/portage/sys-apps/paludis-0.10.1/work/paludis-0.10.1/paludis/dep_list/.libs/lt-uninstall_list_TEST [0x414b62] * /var/tmp/portage/sys-apps/paludis-0.10.1/work/paludis-0.10.1/paludis/dep_list/.libs/lt-uninstall_list_TEST [0x415759] * /lib/libc.so.6(__libc_start_main+0xf4) [0x3c6c81d394] * /var/tmp/portage/sys-apps/paludis-0.10.1/work/paludis-0.10.1/paludis/dep_list/.libs/lt-uninstall_list_TEST(__gxx_personality_v0+0xa9) [0x40def9] >>> exiting with error for test ./uninstall_list_TEST FAIL: uninstall_list_TEST =================== 1 of 2 tests failed =================== make[6]: *** [check-TESTS] Error 1 make[6]: Leaving directory `/var/tmp/portage/sys-apps/paludis-0.10.1/work/paludis-0.10.1/paludis/dep_list' make[5]: *** [check-am] Error 2 make[5]: Leaving directory `/var/tmp/portage/sys-apps/paludis-0.10.1/work/paludis-0.10.1/paludis/dep_list' make[4]: *** [check] Error 2 make[4]: Leaving directory `/var/tmp/portage/sys-apps/paludis-0.10.1/work/paludis-0.10.1/paludis/dep_list' make[3]: *** [check-recursive] Error 1 make[3]: Leaving directory `/var/tmp/portage/sys-apps/paludis-0.10.1/work/paludis-0.10.1/paludis' make[2]: *** [check] Error 2 make[2]: Leaving directory `/var/tmp/portage/sys-apps/paludis-0.10.1/work/paludis-0.10.1/paludis' make[1]: *** [check-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/sys-apps/paludis-0.10.1/work/paludis-0.10.1' make: *** [check] Error 2 If you prefer we can close this bug as resolved fixed and open a new one with the test phase failure.
The segfault is because you're using -Os, which causes your compiler to generate duff code. Try -O2 instead. I believe nichoj was considering adding a replace-flags for amd64 in the ebuild. If he hasn't, maybe you'd like to.
Ok, using -O2 instead of -Os solve the test failure. No more sandbox access violation. Thanks. I can't see the "CLOSE" option, marking this as resolved.
Ok, closing.