Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 268885 - app-emulation/virtualbox-ose-2.2.2: ACCESS VIOLATION: open_wr: /dev/dri/card0, kills device nodes in /dev/dri
Summary: app-emulation/virtualbox-ose-2.2.2: ACCESS VIOLATION: open_wr: /dev/dri/card0...
Status: RESOLVED DUPLICATE of bug 265558
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Markus Ullmann (RETIRED)
URL:
Whiteboard:
Keywords:
: 275636 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-05-06 23:36 UTC by Martin Walch
Modified: 2009-07-16 06:08 UTC (History)
10 users (show)

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


Attachments
/var/tmp/portage/app-emulation/virtualbox-ose-2.2.2/temp/build.log (build.log,10.09 KB, text/plain)
2009-05-06 23:41 UTC, Martin Walch
Details
/var/tmp/portage/app-emulation/virtualbox-ose-2.2.2/work/VirtualBox-2.2.2_OSE/configure.log (configure.log,15.30 KB, text/plain)
2009-05-06 23:42 UTC, Martin Walch
Details
/var/tmp/portage/app-emulation/virtualbox-ose-2.2.4/temp/build.log (build.log,3.10 KB, text/plain)
2009-05-31 10:14 UTC, Martin Walch
Details
/var/tmp/portage/app-emulation/virtualbox-ose-2.2.4/work/VirtualBox-2.2.4_OSE/configure.log (configure.log,8.01 KB, text/plain)
2009-05-31 10:15 UTC, Martin Walch
Details
Patch to make virtualbox-ose to compil works with 2.2.2 and 2.2.4 (virtualbox-ose-mesa.patch,329 bytes, patch)
2009-06-01 18:57 UTC, David GENCE
Details | Diff
virtualbox-ose-2.2.2.ebuild modified to use virtualbox-ose-mesa.patch (virtualbox-ose-2.2.2.ebuild,6.28 KB, text/plain)
2009-06-01 18:59 UTC, David GENCE
Details
virtualbox-ose-2.2.4.ebuild modified to use virtualbox-ose-mesa.patch (virtualbox-ose-2.2.4.ebuild,6.28 KB, text/plain)
2009-06-01 19:01 UTC, David GENCE
Details
xf86-video-virtualbox-2.2.2.ebuild modified to use virtualbox-ose-mesa.patch (xf86-video-virtualbox-2.2.2.ebuild,2.96 KB, text/plain)
2009-06-01 19:02 UTC, David GENCE
Details
xf86-video-virtualbox-2.2.4.ebuild modified to use virtualbox-ose-mesa.patch (xf86-video-virtualbox-2.2.4.ebuild,2.96 KB, text/plain)
2009-06-01 19:03 UTC, David GENCE
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Walch 2009-05-06 23:36:11 UTC
app-emulation/virtualbox-ose-2.2.2 causes several sandbox violations on configure with USE="opengl". Furtermore, the device nodes /dev/dri/card{0..14} are DELETED.

…
Checking for Mesa / GLU: ACCESS DENIED  open_wr:      /dev/dri/card0                                                                                                                                             
ACCESS DENIED  open_wr:      /dev/dri/card0                                                                                                                                                                      
ACCESS DENIED  __xmknod:     /dev/dri/card0                                                                                                                                                                      
ACCESS DENIED  __xmknod:     /dev/dri/card0                                                                                                                                                                      
ACCESS DENIED  __xmknod:     /dev/dri/card1                                                                                                                                                                      
ACCESS DENIED  __xmknod:     /dev/dri/card1                                                                                                                                                                      
ACCESS DENIED  __xmknod:     /dev/dri/card2                                                                                                                                                                      
ACCESS DENIED  __xmknod:     /dev/dri/card2                                                                                                                                                                      
ACCESS DENIED  __xmknod:     /dev/dri/card3                                                                                                                                                                      
ACCESS DENIED  __xmknod:     /dev/dri/card3                                                                                                                                                                      
ACCESS DENIED  __xmknod:     /dev/dri/card4                                                                                                                                                                      
ACCESS DENIED  __xmknod:     /dev/dri/card4                                                                                                                                                                      
ACCESS DENIED  __xmknod:     /dev/dri/card5                                                                                                                                                                      
ACCESS DENIED  __xmknod:     /dev/dri/card5                                                                                                                                                                      
ACCESS DENIED  __xmknod:     /dev/dri/card6                                                                                                                                                                      
ACCESS DENIED  __xmknod:     /dev/dri/card6                                                                                                                                                                      
ACCESS DENIED  __xmknod:     /dev/dri/card7                                                                                                                                                                      
ACCESS DENIED  __xmknod:     /dev/dri/card7                                                                                                                                                                      
ACCESS DENIED  __xmknod:     /dev/dri/card8                                                                                                                                                                      
ACCESS DENIED  __xmknod:     /dev/dri/card8                                                                                                                                                                      
ACCESS DENIED  __xmknod:     /dev/dri/card9                                                                                                                                                                      
ACCESS DENIED  __xmknod:     /dev/dri/card9                                                                                                                                                                      
ACCESS DENIED  __xmknod:     /dev/dri/card10                                                                                                                                                                     
ACCESS DENIED  __xmknod:     /dev/dri/card10                                                                                                                                                                     
ACCESS DENIED  __xmknod:     /dev/dri/card11                                                                                                                                                                     
ACCESS DENIED  __xmknod:     /dev/dri/card11                                                                                                                                                                     
ACCESS DENIED  __xmknod:     /dev/dri/card12                                                                                                                                                                     
ACCESS DENIED  __xmknod:     /dev/dri/card12                                                                                                                                                                     
ACCESS DENIED  __xmknod:     /dev/dri/card13                                                                                                                                                                     
ACCESS DENIED  __xmknod:     /dev/dri/card13                                                                                                                                                                     
ACCESS DENIED  __xmknod:     /dev/dri/card14                                                                                                                                                                     
ACCESS DENIED  __xmknod:     /dev/dri/card14                                                                                                                                                                     
…


