Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 277074 - libffado throws sandbox access violation
Summary: libffado throws sandbox access violation
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-08 18:00 UTC by Audiodef
Modified: 2009-07-14 21:14 UTC (History)
0 users

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


Attachments
libffado build log (build.log,83.74 KB, text/plain)
2009-07-08 18:03 UTC, Audiodef
Details
sandbox log (sandbox-6256.log,319 bytes, text/plain)
2009-07-08 18:04 UTC, Audiodef
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Audiodef 2009-07-08 18:00:23 UTC
When emerging libffado-2.0_rc1, sandbox-2.0 throws an access violation error.

Reproducible: Always

Steps to Reproduce:
1. emerge =sandbox-2.0
2. emerge =libffado-2.0_rc1

Actual Results:  
Final output from emerge libffado:

>>> Source compiled.
--------------------------- ACCESS VIOLATION SUMMARY ---------------------------
LOG FILE "/var/log/sandbox/sandbox-6256.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: unlinkat
S: deny
P: /usr/bin/ffadomixer
A: /usr/bin/ffadomixer
R: /usr/bin/ffadomixer
C: rm -f /usr/bin/ffadomixer 
--------------------------------------------------------------------------------


Expected Results:  
Emerge of libffado.

Attachments to follow.
Comment 1 Audiodef 2009-07-08 18:03:51 UTC
Created attachment 197227 [details]
libffado build log
Comment 2 Audiodef 2009-07-08 18:04:22 UTC
emerge --info:

Portage 2.2_rc33 (default/linux/amd64/2008.0, gcc-4.3.3, glibc-2.10.1-r0, 2.6.30-gentoo-r2 x86_64)
=================================================================
System uname: Linux-2.6.30-gentoo-r2-x86_64-Intel-R-_Pentium-R-_D_CPU_3.20GHz-with-gentoo-2.0.1
Timestamp of tree: Tue, 07 Jul 2009 11:45:01 +0000
app-shells/bash:     4.0_p24
dev-java/java-config: 2.1.8-r1
dev-lang/python:     2.5.4-r3, 2.6.2-r1
dev-util/cmake:      2.6.4
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.4.3-r3
sys-apps/sandbox:    2.0
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.5, 1.8.5-r3, 1.9.6-r2, 1.10.2, 1.11
sys-devel/binutils:  2.19.1-r1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.29
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /etc/conf.d/hostname /etc/conf.d/hwclock /etc/hosts /etc/locale.gne /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/sandbox.d /etc/splash /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.mirrors.pair.com/ http://gentoo.mirrors.tds.net/gentoo http://gentoo.netnitco.net http://mirror.datapipe.net/gentoo http://gentoo.mirrors.easynews.com/linux/gentoo/ http://chi-10g-1-mirror.fastsoft.net/pub/linux/gentoo/gentoo-distfiles/ http://www.cyberuse.com/gentoo/ "
LDFLAGS="-Wl,-O1"
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/pro-audio /usr/local/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="X acl acpi alsa amd64 apm aspell automount beagle berkdb bzip2 cddb clamav clamd clamdtop cleartype cli consolekit cpudetection cracklib crypt cups dbus dell dga dirac directfb djbfft dri dssi encode exif faac faad fam fbcon fbcondecor ffmpeg fftw flac fluidsynth fortran freebob freesound gcdmaster gdbm gif gmplayer gnome gnome-keyring gpm gtk hal iconv id3 id3tag ieee1394 ipv6 isdnlog jack java jpeg ladspa lash libsamplerate lv2 midi mmx mp3 mp3rtp mudflap multilib musepack musicbrainz nautilus ncurses nls nptl nptlonly ogg opengl openmp pam pcre pdf perl png ppds pppd python quicktime readline reflection rubberband samba schroedinger sdl session soundtouch spell spl sse sse2 ssl svg sysfs tcpd templates theora threads tiff truetype twolame unicode vamp vorbis xcf xorg xscreensaver xulrunner 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" ELIBC="glibc" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="radeon"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 3 Audiodef 2009-07-08 18:04:56 UTC
Created attachment 197228 [details]
sandbox log
Comment 4 Wormo (RETIRED) gentoo-dev 2009-07-11 21:41:01 UTC
The libffado ebuild comes from the pro-audio overlay, so please report this access violation to the bug tracker for the overlay: http://proaudio.tuxfamily.org/bugs/my_view_page.php
Comment 5 Audiodef 2009-07-12 22:06:22 UTC
I was reporting this as a SANDBOX bug, which I was encouraged to do by someone from the pro-audio overlay. There is apparently nothing wrong with the program I was trying to compile, and I recall having this problem with one or 2 other programs. 
Comment 6 Wormo (RETIRED) gentoo-dev 2009-07-14 02:52:49 UTC
There is probably nothing wrong with the program itself that you are trying to build, but it's ebuild needs a little work to fix this issue. Sandbox detected that the build process tried to run "rm -f /usr/bin/ffadomixer" which is not a safe type of operation that the sandbox is supposed to allow.

Now if we discover that the emerge did _not_ really try to remove /usr/bin/ffadomixer but that sandbox created a totally spurious message, then the sandbox developers need to investigate.

So, if you still suspect that sandbox is broken, try this experiment:
set FEATURES=-sandbox and run your emerge with 'strace -j TRACE -e trace=unlink <emerge command here>'

Look through the list of unlink operations and see if /usr/bin/ffadomixer is there; if present, it's an ebuild bug, otherwise it could be a sandbox bug.
Comment 7 Patrick Lauer gentoo-dev 2009-07-14 21:14:40 UTC
It's an ebuild issue as far as I can tell. Unless you can show a specific failure in sandbox there's not much we can do.