Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 45384 - sandbox ACCESS VIOLATION in mythtv 1.3 / 1.4
Summary: sandbox ACCESS VIOLATION in mythtv 1.3 / 1.4
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: x86 Linux
: High minor (vote)
Assignee: Television related Applications in Gentoo's Portage
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-03-22 06:24 UTC by adam
Modified: 2005-04-07 20:05 UTC (History)
1 user (show)

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


Attachments
Output of emerge mythtv (nohup.out.gz,7.69 KB, application/x-gzip)
2004-07-08 08:40 UTC, Martin Gadbois
Details

Note You need to log in before you can comment on or make changes to this bug.
Description adam 2004-03-22 06:24:10 UTC
when i emerge mythtv-1.3 i get an ACCESS VIOLATION report from sandbox:

open_wr:   /lib/libmyth-0.13.so.0.13.0
unlink:    /lib/sty3WUOD
symlink:   /lib/libmyth-0.13.so
symlink:   /lib/libmyth-0.13.so.0
symlink:   /lib/libmyth-0.13.so.0.13
mkdir:     /include
mkdir:     /lib/mythtv
mkdir:     /lib/mythtv
mkdir:     /lib/mythtv
mkdir:     /lib/mythtv
mkdir:     /lib/mythtv
mkdir:     /lib/mythtv
mkdir:     /lib/mythtv
open_wr:   /bin/mythepg
unlink:    /bin/sthrTpcn
open_wr:   /bin/mythprogfind
unlink:    /bin/stQ3KPas
open_wr:   /bin/mythfilldatabase
unlink:    /bin/st0mwuzw
open_wr:   /bin/mythtranscode
unlink:    /bin/stoTAFtB
open_wr:   /bin/mythtv
unlink:    /bin/stVexi9F
open_wr:   /bin/mythbackend
unlink:    /bin/stfXjZ8K
open_wr:   /bin/mythfrontend
unlink:    /bin/stHMc6fQ
mkdir:     /share/mythtv
open_wr:   /bin/mythcommflag
unlink:    /bin/st0uPR3Z
open_wr:   /bin/mythtvosd
unlink:    /bin/stLx2oX3
mkdir:     /share/mythtv
mkdir:     /share/mythtv
mkdir:     /share/mythtv

what i think is quite strange is the last 3 lines.  my /share directory is an ntfs filesystem mounted read-only.  mythtv should have no business mucking with that.

i tried emerging mythtv-1.4 and got similar results.

anyway, i'm now trying to emerge with FEATURES="-sandbox" in /etc/make.conf

Reproducible: Always
Steps to Reproduce:
1. emerge mythtv
2. wait
3. wait...
4. read the screen

Actual Results:  
a bunch of permission denieds and:

--------------------------- ACCESS VIOLATION SUMMARY ---------------------------
LOG FILE = "/tmp/sandbox-media-tv_-_mythtv-0.13-r1-2158.log"

open_wr:   /lib/libmyth-0.13.so.0.13.0
unlink:    /lib/sty3WUOD
symlink:   /lib/libmyth-0.13.so
symlink:   /lib/libmyth-0.13.so.0
symlink:   /lib/libmyth-0.13.so.0.13
mkdir:     /include
mkdir:     /lib/mythtv
mkdir:     /lib/mythtv
mkdir:     /lib/mythtv
mkdir:     /lib/mythtv
mkdir:     /lib/mythtv
mkdir:     /lib/mythtv
mkdir:     /lib/mythtv
open_wr:   /bin/mythepg
unlink:    /bin/sthrTpcn
open_wr:   /bin/mythprogfind
unlink:    /bin/stQ3KPas
open_wr:   /bin/mythfilldatabase
unlink:    /bin/st0mwuzw
open_wr:   /bin/mythtranscode
unlink:    /bin/stoTAFtB
open_wr:   /bin/mythtv
unlink:    /bin/stVexi9F
open_wr:   /bin/mythbackend
unlink:    /bin/stfXjZ8K
open_wr:   /bin/mythfrontend
unlink:    /bin/stHMc6fQ
mkdir:     /share/mythtv
open_wr:   /bin/mythcommflag
unlink:    /bin/st0uPR3Z
open_wr:   /bin/mythtvosd
unlink:    /bin/stLx2oX3
mkdir:     /share/mythtv
mkdir:     /share/mythtv
mkdir:     /share/mythtv
--------------------------------------------------------------------------------

