Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 56161 - openoffice-1.1.1-r1 fails to emerge w/sandbox violation
Summary: openoffice-1.1.1-r1 fails to emerge w/sandbox violation
Status: RESOLVED DUPLICATE of bug 55497
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Gentoo Office Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-07-05 11:55 UTC by Seth Robertson
Modified: 2005-07-17 13:06 UTC (History)
0 users

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 Seth Robertson 2004-07-05 11:55:56 UTC
After converting to non-hardened gcc, I am able to compile openoffice 66% of the time (well, of the three attempts, only one failed with a segfault somewhere), but it fails to install with a sandbox violation.  Looking at bug http://bugs.gentoo.org/show_bug.cgi?id=55497 we see that his problem was NIS, specifically NIS services.  I am running NIS here, so that is very suggestive, but  folloing his solution of commenting out services from nsswitch.conf did not work.  Looking into /etc/default/nss I see that it appears to be related to netgroups as well, so I tried disabling that as well, to no avail.  This leaves me with passwd, shadow, and group as the remaining nis-ified items in nsswitch.conf.  I may be unable to disable those for long enough to compile openoffice, but I suppose I will try.  In any case, openoffice's unavailability is a major problem.

The end of the emerge:
--------------------------- ACCESS VIOLATION SUMMARY ---------------------------
LOG FILE = "/tmp/sandbox-app-office_-_openoffice-1.1.1-r1-6556.log"

open_wr:   /etc/default/nss
open_wr:   /etc/default/nss
open_wr:   /etc/default/nss
open_wr:   /etc/default/nss
open_wr:   /etc/default/nss
open_wr:   /etc/default/nss
open_wr:   /etc/default/nss
open_wr:   /etc/default/nss
open_wr:   /etc/default/nss
open_wr:   /etc/default/nss
open_wr:   /etc/default/nss
open_wr:   /etc/default/nss
open_wr:   /etc/default/nss
open_wr:   /etc/default/nss
open_wr:   /etc/default/nss
open_wr:   /etc/default/nss
open_wr:   /etc/default/nss
open_wr:   /etc/default/nss
open_wr:   /etc/default/nss
open_wr:   /etc/default/nss
open_wr:   /etc/default/nss
open_wr:   /etc/default/nss
open_wr:   /etc/default/nss
open_wr:   /etc/default/nss
open_wr:   /etc/default/nss
open_wr:   /etc/default/nss
open_wr:   /etc/default/nss
open_wr:   /etc/default/nss
--------------------------------------------------------------------------------

I saw no sign of any hints as to what caused these messages.  These were the only messages without any temporal or other identifying hints.

In case it matters, this is my current nsswtich.conf.  Note that the file /etc/default/nss does not exist.

#passwd:      compat
#shadow:      compat
#group:       compat
passwd:      files nis
shadow:      files nis
group:       files nis

# passwd:    db files nis
# shadow:    db files nis
# group:     db files nis

hosts:       files dns
networks:    files dns

services:    db files #nis
protocols:   db files
rpc:         db files 
ethers:      db files
netmasks:    files
netgroup:    files #nis
bootparams:  files

automount:   files
aliases:     files


Reproducible: Always
Steps to Reproduce:
1.Setup NIS
2.Configure nsswitch.conf
3.emerge openoffice




Portage 2.0.50-r8 (default-x86-2004.0, gcc-3.3.3, glibc-2.3.3.20040420-r0,
2.6.7-gentoo-r7)
=================================================================
System uname: 2.6.7-gentoo-r7 i686 Pentium III (Coppermine)
Gentoo Base System version 1.4.16
Autoconf: sys-devel/autoconf-2.59-r3
Automake: sys-devel/automake-1.8.3
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=pentium3 -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.2/share/config /usr/kde/3/share/config /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=pentium3 -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://mirror.datapipe.net/gentoo
ftp:///ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/
ftp://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ http://gentoo.mirrored.ca/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow X Xaw3d aalib acpi alsa apache2 apm arts audiofile avi berkdb caps
cdr crypt cscope cups curl dga directfb doc emacs encode esd ethereal fdftk flac
foomaticdb gd gdbm gif gmp gnome gphoto2 gpm gtk gtk2 hardened imagemagick imlib
java joystick jpeg kde lcms ldap lesstif libg++ libwww mad mbox mikmod mmx motif
mozilla mpeg mysql ncurses nls nocardbus nocd oggvorbis opengl oss pam pdflib
perl plotutils png postgres ppds prelude python qt quicktime readline samba sdl
slang snmp socks5 speex spell sse ssl svga tcltk tcpd tetex theora tiff truetype
unicode usb videos wmf x86 xinerama xml xml2 xmms xosd xv zlib"
Comment 1 Seth Robertson 2004-07-05 12:00:54 UTC
I take that back--there is a hint as to what generated the sandbox violations.  I just was unable to see it because it didn't use the words I searched for (sandbox, violation) in the 200k+ LINE typescript:

Replacing ${EVAL} with 
Replacing ${FILEFORMATNAME} with OpenOffice.org
Replacing ${FILEFORMATVERSION} with 1.0
Replacing ${LONG_PRODUCTEXTENSION} with 
Replacing ${PRODUCTEXTENSION} with 
Replacing ${PRODUCTNAME} with OpenOffice.org
Replacing ${PRODUCTVERSION} with 1.1.1

time needed: 0:0:56


