Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 66841 - Possible sandbox violation in /dev/random while building gettext with sun-jdk-1.5.0
Summary: Possible sandbox violation in /dev/random while building gettext with sun-jdk...
Status: RESOLVED DUPLICATE of bug 52248
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Gentoo's Team for Core System packages
URL: http://www.cabnetworks.net/~cab/gette...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-10-08 21:26 UTC by Chris Baumbauer
Modified: 2005-07-17 13:06 UTC (History)
1 user (show)

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


Attachments
Patch to check for sun-jdk-1.5.0 and then addpredict /dev/random if it exists. (gettext-0.12.1-r2.ebuild.patch,409 bytes, patch)
2004-10-10 13:44 UTC, Chris Baumbauer
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Baumbauer 2004-10-08 21:26:11 UTC
While performing an emerge world, the build for gettext-0.12.1-r2 failed with an ACCESS_DENIED open_wr message.  After some investigation, I noticed that gettext will use Java if it is avaliable, and it turns out that there was a previous bug on this particular issue with the sun-jdk ebuild, but was marked fixed (bug #53790).  So when gettexted used this version of the compiler, it dies due to the same ACCESS_DENIED message.  So far, I can work around the problem by switching to an older version of the java compiler (sun-jdk-1.4.2.03) and gettext will build fine.  I haven't had a chance to try it with the latest version of Portage (2.0.51-rc7).

Reproducible: Always
Steps to Reproduce:
1. emerge sun-jdk-1.5.0
2. emerge gettext
3. rinse, lather, repeat
Actual Results:  
The installation of sun-jdk-1.5.0 goes off without a hitch, but the emerge gettext results in the error 
(attached at the given website).

Expected Results:  
emerge gettext should have been built and installed without a problem

Gentoo Base System version 1.4.16
Portage 2.0.50-r11 (default-x86-1.4, gcc-3.3.4, glibc-2.3.3.20040420-r2, 2.4.26-gent
oo-r6)
===============================================================
==
System uname: 2.4.26-gentoo-r6 i686 AMD Athlon(tm) XP 2500+
distcc 2.16 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon-xp -O3 -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/sha
re/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /
usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /var/qmail/c
ontrol"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon-xp -O3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs buildpkg ccache sandbox"
GENTOO_MIRRORS="http://csociety-ftp.ecn.purdue.edu/pub/gentoo/ ftp://csociety-ftp.ec
n.purdue.edu/pub/gentoo/ rsync://csociety-ftp.ecn.purdue.edu/pub/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X apm arts avi berkdb bitmap-fonts cdr crypt cups encode esd foomaticdb gdbm gi
f gnome gpm gtk gtk2 imlib java jpeg kde libg++ libwww mad mikmod motif mozilla mpeg
 ncurses nls oggvorbis opengl oss pam pdflib perl png python qt quicktime readline r
uby sdl slang spell ssl svga tcltk tcpd tetex truetype x86 xml2 xmms xprint xv zlib"
Comment 1 Thomas Matthijs (RETIRED) gentoo-dev 2004-10-10 13:11:22 UTC

*** This bug has been marked as a duplicate of 52248 ***
Comment 2 Thomas Matthijs (RETIRED) gentoo-dev 2004-10-10 13:11:47 UTC
read the package.mask
Comment 3 Chris Baumbauer 2004-10-10 13:44:37 UTC
Created attachment 41484 [details, diff]
Patch to check for sun-jdk-1.5.0 and then addpredict /dev/random if it exists.

Temporary measure until the root cause of writing to /dev/random can be
explored further.
Comment 4 Chris Baumbauer 2004-10-10 13:52:43 UTC
Comment on attachment 41484 [details, diff]
Patch to check for sun-jdk-1.5.0 and then addpredict /dev/random if it exists.

I was under the impression that this bug was fixed in bug #65937.