emerge --info
Portage 2.1.6.11 (default/linux/amd64/2008.0/desktop, gcc-4.3.3, glibc-2.8_p20080602-r1, 2.6.28-gentoo-r5 x86_64)
=================================================================
System uname: Linux-2.6.28-gentoo-r5-x86_64-Intel-R-_Core-TM-2_CPU_4300_@_1.80GHz-with-glibc2.2.5
Timestamp of tree: Wed, 06 May 2009 08:45:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p39
dev-java/java-config: 2.1.7
dev-lang/python:     2.5.4-r2
dev-util/ccache:     2.4-r7
dev-util/cmake:      2.6.2-r1
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.4.1-r1
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
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.27-r2
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -fgcse-after-reload -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /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/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=native -O2 -fgcse-after-reload -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache collision-protect distlocks fixpackages metadata-transfer parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://ftp.snt.utwente.nl/pub/os/linux/gentoo http://mirror.switch.ch/ftp/mirror/gentoo/ http://mirror.jamit.de/gentoo/ http://mirror.cambrium.nl/pub/os/linux/gentoo/ http://mirror.netcologne.de/gentoo/ http://mirror.ovh.net/gentoo-distfiles/"
LANG="de_DE.utf8"
LC_ALL="de_DE.utf8"
LDFLAGS="-Wl,-O1"
LINGUAS="de"
MAKEOPTS="-j3"
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="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/layman/java-overlay /usr/local/portage/layman/toolchain /usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X Xaw3d a52 aac aalib accessibility acl acpi agg akode alsa amarok amd64 apache2 bash-completion berkdb blender-game branding bzip2 cairo captury cdaudio cdr cdrom cjk cli clucene cracklib crypt cups curlcviewer daap dbus designer-plugin dga dirac djvu dri dvd dvdnav dvdr dvdread dxr3 eds emacs embedded emboss encode evo fam fbcon ffmpeg fftw firefox fits flac fltk fortran gcj gdbm ggi git glibc-omitfp glitz gopher gpg gpm gstreamer hal hdri htmlhandbook iceweasel iconv icu imagemagick insecure-savers ipv6 isdnlog jabber jack java java5 java6 javascript jingle jpeg kde kde4 kdebuild kdecards kdeenablefinal kdehiddenvisibility kdepim kdm kontact ktts latex lcms ldap libcaca libnotify libwww lm_sensors logitech-mouse lua lzma matroska mdnsresponder-compat midi mikmod mmx mng mp3 mpeg mpeg2 mpi mudflap mule multilib musepackmysql ncurses neon nepomuk nls noamazon nova nptl nptlonly nsplugin offensive ogg ogg123 openal openexr opengl openmp oscar oss otr pam pcre pdf perl phonon plasma png posix povray ppds pppd python qt3support qt4 readline redland reflection reiser4 reiserfs rss schroedinger sdl sdl-image semantic-desktop sensord session sndfile solver songs sound speex spell spl sse sse2 ssl startup-notification svg sysfs tcpd tetextheora threads tidy tiff tk tools truetype type1 unicode usb vhook visualization vorbis wav wavpack wxwindows xcomposite xemacs xine xml xorg xosd xprint xscreensaver xulrunner xv zip zlib" ALSA_CARDS="ali5451als4000 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 auth_digest authn_anon authn_dbd 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 dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de" USERLAND="GNU" VIDEO_CARDS="intel vesa"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Martin Walch 2009-05-06 23:41:24 UTC
Created attachment 190571 [details]
/var/tmp/portage/app-emulation/virtualbox-ose-2.2.2/temp/build.log
Comment 2 Martin Walch 2009-05-06 23:42:00 UTC
Created attachment 190573 [details]
/var/tmp/portage/app-emulation/virtualbox-ose-2.2.2/work/VirtualBox-2.2.2_OSE/configure.log
Comment 3 Ian Li 2009-05-21 04:14:51 UTC
I have exactly the same problem too.