WARNING! Project(s):
gtk

not found and couldn't be built. Correct build.lsts.


>>> Install openoffice-1.1.1-r1 into /var/tmp/portage/openoffice-1.1.1-r1/image/
 category app-office
 ESC[32;01m*ESC[0m Installing OpenOffice.org into build root...
glibc version: 2.3.3

Initializing installation program...................
ESC[31;01mACCESS DENIEDESC[0m  open_wr:   /etc/default/nss
ESC[31;01mACCESS DENIEDESC[0m  open_wr:   /etc/default/nss
ESC[31;01mACCESS DENIEDESC[0m  open_wr:   /etc/default/nss
ESC[31;01mACCESS DENIEDESC[0m  open_wr:   /etc/default/nss
ESC[31;01mACCESS DENIEDESC[0m  open_wr:   /etc/default/nss
ESC[31;01mACCESS DENIEDESC[0m  open_wr:   /etc/default/nss
ESC[31;01mACCESS DENIEDESC[0m  open_wr:   /etc/default/nss
ESC[31;01mACCESS DENIEDESC[0m  open_wr:   /etc/default/nss
ESC[31;01mACCESS DENIEDESC[0m  open_wr:   /etc/default/nss
ESC[31;01mACCESS DENIEDESC[0m  open_wr:   /etc/default/nss
ESC[31;01mACCESS DENIEDESC[0m  open_wr:   /etc/default/nss
ESC[31;01mACCESS DENIEDESC[0m  open_wr:   /etc/default/nss
ESC[31;01mACCESS DENIEDESC[0m  open_wr:   /etc/default/nss
ESC[31;01mACCESS DENIEDESC[0m  open_wr:   /etc/default/nss
ESC[31;01mACCESS DENIEDESC[0m  open_wr:   /etc/default/nss
ESC[31;01mACCESS DENIEDESC[0m  open_wr:   /etc/default/nss
ESC[31;01mACCESS DENIEDESC[0m  open_wr:   /etc/default/nss
ESC[31;01mACCESS DENIEDESC[0m  open_wr:   /etc/default/nss
ESC[31;01mACCESS DENIEDESC[0m  open_wr:   /etc/default/nss
ESC[31;01mACCESS DENIEDESC[0m  open_wr:   /etc/default/nss
ESC[31;01mACCESS DENIEDESC[0m  open_wr:   /etc/default/nss
ESC[31;01mACCESS DENIEDESC[0m  open_wr:   /etc/default/nss
ESC[31;01mACCESS DENIEDESC[0m  open_wr:   /etc/default/nss
ESC[31;01mACCESS DENIEDESC[0m  open_wr:   /etc/default/nss
ESC[31;01mACCESS DENIEDESC[0m  open_wr:   /etc/default/nss
ESC[31;01mACCESS DENIEDESC[0m  open_wr:   /etc/default/nss
ESC[31;01mACCESS DENIEDESC[0m  open_wr:   /etc/default/nss
ESC[31;01mACCESS DENIEDESC[0m  open_wr:   /etc/default/nss

call procedure: LanguageSelect
make directory: /var/tmp/portage/openoffice-1.1.1-r1/image//opt/OpenOffice.org/.
make directory: /var/tmp/portage/openoffice-1.1.1-r1/image//opt/OpenOffice.org/h
elp
make directory: /var/tmp/portage/openoffice-1.1.1-r1/image//opt/OpenOffice.org/u
ser
make directory: /var/tmp/portage/openoffice-1.1.1-r1/image//opt/OpenOffice.org/s
hare
make directory: /var/tmp/portage/openoffice-1.1.1-r1/image//opt/OpenOffice.org/h
elp/en
make directory: /var/tmp/portage/openoffice-1.1.1-r1/image//opt/OpenOffice.org/p
rogram
make directory: /var/tmp/portage/openoffice-1.1.1-r1/image//opt/OpenOffice.org/s
hare/kde
make directory: /var/tmp/portage/openoffice-1.1.1-r1/image//opt/OpenOffice.org/s
hare/cde
make directory: /var/tmp/portage/openoffice-1.1.1-r1/image//opt/OpenOffice.org/u
ser/temp
make directory: /var/tmp/portage/openoffice-1.1.1-r1/image//opt/OpenOffice.org/s
hare/dtd
make directory: /var/tmp/portage/openoffice-1.1.1-r1/image//opt/OpenOffice.org/u
ser/store
Comment 2 Paul de Vrieze (RETIRED) gentoo-dev 2004-07-06 01:53:47 UTC
Openoffice has no business whatsoever to write there. It seems to be unrelated to openoffice and be a configuration error. It is indeed a duplicate of the bug you mentioned.

*** This bug has been marked as a duplicate of 55497 ***
Comment 3 Matthew Caron 2004-07-06 04:18:04 UTC
FYI - I posted bug 55497 and openoffice 1.1.1-r1 compiled fine for me.

My current (working) nsswitch.conf:

# passwd:      compat
# shadow:      compat
# group:       compat

# passwd:    db files nis
# shadow:    db files nis
# group:     db files nis

passwd:    files nis
shadow:    files nis
group:     files nis

hosts:       files dns
networks:    files dns

services:    db files
# services:    files nis
# services:      files db nis

# protocols:   db files
protocols:   files nis
rpc:         db files
ethers:      db files
netmasks:    files
# netgroup:    files
netgroup:    files nis
bootparams:  files