Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 491330 - sys-devel/gcc-4.8.2 - sandbox violation in /conftest.err by .../work/gcc-4.8.2/libmudflap/configure
Summary: sys-devel/gcc-4.8.2 - sandbox violation in /conftest.err by .../work/gcc-4.8....
Status: RESOLVED DUPLICATE of bug 488492
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-11-15 14:29 UTC by Jacob Braun
Modified: 2013-11-21 04:51 UTC (History)
4 users (show)

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


Attachments
gcc-build-logs.tar.bz2 (gcc-build-logs.tar.bz2,536.06 KB, application/x-bzip-compressed-tar)
2013-11-15 14:31 UTC, Jacob Braun
Details
Sandbox violation log (sandbox-17659.log,1.73 KB, text/plain)
2013-11-15 14:32 UTC, Jacob Braun
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jacob Braun 2013-11-15 14:29:34 UTC
When attemmpting to build gcc 4.8.2 I get a sandbox access violation related to libmudflap/conftest.err.

Reproducible: Always

Steps to Reproduce:
1. emerge gcc (4.8.2)
2.
3.
Actual Results:  
>>> Source compiled.
 (null)*(null) --------------------------- ACCESS VIOLATION SUMMARY ------------                                                                             ---------------
 (null)*(null) LOG FILE: "/var/log/sandbox/sandbox-17659.log"
 (null)*(null)
VERSION 1.0
FORMAT: F - Function called
FORMAT: S - Access Status
FORMAT: P - Path as passed to function
FORMAT: A - Absolute Path (not canonical)
FORMAT: R - Canonical Path
FORMAT: C - Command Line

F: open_wr
S: deny
P: conftest.err
A: /var/tmp/portage/sys-devel/gcc-4.8.2/work/build/x86_64-pc-linux-gnu/libmudfla                                                                             p/conftest.err
R: /conftest.err
C: /bin/sh /var/tmp/portage/sys-devel/gcc-4.8.2/work/gcc-4.8.2/libmudflap/config                                                                             ure --cache-file=./config.cache --prefix=/usr --bindir=/usr/x86_64-pc-linux-gnu/                                                                             gcc-bin/4.8.2 --includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.2/include --data                                                                             dir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.8.2 --mandir=/usr/share/gcc-data/x                                                                             86_64-pc-linux-gnu/4.8.2/man --infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4                                                                             .8.2/info --with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.2/include/                                                                             g++-v4 --disable-altivec --disable-fixed-point --without-cloog --disable-lto --e                                                                             nable-nls --without-included-gettext --with-system-zlib --enable-obsolete --disa                                                                             ble-werror --enable-secureplt --enable-multilib --with-multilib-list=m32,m64 --e                                                                             nable-libmudflap --disable-libssp --enable-libgomp --with-python-dir=/share/gcc-                                                                             data/x86_64-pc-linux-gnu/4.8.2/python --enable-checking=release --enable-java-aw                                                                             t=gtk --enable-libstdcxx-time --disable-libquadmath --enable-objc-gc --enable-sh                                                                             ared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --enable-                                                                             targets=all --with-bugurl=http://bugs.gentoo.org/ --with-pkgversion=Gentoo 4.8.2                                                                              p1.0, pie-0.5.8 --enable-languages=c,c++,java,objc --program-transform-name=s,y                                                                             ,y, --disable-option-checking --with-target-subdir=x86_64-pc-linux-gnu --build=x                                                                             86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --target=x86_64-pc-linux-gnu --src                                                                             dir=/var/tmp/portage/sys-devel/gcc-4.8.2/work/gcc-4.8.2/libmudflap
 (null)*(null) -----------------------------------------------------------------                                                                             ---------------

Expected Results:  
Compile and merge correctly.
Comment 1 Jacob Braun 2013-11-15 14:31:26 UTC
Created attachment 363324 [details]
gcc-build-logs.tar.bz2
Comment 2 Jacob Braun 2013-11-15 14:32:13 UTC
Created attachment 363326 [details]
Sandbox violation log
Comment 3 Jacob Braun 2013-11-15 14:36:34 UTC
My emerge --info:

Portage 2.2.7 (default/linux/amd64/13.0/desktop, gcc-4.8.1, glibc-2.17, 3.12.0 x                                                                             86_64)
=================================================================
System uname: Linux-3.12.0-x86_64-Intel-R-_Core-TM-_i5-3450_CPU_@_3.10GHz-with-g                                                                             entoo-2.2
KiB Mem:     8061144 total,   1206708 free
KiB Swap:    2097148 total,   2017420 free
Timestamp of tree: Fri, 15 Nov 2013 13:45:01 +0000
ld GNU ld (GNU Binutils) 2.23.2
app-shells/bash:          4.2_p45
dev-java/java-config:     2.2.0
dev-lang/python:          2.7.5-r4, 3.2.5-r3, 3.3.2-r2
dev-util/cmake:           2.8.12.1-r1
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.12.6, 1.14
sys-devel/binutils:       2.23.2
sys-devel/gcc:            4.8.1-r1
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.11 (virtual/os-headers)
sys-libs/glibc:           2.17
Repositories: gentoo xmw megacoffee x-portage
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -mtune=native -O2 -pipe -fno-ident"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf                                                                              /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.5/ext-active/ /etc/php/cgi-                                                                             php5.5/ext-active/ /etc/php/cli-php5.5/ext-active/ /etc/revdep-rebuild /etc/sand                                                                             box.d /etc/terminfo"
CXXFLAGS="-march=native -mtune=native -O2 -pipe -fno-ident -fvisibility-inlines-                                                                             hidden"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="-j --with-bdeps=y"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild                                                                             -locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned san                                                                             dbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch                                                                              userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="ftp://ftp.ussg.iu.edu/pub/linux/gentoo ftp://gentoo.cites.uiuc.e                                                                             du/pub/gentoo http://gentoo.cs.uni.edu/"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5"
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 --timeou                                                                             t=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/xmw /var/lib/layman/megacoffee /usr/local/porta                                                                             ge"
SYNC="rsync://rsync25.us.gentoo.org/gentoo-portage"
USE="X a52 aac aalib acl acpi aim alsa amd64 amr apng avx bash-completion berkdb                                                                              bluetooth branding brasero bzip2 cairo cdb cdda cddb cdio cdparanoia cdr cli co                                                                             nsolekit cracklib crypt css ctype cups curl cxx dbus device-mapper dri dts dv dv                                                                             d dvdr emboss enca encode exceptions exif expat extensions faad fam fat ffmpeg f                                                                             irefox flac fontconfig foomaticdb ftp gcj gd gdbm gif gimp git glib gnutls gpm g                                                                             streamer gtk gzip hfs iconv icu id3tag imagemagick imlib innodb ios iphone ipod                                                                              ipv6 java java6 javascript jfs jpeg jpeg2k lame lcms ldap libav libnotify live l                                                                             m_sensors lzma lzo mad maildir matroska mbox mime mmap mmx mmxext mng modules mp                                                                             3 mp4 mpeg mplayer mudflap multilib musicbrainz ncurses nls nptl nsplugin ntfs o                                                                             bjc objc-gc offensive ogg opengl openmp opus pam pango pcre pdf perl php png pol                                                                             icykit posix ppds private-headers profiling python qt qt3support qt4 quicktime r                                                                             ar readline rss rtc samba sdl secure-delete session smp sna sockets socks5 sox s                                                                             pell spl sqlite sqlite3 sse sse2 sse3 sse4 sse4_1 sse4_2 ssl ssse3 startup-notif                                                                             ication stl subversion suhosin suid svg syslog system-sqlite sysvipc taglib tcl                                                                              tcmalloc tcpd theora threads threadsafe tiff tk tremor truetype udev udisks unic                                                                             ode upower usb vaapi vcd vim-syntax vnc vorbis vpx wavpack webkit wifi wmf wxwid                                                                             gets x264 xattr xcb xcomposite xfs xft xml xmlrpc xscreensaver xulrunner xv xvfb                                                                              xvid xvmc zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt                                                                             87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x                                                                             0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MOD                                                                             ULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_a                                                                             lias 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 header                                                                             s include info log_config logio mem_cache mime mime_magic negotiation rewrite se                                                                             tenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES                                                                             ="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERA                                                                             S="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELI                                                                             BC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintx                                                                             t gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2                                                                              rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" GRUB_PLATFORMS="efi-64"                                                                              INPUT_DEVICES="evdev keyboard mouse virtualbox" KERNEL="linux" LCD_DEVICES="bay                                                                             rad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_                                                                             EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en" OFFICE_IMPLEMENT                                                                             ATION="libreoffice" PHP_TARGETS="php5-4 php5-3" PYTHON_SINGLE_TARGET="python2_7"                                                                              PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby19 ruby18" USERLAND="GNU                                                                             " VIDEO_CARDS="intel" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4option                                                                             s ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark                                                                              ipmark dhcpmac delude chaos account"
USE_PYTHON="2.7 3.2"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAG                                                                             E_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 4 Ryan Hill (RETIRED) gentoo-dev 2013-11-16 05:01:09 UTC
Hmm I also saw this a couple days ago but I thought it was due to make-4.0.  I downgraded and it worked.
Comment 5 Jacob Braun 2013-11-16 17:09:31 UTC
So I tried to build this again yesterday afternoon after removing sys-devel from /var/tmp/portage and it built cleanly. I'm not sure what was different between the tries besides another --sync.
Comment 6 Linghua Tseng 2013-11-16 17:13:07 UTC
I also met a similar issue when I enabled "gcj" in the USE flags:
--------------------------- ACCESS VIOLATION SUMMARY ---------------------------
LOG FILE: "/var/log/sandbox/sandbox-3753.log"
VERSION 1.0
FORMAT: F - Function called
FORMAT: S - Access Status
FORMAT: P - Path as passed to function
FORMAT: A - Absolute Path (not canonical)
FORMAT: R - Canonical Path
FORMAT: C - Command Line

F: unlinkat
S: deny
P: //Inet4Address.class
A: /Inet4Address.class
R: /Inet4Address.class
C: rm -rf /var/tmp/portage/sys-devel/gcc-4.8.2/temp/jarSDhrO4 

F: unlinkat
S: deny
P: //GtkMenuPeer.class
A: /GtkMenuPeer.class
R: /GtkMenuPeer.class
C: rm -rf /var/tmp/portage/sys-devel/gcc-4.8.2/temp/jarSDhrO4 
--------------------------------------------------------------------------------

My make version is 3.82-r4. Hence I don't think it's due to make-4.0.
By removing the line MAKEOPTS="-j8" from make.conf, I can emerge gcc-4.8.2 without any problems.
Comment 7 Justin Lecher (RETIRED) gentoo-dev 2013-11-20 11:39:54 UTC
I have seen this with multiple other packages. Not only with gcc but also glibc and others.
Comment 8 Justin Lecher (RETIRED) gentoo-dev 2013-11-20 11:40:35 UTC
See bug 491616 for example. Same issue.
Comment 9 Justin Lecher (RETIRED) gentoo-dev 2013-11-20 11:42:10 UTC
Or better a dupe of 488492. Seems to be linux-3.12 related
Comment 10 Ryan Hill (RETIRED) gentoo-dev 2013-11-21 04:51:09 UTC

*** This bug has been marked as a duplicate of bug 488492 ***