emerge --info                                               
Portage 2.1.6.11 (default/linux/amd64/2008.0, gcc-4.4.0, glibc-2.10.1-r0, 2.6.28-gentoo-r3-athena x86_64)
=================================================================                                        
System uname: Linux-2.6.28-gentoo-r3-athena-x86_64-AMD_Athlon-tm-_7750_Dual-Core_Processor-with-glibc2.2.5
Timestamp of tree: Thu, 21 May 2009 00:45:01 +0000                                                        
app-shells/bash:     3.2_p39                                                                              
dev-java/java-config: 2.1.6-r1                                                                            
dev-lang/python:     2.5.4-r2                                                                             
dev-util/cmake:      2.6.2-r1                                                                             
sys-apps/baselayout: 1.12.11.1                                                                            
sys-apps/sandbox:    1.6-r2                                                                               
sys-devel/autoconf:  2.13, 2.63                                                                           
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2                                                 
sys-devel/binutils:  2.18-r3                                                                              
sys-devel/gcc-config: 1.4.1                                                                               
sys-devel/libtool:   1.5.26                                                                               
virtual/os-headers:  2.6.27-r2                                                                            
ACCEPT_KEYWORDS="amd64"                                                                                   
CBUILD="x86_64-pc-linux-gnu"                                                                              
CFLAGS="-march=k8 -O3 -pipe"                                                                              
CHOST="x86_64-pc-linux-gnu"                                                                               
CONFIG_PROTECT="/etc /usr/share/config"                                                                   
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"                                                                                                                                       
CXXFLAGS="-march=k8 -O3 -pipe"                                                                                                          
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://mirrors.163.com/gentoo/"
LANG="zh_CN.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="en_US zh_CN en"
MAKEOPTS="-j3"
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="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://203.127.221.98/gentoo-portage"
USE="3dnow 3dnowext X aac acl acpi alsa amd64 amr amrnb amrwb apache2 ass bash-completion berkdb bzip2 cairo cdparanoia chm cjk cli cracklib crypt cups cupsddk curl custom-optimization dbus disk-partition dri dts dvd enca encode exif flac fontconfig fortran gd gdbm gif glib gpm hal htmlhandbook iconv ipv6 isdnlog jack jpeg jpeg2k json kde kpoll matroska midi mmx mmxext mp3 mudflap multilib musepack ncurses network nls nptl nptlonly ogg opengl openmp pam pcre pdf perl png postgres pppd python qt4 rar rdesktop readline reflection rtc sambascim semantic-desktop session shout smp sockets spell spl sqlite sqlite3 sse sse2 ssl startup-notification stream subversion svg sysfs tcpd threads truetype uid unicode usb utils vim-syntax vorbis webkit x264 xcb xcomposite xft xinerama xml xorg xprint xv xvid zip 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" APACHE2_MPMS="worker" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_US zh_CN en" USERLAND="GNU" VIDEO_CARDS="radeonhd fglrx"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 4 Alessio Cassibba (X-Drum) 2009-05-30 23:46:45 UTC
(In reply to comment #0)
[..]
(In reply to comment #3)
[..]

Hi,

could you please test the new release (2.2.4) i just bumped it
on jokey's overlay[1].


[1] http://overlays.gentoo.org/dev/jokey
Comment 5 Martin Walch 2009-05-31 10:13:07 UTC
(digest for ChangeLog was wrong, when I synced)

I get a new error message and the device nodes in /dev/dri are not deleted anymore:

Checking for Mesa / GLU: ACCESS DENIED  open_wr:      /dev/dri/card0                                                                    
ISE:write_logfile unable to append logfile                                                                                              
ISE open_wr(/dev/dri/card0): No such file or directory                                                                                  
        abs_path: /dev/dri/card0                                                                                                        
        res_path: /dev/dri/card0                                                                                                        
/usr/lib/libsandbox.so[0x7f9246f27cc2]                                                                                                  
/usr/lib/libsandbox.so[0x7f9246f27cf3]                                                                                                  
/usr/lib/libsandbox.so[0x7f9246f28fd6]                                                                                                  
/usr/lib/libsandbox.so(open+0x1bc)[0x7f9246f2c97c]                                                                                      
//usr/lib64/opengl/xorg-x11/lib/libGL.so.1[0x38be04a189]                                                                                
//usr/lib64/opengl/xorg-x11/lib/libGL.so.1[0x38be027cc6]                                                                                
//usr/lib64/opengl/xorg-x11/lib/libGL.so.1(glXQueryVersion+0x19)[0x38be0232e9]                                                          
/var/tmp/portage/app-emulation/virtualbox-ose-2.2.4/work/VirtualBox-2.2.4_OSE/.tmp_out(__gxx_personality_v0+0x129)[0x400861]            
/lib/libc.so.6(__libc_start_main+0xe6)[0x38b021e486]                                                                                    
/var/tmp/portage/app-emulation/virtualbox-ose-2.2.4/work/VirtualBox-2.2.4_OSE/.tmp_out(__gxx_personality_v0+0x41)[0x400779]             
./configure: line 251:  6640 Aborted                 $ODIR.tmp_out > $ODIR.test_execute.log



Isn't this also a sandbox problem? It should not be possible to delete device nodes from within a sandbox.
Comment 6 Martin Walch 2009-05-31 10:14:02 UTC
Created attachment 193049 [details]
/var/tmp/portage/app-emulation/virtualbox-ose-2.2.4/temp/build.log
Comment 7 Martin Walch 2009-05-31 10:15:03 UTC
Created attachment 193051 [details]
/var/tmp/portage/app-emulation/virtualbox-ose-2.2.4/work/VirtualBox-2.2.4_OSE/configure.log
Comment 8 David GENCE 2009-06-01 18:57:11 UTC
Created attachment 193166 [details, diff]
Patch to make virtualbox-ose to compil works with 2.2.2 and 2.2.4

Based on a patch for a previous version of virtualbox
Comment 9 David GENCE 2009-06-01 18:59:51 UTC
Created attachment 193167 [details]
virtualbox-ose-2.2.2.ebuild modified to use virtualbox-ose-mesa.patch

Line epatch "${FILESDIR}/${PN}-mesa.patch" to original ebuild to make it use the mesa patch
Comment 10 David GENCE 2009-06-01 19:01:43 UTC
Created attachment 193168 [details]
virtualbox-ose-2.2.4.ebuild modified to use virtualbox-ose-mesa.patch

Line epatch "${FILESDIR}/${PN}-mesa.patch" added to the original ebuild to make it use the mesa patch
Comment 11 David GENCE 2009-06-01 19:02:45 UTC
Created attachment 193170 [details]
xf86-video-virtualbox-2.2.2.ebuild modified to use virtualbox-ose-mesa.patch

Line epatch "${FILESDIR}/${PN}-mesa.patch" added to the original ebuild to make it use the mesa patch
Comment 12 David GENCE 2009-06-01 19:03:06 UTC
Created attachment 193171 [details]
xf86-video-virtualbox-2.2.4.ebuild modified to use virtualbox-ose-mesa.patch

Line epatch "${FILESDIR}/${PN}-mesa.patch" added to the original ebuild to make it use the mesa patch
Comment 13 David GENCE 2009-06-01 19:04:40 UTC
Comment on attachment 193166 [details, diff]
Patch to make virtualbox-ose to compil works with 2.2.2 and 2.2.4

Patch to make virtualbox-ose and xf86-video-virtualbox to compil. Works with 2.2.2 and 2.2.4
Comment 14 Nicholas J. Michalek 2009-06-02 00:19:46 UTC
If virtual-ose-mesa.patch is sufficient and correct, can we get this into the main portage tree ASAP? The current ebuild is unusable for many.

Also, this and bug 265558 are the same issue.
Comment 15 Alexander Huemer 2009-06-10 12:52:48 UTC
any news about getting the portage ebuild working?
this is becoming annoying.
Comment 16 白川間瀬流 2009-06-27 20:12:28 UTC
*** Bug 275636 has been marked as a duplicate of this bug. ***
Comment 17 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2009-07-16 06:08:20 UTC

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