Expected Results:  
should have installed and made me happy.

libby default # emerge info
Portage 2.0.50-r1 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r9, 2.4.20-gaming-r8)
=================================================================
System uname: 2.4.20-gaming-r8 i686 AMD Athlon(tm) Processor
Gentoo Base System version 1.4.3.13
Autoconf: sys-devel/autoconf-2.58-r1
Automake: sys-devel/automake-1.7.7
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -mcpu=i686 -funroll-loops -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.1/share/config /usr/kde/3/share/config /usr/share/config
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -mcpu=i686 -funroll-loops -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache"
GENTOO_MIRRORS="http://gentoo.oregonstate.edu
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/usr/portage/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X alsa apm arts avi berkdb cdr crypt cups doc encode esd foomaticdb gdbm
gif gphoto2 gpm gtk gtk2 imlib java jpeg libg++ libwww mad mikmod motif mpeg
mysql ncurses nls nocd nowin oggvorbis opengl oss pam pdflib perl png python qt
quicktime readline scanner sdl slang spell ssl svga tcltk tcpd tetex truetype
videos x86 xml2 xmms xv zlib"
Comment 1 Daniel Ahlberg (RETIRED) gentoo-dev 2004-06-01 14:36:26 UTC
Please attach full build log.
Comment 2 Martin Gadbois 2004-07-08 08:36:05 UTC
Same problem, here's my output:
mgadbois@felix mgadbois $ emerge info
Portage 2.0.50-r8 (default-x86-1.4, gcc-3.2.2, glibc-2.3.1-r4, 2.4.25-gentoo-r3)
=================================================================
System uname: 2.4.25-gentoo-r3 i686 Pentium III (Coppermine)
Gentoo Base System version 1.4.2.8
Autoconf: sys-devel/autoconf-2.59-r3
Automake: sys-devel/automake-1.8.3
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium3 -O3 -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-O2 -mcpu=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/usr/portage/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aalib alsa apache2 apm arts avi berkdb bonobo cdr crypt cups directfb divx4linux dvd encode esd ethereal foomaticdb gdbm ggi gif gnome gpm gstreamer gtk gtk2 gtkhtml guile imagemagick imlib java jpeg ldap libg++ libwww mad mikmod motif mozilla mpeg mysql nas ncurses nls offensive oggvorbis opengl oss pam pdflib perl png python quicktime readline sdl slang spell ssl svga tcltk tcpd truetype unicode usb v4l2 video_cards_i810 x86 xml2 xmms xv xvid yahoo zlib"
Comment 3 Martin Gadbois 2004-07-08 08:40:07 UTC
Created attachment 35010 [details]
Output of emerge mythtv

Some notice: I use Gnome mainly, I had to emerge qt with sql recently.
It seems that qmake selects the work dir, and adds ../../../../../ to install
path .
Comment 4 Dinesh 2004-07-13 09:45:13 UTC
I suffered from this problem to.  Removing sandbox FEATURES='-sandbox' causes more problems with mythtv being installed in /  rather than /usr  (include share directories appear in /).  This seems to be a documented problem fixed by debian.  Looks like it is a qmake issue with the Makefile having broken install paths.  They fixed it by adding QMAKE_PROJECT_DEPTH = 1 in the *.pro files.  This problem persists in 1.5.

Quick hack

add line QMAKE_PROJECT_DEPTH = 1 in /usr/qt/3/mkspecs/linux-g++/qmake.conf.

