Summary: | sys-apps/sandbox-2.29: breaks dev-lang/go-1.17.9 build (libsandbox/trace/linux/x86_64.c:pers_is_32():36: failure (Success): * unknown x86_64 (CS) personality++ echo FAIL=true) | ||
---|---|---|---|
Product: | Portage Development | Reporter: | Konstantin Agouros <elwood> |
Component: | Sandbox | Assignee: | Sandbox Maintainers <sandbox> |
Status: | UNCONFIRMED --- | ||
Severity: | normal | CC: | arkamar, dblaci, jstein, prestopoole, sam, williamh |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | AMD64 | ||
OS: | Linux | ||
See Also: |
https://bugs.gentoo.org/show_bug.cgi?id=835375 https://bugs.gentoo.org/show_bug.cgi?id=898640 |
||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | ebuild log |
Description
Konstantin Agouros
2022-04-23 12:25:48 UTC
Created attachment 773489 [details]
ebuild log
Adding FEATURES=-sandbox seems to fix it If you downgrade sandbox, does that help? To which version? (In reply to Konstantin Agouros from comment #4) > To which version? Try each of the previous versions in tree? But in particular 2.24 and 2.25. Trying the others would be a bonus. 2.2.4 and 2.2.5 run without complaint across the critical command. I rebuilt sandbox 2.2.9 it fails with the same error. (In reply to Konstantin Agouros from comment #6) > 2.2.4 and 2.2.5 run without complaint across the critical command. > > I rebuilt sandbox 2.2.9 it fails with the same error. What about 2.26, 2.27, 2.28? It seems to be the CFLAGS. I tried 2.2.9 on an intel machine with march=native and -O3 -> there is no problem. I will try it on another Ryzen-machine tomorrow with the same flags as on the problematic host. I tried on a VM on a ryzen host. This is a ryzen 5 5600U vs a ryzen 7 1700 on the problematic host. sandbox 2.2.9 works like a charme no problem as well. Could it be that -march=znver1 on the Ryzen7 causes the problems? Only other difference is: on the problematic host the build is happening in the Dom0 of Xen. downgrading to =sys-apps/sandbox-2.25 works for me (the latest stable amd64) with 2.29 the same error happened as in the first post with the go and containerd packages. make.conf CFLAGS: CFLAGS="-O2 -pipe -march=x86-64 -mtune=generic" cpu: Intel(R) Xeon(R) CPU E5-1650 0 @ 3.20GHz (In reply to Sam James from comment #7) > (In reply to Konstantin Agouros from comment #6) > > 2.2.4 and 2.2.5 run without complaint across the critical command. > > > > I rebuilt sandbox 2.2.9 it fails with the same error. > > What about 2.26, 2.27, 2.28? Can someone try these? Sure. I tried 2.25 because that was the last stable. Here are the results: =sys-apps/sandbox-2.26 building: dev-lang/go-1.18.2:0/1.18.2::gentoo Works. =sys-apps/sandbox-2.27 building: dev-lang/go-1.18.2:0/1.18.2::gentoo Works. =sys-apps/sandbox-2.28 building: dev-lang/go-1.18.2:0/1.18.2::gentoo Fail! * /var/tmp/portage/sys-apps/sandbox-2.28/work/sandbox-2.28/libsandbox/trace/linux/x86_64.c:pers_is_32():36: failure (Siker): * unknown x86_64 (CS) personality++ echo FAIL=true (In reply to Konstantin Agouros from comment #2) > Adding FEATURES=-sandbox seems to fix it This failed for me, `FEATURES=“-sandbox -usersandbox“ emerge -u dev-lang/go` wfm I can confirm the problem. Nothing Go related compiles with sandbox >2.27 on at least AMD64. I only became aware of the issue yesterday when new versions app-containers/containerd-1.6.8, app-containers/docker-20.10.17, app-containers/docker-cli-20.10.17 and app-containers/runc-1.1.3 showed up in portage. None of those compile anymore. No problems with =sandbox-2.27. I've also tried to emerge glibc and gcc and then =sandbox-2.29 but it is still the same issue. I'm running a build server within a Xen domU. On genoo-sources 5.10.x, emerging any Go related package fails now, on gentoo-sources 5.15.x it crashes the whole domU. Also emerge -eDNuvp --with-bdeps=y --changed-deps=y @world doesn't resolve the issue. Please let me know, how I can help to sort out this issue. I had the same issue with dev-lang/go-1.19.4 update on outdated machine with xen-4.13.2 in DOM0. I was able to update it after rebooting to xen-4.15.4. I am not sure if it was actually resolved by xen update but I have suspicion it was because I successfully updated it on similar machine without xen. Portage 3.0.41 (python 3.10.9-final-0, default/linux/amd64/17.1/hardened, gcc-11, glibc-2.36-r5, 6.0.18-gentoo x86_64) ================================================================= System uname: Linux-6.0.18-gentoo-x86_64-AMD_Opteron-tm-_Processor_6320-with-glibc2.36 KiB Mem: 23935992 total, 22006420 free KiB Swap: 0 total, 0 free Timestamp of repository gentoo: Mon, 09 Jan 2023 15:15:01 +0000 Head commit of repository gentoo: 0bd990c9fb95eb9628ff3708872417666a87a7d8 sh bash 5.1_p16-r2 ld GNU ld (Gentoo 2.38 p4) 2.38 app-misc/pax-utils: 1.3.5::gentoo app-shells/bash: 5.1_p16-r2::gentoo dev-lang/perl: 5.36.0-r1::gentoo dev-lang/python: 3.8.16::gentoo, 3.9.16::gentoo, 3.10.9::gentoo, 3.11.1::gentoo dev-util/cmake: 3.24.3::gentoo dev-util/meson: 0.64.1::gentoo sys-apps/baselayout: 2.9::gentoo sys-apps/openrc: 0.45.2-r2::gentoo sys-apps/sandbox: 2.29::gentoo sys-devel/autoconf: 2.71-r5::gentoo sys-devel/automake: 1.16.5::gentoo sys-devel/binutils: 2.38-r2::gentoo, 2.39-r4::gentoo sys-devel/binutils-config: 5.4.1::gentoo sys-devel/gcc: 11.3.1_p20221209::gentoo sys-devel/gcc-config: 2.8::gentoo sys-devel/libtool: 2.4.7::gentoo sys-devel/make: 4.3::gentoo sys-kernel/linux-headers: 6.1::gentoo (virtual/os-headers) sys-libs/glibc: 2.36-r5::gentoo Repositories: gentoo location: /usr/portage sync-type: rsync sync-uri: rsync://rsync.europe.gentoo.org/gentoo-portage priority: -1000 sync-rsync-verify-metamanifest: yes sync-rsync-verify-jobs: 1 sync-rsync-extra-opts: sync-rsync-verify-max-age: 24 ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="@FREE" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=native -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /var/qmail/alias /var/qmail/control" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXXFLAGS="-march=native -O2 -pipe" DISTDIR="/usr/portage/distfiles" EMERGE_DEFAULT_OPTS="--jobs=8 --load-average=10.4" ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOM E" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserv e-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="http://distfiles.gentoo.org" LANG="en_US.utf8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" LEX="flex" MAKEOPTS="--jobs=8 --load-average=10.4" 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" SHELL="/bin/zsh" USE="acl amd64 bzip2 cli crypt dri fortran gdbm hardened iconv ipv6 libglvnd libtirpc lm_sensors multilib ncurses nls nptl openmp pam pcre pie qmail-spp readline seccomp split-usr ssl ssp test-rust unicode xattr xtpax zlib" ABI_X86="64" AD A_TARGET="gnat_2021" 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 au toindex 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 usertr ack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx fma3 fma4 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 xop" ELIBC="glibc" GPSD _PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFO RMS="pc xen" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS= "lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-4 php8-0" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_10" PYTHON_TARGETS="python3_10" QEMU_SOFTMMU_TARGETS="aarch64 arm i386 x86_64" RUBY_TARGETS="ru by27" USERLAND="GNU" VIDEO_CARDS="amdgpu fbdev intel nouveau radeon radeonsi vesa dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ip mark dhcpmac delude chaos account" Unset: ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, NM, OBJCOPY, O BJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS I've struggled to reproduce this but the virtualisation theme seems persistent. *** Bug 895952 has been marked as a duplicate of this bug. *** (In reply to Petr Vaněk from comment #15) > I had the same issue with dev-lang/go-1.19.4 update on outdated machine with > xen-4.13.2 in DOM0. I was able to update it after rebooting to xen-4.15.4. I > am not sure if it was actually resolved by xen update but I have suspicion > it was because I successfully updated it on similar machine without xen. > > Portage 3.0.41 (python 3.10.9-final-0, default/linux/amd64/17.1/hardened, > gcc-11, glibc-2.36-r5, 6.0.18-gentoo x86_64) > ================================================================= > System uname: > Linux-6.0.18-gentoo-x86_64-AMD_Opteron-tm-_Processor_6320-with-glibc2.36 > KiB Mem: 23935992 total, 22006420 free > KiB Swap: 0 total, 0 free > Timestamp of repository gentoo: Mon, 09 Jan 2023 15:15:01 +0000 > Head commit of repository gentoo: 0bd990c9fb95eb9628ff3708872417666a87a7d8 > sh bash 5.1_p16-r2 > ld GNU ld (Gentoo 2.38 p4) 2.38 > app-misc/pax-utils: 1.3.5::gentoo > app-shells/bash: 5.1_p16-r2::gentoo > dev-lang/perl: 5.36.0-r1::gentoo > dev-lang/python: 3.8.16::gentoo, 3.9.16::gentoo, 3.10.9::gentoo, > 3.11.1::gentoo > dev-util/cmake: 3.24.3::gentoo > dev-util/meson: 0.64.1::gentoo > sys-apps/baselayout: 2.9::gentoo > sys-apps/openrc: 0.45.2-r2::gentoo > sys-apps/sandbox: 2.29::gentoo > sys-devel/autoconf: 2.71-r5::gentoo > sys-devel/automake: 1.16.5::gentoo > sys-devel/binutils: 2.38-r2::gentoo, 2.39-r4::gentoo > sys-devel/binutils-config: 5.4.1::gentoo > sys-devel/gcc: 11.3.1_p20221209::gentoo > sys-devel/gcc-config: 2.8::gentoo > sys-devel/libtool: 2.4.7::gentoo > sys-devel/make: 4.3::gentoo > sys-kernel/linux-headers: 6.1::gentoo (virtual/os-headers) > sys-libs/glibc: 2.36-r5::gentoo > Repositories: > > gentoo > location: /usr/portage > sync-type: rsync > sync-uri: rsync://rsync.europe.gentoo.org/gentoo-portage > priority: -1000 > sync-rsync-verify-metamanifest: yes > sync-rsync-verify-jobs: 1 > sync-rsync-extra-opts: > sync-rsync-verify-max-age: 24 > > ACCEPT_KEYWORDS="amd64" > ACCEPT_LICENSE="@FREE" > CBUILD="x86_64-pc-linux-gnu" > CFLAGS="-march=native -O2 -pipe" > CHOST="x86_64-pc-linux-gnu" > CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /var/qmail/alias > /var/qmail/control" > CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf > /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" > CXXFLAGS="-march=native -O2 -pipe" > DISTDIR="/usr/portage/distfiles" > EMERGE_DEFAULT_OPTS="--jobs=8 --load-average=10.4" > ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY > GDK_PIXBUF_MODULE_FILE GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE > PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME > XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOM > E" > FCFLAGS="-O2 -pipe" > FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs > buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles > ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch > pid-sandbox preserv > e-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict > unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv > usersandbox usersync xattr" > FFLAGS="-O2 -pipe" > GENTOO_MIRRORS="http://distfiles.gentoo.org" > LANG="en_US.utf8" > LDFLAGS="-Wl,-O1 -Wl,--as-needed" > LEX="flex" > MAKEOPTS="--jobs=8 --load-average=10.4" > 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" > SHELL="/bin/zsh" > USE="acl amd64 bzip2 cli crypt dri fortran gdbm hardened iconv ipv6 libglvnd > libtirpc lm_sensors multilib ncurses nls nptl openmp pam pcre pie qmail-spp > readline seccomp split-usr ssl ssp test-rust unicode xattr xtpax zlib" > ABI_X86="64" AD > A_TARGET="gnat_2021" 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 au > toindex 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 usertr > ack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" > COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" > CPU_FLAGS_X86="aes avx fma3 fma4 mmx mmxext popcnt sse sse2 sse3 sse4_1 > sse4_2 sse4a ssse3 xop" ELIBC="glibc" GPSD > _PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock > greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore > rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox > ubx" GRUB_PLATFO > RMS="pc xen" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad > cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" > LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" > LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS= > "lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-4 php8-0" > POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_10" > PYTHON_TARGETS="python3_10" QEMU_SOFTMMU_TARGETS="aarch64 arm i386 x86_64" > RUBY_TARGETS="ru > by27" USERLAND="GNU" VIDEO_CARDS="amdgpu fbdev intel nouveau radeon radeonsi > vesa dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options > ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat > logmark ip > mark dhcpmac delude chaos account" > Unset: ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, > CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EXTRA_ECONF, F77FLAGS, FC, GCOV, > GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, > NM, OBJCOPY, O > BJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, > PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, > RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS I have app-emulation/xen Installed versions: 4.15.4^st(02:47:47 PM 02/11/2023)(efi -debug -flask) and installation of dev-lang/go-1.19.6 failed, see Bug #895952 |