Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 559478 - dev-java/commons-logging-1.2 "ACCESS DENIED" with oracle-jdk-bin-1.8
Summary: dev-java/commons-logging-1.2 "ACCESS DENIED" with oracle-jdk-bin-1.8
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Java (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
: 559470 559482 (view as bug list)
Depends on:
Blocks:
 
Reported: 2015-09-03 08:13 UTC by Charlie Gehlin
Modified: 2015-09-06 21:06 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 Charlie Gehlin 2015-09-03 08:13:15 UTC
Sandbox violations when using oracle-jdk-bin-1.8, installs fine with oracle-jdk-bin-1.7:

BUILD SUCCESSFUL
Total time: 1 second
>>> Source compiled.
 * Skipping make test/check due to ebuild restriction.
>>> Test phase [disabled because of RESTRICT=test]: dev-java/commons-logging-1.2

>>> Install commons-logging-1.2 into /var/tmp/portage/dev-java/commons-logging-1.2/image/ category dev-java
 * ACCESS DENIED:  open_wr:      /root/.oracle_jre_usage/2cbb84e088cf0dff.timestamp
 * ACCESS DENIED:  open_wr:      /root/.oracle_jre_usage/2cbb84e088cf0dff.timestamp
>>> Completed installing commons-logging-1.2 into /var/tmp/portage/dev-java/commons-logging-1.2/image/

 * --------------------------- ACCESS VIOLATION SUMMARY ---------------------------
 * LOG FILE: "/var/log/sandbox/sandbox-10322.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: open_wr
S: deny
P: /root/.oracle_jre_usage/2cbb84e088cf0dff.timestamp
A: /root/.oracle_jre_usage/2cbb84e088cf0dff.timestamp
R: /root/.oracle_jre_usage/2cbb84e088cf0dff.timestamp
C: jar xf /var/tmp/portage/dev-java/commons-logging-1.2/work/commons-logging-1.2-src/target/commons-logging-1.2.jar 

F: open_wr
S: deny
P: /root/.oracle_jre_usage/2cbb84e088cf0dff.timestamp
A: /root/.oracle_jre_usage/2cbb84e088cf0dff.timestamp
R: /root/.oracle_jre_usage/2cbb84e088cf0dff.timestamp
C: jar cfm /var/tmp/portage/dev-java/commons-logging-1.2/temp/osgi/commons-logging-1.2.jar /var/tmp/portage/dev-java/commons-logging-1.2/temp/tmp_jar/META-INF/MANIFEST.MF -C /var/tmp/portage/dev-java/commons-logging-1.2/temp/tmp_jar/ . 
 * --------------------------------------------------------------------------------
!!! When you file a bug report, please include the following information:
GENTOO_VM=oracle-jdk-bin-1.8  CLASSPATH="" JAVA_HOME="/opt/oracle-jdk-bin-1.8.0.60"
JAVACFLAGS="-source 1.6 -target 1.6" COMPILER="javac"
and of course, the output of emerge --info =commons-logging-1.2

>>> Failed to emerge dev-java/commons-logging-1.2, Log file:
Comment 1 Charlie Gehlin 2015-09-03 08:14:12 UTC
# emerge --info
Portage 2.2.20.1 (python 3.4.3-final-0, default/linux/amd64/13.0, gcc-4.9.3, glibc-2.21-r1, 4.1.5-aufs x86_64)
=================================================================
System uname: Linux-4.1.5-aufs-x86_64-Intel-R-_Xeon-R-_CPU_X5470_@_3.33GHz-with-gentoo-2.2
KiB Mem:    64944036 total,   1477672 free
KiB Swap:   60167676 total,  60162124 free
Timestamp of repository gentoo: Wed, 02 Sep 2015 08:00:01 +0000
sh bash 4.3_p42
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
app-shells/bash:          4.3_p42::gentoo
dev-java/java-config:     2.2.0::gentoo
dev-lang/perl:            5.22.0::gentoo
dev-lang/python:          2.7.10::gentoo, 3.3.5-r1::gentoo, 3.4.3::gentoo
dev-util/cmake:           3.3.1-r1::gentoo
dev-util/pkgconfig:       0.28-r3::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.17::gentoo
sys-apps/sandbox:         2.6-r1::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r1::gentoo
sys-devel/automake:       1.10.3-r1::gentoo, 1.11.6-r1::gentoo, 1.12.6::gentoo, 1.13.4::gentoo, 1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo
sys-devel/gcc:            4.4.7::gentoo, 4.7.4::gentoo, 4.8.4::gentoo, 4.9.3::gentoo
sys-devel/gcc-config:     1.8::gentoo
sys-devel/libtool:        2.4.6-r1::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 4.2::gentoo (virtual/os-headers)
sys-libs/glibc:           2.21-r1::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000

Gehlinux-Overlay
    location: /usr/local/portage
    masters: gentoo
    priority: 0

grub2-themes
    location: /var/lib/layman/grub2-themes
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=core2 -msse4.1"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /var/bind /var/lib/hsqldb /var/spool/munin-async/.ssh"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.4/ext-active/ /etc/php/apache2-php5.5/ext-active/ /etc/php/apache2-php5.6/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cgi-php5.6/ext-active/ /etc/php/cli-php5.4/ext-active/ /etc/php/cli-php5.5/ext-active/ /etc/php/cli-php5.6/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -pipe -march=core2 -msse4.1"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs buildpkg config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
USE="3ds R X Xaw3d a52 aac aacplus aacs aalib acl acoustid acpi ada adns adplug ads afs aio akonadi alaw allegro alsa amd64 amr anthy ao apache2 apcupsd archive armadillo asm aspell asterisk asyncns athena atm audacious audioscrobbler avahi awt ayatana bash-completion bazaar beautifulsoup3 berkdb bidi blas bluetooth bluray bmp bookmarks boost botan bs2b btrfs bullet bzip2 cacert cairo calendar canna capi caps ccache cdb cdda cddb cdio cdparanoia celt cg chappa cilk cjk clang cli client-libs clipboard clisp collada colord colorio common-lisp connman conntrack corefonts coverage cracklib crypt cryptopp cryptsetup cscope css cuda cue cups curl curlwrappers cvs cxx daap dane dbi dbus declarative derby designer device-mapper devil dga dhcp diff directfb djvu dmi dmraid dmx dns dnssec dnstap dovecot-sasl dri dso dssi dts dv dvb dvd dvdr dvi dvr dxr3 ecdsa eclipse eds egl emacs emf enchant encode espeak exif expat faac faad fam fat fax fbcon fdk ffmpeg fftw filecaps fits flac flash flickr flite fltk fluidsynth fontconfig fontforge fortran fping fpx freetds freewnn frei0r fribidi ftp fuse g722 g729 gadu gallium game gbm gcj gconf gcov gcrypt gd gdal gdbm gdm geoip geos gfile ggi gif gimp git gl glade glamor gles gles1 gles2 gles3 glew glib glusterfs glut gme gmp gnome gnome-keyring gnome-online-accounts gnutls gost gpg gphoto2 gpl gpm gps gpu graph graphite graphviz groupwise gsettings gsf gsm gssapi gstreamer gtk gtk3 gtkstyle gts gudev guile gzip gzip-el harfbuzz hddtemp hdf hdf5 heartbeat hesiod hfs hid highlight hscolour hunspell ibus iconv icq icu id3tag idn ieee1394 ilbc imagemagick imaging imap imlib infinality infiniband inotify interlaced introspection iodbc ios ipc ipmi ipod ipv6 irc iscsi iso jack jadetex java javascript jbig jce jemalloc jit joystick jpeg jpeg2k json kate kdbus kde kerberos keybinder kmod kms ladspa lame lapack lash lastfm latex lcms ldap ldns libass libatomic libcaca libcanberra libedit libev libevent libffi libkms libmpeg2 libnotify libproxy libsamplerate libsecret libsoxr libusb libvisual libxml2 lighttpd lirc live llvm lm_sensors lmdb log4j logger logrotate lua luajit lxc lz4 lzma lzo m17n-lib mad magic map math matroska mbox md5sum mdadm mdb meanwhile mediawiki memcache memcached mercurial metalink midi mikmod mime mjpeg mmap mms mmx mmxext mng mod modemmanager modplug modules mongodb mono motif mp3 mp4 mpd mpeg mpeg2 mpi mplayer mpris mssql mtp mule multilib multimedia multislot multitarget musepack musicbrainz mysql mysqli nas nat natspec nautilus ncurses neXt net netapi netboot netcdf netlink nettle network-uri networkmanager nfs nfsv4 nis nls nptl nsplugin nss ntfs ntlm ntp numa nvidia obex objc objc++ ocaml ocamlopt oci8 oci8-instant-client odbc offscreen ofono ogg openal opencl openconnect openexr opengl openipmi openldap openmp openssl optimize opus oracle osmesa oss pam pango pcap pci pcre pcsc-lite pdf perl pgo phonon php physfs pie pkcs11 pkinit player playlist playtools plotutils plymouth png pnm policykit pop portaudio postgres postproc postscript ppp printsupport prison projectm proxy pulseaudio pvr pygments qemu qml qos qrcode qt3support qt4 qt5 quicktime quota quvi radio radius rados ramfs rar raw rbd rdp readline realtime redis regex reiserfs rle romio rpc rpm rrdtool rss rtc rtmp ruby samba sasl sbc scanner schroedinger screen scripttools scrobbler sctp sdl seccomp sendto sensors serial session sftp shout sid sieve sip siren14 siren7 skey slang sln16 slp smartcard smi smime smp smpeg smtp snappy sndfile snmp soap sockets socks socks5 sound soundtouch sourceview sox spamassassin speex spell sphinx spice spidermonkey sql sqlite sqlite3 srp sse sse2 sse3 sse4_1 ssh ssl ssse3 startup-notification static-analyzer stemmer subtitles subversion svg syslog systemd systemtap sysvipc szip t1lib taglib tbb tcl tcmalloc tcpd teamd telepathy terminfo tga theora threads thunderbird tiff timidity tinfo tk tls tokyocabinet tracker trashquota tremor truetype tslib twolame udev udisks ulaw unicode unwind upnp upnp-av upower urandom usb usbredir utempter uuid v4l vaapi vala valgrind vamp vcd vde vdpau vdr vhosts vim vim-syntax vlc vnc vorbis vpx vte vtk wav wavpack wayland weather webdav webkit webp wifi wiimote winbind wmf wps wxwidgets x264 x265 xattr xcb xcomposite xemacs xen xetex xface xfs xft xgetdefault xim xine xinerama xkb xls xml xmlpatterns xmp xmpp xpm xps xrandr xscreensaver xv xvid xvmc yahoo zeitgeist zeroconf zeromq zfs zip zlib zmq zvbi" ABI_X86="64 32" ALSA_CARDS="*" APACHE2_MODULES="*" APACHE2_MPMS="worker" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="*" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2 sse3 sse4_1 ssse3" CURL_SSL="nss" ELIBC="glibc" GPSD_PROTOCOLS="*" GRUB_PLATFORMS="efi-32 efi-64 emu multiboot pc qemu xen" INPUT_DEVICES="evdev joystick keyboard lirc mouse synaptics tslib vmmouse void wacom" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="*" LINGUAS="*" LIRC_DEVICES="all" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-4 php5-5 php5-6" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" QEMU_SOFTMMU_TARGETS="alpha arm i386 m68k ppc ppc64 sparc sparc64 x86_64" QEMU_USER_TARGETS="alpha arm armeb i386 m68k ppc ppc64 ppc64abi32 sparc sparc32plus sparc64 x86_64" RUBY_TARGETS="ruby19 ruby20" SANE_BACKENDS="*" USERLAND="GNU" VIDEO_CARDS="amdgpu cirrus dummy fbdev fglrx i128 i915 i965 ilo intel mach64 mga nouveau nv nvidia r100 r128 r200 r300 r600 radeon radeonsi s3 sis sisusb tdfx tga trident tseng vesa via virtualbox vmware" VOICEMAIL_STORAGE="file" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, MAKEOPTS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 2 James Le Cuirot gentoo-dev 2015-09-03 08:39:46 UTC
I've reproduced this. Strange that it hasn't come up before. Java doesn't respect the HOME environment variable when setting the user.home property. I thought we were explicitly setting user.home in the eclasses but apparently not. Perhaps we should. There are a handful of ebuilds that set it though and we should check for any impact on them. monsieurp? :)
Comment 3 Charlie Gehlin 2015-09-03 08:43:29 UTC
(In reply to James Le Cuirot from comment #2)
> I've reproduced this. Strange that it hasn't come up before. Java doesn't
> respect the HOME environment variable when setting the user.home property. I
> thought we were explicitly setting user.home in the eclasses but apparently
> not. Perhaps we should. There are a handful of ebuilds that set it though
> and we should check for any impact on them. monsieurp? :)

Might just also be related? https://bugs.gentoo.org/show_bug.cgi?id=559482
Comment 4 James Le Cuirot gentoo-dev 2015-09-03 08:53:32 UTC
(In reply to Charlie Gehlin from comment #3)
> Might just also be related? https://bugs.gentoo.org/show_bug.cgi?id=559482

Hmmm yep. All the more reason to set it in the eclass then.
Comment 5 James Le Cuirot gentoo-dev 2015-09-03 08:54:37 UTC
Wait, are you using the brand the 1.8.0.60? Maybe it's new in that version. :|
Comment 6 Charlie Gehlin 2015-09-03 09:17:14 UTC
(In reply to James Le Cuirot from comment #5)
> Wait, are you using the brand the 1.8.0.60? Maybe it's new in that version.
> :|

Yes and no :) My current jdk is actually dev-java/oracle-jdk-bin-1.8.0.60...
BUT I've had this problem for a long time and not reported it until just now.
If you REALLY need it tested against oracle-jdk-bin-1.8.0.51, I could probably manage that.
Comment 7 James Le Cuirot gentoo-dev 2015-09-06 21:05:11 UTC
This should be fixed in 1.8.0.60-r1. The only good way I could deal with it that didn't have some nasty side effect was to actually delete the usage tracker classes from the installation. I'm sure many users will be thankful for that! Their site says the tracker is disabled by default but I was able to reproduce the problem and at least two other users reported it too so that doesn't appear to be the case any more. I'd be very surprised if it affected 1.8.0.51 though as no one had reported it before the bump. Oracle have locked my account for some reason so I can't download the older version any more. I'd be grateful if you could test that version as well as this fix.
Comment 8 James Le Cuirot gentoo-dev 2015-09-06 21:05:31 UTC
*** Bug 559482 has been marked as a duplicate of this bug. ***
Comment 9 James Le Cuirot gentoo-dev 2015-09-06 21:06:30 UTC
*** Bug 559470 has been marked as a duplicate of this bug. ***