NOTE:  This is not a viable solution. Don't think we want to keep hacking qmake.conf with undocumentend QMAKE_PROJECT_DEPTH.
Comment 5 Doug Goldstein (RETIRED) gentoo-dev 2004-09-14 09:50:43 UTC
Please retry with the latest version and report back any success or failures...
Comment 6 Doug Goldstein (RETIRED) gentoo-dev 2004-09-17 23:00:35 UTC
If you are able to reproduce the errors please re-open this bug or at least make a comment to this bug so we can investigate further.
Comment 7 Dinesh 2004-10-04 00:47:24 UTC
Tried the most recent version of mythtv (mythtv-0.16) and had the same sandbox access violation.  Again had to fix it using the hack to qmake.conf (QMAKE_PROJECT_DEPTH=1).  I think this is being caused by having qt in /opt/qt (with a symlink from /usr/qt to /opt/qt ).   
Comment 8 Doug Goldstein (RETIRED) gentoo-dev 2004-10-04 06:44:58 UTC
Any reason why you're qt is in /opt/qt? Can you give us an emerge info?
Comment 9 Jason 2004-11-04 01:47:20 UTC
I have this same problem also on a AMD box, (is his qt from a binary package and that's why it's in opt? (mine is in /usr))...

I've tried it with both "emerge mythtv" and "ACCEPT_KEYWORDS=~x86 emerge mythtv" 0.15 and 0.16 both have similar problem with ACCESS violation resulting from "../../../../.." in the path...
Comment 10 Norman Yarvin 2005-04-07 20:05:00 UTC
I just ran into the same bug, in mythtv-0.16 and also in mythtv-0.17.  It's fixable via the same hack (setting QMAKE_PROJECT_DEPTH = 1 as specified in previous comments).

This is on x86.  I notice that the "../../../../../.."s show up earlier in the build, too, long before it fails with sandbox violations: they are also in the include statements.  For instance, one of the compile lines is:

g++ -c -pipe `artsc-config --cflags` -Wall -W -O2 -march=athlon-tbird -fomit-frame-pointer -fno-pie -D_REENTRANT  -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DPREFIX=\"/usr\" -DMMX -DUSING_IVTV -DUSING_OPENGL_VSYNC -DUSING_XRANDR -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -I/usr/qt/3/mkspecs/linux-g++ -I. -I../.. -I../../libs/libmythtv -I../../libs -I../../libs/libmyth -I../../../../../../../../include -I/usr/qt/3/include -o main.o main.cpp

Qt on my system is in /usr.

I know approximately zilch about qt and qmake, but am willing to poke around if so requested.

Here's the output of emerge --info:

Portage 2.0.51.19 (default-linux/x86/2004.0, gcc-3.3.5, glibc-2.3.4.20041102-r1, 2.6.11-gentoo-r4 i686)
=================================================================
System uname: 2.6.11-gentoo-r4 i686 AMD Athlon(tm) Processor
Gentoo Base System version 1.4.16
Python:              dev-lang/python-2.2.3-r5,dev-lang/python-2.3.4-r1 [2.3.4 (#1, Feb 11 2005, 18:17:36)]
distcc 2.16 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
dev-lang/python:     2.2.3-r5, 2.3.4-r1
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.4
sys-devel/binutils:  2.15.92.0.2-r7
sys-devel/libtool:   1.5.10-r4
virtual/os-headers:  2.6.8.1-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=athlon-tbird -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=athlon-tbird -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms userpriv usersandbox"
GENTOO_MIRRORS="http://gentoo.mirrors.pair.com/ http://gentoo.chem.wisc.edu/gentoo/ http://128.213.5.34/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="x86 3dnow 3dnowext X acpi alsa apm arts avi berkdb bitmap-fonts cdr crypt cups curl dvd dvdr emacs emboss encode esd f77 font-server foomaticdb fortran gdbm gif gmp gphoto2 gpm gtk gtk2 imagemagick imap imlib ipv6 java jpeg junit kde libg++ libwww mad maildir matrox mbox mikmod mime mmx mmxext motif mozilla mp3 mpeg mysql ncurses nls offensive oggvorbis opengl oss pam pdflib perl plotutils png ppds python qt quicktime readline samba scanner sdl slang spell ssl svga tcltk tcpd tetex tiff truetype truetype-fonts type1-fonts unicode usb v4l v4l2 xinerama xml2 xmms xv zlib"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS