Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 79561 - openoffice-1.1.4 access violation with FEATURES="userpriv usersandbox"
Summary: openoffice-1.1.4 access violation with FEATURES="userpriv usersandbox"
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Gentoo Office Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-26 03:57 UTC by David Bergstein
Modified: 2005-10-28 23:29 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Bergstein 2005-01-26 03:57:45 UTC
While emerging openoffice-1.1.4, the following access violation errors occurred:

------------------------------
Making: ../../../unxlngi4.pro/slb/docshell.lib
echo unxlngi4.pro/slo/docshell.o unxlngi4.pro/slo/docshel2.o unxlngi4.pro/slo/docshel3.o unxlngi4.pro/slo/docshel4.o unxlngi4.pro/slo/sdclient.o unxlngi4.pro/slo/grdocsh.o | xargs -n1 > ../../../unxlngi4.pro/slb/docshell.lib
-------------
/var/tmp/portage/openoffice-1.1.4/work/sd/source/ui/func
tcsh: No such file or directory
tcsh: Trying to start from "/var/tmp/portage/homedir"
ACCESS DENIED  open_wr:   /var/unxlngi4.pro/misc/s_fuzoom.dpcc
ACCESS DENIED  creat64:   /var/unxlngi4.pro/misc/s_fuzoom.dpcc
../../../unxlngi4.pro/misc/s_fuzoom.dpcc: Permission denied.
dmake:  Error code 1, while making '../../../unxlngi4.pro/misc/s_fuzoom.dpcc'
ACCESS DENIED  unlink:    /unxlngi4.pro/misc/s_fuzoom.dpcc
---* TG_SLO.MK *---

ERROR: Error 65280 occurred while making /var/tmp/portage/openoffice-1.1.4/work/sd/source/ui/func

!!! ERROR: app-office/openoffice-1.1.4 failed.
!!! Function src_compile, Line 414, Exitcode 1
!!! Build failed!
!!! If you need support, post the topmost build error, NOT this status message.

--------------------------- ACCESS VIOLATION SUMMARY ---------------------------
LOG FILE = "/tmp/sandbox-app-office_-_openoffice-1.1.4-19858.log"

open_wr:   /var/unxlngi4.pro/misc/s_fuzoom.dpcc
creat64:   /var/unxlngi4.pro/misc/s_fuzoom.dpcc
unlink:    /unxlngi4.pro/misc/s_fuzoom.dpcc
--------------------------------------------------------------------------------

Reproducible: Didn't try
Steps to Reproduce:
1. emerge openoffice
2. wait several hours as ebuild merges
3. merge fails

Actual Results:  
access violation occurs 

Expected Results:  
openoffice should have merged successfully  

In case it is any help here is the output of emerge --info on my system: 
 
Portage 2.0.51-r15 (default-linux/x86/2004.3, gcc-3.3.5, 
glibc-2.3.4.20040808-r1, 2.6.10-gentoo-r6 i686) 
================================================================= 
System uname: 2.6.10-gentoo-r6 i686 AMD Athlon(tm) XP 2100+ 
Gentoo Base System version 1.4.16 
Python:              dev-lang/python-2.2.3-r5,dev-lang/python-2.3.4 [2.3.4 
(#1,Jan  6 2005, 10:16:07)] 
distcc 2.16 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled] 
ccache version 2.3 [enabled] 
dev-lang/python:     2.2.3-r5, 2.3.4 
sys-devel/autoconf:  2.59-r6, 2.13 
sys-devel/automake:  1.8.5-r2, 1.5, 1.4_p6, 1.6.3, 1.7.9, 1.9.4 
sys-devel/binutils:  2.15.92.0.2-r1 
sys-devel/libtool:   1.5.10-r3 
virtual/os-headers:  2.6.8.1-r2 
ACCEPT_KEYWORDS="x86" 
AUTOCLEAN="yes" 
CFLAGS="-march=athlon-xp -O2 -pipe" 
CHOST="i686-pc-linux-gnu" 
CONFIG_PROTECT="/etc /usr/kde/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="-march=athlon-xp -O2 -pipe" 
DISTDIR="/usr/portage/distfiles" 
FEATURES="autoaddcvs autoconfig ccache distcc distlocks fixpackages sandbox 
sfperms userpriv usersandbox" 
GENTOO_MIRRORS="ftp://ftp.ucsb.edu/pub/mirrors/linux/gentoo/ 
ftp://gentoo.chem.wisc.edu/gentoo/ http://cudlug.cudenver.edu/gentoo/ 
ftp://cudlug.cudenver.edu/pu b/mirrors/distributions/gentoo/ 
ftp://gentoo.mirrors.pair.com/" 
MAKEOPTS="-j8" 
PKGDIR="/usr/portage/packages" 
PORTAGE_TMPDIR="/var/tmp" 
PORTDIR="/usr/portage" 
PORTDIR_OVERLAY="/usr/local/portage" 
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage" 
USE="x86 X Xaw3d aalib alsa apm arts avi berkdb bitmap-fonts bonobo cdr crypt 
cscope cups dvb dvd dvdr dvdread encode esd f77 fam flac font-server foomaticdb 
fortran gdbm gif gnome gphoto2 gpm gstreamer gtk gtk2 guile imagemagick imlib 
ipv6 jack java jpeg kde ldap libg++ libwww mad mikmod motif mozilla mpeg 
ncurses nls nptl oggvorbis opengl oss pam pdflib perl png python qt quicktime 
readline scanner sdl slang speex spell ssl svga tcltk tcpd tetex tiff truetype 
truetype-fonts type1-fonts usb v4l v4l2 xml xml2 xmms xv zlib" 
Unset:  ASFLAGS, CBUILD, CTARGET, LDFLAGS
Comment 1 Andreas Proschofsky (RETIRED) gentoo-dev 2005-01-26 04:01:01 UTC
Are you sure that you had enough diskspace when trying to emerge? (~4 GB)
Comment 2 David Bergstein 2005-01-26 05:25:34 UTC
Yes, I have plenty of room on my system, so diskspace should not have been an issue.  Here is some output from df (the portage temp dir is in the standard location, under /var/tmp/portage):

df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/hdg1             981M  328M  653M  34% /
/dev/hdg3             981M   36M  946M   4% /tmp
/dev/hdg5             9.6G  3.2G  6.5G  33% /var
/dev/hdg6              20G  8.2G   11G  43% /usr
/dev/hdg7             155G  6.8G  149G   5% /home
none                  506M     0  506M   0% /dev/shm
Comment 3 Andreas Proschofsky (RETIRED) gentoo-dev 2005-01-28 04:16:34 UTC
Could you try again with userpriv and usersandbox removed from your FEATURES?
Comment 4 David Bergstein 2005-01-28 04:43:08 UTC
No problem, I'll re-run the emerge with userpriv and usersandbox removed from FEATURES this morning and get back to you with the results.
Comment 5 David Bergstein 2005-01-28 13:34:30 UTC
OK, it appears that the package emerged fine with userpriv and usersandbox turned off during the build process.

Is there some way we can ensure the openoffice ebuild respects the sandbox so the compilation can be done under the non-privileged portage user or is this issue totally due to the way the application is installed from the openoffice makefiles?
Comment 6 Andreas Proschofsky (RETIRED) gentoo-dev 2005-01-31 01:51:18 UTC
This seems to be a bug with tcsh, it tries to get into a directory which is not there and falls back somewhere totally else, which results in the relative paths being bogus. Still it's not clear why the dir isn't there, it should. 
Comment 7 Andreas Vinsander 2005-04-25 00:08:43 UTC
I have a similar matter with OOo-1.1.4-r1.
Also running with FEATURES="userpriv usersandbox" here.
I would have expected it to fail at the same place as the OP's emerge. But maybe there are enough changes between 1.1.4 and 1.1.4-r1 to make the violation happen here instead. Hope me posting here will help find a solution...

Compile log:

if ( -e ../../../unxlngi4.pro/slo/crstrvl1.o) touch ../../../unxlngi4.pro/slo/crstrvl1.obj
------------------------------
Making: ../../../unxlngi4.pro/slo/findattr.obj
g++ -fmessage-length=0 -c -I.  -I. -I../inc -I../../../inc -I../../../unx/inc -I../../../unxlngi4.pro/inc -I. -I/var/tmp/portage/openoffice-1.1.4-r1/work/solver/645/unxlngi4.pro/inc/stl -I/var/tmp/portage/openoffice-1.1.4-r1/work/solver/645/unxlngi4.pro/inc/external -I/var/tmp/portage/openoffice-1.1.4-r1/work/solver/645/unxlngi4.pro/inc -I/var/tmp/portage/openoffice-1.1.4-r1/work/solenv/unxlngi4/inc -I/var/tmp/portage/openoffice-1.1.4-r1/work/solenv/inc -I/var/tmp/portage/openoffice-1.1.4-r1/work/res -I/var/tmp/portage/openoffice-1.1.4-r1/work/solver/645/unxlngi4.pro/inc/stl -I/var/tmp/portage/openoffice-1.1.4-r1/work/solenv/inc/Xp31 -I/opt/blackdown-jdk-1.4.2.01/include -I/opt/blackdown-jdk-1.4.2.01/include/linux -I/opt/blackdown-jdk-1.4.2.01/include/native_threads/include -I/usr/include     -I. -I../../../res -I. -march=pentium4 -O2 -pipe -fno-strict-aliasing   -march=pentium4 -O2 -pipe -fno-strict-aliasing -fno-for-scope -fpermissive -fno-rtti -include preinclude.h -fno-exceptions   -fpic -DLINUX -DUNX -DVCL -DGCC -DC300 -DINTEL -DGXX_INCLUDE_PATH=/usr/lib/gcc/i686-pc-linux-gnu/3.4.3-20050110/include/g++-v3 -DCVER=C300 -D_USE_NAMESPACE -DGLIBC=2 -DX86 -D_PTHREADS -D_REENTRANT -DNEW_SOLAR -D_USE_NAMESPACE=1 -DSTLPORT_VERSION=400 -D__DMAKE -DUNIX -DCPPU_ENV=gcc3 -DSUPD=645 -DPRODUCT -DNDEBUG -DPRODUCT_FULL -DOSL_DEBUG_LEVEL=0 -DOPTIMIZE -DEXCEPTIONS_OFF -DCUI -DSOLAR_JAVA -DSRX645  -DNUM_RELSPACE -DVERTICAL_LAYOUT -DACCESSIBLE_LAYOUT -DBIDI -DSHAREDLIB -D_DLL_  -DMULTITHREAD   -o ../../../unxlngi4.pro/slo/findattr.o /var/tmp/portage/openoffice-1.1.4-r1/work/sw/source/core/crsr/findattr.cxx
ACCESS DENIED  unlink:    /unxlngi4.pro/slo/findattr.o
ACCESS DENIED  unlink:    /unxlngi4.pro/slo/findattr.o
ACCESS DENIED  rename:    /unxlngi4.pro/slo/findattr.o.WvUfQl
ACCESS DENIED  unlink:    /unxlngi4.pro/slo/findattr.o.WvUfQl
ACCESS DENIED  unlink:    /unxlngi4.pro/slo/findattr.o
ACCESS DENIED  rename:    /unxlngi4.pro/slo/findattr.o.efUubF
ACCESS DENIED  unlink:    /unxlngi4.pro/slo/findattr.o.efUubF
g++: /var/tmp/portage/openoffice-1.1.4-r1/work/sw/source/core/crsr/findattr.cxx: No such file or directory
g++: no input files
distcc[5052] ERROR: compile /var/tmp/portage/openoffice-1.1.4-r1/work/sw/source/core/crsr/findattr.cxx on localhost failed
dmake:  Error code 1, while making '../../../unxlngi4.pro/slo/findattr.obj'
---* TG_SLO.MK *---

ERROR: Error 65280 occurred while making /var/tmp/portage/openoffice-1.1.4-r1/work/sw/source/core/crsr

emerge info:
Portage 2.0.51.19 (default-linux/x86/2005.0, gcc-3.4.3-20050110, glibc-2.3.5-r0, 2.6.11-gentoo-r6 i686)
=================================================================
System uname: 2.6.11-gentoo-r6 i686 Mobile Intel(R) Pentium(R) 4 - M CPU 1.90GHz
Gentoo Base System version 1.6.11
Python:              dev-lang/python-2.3.5 [2.3.5 (#1, Feb 18 2005, 09:30:56)]
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
ccache version 2.4 [enabled]
dev-lang/python:     2.3.5
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.5
sys-devel/binutils:  2.15.92.0.2-r8
sys-devel/libtool:   1.5.14
virtual/os-headers:  2.6.11
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium4 -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-march=pentium4 -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distcc distlocks sandbox sfperms strict userpriv usersandbox"
GENTOO_MIRRORS="ftp://mirror.pudas.net/gentoo http://ds.thn.htu.se/linux/gentoo ftp://trumpetti.atm.tut.fi/gentoo http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2 -s"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="x86 X aalib acpi alsa audiofile avi berkdb bitmap-fonts cdparanoia cdr crypt cscope cups curl dvd emacs emboss encode fam flac foomaticdb fortran gd gdbm gif gimpprint gphoto2 gpm gstreamer imagemagick imlib java joystick jpeg kde kdeenablefinal ldap libg++ libwww mad maildir mailwrapper mikmod mmx motif mozilla mp3 mpeg nas ncurses network nls nptl ogg oggvorbis opengl oss pam pcmcia pda pdflib perl png pnp python qt quicktime readline real samba scanner sdl slang snmp speex spell sse sse2 ssl svg svga tcltk tcpd tetex theora tiff truetype truetype-fonts type1-fonts usb vorbis wifi win32codecs wmf xine xinerama xml2 xmms xv xvid zlib video_cards_radeon"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS

Comment 8 Paul de Vrieze (RETIRED) gentoo-dev 2005-04-25 05:20:01 UTC
Andreas, your bug is different. It seems as though either paths are broken in someway (you don't use a path with a space character in it do you?) or that your openoffice tree does not have the correct owner. Try to go to /var/tmp/portage/openoffice-1.1.4-r1 and run "chown -R portage:portage ."
Comment 9 Andreas Vinsander 2005-04-25 06:15:16 UTC
No spaces in PATH variable here.
Also only thing not own by portage:portage is /var/tmp/portage/openoffice-1.1.4-r1/temp/eclass-debug.log

I will keep my build tree as is if you want me to verify other things as well.
Comment 10 Andreas Proschofsky (RETIRED) gentoo-dev 2005-10-27 11:40:54 UTC
Could you please try out with OOo 2.0 and see if this is still an issue (it
shouldn't)
Comment 11 David Bergstein 2005-10-28 15:48:14 UTC
This morning I added the following to /etc/portage/package.keywords 
 
=app-office/openoffice-2.0.0 ~x86 
=dev-java/java-config-1.2.11-r1 ~x86 
 
I then ran the emerge for openoffice, and upon my return from work, the package 
successfully completed the build; openoffice-2.0.0 installed correctly without 
sandbox errors and without any special parameters other than the package 
keywords above, due to its release status as of this morning. 
Comment 12 Andreas Proschofsky (RETIRED) gentoo-dev 2005-10-28 23:29:11 UTC
Great! Thanks for your feedback, closing this