Details
-
Bug
-
Resolution: Fixed
-
P4
-
11, 13, 14
-
b26
-
x86
-
os_x
Backports
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8246599 | 13.0.4 | Matthias Baesken | P4 | Resolved | Fixed | b04 |
JDK-8242613 | 11.0.8-oracle | Matthias Baesken | P4 | Resolved | Fixed | b03 |
JDK-8236256 | 11.0.7 | Matthias Baesken | P4 | Resolved | Fixed | b01 |
JDK-8235822 | 11.0.6 | Matthias Baesken | P4 | Resolved | Fixed | b08 |
Description
The test
serviceability/sa/ClhsdbCDSCore.java
fails on macOS 10.15 .
exception :
java.lang.Error: cores is not a directory or does not have write permissions
at ClhsdbCDSCore.main(ClhsdbCDSCore.java:115)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:564)
at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
at java.base/java.lang.Thread.run(Thread.java:833)
Looks like the test checks that directory /cores is writable :
File coresDir = new File("/cores");
if (!coresDir.isDirectory() || !coresDir.canWrite()) { ... // fail
However on macOS 10.15 /cores is not writable any more (at least for most users, including our test user).
So the test fails.
serviceability/sa/ClhsdbCDSCore.java
fails on macOS 10.15 .
exception :
java.lang.Error: cores is not a directory or does not have write permissions
at ClhsdbCDSCore.main(ClhsdbCDSCore.java:115)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:564)
at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
at java.base/java.lang.Thread.run(Thread.java:833)
Looks like the test checks that directory /cores is writable :
File coresDir = new File("/cores");
if (!coresDir.isDirectory() || !coresDir.canWrite()) { ... // fail
However on macOS 10.15 /cores is not writable any more (at least for most users, including our test user).
So the test fails.
Attachments
Issue Links
- backported by
-
JDK-8235822 hs test serviceability/sa/ClhsdbCDSCore.java fails on macOS 10.15
- Resolved
-
JDK-8236256 hs test serviceability/sa/ClhsdbCDSCore.java fails on macOS 10.15
- Resolved
-
JDK-8242613 hs test serviceability/sa/ClhsdbCDSCore.java fails on macOS 10.15
- Resolved
-
JDK-8246599 hs test serviceability/sa/ClhsdbCDSCore.java fails on macOS 10.15
- Resolved
- relates to
-
JDK-8241951 SA core file tests failed to find core file for signed binaries on OSX 10.15
- Resolved
-
JDK-8235403 Further cleanup to test serviceability/sa/ClhsdbCDSCore.java
- Resolved
(1 relates to)