Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 302551 - media-video/totem-2.28.5 and 2.26.3-r1 sandbox access violation
Summary: media-video/totem-2.28.5 and 2.26.3-r1 sandbox access violation
Status: RESOLVED DUPLICATE of bug 270321
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-01-28 00:02 UTC by Trevor Bowen
Modified: 2010-02-12 14:07 UTC (History)
0 users

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


Attachments
access violation for stable totem ebuild (build.log,17.41 KB, text/plain)
2010-01-28 00:04 UTC, Trevor Bowen
Details
access violation for unstable amd64 totem ebuild (build.log,17.58 KB, text/plain)
2010-01-28 00:05 UTC, Trevor Bowen
Details
added required addpredict for /dev/raw1394 (totem-2.28.5-r1.ebuild,4.67 KB, text/plain)
2010-02-11 18:32 UTC, Trevor Bowen
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Trevor Bowen 2010-01-28 00:02:59 UTC
After enabling the lirc use flag, I have tried to emerge both the stable and unstable versions of totem.  Both versions crash with a message similar to this (unstable, in this example):

# emerge -pvt totem
Calculating dependencies... done!
[ebuild     U ] media-video/totem-2.28.5 [2.26.3-r1] USE="iplayer%* lirc* nsplugin python youtube%* -bluetooth -debug -doc -galago -nautilus (-tracker)" 0 kB

Total: 1 package (1 upgrade), Size of downloads: 0 kB

# emerge totem
...
config.status: executing po/stamp-it commands
configure: Totem was configured with the following options:
configure: ** Using the GStreamer-0.10 backend
configure: ** Easy codec installation support enabled
configure: ** Python binding support enabled
configure:    Vala binding support disabled
configure: ** thumbnail plugin enabled
configure: ** screensaver plugin enabled
configure: ** ontop plugin enabled
configure:    galago plugin disabled
configure: ** gromit plugin enabled
configure: ** lirc plugin enabled
configure: ** media-player-keys plugin enabled
configure:    mythtv plugin disabled
configure: ** properties plugin enabled
configure:    sidebar-test plugin disabled
configure: ** skipto plugin enabled
configure:    sample-python plugin disabled
configure:    sample-vala plugin disabled
configure:    bemused plugin disabled
configure: ** youtube plugin enabled
configure:    publish plugin disabled
configure:    tracker plugin disabled
configure: ** pythonconsole plugin enabled
configure: ** jamendo plugin enabled
configure: ** opensubtitles plugin enabled
configure: ** screenshot plugin enabled
configure: ** brasero-disc-recorder plugin enabled
configure:    coherence_upnp plugin disabled
configure: ** dbus-service plugin enabled
configure: ** iplayer plugin enabled
configure: ** Browser plugin enabled
configure: ** GMP (Windows Media) plugin enabled
configure:    Complex (Real) plugin disabled
configure: ** NarrowSpace (QuickTime) plugin enabled
configure: ** MullY (DivX) plugin enabled
configure: ** Cone (VLC) plugin enabled
configure:    Nautilus properties page disabled
configure: ** iso-codes support checked
configure: ** XTest (legacy screensaver) support enabled
configure: ** D-Bus (gnome-screensaver) support enabled
configure: ** XVidmode support enabled
configure: ** XFree86 multimedia keys support enabled
configure: ** SM client support enabled
configure: End options
>>> Source configured.
--------------------------- ACCESS VIOLATION SUMMARY ---------------------------
LOG FILE "/var/log/sandbox/sandbox-12254.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: open_wr
S: deny
P: /dev/raw1394
A: /dev/raw1394
R: /dev/raw1394
C: /usr/bin/gst-inspect-0.10 playbin2 
--------------------------------------------------------------------------------

>>> Failed to emerge media-video/totem-2.28.5, Log file:

>>>  '/var/tmp/portage/media-video/totem-2.28.5/temp/build.log'

# emerge --info
WARNING: One or more repositories have missing repo_name entries:

        /usr/local/portage/profiles/repo_name

