-
Bug
-
Resolution: Fixed
-
P3
-
repo-panama
-
generic
-
generic
With panama tip, java/foreign/LongDoubleTest.java fails on Mac OS. The jtreg test log is as follows:
----------System.out:(1271/98923)----------
[TestNG] Running:
java/foreign/LongDoubleTest.java
test LongDoubleTest.testCallback(1.0236283957079007E308): failure
java.lang.IllegalStateException: java.lang.IllegalStateException: java.lang.IllegalStateException: java.security.AccessControlException: Access denied for mode: +READ_WRITE. Allowed: READ
at java.base/jdk.internal.foreign.abi.UniversalUpcallHandler.invoke(UniversalUpcallHandler.java:197)
at java.base/jdk.internal.foreign.abi.UniversalUpcallHandler.invoke(UniversalUpcallHandler.java:81)
at java.base/jdk.internal.foreign.abi.UniversalNativeInvoker.invokeNative(Native Method)
at java.base/jdk.internal.foreign.abi.UniversalNativeInvoker.invoke(UniversalNativeInvoker.java:121)
at LongDoubleTest$longdouble$Impl/0x00000007c0373440.f(Unknown Source)
at LongDoubleTest.testCallback(LongDoubleTest.java:102)
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:567)
at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:85)
at org.testng.internal.Invoker.invokeMethod(Invoker.java:639)
at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:821)
at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1131)
at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:125)
at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:108)
at org.testng.TestRunner.privateRun(TestRunner.java:773)
at org.testng.TestRunner.run(TestRunner.java:623)
at org.testng.SuiteRunner.runTest(SuiteRunner.java:357)
at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:352)
at org.testng.SuiteRunner.privateRun(SuiteRunner.java:310)
at org.testng.SuiteRunner.run(SuiteRunner.java:259)
at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
at org.testng.TestNG.runSuitesSequentially(TestNG.java:1185)
at org.testng.TestNG.runSuitesLocally(TestNG.java:1110)
at org.testng.TestNG.run(TestNG.java:1018)
at com.sun.javatest.regtest.agent.TestNGRunner.main(TestNGRunner.java:94)
at jdk.internal.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:567)
at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:246)
at java.base/java.lang.Thread.run(Thread.java:835)
Caused by: java.lang.IllegalStateException: java.lang.IllegalStateException: java.security.AccessControlException: Access denied for mode: +READ_WRITE. Allowed: READ
at java.base/java.foreign.memory.Pointer.get(Pointer.java:166)
at java.base/jdk.internal.foreign.abi.x64.sysv.SysVx64ABI$1.boxValue(SysVx64ABI.java:181)
at java.base/jdk.internal.foreign.abi.UniversalUpcallHandler.invoke(UniversalUpcallHandler.java:166)
... 32 more
ign.abi.UniversalUpcallHandler.invoke(UniversalUpcallHandler.java:166)
... 32 more
Caused by: java.lang.IllegalStateException: java.security.AccessControlException: Access denied for mode: +READ_WRITE. Allowed: READ
at java.base/jdk.internal.foreign.Util.withOffHeapAddress(Util.java:371)
at java.base/jdk.internal.foreign.memory.References$OfLongDouble.get(References.java:398)
at java.base/java.foreign.memory.Pointer.get(Pointer.java:164)
... 34 more
Caused by: java.security.AccessControlException: Access denied for mode: +READ_WRITE. Allowed: READ
at java.base/jdk.internal.foreign.memory.BoundedPointer.checkAccessibleFor(BoundedPointer.java:213)
at java.base/jdk.internal.foreign.memory.BoundedPointer.checkAccess(BoundedPointer.java:227)
at java.base/jdk.internal.foreign.memory.BoundedPointer.checkAccess(BoundedPointer.java:232)
at java.base/jdk.internal.foreign.memory.BoundedPointer.addr(BoundedPointer.java:108)
at java.base/jdk.internal.foreign.Util.withOffHeapAddress(Util.java:359)
... 36 more
----------System.out:(1271/98923)----------
[TestNG] Running:
java/foreign/LongDoubleTest.java
test LongDoubleTest.testCallback(1.0236283957079007E308): failure
java.lang.IllegalStateException: java.lang.IllegalStateException: java.lang.IllegalStateException: java.security.AccessControlException: Access denied for mode: +READ_WRITE. Allowed: READ
at java.base/jdk.internal.foreign.abi.UniversalUpcallHandler.invoke(UniversalUpcallHandler.java:197)
at java.base/jdk.internal.foreign.abi.UniversalUpcallHandler.invoke(UniversalUpcallHandler.java:81)
at java.base/jdk.internal.foreign.abi.UniversalNativeInvoker.invokeNative(Native Method)
at java.base/jdk.internal.foreign.abi.UniversalNativeInvoker.invoke(UniversalNativeInvoker.java:121)
at LongDoubleTest$longdouble$Impl/0x00000007c0373440.f(Unknown Source)
at LongDoubleTest.testCallback(LongDoubleTest.java:102)
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:567)
at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:85)
at org.testng.internal.Invoker.invokeMethod(Invoker.java:639)
at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:821)
at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1131)
at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:125)
at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:108)
at org.testng.TestRunner.privateRun(TestRunner.java:773)
at org.testng.TestRunner.run(TestRunner.java:623)
at org.testng.SuiteRunner.runTest(SuiteRunner.java:357)
at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:352)
at org.testng.SuiteRunner.privateRun(SuiteRunner.java:310)
at org.testng.SuiteRunner.run(SuiteRunner.java:259)
at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
at org.testng.TestNG.runSuitesSequentially(TestNG.java:1185)
at org.testng.TestNG.runSuitesLocally(TestNG.java:1110)
at org.testng.TestNG.run(TestNG.java:1018)
at com.sun.javatest.regtest.agent.TestNGRunner.main(TestNGRunner.java:94)
at jdk.internal.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:567)
at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:246)
at java.base/java.lang.Thread.run(Thread.java:835)
Caused by: java.lang.IllegalStateException: java.lang.IllegalStateException: java.security.AccessControlException: Access denied for mode: +READ_WRITE. Allowed: READ
at java.base/java.foreign.memory.Pointer.get(Pointer.java:166)
at java.base/jdk.internal.foreign.abi.x64.sysv.SysVx64ABI$1.boxValue(SysVx64ABI.java:181)
at java.base/jdk.internal.foreign.abi.UniversalUpcallHandler.invoke(UniversalUpcallHandler.java:166)
... 32 more
ign.abi.UniversalUpcallHandler.invoke(UniversalUpcallHandler.java:166)
... 32 more
Caused by: java.lang.IllegalStateException: java.security.AccessControlException: Access denied for mode: +READ_WRITE. Allowed: READ
at java.base/jdk.internal.foreign.Util.withOffHeapAddress(Util.java:371)
at java.base/jdk.internal.foreign.memory.References$OfLongDouble.get(References.java:398)
at java.base/java.foreign.memory.Pointer.get(Pointer.java:164)
... 34 more
Caused by: java.security.AccessControlException: Access denied for mode: +READ_WRITE. Allowed: READ
at java.base/jdk.internal.foreign.memory.BoundedPointer.checkAccessibleFor(BoundedPointer.java:213)
at java.base/jdk.internal.foreign.memory.BoundedPointer.checkAccess(BoundedPointer.java:227)
at java.base/jdk.internal.foreign.memory.BoundedPointer.checkAccess(BoundedPointer.java:232)
at java.base/jdk.internal.foreign.memory.BoundedPointer.addr(BoundedPointer.java:108)
at java.base/jdk.internal.foreign.Util.withOffHeapAddress(Util.java:359)
... 36 more