Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 245750

Summary: media-sound/rubyripper-0.5.5-r1 sandbox violation
Product: Gentoo Linux Reporter: Paul Hartman <paul.hartman>
Component: Current packagesAssignee: Gentoo Sound Team <sound>
Status: RESOLVED DUPLICATE    
Severity: normal CC: anotherbearcatfan, nutz
Priority: High    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build log
build log when X isn't running

Description Paul Hartman 2008-11-05 20:33:51 UTC
media-sound/rubyripper-0.5.3 emerge fails with a sandbox violation.  USE="X cli flac gtk mp3 normalize vorbis wav"

Reproducible: Always

Steps to Reproduce:
1. emerge rubyripper
2.
3.

Actual Results:  
>>> Source compiled.
--------------------------- ACCESS VIOLATION SUMMARY ---------------------------
LOG FILE = "/var/log/sandbox/sandbox-8659.log"

unlink:    /var/lib/xkb/server-1.xkm
open_wr:   /var/lib/xkb/server-1.xkm
unlink:    /var/lib/xkb/server-1.xkm
open_wr:   /var/lib/xkb/server-1.xkm
--------------------------------------------------------------------------------

>>> Failed to emerge media-sound/rubyripper-0.5.3, Log file:

>>>  '/dev/shm/portage/media-sound/rubyripper-0.5.3/temp/build.log'



Portage 2.2_rc13 (default/linux/amd64/2008.0/desktop, gcc-4.3.2, glibc-2.8_p20080602-r0, 2.6.27-gentoo-r1 x86_64)
=================================================================
System uname: Linux-2.6.27-gentoo-r1-x86_64-Intel-R-_Core-TM-2_CPU_6600_@_2.40GHz-with-glibc2.2.5
Timestamp of tree: Wed, 05 Nov 2008 20:05:01 +0000
distcc 3.0 x86_64-pc-linux-gnu [disabled]
app-shells/bash:     3.2_p39
dev-java/java-config: 1.3.7, 2.1.6-r1
dev-lang/python:     2.5.2-r8
dev-python/pycrypto: 2.0.1-r6
dev-util/cmake:      2.6.2
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.3.0-r1
sys-apps/sandbox:    1.2.18.1-r3
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.1-r1
sys-devel/binutils:  2.19
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -O2 -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 /var/lib/hsqldb"
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/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--nospinner"
FEATURES="ccache distlocks fixpackages parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="en_US"
LC_ALL="en_US"
LDFLAGS="-Wl,-O1"
LINGUAS="en en_US"
MAKEOPTS="-j3"
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="/dev/shm"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/layman/nx /usr/local/portage/layman/je_fro /usr/local/portage/layman/sunrise /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="7zip X a52 aac aalib acl acpi aim alsa amd64 audiofile avahi avi berkdb bluetooth branding bzip2 cairo captury cdparanoia cdr cli codecs cracklib crypt cups curl curlwrappers dbus device-mapper dri dvb dvd dvdr dvdread emboss encode ethereal evo exif fam flac flash fortran ftp gd gdbm gif glitz gphoto2 gpm gtk gtk2 h264 hal iconv ieee1394 imagemagick imap imlib innodb ipv6 isdnlog java joystick jpeg kde kdehiddenvisibility kdeprefix ldap libnotify lm_sensors mad madwifi midi mikmod mime mmx mng mp3 mpeg msn mudflap multilib ncurses network networkmanager nls nptl nptlonly nsplugin nvidia offensive ogg oggvorbis openexr opengl openmp oscar pam pcre pdf perl png ppds pppd python qt qt3 qt3support qt4 readline reflection samba scanner sdl session slang sndfile spell spl sse sse2 ssl ssse3 startup-notification svg sysfs tcpd tidy tiff truetype unicode usb v4l videos vorbis wmf x264 xcomposite xml xorg xpm xulrunner xv xvid xvmc yahoo zeroconf zlib" ALSA_CARDS="hda-intel" 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" CAMERAS="canon ptp2" ELIBC="glibc" FOO2ZJS_DEVICES="hp1020" INPUT_DEVICES="joystick keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_US" USERLAND="GNU" VIDEO_CARDS="vesa nv nvidia"
Unset:  CPPFLAGS, CTARGET, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Ben de Groot (RETIRED) gentoo-dev 2008-11-05 21:37:31 UTC
Can't reproduce. Please attach full build log.
Comment 2 Paul Hartman 2008-11-05 21:41:04 UTC
Created attachment 170849 [details]
build log
Comment 3 Paul Hartman 2008-11-06 22:26:50 UTC
Same thing happens for me in 0.5.4
Comment 4 Paul Hartman 2008-11-06 22:36:32 UTC
Tried to emerge old versions. 0.5.2 did not even compile, but 0.5.0 compiled and installed without error. So maybe something changed since then?
Comment 5 Steve Kutnar 2009-02-02 05:40:13 UTC
I've had this happen to me, but it seems to only happen to me when X is not running.  I'm guessing it has to do with the X support.
Comment 6 Steve Kutnar 2009-02-02 06:16:51 UTC
Created attachment 180650 [details]
build log when X isn't running
Comment 7 Paul Hartman 2009-02-02 16:45:45 UTC
Even when compiling 0.5.5 in X i get the access violation. However I can simply untar it to my home dir and run it without problems.
Comment 8 Samuli Suominen (RETIRED) gentoo-dev 2009-05-10 18:23:49 UTC

