emerging matplotlib 1.4.3 fails with 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: /dev/dri/card0 A: /dev/dri/card0 R: /dev/dri/card0 C: /usr/bin/python3.4 setup.py install --root=/home/extra/portage/dev-python/matplotlib-1.4.3/image//_python3.4 build --build-lib=/home/extra/portage/dev-python/matplotlib-1.4.3/work/matplotlib-1.4.3-python3_4/build/build/lib This is with sandbox-2.6-r1. Upgrading sandbox to 2.9 solves the issue. Reproducible: Always
I didn't have this issue. Post the full build log as attachment and emerge --info
i have exactly the same problem: # emerge --info Portage 2.2.20.1 (python 3.4.3-final-0, default/linux/amd64/13.0/desktop/gnome/systemd, gcc-4.9.3, glibc-2.21-r1, 4.0.9-gentoo-0.1-desktop x86_64) ================================================================= System uname: Linux-4.0.9-gentoo-0.1-desktop-x86_64-Intel-R-_Xeon-R-_CPU_E5-1650_v3_@_3.50GHz-with-gentoo-2.2 KiB Mem: 32870608 total, 28090080 free KiB Swap: 0 total, 0 free Timestamp of repository gentoo: Wed, 28 Oct 2015 08:45:28 +0000 sh bash 4.3_p39 ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1 app-shells/bash: 4.3_p39::gentoo dev-java/java-config: 2.2.0::gentoo dev-lang/perl: 5.20.2::gentoo dev-lang/python: 2.7.10::gentoo, 3.4.3::gentoo dev-util/cmake: 3.3.1-r1::gentoo dev-util/pkgconfig: 0.28-r2::gentoo sys-apps/baselayout: 2.2::gentoo sys-apps/openrc: 0.17::gentoo sys-apps/sandbox: 2.6-r1::gentoo sys-devel/autoconf: 2.13::gentoo, 2.69::gentoo sys-devel/automake: 1.11.6-r1::gentoo, 1.12.6::gentoo, 1.14.1::gentoo, 1.15::gentoo sys-devel/binutils: 2.25.1-r1::gentoo sys-devel/gcc: 4.9.3::gentoo sys-devel/gcc-config: 1.7.3::gentoo sys-devel/libtool: 2.4.6::gentoo sys-devel/make: 4.1-r1::gentoo sys-kernel/linux-headers: 3.18::gentoo (virtual/os-headers) sys-libs/glibc: 2.21-r1::gentoo Repositories: gentoo location: /var/db/repos/gentoo sync-type: git sync-uri: https://github.com/gentoo-mirror/gentoo priority: -1000 gentoo-scala-tools location: /usr/local/sbt_gentoo_overlay sync-type: git sync-uri: http://github.com/whiter4bbit/overlays.git masters: gentoo local-repo location: /usr/local/local_overlay masters: gentoo ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="* -@EULA" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=native -O2 -pipe -fomit-frame-pointer -fweb -ftracer" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /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" CXXFLAGS="-march=native -O2 -pipe -fomit-frame-pointer -fweb -ftracer" DISTDIR="/usr/portage/distfiles" EMERGE_DEFAULT_OPTS="--quiet-build=n" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync metadata-transfer news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="https://ftp.uni-erlangen.de/pub/mirrors/gentoo http://ftp.spline.inf.fu-berlin.de/mirrors/gentoo/" LANG="de_DE@euro" LC_ALL="en_US.utf8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="-j9" 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" PORTAGE_TMPDIR="/var/tmp" USE="X a52 aac acl acpi alsa amd64 avahi bash-completion berkdb branding btrfs bzip2 cairo cdda cddb cdr cli colord cracklib crypt cups cxx dbus dri dts dvd dvdr emboss encode evo exif fam ffmpeg firefox flac fortran gdbm gif git glamor gnome gnome-keyring gnome-online-accounts gnutls gpm gstreamer gtk gtk3 iconv introspection ipv6 jpeg kvm lcms ldap libnotify libsecret mad matroska mmx mmxext mng modules mp3 mp4 mpeg multilib nautilus ncurses nfs nls nptl ntfs ogg opengl openmp opus pam pango pcre pdf png policykit ppds pulseaudio python qt3support qt4 rar readline sdl seccomp session spell sql sse sse2 ssl startup-notification svg systemd tcpd theora tiff truetype udev udisks unicode upower usb vorbis vpx wav webm webp wma wmf wxwidgets x264 x265 xattr xcb xfs xml xv xvid zeroconf zlib" ABI_X86="64 32" 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" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="de" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" QEMU_SOFTMMU_TARGETS="arm i386 x86_64" QEMU_USER_TARGETS="arm i386 x86_64" RUBY_TARGETS="ruby20 ruby21" USERLAND="GNU" VIDEO_CARDS="nvidia" 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, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Created attachment 415612 [details] ACCESS VIOLATION SUMMARY
Created attachment 415614 [details] build.log.tar.bz2 I have compressed the build log because it is bigger than 1000 KB.
i can confirm the sandbox violation here on my system # emerge --info matplotlib Portage 2.2.20.1 (python 2.7.10-final-0, default/linux/amd64/13.0/desktop/kde, gcc-4.9.3, glibc-2.21-r1, 4.0.5-gentoo x86_64) ================================================================= System Settings ================================================================= System uname: Linux-4.0.5-gentoo-x86_64-Intel-R-_Core-TM-_i7-3770_CPU_@_3.40GHz-with-gentoo-2.2 KiB Mem: 15956008 total, 5774452 free KiB Swap: 16801788 total, 16801600 free Timestamp of repository gentoo: Wed, 28 Oct 2015 08:45:28 +0000 Timestamp of repository kde: Mon, 26 Oct 2015 18:01:44 +0000 sh bash 4.3_p39 ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1 app-shells/bash: 4.3_p39::gentoo dev-java/java-config: 2.2.0::gentoo dev-lang/perl: 5.20.2::gentoo dev-lang/python: 2.7.10::gentoo, 3.4.3::gentoo dev-util/cmake: 3.3.2-r1::gentoo dev-util/pkgconfig: 0.28-r2::gentoo sys-apps/baselayout: 2.2::gentoo sys-apps/openrc: 0.17::gentoo sys-apps/sandbox: 2.6-r1::gentoo sys-devel/autoconf: 2.13::gentoo, 2.69::gentoo sys-devel/automake: 1.11.6-r1::gentoo, 1.12.6::gentoo, 1.14.1::gentoo, 1.15::gentoo sys-devel/binutils: 2.25.1-r1::gentoo sys-devel/gcc: 4.9.3::gentoo sys-devel/gcc-config: 1.7.3::gentoo sys-devel/libtool: 2.4.6::gentoo sys-devel/make: 4.1-r1::gentoo sys-kernel/linux-headers: 3.18::gentoo (virtual/os-headers) sys-libs/glibc: 2.21-r1::gentoo Repositories: gentoo location: /usr/portage sync-type: git sync-uri: https://github.com/gentoo-mirror/gentoo.git priority: -1000 kde location: /var/lib/layman/kde sync-type: laymansync sync-uri: https://github.com/gentoo-mirror/kde.git masters: gentoo priority: 50 local location: /usr/local/portage masters: gentoo priority: 1000 Installed sets: @system ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="*" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=native -O2 -pipe -ggdb" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.0/conf /usr/share/themes/oxygen-gtk/gtk-2.0 /usr/share/themes/oxygen-gtk/gtk-3.0" 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 -O2 -pipe -ggdb" DISTDIR="/usr/portage/distfiles" EMERGE_DEFAULT_OPTS="--with-bdeps=y --autounmask-write --jobs=5 --load-average=10.0" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-logs compressdebug config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch parallel-install preserve-libs protect-owned sandbox sfperms splitdebug 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" 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" PORTAGE_TMPDIR="/var/tmp" USE="64bit X a52 aac acl acpi aes alsa amd64 avx bash-completion berkdb bluetooth branding bzip2 cairo cdaudio cdda cddb cdio cdr cli consolekit cracklib crypt css cups cxx dbus declarative dell dri dts dvd dvdr emboss encode exif fam firefox flac fortran gdbm gif glamor glib glibc gpg gpm gtk haskell iconv icu id3tag ieee1394 imagemagick inotify ipv4 ipv6 irc java jpeg jpeg2k kde kipi lame latex lcms ldap libnotify libsamplerate lzma mad mmx mmxext mng modules mp3 mp4 mpeg mplayer multilib musicbrainz ncurses nls nptl ntp ogg okteta opengl openmp otr pam pango pcre pdf phonon plasma pm-utils png policykit popcnt ppds pulseaudio qemu qt3support qt4 quicktime rar readline real rss sdl seccomp semantic-desktop session spell spice sse sse2 sse3 sse4_1 sse4_2 ssl ssse3 startup-notification svg syslog taglib tcpd threads tiff truetype udev udisks unicode upower usb v41 v412 v4l vaapi vcd vim-syntax visualization vorbis wavpack wifi wma wmf wxwidgets x264 xattr xcb xcomposite xine xinerama xml xscreensaver xv xvid xvmc 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" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="de" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby20 ruby21" USERLAND="GNU" VIDEO_CARDS="intel" 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, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON ================================================================= Package Settings ================================================================= dev-python/matplotlib-1.4.2::gentoo was built with the following: USE="cairo gtk latex qt4 wxwidgets -doc -examples -excel -fltk -gtk3 -pyside -test -tk" ABI_X86="64" PYTHON_TARGETS="python2_7 python3_4 -python3_3" CFLAGS="-march=native -O2 -pipe -ggdb -fno-strict-aliasing" CXXFLAGS="-march=native -O2 -pipe -ggdb -fno-strict-aliasing"
*** Bug 564322 has been marked as a duplicate of this bug. ***
i don't see how either of these errors are a bug in the sandbox. matplotlib appears to be attempting to open fuse/graphics drivers during build time and the sandbox (correctly) rejected those attempts. F: open_wr S: deny P: /dev/fuse A: /dev/fuse R: /dev/fuse C: /usr/libexec/gvfsd-fuse /var/tmp/portage/dev-python/matplotlib-1.4.3/temp/runtime-dir/gvfs -f -o big_writes
I have never seen this on the build server. Now that 1.4.3 became stable I upgraded all desktops and I see this bug only on one desktop: F: open_wr S: deny P: /dev/dri/card0 A: /dev/dri/card0 R: /dev/dri/card0 C: /usr/bin/python3.4 setup.py install --root=/var/tmp/portage/dev-python/matplotlib-1.4.3/image//_python3.4 build --build-lib=/var/tmp/portage/dev-python/matplotlib-1.4.3/work/matplotlib-1.4.3-python3_4/build/build/lib Scrolling through the build log, the problem is here: BUILDING MATPLOTLIB matplotlib: yes [1.4.3] python: yes [3.4.3 (default, Sep 26 2015, 19:07:49) [GCC 4.8.5]] platform: yes [linux] [...] OPTIONAL BACKEND EXTENSIONS macosx: no [Mac OS-X only] qt5agg: no [skipping due to configuration] qt4agg: yes [installing, Qt: 4.8.6, PyQt: 4.8.6] pyside: no [skipping due to configuration] * ACCESS DENIED: open_wr: /dev/dri/card0 libGL error: failed to open drm device: Permission denied libGL error: failed to load driver: i965 gtk3agg: yes [installing, version 3.6.16] gtk3cairo: yes [installing, version 3.6.16] gtkagg: no [skipping due to configuration] tkagg: yes [installing, version version not identified] wxagg: no [skipping due to configuration] gtk: no [skipping due to configuration] agg: yes [installing] cairo: yes [installing, pycairo version 1.10.0] windowing: no [Microsoft Windows only]
this is getting strange, it is non-reproduceable :-/ previous run the Python 3.4 build failed and python 2.7 was ok now the python 2.7 build had issues: OPTIONAL BACKEND EXTENSIONS macosx: no [Mac OS-X only] qt5agg: no [skipping due to configuration] qt4agg: yes [installing, Qt: 4.8.6, PyQt: 4.8.6] pyside: no [skipping due to configuration] No protocol specified No protocol specified gtk3agg: yes [installing, version 3.6.16] No protocol specified No protocol specified No protocol specified /usr/lib64/python2.7/site-packages/gtk-2.0/gtk/__init__.py:57: GtkWarning: could not open display warnings.warn(str(e), _gtk.Warning) No protocol specified No protocol specified gtk3cairo: yes [installing, version 3.6.16] gtkagg: yes [installing, Gtk: 2.24.28 pygtk: 2.24.0] tkagg: yes [installing, version 81008] wxagg: no [skipping due to configuration] gtk: yes [installing, Gtk: 2.24.28 pygtk: 2.24.0] agg: yes [installing] cairo: yes [installing, pycairo version 1.10.0] windowing: no [Microsoft Windows only]
It is reproduceable: I have to exit X, startx, open a terminal and do an "emerge matplotlib" and always get the libGL error from above on first try.
I simply cannot reproduce this. for the dri issue we could go the same road as imagemagick does. Though I don't know what to do with fuse. @sandbox, any advise here?
Created attachment 415754 [details] dev-python:matplotlib-1.4.3:20151030-083356.log
Created attachment 415756 [details] system events trace this is a trace of system events while pid 19089 misbehaves and tries to access /dev/card/dri0 at timestamp 10:05:27.227xxx and following
i'd guess some python modules matplotlib imports implicitly probes hardware (which is bad), but maybe it depends on env vars being set up. so you could unset vars that don't matter like DISPLAY.
Could you please test if DISPLAY= emerge matplotlib works?
(In reply to Justin Lecher from comment #15) > Could you please test if > > DISPLAY= emerge matplotlib > > works? yes, this works. It also worked when i emerged it from a conolse terminal w/o touching any env var.
(In reply to Justin Lecher from comment #15) > Could you please test if > > DISPLAY= emerge matplotlib > > works? yes, this works.
commit c7f78999ea9d5db7ef747956487231d0a76792d9 Author: Justin Lecher <jlec@gentoo.org> Date: Mon Nov 2 10:57:20 2015 +0100 dev-python/matplotlib: Unset DISPLAY during build to fix sandbox problems Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=564296 Package-Manager: portage-2.2.23 Signed-off-by: Justin Lecher <jlec@gentoo.org> https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c7f78999ea9d5db7ef747956487231d0a76792d9