NOTE: Each repo_name entry should be a plain text file containing a
unique name for the repository on the first line.
Portage 2.2_rc61 (default/linux/amd64/10.0, gcc-4.3.4, glibc-2.10.1-r1, 2.6.32-gentoo-r2 x86_64)
=================================================================
System uname: Linux-2.6.32-gentoo-r2-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q6600_@_2.40GHz-with-gentoo-1.12.13
Timestamp of tree: Mon, 25 Jan 2010 15:30:01 +0000
app-shells/bash:     4.0_p35
dev-java/java-config: 2.1.9-r2
dev-lang/python:     2.6.4
dev-util/cmake:      2.8.0-r1
sys-apps/baselayout: 1.12.13
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  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:   2.2.6b
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /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/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/udev/rules.d"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests distlocks fixpackages news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-logs 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="-j5"
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"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac aalib acl acpi alsa amd64 amr amrnb amrwb apache2 apm audiofile autoipd avahi avi bash-completion berkdb bidi bitmap-fonts bl bonobo bs2b bzip2 cairo cdda cddax cddb cdio cdr cgi clamav cli cracklib crypt ctype cups cxx dbus dc1394 dga dirac directfb dri dts dv dvb dvd dvdr emacs embedded encode exif expat faac faad fam fat fbcon ffmpeg filter firefox flac font-server fortran freetype gdbm gif gimp gnome gpm gsm gstreamer gtk gtk2 hal hash iconv id3tag ieee1394 imagemagick imap imlib iplayer ipv6 isdnlog jack java javascript jpeg jpeg2k kate kde kerberos ladspa ldap libg++ libnotify libproxy libsamplerate libsysfs libtiger libv4l2 libwww lirc live lm_sensors lua lzo mad maildir matroska mbox md5sum mdnsresponder-compat midi mikmod mjpeg mmx mng modules motif mp3 mp4 mpeg mplayer mssql mudflap multilib mysql mysqli ncurses networkmanager nls nntp nonfsv4 nptl nptlonly nsplugin ntfs nut nuv nvidia odbc ofx ogg oggvorbis ogm openal opencore-amr openexr opengl openmp pam pcre pdf pdflib perl php plotutils pmu png pnm policykit pop3d portaudio posix postproc ppds pppd pvr python qmail-spp qt qt3support qt4 quicktime radio rdesktop readline reflection rtsp ruby samba sasl scanner schroedinger sdl sdl-image semantic-desktop session shine shout simplexml skins slang slp sndfile snmp speex spell spl sql srt sse sse2 ssl ssse3 stream svg sysfs tcl tcltk tcpd teletext theora threads tidy tiff timidity tk tokenizer truetype truetype-fonts twolame type1 type1-fonts udev unicode upnp usb v4l v4l2 vcd vcdinfo vcdx vdpau vhosts vim-syntax vlm vnc vorbis wavpack wxwindows x264 xanim xcomposite xemacs xinerama xml xmlrpc xorg xpm xulrunner xv xvid xvmc youtube yv12 zlib zoran zvbi" ALSA_CARDS="mia 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 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="en en_US" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Trevor Bowen 2010-01-28 00:04:28 UTC
Created attachment 217679 [details]
access violation for stable totem ebuild
Comment 2 Trevor Bowen 2010-01-28 00:05:25 UTC
Created attachment 217681 [details]
access violation for unstable amd64 totem ebuild
Comment 3 Daniel Gryniewicz (RETIRED) gentoo-dev 2010-01-28 13:19:41 UTC
This the same as bug #270321 since the actual problem is caused by gstreamer.

*** This bug has been marked as a duplicate of bug 270321 ***
Comment 4 Trevor Bowen 2010-02-11 14:19:47 UTC
The linked bug involved the user moving root's home dir.  I have not done that.  So, I do not think it is a true dupe.

I did not see a workaround, solution, or fix posted anywhere.  Suggestions?
Comment 5 Gilles Dartiguelongue (RETIRED) gentoo-dev 2010-02-11 18:04:38 UTC
the point is that the other bug describes the problems, it's in gstreamer/gnome tools that do not respect HOME env variable. 

*** This bug has been marked as a duplicate of bug 270321 ***
Comment 6 Trevor Bowen 2010-02-11 18:29:21 UTC
Please forgive me for being dense.  In the dup, bug #270321, I clearly see that the tool is trying to create directories in root's home (/root/.gconf).  This would pertain to the $HOME variable.  That point, I understand.

However, I do not see that problem in my report below.  Instead, the tool is trying to access /dev/raw1394.  How is that related to $HOME?

I modified the latest ebuild and added an addpredict statement for this new access problem, like so:

src_configure() {
    # FIXME: why does it need write access here, probably need to set up a fake
    # home in /var/tmp like other pkgs do

    addpredict "$(unset HOME; echo ~)/.gconf"
    addpredict "$(unset HOME; echo ~)/.gconfd"
    addpredict "$(unset HOME; echo ~)/.gnome2"
    # Necessary when using 1394 with GStreamer (USE=ieee1394 dc1394)
    addpredict "/dev/raw1394"

    gnome2_src_configure
}

I am not sure which of the 1394 USE flags triggered this requirement, and I am not sure which GStreamer plug-in or tool was rebuilt, but I did the above USE flags to /etc/make.conf, and I updated world, which caused the original problem.

Totem compiled correctly and runs as expected now. ...  Attaching ebuild...  Thanks for your help.  :)
Comment 7 Trevor Bowen 2010-02-11 18:32:58 UTC
Created attachment 219269 [details]
added required addpredict for /dev/raw1394
Comment 8 Gilles Dartiguelongue (RETIRED) gentoo-dev 2010-02-12 10:10:11 UTC
Please stop reopening this ticket. The problem is the same as the other one, it's gstreamer touching files in a way it should not.

*** This bug has been marked as a duplicate of bug 270321 ***
Comment 9 Trevor Bowen 2010-02-12 13:55:19 UTC
However, the dup neither proposes nor fixes the solution.  Where I work, as long as a bug exists in the wild, we leave the ticket open until it is fixed.  Can I do an emerge --sync and expect to pick up the fix I provided?  Or, was it blown off too? ... I know you all are extremely busy, and I greatly appreciate your volunteer efforts, but a smidgen of mutual respect would go a long way.
Comment 10 Gilles Dartiguelongue (RETIRED) gentoo-dev 2010-02-12 14:07:49 UTC
The fix is improper as it's not generic. A definite solution to the problem will be discussed/implemented in bug #270321. We only keep one bug for one problem as otherwise we would just go crazy. If you want to contribute to the quality of stable ebuilds, I suggest you join the arch team of your choice so you get a chance to report these problems before  they hit stable. Thanks for understanding.