I encountered a sandbox violation while emerging dev-python/pyopengl-3.0.0_beta1. Unable to import the module 'OpenGL.GL.EXT.timer_query' Unable to import the module 'OpenGL.raw.GL.APPLE.ycbcr_422' Unable to import the module 'OpenGL.raw.GL.EXT.timer_query' >>> Source compiled. --------------------------- ACCESS VIOLATION SUMMARY --------------------------- LOG FILE = "/var/log/sandbox/sandbox-25353.log" open_wr: /dev/fb0 open_wr: /dev/fb0 open_wr: /dev/fb0 open_wr: /dev/fb0 --------------------------------------------------------------------------------
Created attachment 157033 [details] emerge --info
Created attachment 157035 [details] sandbox log
Created attachment 157037 [details] emerge log
Note: This only occurs with USE=doc.
I can't reproduce this one :S pyopengl-3.0.0_beta1 emerges just fine astrocreep site-packages # equery uses pyopengl [ Searching for packages matching pyopengl... ] [ Colour Code : set unset ] [ Legend : Left column (U) - USE flags from make.conf ] [ : Right column (I) - USE flags packages was installed with ] [ Found these USE variables for dev-python/pyopengl-3.0.0_beta1 ] U I - + doc : Adds extra documentation (API, Javadoc, etc) - - tk : Adds support for Tk GUI toolkit Portage 2.1.4.4 (default-linux/x86/2007.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.18-gentoo-r3 i686) ================================================================= System uname: 2.6.18-gentoo-r3 i686 AMD Sempron(tm) Processor 2500+ Timestamp of tree: Wed, 16 Jul 2008 18:33:01 +0000 distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled] app-shells/bash: 3.2_p33 dev-java/java-config: 1.3.7, 2.1.6 dev-lang/python: 2.4.4-r13, 2.5.2-r5 dev-python/pycrypto: 2.0.1-r6 sys-apps/baselayout: 1.12.11.1 sys-apps/sandbox: 1.2.20_alpha2 sys-devel/autoconf: 2.13, 2.61-r2 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.1 sys-devel/binutils: 2.18-r3 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 1.5.26 virtual/os-headers: 2.6.23-r3 ACCEPT_KEYWORDS="x86" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=i686 -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config /var/bind /var/qmail/alias /var/qmail/control /var/spool/torque" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d" CXXFLAGS="-O2 -march=i686 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="ccache collision-detect digest distcc distlocks metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://ftp.roedu.net/pub/mirrors/gentoo.org/ http://gentoo.cites.uiuc.edu/pub/gentoo/ http://cesium.di.uminho.pt/pub/gentoo/" MAKEOPTS="-j5" PKGDIR="/usr/portage/packages" 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="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/portage/local/layman/enlightenment /usr/portage/local/layman/pythonhead /usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X aac acl alsa amr apache2 audacious bash-completion berkdb bzip2 cairo cdr cli cracklib crypt cups dbus dri dvd dvdr dvdread encode esd firefox fortran gdbm glitz gnome gnome-print gpm gtk gtk2 gtkhtml iconv ipv6 isdnlog jpeg jpeg2k ldap midi mp3 mplayer mudflap mysql ncurses nls nptl nptlonly nsplugin opengl openmp pam pcre pdf perl png postgres pppd python readline reflection session spl ssl svg tcpd unicode win32codecs x86 xcb xml xmlreader xmlrpc xmlwriter xorg xsl xslt xvid" ALSA_CARDS="via82xx" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter 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="nvidia" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
(In reply to comment #5) > I can't reproduce this one :S > > pyopengl-3.0.0_beta1 emerges just fine > > astrocreep site-packages # equery uses pyopengl > [ Searching for packages matching pyopengl... ] > [ Colour Code : set unset ] > [ Legend : Left column (U) - USE flags from make.conf ] > [ : Right column (I) - USE flags packages was installed with ] > [ Found these USE variables for dev-python/pyopengl-3.0.0_beta1 ] > U I > - + doc : Adds extra documentation (API, Javadoc, etc) > - - tk : Adds support for Tk GUI toolkit > It must be related to the tk use flag then: equery uses pyopengl [ Searching for packages matching pyopengl... ] [ Colour Code : set unset ] [ Legend : Left column (U) - USE flags from make.conf ] [ : Right column (I) - USE flags packages was installed with ] [ Found these USE variables for dev-python/pyopengl-3.0.0_beta1 ] U I + + doc : Adds extra documentation (API, Javadoc, etc) + + tk : Adds support for Tk GUI toolkit
No luck either.. It emerges just fine without any sandbox violations :D root@astrocreep Mon Jul 21 16:37:18 ~/ equery uses pyopengl [ Searching for packages matching pyopengl... ] [ Colour Code : set unset ] [ Legend : Left column (U) - USE flags from make.conf ] [ : Right column (I) - USE flags packages was installed with ] [ Found these USE variables for dev-python/pyopengl-3.0.0_beta1 ] U I - + doc : Adds extra documentation (API, Javadoc, etc) - + tk : Adds support for Tk GUI toolkit
Created attachment 170602 [details] sandbox log from sandbox-1.2.20_alpha2-r1 I'm seeing the same sandbox violations as Erik w/ USE="doc". I noticed Jesus had sys-apps/sandbox-1.2.20_alpha2 & didn't get the violations, so I tried unmasking sys-apps/sandbox-1.2.20_alpha2-r1. I still get the violations, but the sandbox log is somewhat more verbose, which might be helpful.
@Jesus: are you using the default /etc/sandbox.conf & /etc/sandbox.d/* files w/ sandbox-1.2.20* when you're unable to reproduce the violations?
Same here.
(In reply to comment #9) > @Jesus: are you using the default /etc/sandbox.conf & /etc/sandbox.d/* files w/ > sandbox-1.2.20* when you're unable to reproduce the violations? > Conway, Sorry, this bug got lost in my list, so that was the delay.. Yes, all my sandbox files are the default ones. I'll have a "gentto weekend" from tomorrow so i'll have some time to check this out. I'll get back to you if I find something
The reason I asked was because adding SANDBOX_WRITE="/dev/fb0" to /etc/sandbox.d/00default allowed pyopengl-3.0.0_beta6 to merge. But that seems like a dangerous work-around rather than a good solution to me; I'm going to stick w/ USE="-doc" until there's a better solution. I think I know why Jesus couldn't reproduce: his USE flags don't include directfb, while mine and Erik's do. It seems the ${S}/documentation/pydoc/builddocs.py script runs some OpenGL tests that try to write to /dev/fb0 if other packages were built w/ USE=directfb. I'm not very familiar w/ python, so I don't know how to fix this. The builddocs.py script does have what I think is a list of things (module wrappers? I don't know the terminology) to exclude, but adding "tests" to that list didn't help. If someone familiar w/ python could patch that builddocs.py script so it doesn't call OpenGL.tests & OpenGL.tests.tests, then I think that would stop the sandbox violations. Relevent snips from my emerge log: Start 'OpenGL.tests' ... found 'OpenGL.tests' GL <CDLL 'libGL.so.1', handle 1036dc0 at 1b21e90> GLU <CDLL 'libGLU.so.1', handle 10436b0 at 1b21ed0> GLUT <CDLL 'libglut.so.3', handle 1044460 at 1b21f10> <_FuncPtr object at 0x1ef4f28> ACCESS DENIED open_wr: /dev/fb0 ~~~~~~~~~~~~~~~~~~~~~~~~~~| DirectFB 1.2.6 |~~~~~~~~~~~~~~~~~~~~~~~~~~ (c) 2001-2008 The world wide DirectFB Open Source Community (c) 2000-2004 Convergence (integrated media) GmbH ---------------------------------------------------------------- (*) DirectFB/Core: Single Application Core. (2008-10-31 09:00) (*) Direct/Memcpy: Using Generic 64bit memcpy() ACCESS DENIED open_wr: /dev/fb0 (!) Direct/Util: opening '/dev/fb0' failed --> Permission denied (!) DirectFB/FBDev: Error opening framebuffer device! (!) DirectFB/FBDev: Use 'fbdev' option or set FRAMEBUFFER environment variable. (!) DirectFB/Core: Could not initialize 'system_core' core! --> Initialization error! <snip> Start 'OpenGL.tests.tests' ACCESS DENIED open_wr: /dev/fb0 ~~~~~~~~~~~~~~~~~~~~~~~~~~| DirectFB 1.2.6 |~~~~~~~~~~~~~~~~~~~~~~~~~~ (c) 2001-2008 The world wide DirectFB Open Source Community (c) 2000-2004 Convergence (integrated media) GmbH ---------------------------------------------------------------- (*) DirectFB/Core: Single Application Core. (2008-10-31 09:00) (*) Direct/Memcpy: Using Generic 64bit memcpy() ACCESS DENIED open_wr: /dev/fb0 (!) Direct/Util: opening '/dev/fb0' failed --> Permission denied (!) DirectFB/FBDev: Error opening framebuffer device! (!) DirectFB/FBDev: Use 'fbdev' option or set FRAMEBUFFER environment variable. (!) DirectFB/Core: Could not initialize 'system_core' core! --> Initialization error! ... FAILED problem in OpenGL.tests.tests - <class 'pygame.error'>: DirectFBCreate: Initialization error!
Please test with dev-python/pyopengl-3.0.0.
(In reply to comment #13) > Please test with dev-python/pyopengl-3.0.0. > The ebuild emerges fine, but it doesn't build any documentation either. Erik
(In reply to comment #14) > (In reply to comment #13) > > Please test with dev-python/pyopengl-3.0.0. > > The ebuild emerges fine, but it doesn't build any documentation either. Unfortunately upstream doesn't provide documentation in the tarball. See bug #256297.
(In reply to comment #15) > (In reply to comment #14) > > (In reply to comment #13) > > > Please test with dev-python/pyopengl-3.0.0. > > > > The ebuild emerges fine, but it doesn't build any documentation either. > > Unfortunately upstream doesn't provide documentation in the tarball. See bug > #256297. > If there's no docs to build then there will be no violations. I'm going to mark this closed. I'll reopen if necessary. Erik