Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 295522 - sys-apps/sandbox-2.2: sys-libs/glibc-2.11 compile fail - ISE:_do_ptrace ptrace(PTRACE_PEEKDATA, ..., 0x0000000000002a18, 0x0000000000000000): Input/output error
Summary: sys-apps/sandbox-2.2: sys-libs/glibc-2.11 compile fail - ISE:_do_ptrace ptrac...
Status: RESOLVED NEEDINFO
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Sandbox (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Sandbox Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-12-03 06:43 UTC by Robin Johnson
Modified: 2012-03-08 12:28 UTC (History)
3 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 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2009-12-03 06:43:12 UTC
Forcing MAKEOPTS=-j1 caused glibc to compile fine, but I still think it shouldn't have happened in the first place. Reproduced on 4 different machines (all Opteron 2352, but 3 types of motherboards and RAM).

mkdir /dev/shm/portage/sys-libs/glibc-2.11/work/build-x86-x86_64-pc-linux-gnu-nptl/sunrpc/rpcsvc
CPP='x86_64-pc-linux-gnu-gcc -E -x c-header'  /dev/shm/portage/sys-libs/glibc-2.11/work/build-x86-x86_64-pc-linux-gnu-nptl/elf/ld-linux.so.2 --library-path /dev/shm/portage/sys-libs/glibc-2.11/work/build-x86-x86_64-pc-linux-gnu-nptl:/dev/shm/portage/sys-libs/glibc-2.11/work/build-x86-x86_64-pc-linux-gnu-nptl/math:/dev/shm/portage/sys-libs/glibc-2.11/work/build-x86-x86_64-pc-linux-gnu-nptl/elf:/dev/shm/portage/sys-libs/glibc-2.11/work/build-x86-x86_64-pc-linux-gnu-nptl/dlfcn:/dev/shm/portage/sys-libs/glibc-2.11/work/build-x86-x86_64-pc-linux-gnu-nptl/nss:/dev/shm/portage/sys-libs/glibc-2.11/work/build-x86-x86_64-pc-linux-gnu-nptl/nis:/dev/shm/portage/sys-libs/glibc-2.11/work/build-x86-x86_64-pc-linux-gnu-nptl/rt:/dev/shm/portage/sys-libs/glibc-2.11/work/build-x86-x86_64-pc-linux-gnu-nptl/resolv:/dev/shm/portage/sys-libs/glibc-2.11/work/build-x86-x86_64-pc-linux-gnu-nptl/crypt:/dev/shm/portage/sys-libs/glibc-2.11/work/build-x86-x86_64-pc-linux-gnu-nptl/nptl /dev/shm/portage/sys-libs/glibc-2.11/work/build-x86-x86_64-pc-linux-gnu-nptl/sunrpc/rpcgen -Y ../scripts -h rpcsvc/bootparam_prot.x -o /dev/shm/portage/sys-libs/glibc-2.11/work/build-x86-x86_64-pc-linux-gnu-nptl/sunrpc/rpcsvc/bootparam_prot.T
CPP='x86_64-pc-linux-gnu-gcc -E -x c-header'  /dev/shm/portage/sys-libs/glibc-2.11/work/build-x86-x86_64-pc-linux-gnu-nptl/elf/ld-linux.so.2 --library-path /dev/shm/portage/sys-libs/glibc-2.11/work/build-x86-x86_64-pc-linux-gnu-nptl:/dev/shm/portage/sys-libs/glibc-2.11/work/build-x86-x86_64-pc-linux-gnu-nptl/math:/dev/shm/portage/sys-libs/glibc-2.11/work/build-x86-x86_64-pc-linux-gnu-nptl/elf:/dev/shm/portage/sys-libs/glibc-2.11/work/build-x86-x86_64-pc-linux-gnu-nptl/dlfcn:/dev/shm/portage/sys-libs/glibc-2.11/work/build-x86-x86_64-pc-linux-gnu-nptl/nss:/dev/shm/portage/sys-libs/glibc-2.11/work/build-x86-x86_64-pc-linux-gnu-nptl/nis:/dev/shm/portage/sys-libs/glibc-2.11/work/build-x86-x86_64-pc-linux-gnu-nptl/rt:/dev/shm/portage/sys-libs/glibc-2.11/work/build-x86-x86_64-pc-linux-gnu-nptl/resolv:/dev/shm/portage/sys-libs/glibc-2.11/work/build-x86-x86_64-pc-linux-gnu-nptl/crypt:/dev/shm/portage/sys-libs/glibc-2.11/work/build-x86-x86_64-pc-linux-gnu-nptl/nptl /dev/shm/portage/sys-libs/glibc-2.11/work/build-x86-x86_64-pc-linux-gnu-nptl/sunrpc/rpcgen -Y ../scripts -h rpcsvc/nlm_prot.x -o /dev/shm/portage/sys-libs/glibc-2.11/work/build-x86-x86_64-pc-linux-gnu-nptl/sunrpc/rpcsvc/nlm_prot.T
ISE:_do_ptrace ptrace(PTRACE_PEEKDATA, ..., 0x0000000000002a18, 0x0000000000000000): Input/output error
/bin/sh ../scripts/move-if-change /dev/shm/portage/sys-libs/glibc-2.11/work/build-x86-x86_64-pc-linux-gnu-nptl/sunrpc/xnlm_prot.T /dev/shm/portage/sys-libs/glibc-2.11/work/build-x86-x86_64-pc-linux-gnu-nptl/sunrpc/xnlm_prot.c
/bin/sh ../scripts/move-if-change /dev/shm/portage/sys-libs/glibc-2.11/work/build-x86-x86_64-pc-linux-gnu-nptl/sunrpc/xrstat.T /dev/shm/portage/sys-libs/glibc-2.11/work/build-x86-x86_64-pc-linux-gnu-nptl/sunrpc/xrstat.c
/usr/lib/libsandbox.so[0x2aaed96fa7e2]
/usr/lib/libsandbox.so[0x2aaed96fa873]
/usr/lib/libsandbox.so[0x2aaed96fc595]
/usr/lib/libsandbox.so[0x2aaed96fc776]
/usr/lib/libsandbox.so[0x2aaed96fd230]
/usr/lib/libsandbox.so[0x2aaed96ffd7d]
/usr/lib/libsandbox.so(execve+0x56)[0x2aaed9700086]
/bin/sh(shell_execve+0x33)[0x42efe3]
/bin/sh[0x4343b8]
/bin/sh(execute_command_internal+0xb43)[0x430f43]
/proc/10774/cmdline: /dev/shm/portage/sys-libs/glibc-2.11/work/build-x86-x86_64-pc-linux-gnu-nptl/elf/ld-linux.so.2 --library-path /dev/shm/portage/sys-libs/glibc-2.11/work/build-x86-x86_64-pc-linux-gnu-nptl:/dev/shm/portage/sys-libs/glibc-2.11/work/build-x86-x86_64-pc-linux-gnu-nptl/math:/dev/shm/portage/sys-libs/glibc-2.11/work/build-x86-x86_64-pc-linux-gnu-nptl/elf:/dev/shm/portage/sys-libs/glibc-2.11/work/build-x86-x86_64-pc-linux-gnu-nptl/dlfcn:/dev/shm/portage/sys-libs/glibc-2.11/work/build-x86-x86_64-pc-linux-gnu-nptl/nss:/dev/shm/portage/sys-libs/glibc-2.11/work/build-x86-x86_64-pc-linux-gnu-nptl/nis:/dev/shm/portage/sys-libs/glibc-2.11/work/build-x86-x86_64-pc-linux-gnu-nptl/rt:/dev/shm/portage/sys-libs/glibc-2.11/work/build-x86-x86_64-pc-linux-gnu-nptl/resolv:/dev/shm/portage/sys-libs/glibc-2.11/work/build-x86-x86_64-pc-linux-gnu-nptl/crypt:/dev/shm/portage/sys-libs/glibc-2.11/work/build-x86-x86_64-pc-linux-gnu-nptl/nptl /dev/shm/portage/sys-libs/glibc-2.11/work/build-x86-x86_64-pc-linux-gnu-nptl/sunrpc/rpcgen -Y ../scripts -h rpcsvc/bootparam_prot.x -o /dev/shm/portage/sys-libs/glibc-2.11/work/build-x86-x86_64-pc-linux-gnu-nptl/sunrpc/rpcsvc/bootparam_prot.T 

make[2]: *** [/dev/shm/portage/sys-libs/glibc-2.11/work/build-x86-x86_64-pc-linux-gnu-nptl/sunrpc/rpcsvc/bootparam_prot.stmp] Aborted
make[2]: *** Waiting for unfinished jobs....
/bin/sh ../scripts/move-if-change /dev/shm/portage/sys-libs/glibc-2.11/work/build-x86-x86_64-pc-linux-gnu-nptl/sunrpc/xbootparam_prot.T /dev/shm/portage/sys-libs/glibc-2.11/work/build-x86-x86_64-pc-linux-gnu-nptl/sunrpc/xbootparam_prot.c
touch /dev/shm/portage/sys-libs/glibc-2.11/work/build-x86-x86_64-pc-linux-gnu-nptl/sunrpc/xnlm_prot.stmp
touch /dev/shm/portage/sys-libs/glibc-2.11/work/build-x86-x86_64-pc-linux-gnu-nptl/sunrpc/xrstat.stmp
/bin/sh ../scripts/move-if-change /dev/shm/portage/sys-libs/glibc-2.11/work/build-x86-x86_64-pc-linux-gnu-nptl/sunrpc/rpcsvc/nlm_prot.T /dev/shm/portage/sys-libs/glibc-2.11/work/build-x86-x86_64-pc-linux-gnu-nptl/sunrpc/rpcsvc/nlm_prot.h
touch /dev/shm/portage/sys-libs/glibc-2.11/work/build-x86-x86_64-pc-linux-gnu-nptl/sunrpc/xbootparam_prot.stmp
touch /dev/shm/portage/sys-libs/glibc-2.11/work/build-x86-x86_64-pc-linux-gnu-nptl/sunrpc/rpcsvc/nlm_prot.stmp
make[2]: Leaving directory `/dev/shm/portage/sys-libs/glibc-2.11/work/glibc-2.11/sunrpc'
make[1]: *** [sunrpc/others] Error 2
make[1]: Leaving directory `/dev/shm/portage/sys-libs/glibc-2.11/work/glibc-2.11'
make: *** [all] Error 2
 * ERROR: sys-libs/glibc-2.11 failed:
 *   make for x86 failed
 * 
 * Call stack:
 *           ebuild.sh, line   49:  Called src_compile
 *         environment, line 3834:  Called eblit-run 'src_compile'
 *         environment, line 1307:  Called eblit-glibc-src_compile
 *   src_compile.eblit, line  199:  Called src_compile
 *         environment, line 3834:  Called eblit-run 'src_compile'
 *         environment, line 1307:  Called eblit-glibc-src_compile
 *   src_compile.eblit, line  207:  Called toolchain-glibc_src_compile
 *   src_compile.eblit, line  123:  Called die
 * The specific snippet of code:
 *   		make PARALLELMFLAGS="${MAKEOPTS}" || die "make for ${ABI} failed"
 * 
 * If you need support, post the output of 'emerge --info =sys-libs/glibc-2.11',
 * the complete build log and the output of 'emerge -pqv =sys-libs/glibc-2.11'.
 * The complete build log is located at '/var/log/portage/sys-libs:glibc-2.11:20091202-010027.log'.
 * The ebuild environment file is located at '/dev/shm/portage/sys-libs/glibc-2.11/temp/environment'.
 * S: '/dev/shm/portage/sys-libs/glibc-2.11/work/glibc-2.11'


Portage 2.2_rc54 (!/etc/managed-portage/hosts/adb0/make.profile/, gcc-4.3.4, glibc-2.11-r0, 2.6.25.9-adb0 x86_64)
=================================================================
System uname: Linux-2.6.25.9-adb0-x86_64-Quad-Core_AMD_Opteron-tm-_Processor_2352-with-gentoo-2.0.1
Timestamp of tree: Mon, 30 Nov 2009 19:15:01 +0000
app-shells/bash:     4.0_p35
dev-java/java-config: 1.3.7-r1, 2.1.9-r1
dev-lang/python:     2.5.4-r2, 2.6.4
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.5.2-r2
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.13, 2.64
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.2, 1.11
sys-devel/binutils:  2.20
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* @EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=k8"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/conf.avail/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -pipe -march=k8"
DISTDIR="/home/gentoo/distfiles"
FEATURES="assume-digests buildpkg collision-protect distlocks fixpackages news parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://216.165.129.134/gentoo http://gentoo.mirrors.tds.net/gentoo http://gentoo.osuosl.org/"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j5"
PKGDIR="/home/gentoo/packages/db-k8"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/dev/shm"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://beta01/local-portage"
USE="3dnow 3dnowext amd64 async authdaemond authlib bash-completion berkdb bzip2 bzlib cap caps cdb chroot ck-server cli cracklib crypt curlwrappers dba dbm dbx device-mapper dio dri erandom exif extensions f2c fam fastcgi flatfile gd-external gdbm gnutls hpn iconv imap innodb ipv6 jpeg lids lm_sensors logrotate memlimit mmx modules mpi mudflap multilib mysql mysqli ncurses nethack nfs nls no-htdocs nptl nptlonly offensive openmp pam pcre perl png posix postgres pppd python qmail readline reflection reiserfs romio rrdtool session sftp sftplogging sharedext snmp soap sockets spl sqlite sse sse2 ssl symlink sysfs sysvipc tcpd threads truetype unicode urandom vim-syntax vpopmail xattr xml xmlrpc xorg zlib" 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" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="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 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" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga neomagic nv r128 radeon savage sis tdfx trident vesa vga via vmware voodoo" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Brendan Pike 2009-12-03 10:49:53 UTC
Same thing here. A fully updated Intel system this time.

Portage 2.2_rc55 (default/linux/amd64/10.0, gcc-4.4.2, glibc-2.11-r0, 2.6.31.6 x86_64)
=================================================================
System uname: Linux-2.6.31.6-x86_64-Intel-R-_Core-TM-_i7_CPU_920_@_2.67GHz-with-gentoo-2.0.1
Timestamp of tree: Thu, 03 Dec 2009 10:30:01 +0000
app-shells/bash:     4.0_p35
dev-java/java-config: 2.1.9-r1
dev-lang/python:     2.6.4
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.5.2-r2
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.13, 2.64
sys-devel/automake:  1.9.6-r2, 1.10.2, 1.11
sys-devel/binutils:  2.20
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA Nero-EULA-US dlj-1.1"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-pipe -O2 -march=nocona"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-pipe -O2 -march=nocona"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests distlocks fixpackages news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.osuosl.org/"
LANG="en_US"
LDFLAGS="-Wl,-O1"
LINGUAS="en"
MAKEOPTS="-j10"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/dev/shm"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="64bit X aac acl acpi alsa amd64 aspell berkdb bzip2 cairo cdda cddb cdparanoia chardet cleartype cli contrast cracklib crypt cups curl custom-optimization dbus dvb encode exif faac faad ffmpeg flac fontconfig gdbm gif gimp glibc-omitfp gmp gnutls gphoto2 gpm hal hpn iconv id3tag idn imap iproute2 jpeg lame lcms lensfun lm_sensors mad mmap mmx mmxext mng modules mp3 mpeg mtp mudflap multilib ncurses nptl nptlonly ogg openmp openssl pam pcre pdf perl png pppd pvr python readline reflection rtsp samba scrobbler session shm smp sndfile spell spl sqlite sqlite3 sse sse2 ssh ssl ssse3 svg sysfs tcpd theora tiff timezone truetype tta unicode usb v4l2 vdpau vorbis wavpack wma x264 xattr xft xml xorg xulrunner xvid zlib" ALSA_CARDS="ctxfi usb-audio" ALSA_PCM_PLUGINS="ladspa extplug plug ioplug lfloat" CAMERAS="ptp2 directory" ELIBC="glibc" INPUT_DEVICES="evdev" KERNEL="linux" LINGUAS="en" RUBY_TARGETS="ruby18" SANE_BACKENDS="plustek" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 2 SpanKY gentoo-dev 2009-12-04 06:40:35 UTC
and here's the obvious question -- is it new to sandbox-2.2, or do older versions work ?

my quad amd64 hasnt complained and ive compiled glibc-2.11 many times in the last few weeks (at least 30 different builds)