*** This bug has been marked as a duplicate of bug 268980 ***
Comment 9 Paul Hartman 2009-05-11 15:42:42 UTC
I think the other bug may be irrelevant to this, because it still fails in exactly the same way using the latest portage updates. I have had X USE flag enabled the entire time, as original bug report shows. Here are the results of trying to emerge:

>>> Emerging (2 of 2) media-sound/rubyripper-0.5.5-r1
 * rubyripper-0.5.5.tar.bz2 RMD160 SHA1 SHA256 size ;-) ...                                                              [ ok ]
 * checking ebuild checksums ;-) ...                                                                                     [ ok ]
 * checking auxfile checksums ;-) ...                                                                                    [ ok ]
 * checking miscfile checksums ;-) ...                                                                                   [ ok ]
>>> Unpacking source...
>>> Unpacking rubyripper-0.5.5.tar.bz2 to /dev/shm/portage/media-sound/rubyripper-0.5.5-r1/work
>>> Source unpacked in /dev/shm/portage/media-sound/rubyripper-0.5.5-r1/work
>>> Preparing source in /dev/shm/portage/media-sound/rubyripper-0.5.5-r1/work/rubyripper-0.5.5 ...
 * Applying rubyripper-0.5.2-require-rubygems.patch ...                                                                   [ ok ]
>>> Source prepared.
>>> Configuring source in /dev/shm/portage/media-sound/rubyripper-0.5.5-r1/work/rubyripper-0.5.5 ...
 * Scanning for an open DISPLAY to start Xvfb ...
 * Starting Xvfb on $DISPLAY=1 ...
./configure --prefix=/usr --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --libdir=/usr/lib64 --prefix=/usr --enable-gtk2 --enable-cli
Checking the NEEDED dependencies....
cdparanoia found...

Checking the OPTIONAL dependencies...
Testing support for the graphical frontend...
Xlib:  extension "RANDR" missing on display ":1.0".
ruby-gtk2 bindings found

Testing support for freedb metadata fetching...
cd-discid or discid found...

Testing support for ejecting the disk tray...
eject or disktutil found...

Testing support for different codecs on your system...
flac found...
oggenc (vorbis) found...
lame (mp3) found...

Testing support for replaygain...
wavegain found...
vorbisgain found...
mp3gain found...

Testing support for normalize...
normalize found...
Creating the Makefile...
A summary of your settings:

Using the following locations for install:
* Executables: /usr/bin
* Localization files: /usr/share/locale
* Icon file: /usr/share/icons/hicolor/128x128/apps
* Desktop file: /usr/share/applications
* Ruby library: /usr/lib64/ruby/site_ruby/1.8

Gtk2 frontend will be installed
Cli frontend will be installed

You can now run make install
Make sure you've got the writing privileges

>>> Source configured.
--------------------------- ACCESS VIOLATION SUMMARY ---------------------------
LOG FILE "/var/log/sandbox/sandbox-28902.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: unlink
S: deny
P: /var/lib/xkb/server-1.xkm
A: /var/lib/xkb/server-1.xkm
R: /var/lib/xkb/server-1.xkm
C: /usr/bin/xkbcomp -w 1 -R/usr/share/X11/xkb -xkm - -em1 The XKEYBOARD keymap compiler (xkbcomp) reports: -emp >  -eml Errors from xkbcomp are not fatal to the X server /var/lib/xkb/server-1.xkm

F: open_wr
S: deny
P: /var/lib/xkb/server-1.xkm
A: /var/lib/xkb/server-1.xkm
R: /var/lib/xkb/server-1.xkm
C: /usr/bin/xkbcomp -w 1 -R/usr/share/X11/xkb -xkm - -em1 The XKEYBOARD keymap compiler (xkbcomp) reports: -emp >  -eml Errors from xkbcomp are not fatal to the X server /var/lib/xkb/server-1.xkm

F: unlink
S: deny
P: /var/lib/xkb/server-1.xkm
A: /var/lib/xkb/server-1.xkm
R: /var/lib/xkb/server-1.xkm
C: /usr/bin/xkbcomp -w 1 -R/usr/share/X11/xkb -xkm - -em1 The XKEYBOARD keymap compiler (xkbcomp) reports: -emp >  -eml Errors from xkbcomp are not fatal to the X server /var/lib/xkb/server-1.xkm

F: open_wr
S: deny
P: /var/lib/xkb/server-1.xkm
A: /var/lib/xkb/server-1.xkm
R: /var/lib/xkb/server-1.xkm
C: /usr/bin/xkbcomp -w 1 -R/usr/share/X11/xkb -xkm - -em1 The XKEYBOARD keymap compiler (xkbcomp) reports: -emp >  -eml Errors from xkbcomp are not fatal to the X server /var/lib/xkb/server-1.xkm
--------------------------------------------------------------------------------

>>> Failed to emerge media-sound/rubyripper-0.5.5-r1, Log file:
Comment 10 Andreas Nüßlein 2009-06-12 11:12:16 UTC
the problem is the "Xeconf" in the .ebuild ... other packages had that problem too. "media-sound/listen" for example.. 
also a short "grep Xeconf *" revealed this:
# grep "Xeconf" * -R
museseq/ChangeLog:  Stop using Xeconf since it's causing sandbox violations wrt #222941 by ...

however simply replacing Xeconf with econf doesn't work.. i don't know enough about ebuilds, but maybe someone else can help?