Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 621932 - dev-lang/rust-1.16.0 - run-pass/env-funky-keys.rs test failure
Summary: dev-lang/rust-1.16.0 - run-pass/env-funky-keys.rs test failure
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Rust Project
URL:
Whiteboard:
Keywords: TESTFAILURE
Depends on:
Blocks:
 
Reported: 2017-06-16 18:34 UTC by tka
Modified: 2020-02-22 10:32 UTC (History)
5 users (show)

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


Attachments
build.log (build.log.xz,81.77 KB, application/x-xz)
2017-06-16 18:34 UTC, tka
Details

Note You need to log in before you can comment on or make changes to this bug.
Description tka 2017-06-16 18:34:37 UTC
Created attachment 476704 [details]
build.log

The test run-pass/env-funky-keys.rs of rust-1.16.0 fails. The error indicates that the failure is related to FEATURES=sandbox.



failures:

---- [run-pass] run-pass/env-funky-keys.rs stdout ----
	
error: test run failed!
status: exit code: 101
command: x86_64-unknown-linux-gnu/test/run-pass/env-funky-keys.stage2-x86_64-unknown-linux-gnu 
stdout:
------------------------------------------

------------------------------------------
stderr:
------------------------------------------
thread 'main' panicked at 'found env value "LD_PRELOAD" "libsandbox.so"', /var/tmp/portage/dev-lang/rust-1.16.0/work/rustc-1.16.0-src/src/test/run-pass/env-funky-keys.rs:32
note: Run with `RUST_BACKTRACE=1` for a backtrace.

------------------------------------------

thread '[run-pass] run-pass/env-funky-keys.rs' panicked at 'explicit panic', /var/tmp/portage/dev-lang/rust-1.16.0/work/rustc-1.16.0-src/src/tools/compiletest/src/runtest.rs:2474
note: Run with `RUST_BACKTRACE=1` for a backtrace.


failures:
    [run-pass] run-pass/env-funky-keys.rs

test result: FAILED. 2612 passed; 1 failed; 3 ignored; 0 measured

thread 'main' panicked at 'Some tests failed', /var/tmp/portage/dev-lang/rust-1.16.0/work/rustc-1.16.0-src/src/tools/compiletest/src/main.rs:329
make: *** [/var/tmp/portage/dev-lang/rust-1.16.0/work/rustc-1.16.0-src/mk/tests.mk:775: tmp/check-stage2-T-x86_64-unknown-linux-gnu-H-x86_64-unknown-linux-gnu-rpass.ok] Error 101
Comment 1 tka 2017-06-16 18:35:43 UTC
# emerge --info '=dev-lang/rust-1.16.0::gentoo'
Portage 2.3.6 (python 3.4.6-final-0, hardened/linux/amd64/no-multilib, gcc-6.3.0, glibc-2.24-r2, 4.11.5 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.11.5-x86_64-Intel-R-_Core-TM-_i7-3720QM_CPU_@_2.60GHz-with-gentoo-2.4.1
KiB Mem:    16397600 total,   7169640 free
KiB Swap:   17825788 total,  17825788 free
Timestamp of repository gentoo: Fri, 16 Jun 2017 14:00:01 +0000
sh bash 4.4_p12
ld GNU ld (Gentoo 2.28 p1.2) 2.28
app-shells/bash:          4.4_p12::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.24.1-r2::gentoo
dev-lang/python:          2.7.13::gentoo, 3.4.6::gentoo
dev-util/cmake:           3.8.2::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.4.1::gentoo
sys-apps/openrc:          0.27.2::gentoo
sys-apps/sandbox:         2.10-r4::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r3::gentoo
sys-devel/automake:       1.15-r2::gentoo
sys-devel/binutils:       2.28-r2::gentoo
sys-devel/gcc:            6.3.0::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r4::gentoo
sys-devel/make:           4.2.1-r1::gentoo
sys-kernel/linux-headers: 4.10::gentoo (virtual/os-headers)
sys-libs/glibc:           2.24-r2::gentoo
Repositories:

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

local
    location: /var/lib/portage-local/local
    masters: gentoo
    priority: 0

testing
    location: /var/lib/portage-local/testing
    masters: gentoo
    priority: 1

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -mtune=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /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="-march=native -mtune=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps=y"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs cgroup collision-protect config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync network-sandbox 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"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu"
MAKEOPTS="-j8"
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="X a52 acl acpi alsa amd64 avx berkdb bzip2 cairo caps cdda cddb cdparanoia cli cracklib crypt cups cxx dbus dri dts dvd fam ffmpeg fftw flac fontconfig gdbm gif gimp gmp gnutls gtk hardened iconv icu idn ipv6 jpeg justify lame lcms libnotify lzma mad matroska mmap mmx mmxext modules mp3 mpeg ncurses networkmanager nptl ogg opengl openmp pam pcre pie png policykit ppds readline sasl sdl seccomp session sse sse2 sse3 sse4 sse4_1 sse4_2 ssl ssp ssse3 startup-notification svg tcpd theora threads tiff truetype udev udisks unicode upower vaapi vorbis wayland x264 xattr xcb xinerama xml xtpax 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" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx f16c mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="pc" INPUT_DEVICES="evdev synaptics" 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="python3_4" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby21 ruby22" USERLAND="GNU" VIDEO_CARDS="i965 intel nouveau" XFCE_PLUGINS="power" 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, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON


# emerge -pqv '=dev-lang/rust-1.16.0::gentoo'
[ebuild  N    ] dev-lang/rust-1.16.0  USE="-clang -debug -doc -libcxx" 
[ebuild  N    ] dev-util/cargo-0.17.0  USE="-debug -doc -libressl"
Comment 2 Kent Fredric (IRC: kent\n) (RETIRED) gentoo-dev 2017-07-01 23:24:12 UTC
Been happening like this since at least 1.15.1
Comment 3 Dirkjan Ochtman (RETIRED) gentoo-dev 2018-06-06 09:03:57 UTC
Do you still see this with 1.26.x? If not, let's close this.
Comment 4 tka 2018-06-07 18:45:24 UTC
(In reply to Dirkjan Ochtman from comment #3)
> Do you still see this with 1.26.x?

I don't see it with 1.26.2. But, I do not see any output from the tests, so I'm not sure the test was actually running:

>>> Source compiled.
>>> Test phase: dev-lang/rust-1.26.2
>>> Completed testing dev-lang/rust-1.26.2

>>> Install rust-1.26.2 into /var/tmp/portage/dev-lang/rust-1.26.2/image/
Comment 5 Oleg 2018-06-08 04:16:29 UTC
I think it related https://github.com/rust-lang/rust/issues/49874
Comment 6 tka 2018-06-10 20:21:14 UTC
(In reply to Oleg from comment #5)
> I think it related https://github.com/rust-lang/rust/issues/49874

No, it is more like the entire test suite isn't run in the current ebuilds.
Comment 7 Georgy Yakovlev archtester gentoo-dev 2020-02-22 10:32:36 UTC
we no longer have tests in current ebuilds.
but even on current versions this test fails due to LD_PRELOAD ( I run testsuite manually before release)

soon we'll get tests back and we'll be skipping it.