Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 650522 - dev-java/oracle-jdk-bin-1.8.0.162 sandbox access violation at /tmp/hsperfdata_portage
Summary: dev-java/oracle-jdk-bin-1.8.0.162 sandbox access violation at /tmp/hsperfdata...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-03-14 21:12 UTC by Ulenrich
Modified: 2018-03-20 11:50 UTC (History)
0 users

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


Attachments
emerge--info--dev-java/oracle-jdk-bin-1.8.0.162-r1 (oracle-jdk-bin-info.log,19.62 KB, text/plain)
2018-03-14 21:12 UTC, Ulenrich
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ulenrich 2018-03-14 21:12:01 UTC
Created attachment 523962 [details]
emerge--info--dev-java/oracle-jdk-bin-1.8.0.162-r1

While emerging 
dev-java/oracle-jdk-bin-1.8.0.162
and the verion befor (161)
it break a access violation, like:
---
 * --------------------------- ACCESS VIOLATION SUMMARY ---------------------------
 * LOG FILE: "/var/log/sandbox/sandbox-16284.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: mkdir
S: deny
P: /tmp/hsperfdata_portage
A: /tmp/hsperfdata_portage
R: /tmp/hsperfdata_portage
C: /opt/oracle-jdk-bin-1.8.0.162/bin/java -version 
 * ------------------------------------------------------------------------
!!! 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.162"
JAVACFLAGS="-source 1.6 -target 1.6" COMPILER=""
and of course, the output of emerge --info =mariadb-10.1.31
---

I could fully emerge the jdk by doing a simple
# mkdir -p /tmp/hsperfdata_portage && chmod 777 /tmp/hsperfdata_portage
which was fine, but I have a tmpfs /temp and now, emerging mariadb with USE jdbc,
I get hit with the same.

? Do you want me to also attach: emerge --info =mariadb-10.1.31
Though I guess it is a pure oracacle-jdk-bin issue
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2018-03-20 04:57:31 UTC
Please attach the entire build log to this bug report.
Comment 2 James Le Cuirot gentoo-dev 2018-03-20 10:18:13 UTC
Have you modified /etc/sandbox.conf? It normally includes this:

# Tempory storage
SANDBOX_WRITE="/tmp/:/var/tmp/"
Comment 3 Ulenrich 2018-03-20 11:32:37 UTC
@James, very thanks! My /etc/sandbox.conf shows: 
SANDBOX_WRITE="/tmp/portage/:/var/tmp/"

Feel free to close this bug! My fault: Because I do the emerge in "/tmp/portage", I "short circuited" and changed /tmp to the directory I do emerge :(

By the way, what this is showing: 
- most of portage ebuilds do not use "/tmp" 
- dev-java/oracle-jdk-bin directory "/tmp/hsperfdata_portage"
remembers me of ancient times with another operating system ("hsperfdata")
Comment 4 James Le Cuirot gentoo-dev 2018-03-20 11:50:03 UTC
(In reply to Ulenrich from comment #3)
> Feel free to close this bug! My fault: Because I do the emerge in
> "/tmp/portage", I "short circuited" and changed /tmp to the directory I do
> emerge :(

No problem.

> By the way, what this is showing: 
> - most of portage ebuilds do not use "/tmp" 
> - dev-java/oracle-jdk-bin directory "/tmp/hsperfdata_portage"
> remembers me of ancient times with another operating system ("hsperfdata")

I don't know why it picks this path but there's not much we can do about it.