Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 15949 - Potage-2.0.47-r2 gives sandbox violation error when doing emerge (any flag) as a normal user
Summary: Potage-2.0.47-r2 gives sandbox violation error when doing emerge (any flag) a...
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Unclassified (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Nicholas Jones (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-02-18 15:26 UTC by Cletus Lichte
Modified: 2011-10-30 22:20 UTC (History)
1 user (show)

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


Attachments
strace output of portage command (trace,231.82 KB, text/plain)
2003-02-22 03:57 UTC, Cletus Lichte
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Cletus Lichte 2003-02-18 15:26:46 UTC
when typing emerge -s <name>, or any other flag ( -p, etc. ), I get the
following error:

ACCESS DENIED  open_wr:   /dev/mixer
Unable to open /dev/mixer(are you root?)
: Permission denied
--------------------------- ACCESS VIOLATION SUMMARY ---------------------------
LOG FILE = "/tmp/sandbox-7518.log"

open_wr:   /dev/mixer
--------------------------------------------------------------------------------
Searching...   


I have the portage user in /etc/passwd.  My permissions in /tmp are ok.  I'm
using the
FEATURES that is set in /etc/make.globals, I don't have anything different in
/etc/make.conf
I'm using /tmp/portage instead of /var/tmp/portage and I've changed that in the
portage user
in /etc/passwd, but I still get this problem.  This happened right after I
upgraded portage to 
version 2.0.47-r2.


Reproducible: Always
Steps to Reproduce:
1. Type emerge (any flag) <name>
2.
3.
Comment 1 Nicholas Jones (RETIRED) gentoo-dev 2003-02-20 15:57:24 UTC
emerge -v info
Comment 2 Nicholas Jones (RETIRED) gentoo-dev 2003-02-21 04:46:51 UTC
and an strace if you can.

strace -f emerge -p <name>
Comment 3 Cletus Lichte 2003-02-22 03:41:00 UTC
emerge -v info:

Portage 2.0.47-r2 (default-x86-1.4, gcc-3.2.2, glibc-2.3.1-r3)
=================================================================
System uname: 2.4.20 i686 VIA Samuel 2
USE="x86 3dnow avi crypt cups encode gif jpeg libg++ mikmod mmx mpeg ncurses nls pdflib png quic
ktime spell truetype xml2 xmms xv zlib gdbm berkdb slang readline java X sdl gpm tcpd pam libwww
 ssl python imlib oggvorbis gtk opengl aalib acpi apache2 -apm -arts atlas dga doc dvd ethereal 
flash gd ggi -gnome gps gtk2 gtkhtml guile imap innodb jikes -kde kerberos lcms ldap leim libgda
 mbox -motif mozilla mule mysql odbc -oss pda perl pic plotutils -qt -qtmt samba sasl slp snmp s
se -svga tcltk tetex tiff usb xml"
JAVA_HOME="/opt/sun-jdk-1.4.1.01"
FEATURES="sandbox ccache"
INFODIR="/usr/share/info:/usr/X11R6/info"
LESS="-R"
CC="gcc"
CLASSPATH="/opt/sun-jdk-1.4.1.01/jre/lib/rt.jar:."
ACCEPT_LICENSE=""
LESSOPEN="|lesspipe.sh %s"
PORTAGE_CACHEDIR="/var/cache/edb/dep/"
CVS_RSH="ssh"
LOGNAME="root"
USER="root"
INPUTRC="/etc/inputrc"
HOME="/root"
PATH="/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/opt/bin:/usr/i586-pc-linux-gnu/gcc-bin/3.2:/
usr/X11R6/bin:/opt/sun-jdk-1.4.1.01/bin:/opt/sun-jdk-1.4.1.01/jre/bin"
PS1="\[\033[01;31m\]\h \[\033[01;34m\]\W \$ \[\033[00m\]"
XINITRC="/etc/X11/xinit/xinitrc"
DISPLAY=":0.0"
MOZILLA_FIVE_HOME="/usr/lib/mozilla"
PORTAGE_MASTER_PID="1788"
INFOPATH="/usr/share/info:/usr/share/gcc-data/i586-pc-linux-gnu/3.2/info"
TERM="xterm"
SHELL="/bin/bash"
JDK_HOME="/opt/sun-jdk-1.4.1.01"
JAVAC="/opt/sun-jdk-1.4.1.01/bin/javac"
SHLVL="1"
PRELINK_PATH_MASK=""
OLDPWD="/root"
HOSTNAME="lichte.ctcis.net"
CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config /usr/kde/2/share/config /usr/kde/3/sha
re/config /usr/X11R6/lib/X11/xkb /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/plate
x/config/"
CXX="g++"
PWD="/root"
SGML_CATALOG_FILES="/etc/sgml/sgml-docbook.cat:/etc/sgml/openjade-1.3.1.cat:/etc/sgml/sgml-ent.c
at:/etc/sgml/sgml-docbook-3.0.cat:/etc/sgml/sgml-docbook-3.1.cat:/etc/sgml/sgml-docbook-4.0.cat:
/etc/sgml/sgml-docbook-4.1.cat:/etc/sgml/sgml-lite.cat:/etc/sgml/dsssl-docbook-stylesheets.cat"
_="/usr/bin/emerge"
MANPATH="/usr/share/man:/usr/local/share/man:/usr/share/gcc-data/i586-pc-linux-gnu/3.2/man:/usr/
X11R6/man:/opt/insight/man"
ACCEPT_KEYWORDS="x86 ~x86"
LS_COLORS="no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=4
0;31;01:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;
31:*.Z=01;31:*.gz=01;31:*.bz2=01;31:*.deb=01;31:*.rpm=01;31:*.jpg=01;35:*.gif=01;35:*.bmp=01;35:
*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.png=01;35:*.mpg=01;35:*.avi=01;35:
*.fli=01;35:*.gl=01;35:*.dl=01;35:"
PAGER="/usr/bin/less"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
PRELINK_PATH=""
EDITOR="/bin/nano"
CXXFLAGS="-march=i586 -m3dnow -O2 -pipe -fomit-frame-pointer"
CHOST="i586-pc-linux-gnu"
CFLAGS="-march=i586 -m3dnow -O2 -pipe -fomit-frame-pointer"
GENTOO_MIRRORS="ftp://ftp.ibiblio.org/pub/linux/distributions/gentoo ftp://ftp.gtlib.cc.gatech.e
du/pub/gentoo http://gentoo.oregonstate.edu ftp://ftp.oregonstate.edu/pub/gentoo http://mirrors.
sunsite.dk/gentoo/ ftp://sunsite.dk/mirrors/gentoo/ http://gentoo.linux.no/ ftp://gentoo.linux.n
o/pub/gentoo/ http://ftp.gentoo.or.kr/ http://gentoo.gnukorea.org/ ftp://ftp.dale.ro/pub/mirrors
/ftp.ibiblio.org/pub/Linux/distributions/gentoo/ http://ftp.snt.utwente.nl/pub/os/linux/gentoo/ 
ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo/ ftp://ftp.rez-gif.supelec.fr/pub/Linux/distrib/gen
too/ http://distro.ibiblio.org/gentoo "
RSYNC_RETRIES="3"
AUTOCLEAN="yes"
RSYNC_TIMEOUT="180"
PORTAGE_TMPDIR="/tmp"
ARCH="x86"
COMPILER="gcc3"
MAKEOPTS="-j2"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
DISTDIR="/usr/portage/distfiles"
PKGDIR="/usr/portage/packages"
CLEAN_DELAY="5"
RESUMECOMMAND="/usr/bin/wget -c -t 5 --passive-ftp ${URI} -P ${DISTDIR}"
RPMDIR="/usr/portage/rpm"
FETCHCOMMAND="/usr/bin/wget -t 5 --passive-ftp ${URI} -P ${DISTDIR}"
PORTDIR="/usr/portage"
NOCOLOR="false"
USE_ORDER="env:conf:auto:defaults"

Comment 4 Cletus Lichte 2003-02-22 03:57:27 UTC
Created attachment 8603 [details]
strace output of portage command

This is the strace output you requested.  It was too large to cut and paste.
Comment 5 Nicholas Jones (RETIRED) gentoo-dev 2003-02-22 08:21:25 UTC
CFLAGS="-march=i586 -m3dnow -O2 -pipe -fomit-frame-pointer"

Ummmm... What's the point of that? i586 can't do 3dnow... is this a k6-2 ?


These two... Do you have something in your .bashrc involving those?
[pid  5478] execve("/usr/bin/ermixer", ["/usr/bin/ermixer", "-c", "lichte"], [/* 75 vars */] <unfinished ...>
[pid  5478] open("/home/lichte/.ermixer/", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) = 4
Comment 6 Nicholas Jones (RETIRED) gentoo-dev 2003-02-22 08:21:44 UTC
If so, It'll be fixed in 47-r3
Comment 7 Cletus Lichte 2003-02-22 15:48:19 UTC
My CPU is a VIA C3, it *does* have 3dnow.  The ermixer line is in my .bashrc.
Ermixer is a console app that I use to set my sound card volume levels.  It sets
my volume level whenever I log in to my system.
Comment 8 Nicholas Jones (RETIRED) gentoo-dev 2003-02-23 02:39:04 UTC
portage-2.0.47-r3